Bug 1217108

Summary: migration tool doesn't convert java.text.SimpleDateFormat correctly
Product: [Retired] JBoss BPMS Platform 6 Reporter: Gary Hu <ghu>
Component: Migration ToolAssignee: Jan <jschatte>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: ahoffer, etirelli, lpetrovi, tzimanyi
Target Milestone: DR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1217248 (view as bug list) Environment:
Last Closed: 2020-03-27 19:05:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1217248    

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.