[jboss-jira] [JBoss JIRA] (JBRULES-3241) Behavior of data in maps is broken/erratic
Zachary St Lawrence (Updated) (JIRA)
jira-events at lists.jboss.org
Tue Oct 11 16:55:16 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zachary St Lawrence updated JBRULES-3241:
-----------------------------------------
Attachment: Drools5.4.zip
Zip of Hello world project for drools 5.4 build as of 10/10/2011. Contains 4 java files and one rule file.
DroolsTest has the main method used to test rule compilation.
Mailbox is the main object tested.
MailType is a simple enum
Message is straight from the Hello world example.
Sample.drl is the rule file. Lines commented out will break compile currently and are the problems needing to be solved.
> 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.2.0.Final, 5.3.0.CR1, 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
> Labels: Map, TypeError
> Attachments: Drools5.4.zip
>
>
> 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