[jboss-jira] [JBoss JIRA] (JBRULES-3241) Behavior of data in maps is broken/erratic
Zachary St Lawrence (Created) (JIRA)
jira-events at lists.jboss.org
Tue Oct 11 16:18:16 EDT 2011
Behavior of data in maps is broken/erratic
------------------------------------------
Key: JBRULES-3241
URL: https://issues.jboss.org/browse/JBRULES-3241
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.3.0.CR1, 5.2.0.Final, 5.4.0.Beta1
Environment: Ubuntu 4.4.3-4ubuntu5 64 bit
openjdk jvm
Tested on 5.2.Final and 5.4.nightlybuild on hudson
Reporter: Zachary St Lawrence
Assignee: Mark Proctor
Map accessors have been improved in 5.4 but there are still at least a half dozen cases that are broken. They were basically unusable in 5.2.
Create a Map<KeyEnum, ValueEnum> on an object and try to access it.
In 5.2 you can not access directly via the map object.
In 5.4 you can access if KeyEnum was an externally defined enum but inner static KeyEnum will cause errors.
Created a simple project (extension of hello world Message example to demonstrate. Note that each issue I found caused the rules file to not compile so I commented out all the error lines but as they are fixed they could be commented back in to test regressions.
I will try to attach files after creating this issue but if I find I do not have sufficient JIRA permissions to add the files I will add the text as comments.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list