Bug 1217108
| Summary: | migration tool doesn't convert java.text.SimpleDateFormat correctly | |||
|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Gary Hu <ghu> | |
| Component: | Migration Tool | Assignee: | Jan <jschatte> | |
| Status: | CLOSED EOL | QA Contact: | Marek Winkler <mwinkler> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.1.0 | CC: | 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 | |||
Fixed in master: http://github.com/droolsjbpm/drools-wb/commit/a9a8f0015 Cherry-picked into 6.2.x: http://github.com/droolsjbpm/drools-wb/commit/c4346d08e Verified in 6.2.0.ER5. |
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");