Bug 1217108 - migration tool doesn't convert java.text.SimpleDateFormat correctly
Summary: migration tool doesn't convert java.text.SimpleDateFormat correctly
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Migration Tool
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: DR1
: 6.2.0
Assignee: Jan
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks: 1217248
TreeView+ depends on / blocked
 
Reported: 2015-04-29 14:52 UTC by Gary Hu
Modified: 2020-03-27 19:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1217248 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:05:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Comment 4 Gary Hu 2015-04-30 16:51:14 UTC
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 5 Jan 2015-05-04 15:29:27 UTC
Fixed in master: http://github.com/droolsjbpm/drools-wb/commit/a9a8f0015

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

Comment 7 Tibor Zimanyi 2015-11-12 09:09:04 UTC
Verified in 6.2.0.ER5.


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