Description of problem: Bug 724629 was fixed for 5.3.0 and it concludes that enum values like Person$Sex.FEMALE should be presented as Sex.FEMALE in Guided Rule Editor. Currently in 6.0.x it is displayed as Person$Sex.FEMALE and the same value appears in the generated DRL source. When a rule using such value is saved and reopened the select box listing the enum values is reset and contains no items (only the "Choose ..." hint). Version-Release number of selected component (if applicable): ER6 How reproducible: - Steps to Reproduce: 1. prepare a data model described in bug 724629 2. add Person fact with sex field and set it to Person$Sex.FEMALE 3. save the rule, close it and reopen Actual results: The select box for Person.sex field is reset. DRL source contains Person$Sex.FEMALE. Expected results: * The select box in GRE should contain values without the enclosing class, e.g. Sex.FEMALE. * The same format should appear in the DRL source. * GRE should handle nested enum values correctly when reopening the rule Additional info:
This BZ also reveals that closing and re-opening a rule containing a Java enumberation does not work correctly. I would therefore recommend that this BZ becomes a blocker.
This BZ also reveals that nested inner classes do not work correctly in 6.0.x either. I am rolling the fix for this into this BZ. I would therefore recommend that this BZ becomes a blocker. See https://issues.jboss.org/browse/GUVNOR-1873 (fixed in 5.5 but not in 6.0.x).
*** Bug 1053413 has been marked as a duplicate of this bug. ***