Bug 1217248 - [GSS] (6.1.z) migration tool doesn't convert java.text.SimpleDateFormat correctly
Summary: [GSS] (6.1.z) migration tool doesn't convert java.text.SimpleDateFormat corre...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Migration Tool
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: ---
Assignee: Jan
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On: 1217108
Blocks: 1220521 1220522
TreeView+ depends on / blocked
 
Reported: 2015-04-29 20:56 UTC by Andrea Hoffer
Modified: 2020-03-27 18:35 UTC (History)
8 users (show)

Fixed In Version:
Clone Of: 1217108
Environment:
Last Closed: 2020-03-27 18:35:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Comment 2 Andrea Hoffer 2015-04-30 19:29:31 UTC
Description:

When running the migration tool shipped by BPMS 6.1 against repository generated by BRMS 5.2, the rule that that uses a java.text.SimpleDateFormat in 5.2 is incorrectly converted in 6.1.

For example,
In 5.2, any rule that uses a java.util.Date produces the following line in the .rdrl file:
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd-MMM-yyyy");

During migration, however, the line is transformed to an invalid form that will throw exceptions at runtime:
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("null");

Comment 3 Jan 2015-05-04 15:28:33 UTC
Fixed in master: http://github.com/droolsjbpm/drools-wb/commit/a9a8f0015

Comment 4 Jan 2015-05-04 17:03:10 UTC
Cherry-picked into 6.2.x: http://github.com/droolsjbpm/drools-wb/commit/c4346d08e

Comment 5 Tibor Zimanyi 2015-05-19 11:35:33 UTC
Verified running migration on repositories from attachments from parent BZ. There are no occurrences of SimpleDateFormat("null") in newly created git repositories. There is SimpleDateFormat("dd-MM-yyyy") used.


Note You need to log in before you can comment on or make changes to this bug.