Community
Participate
Working Groups
In order to support the XmlEnum annotation in JAXB, we would need the ability to generate dynamic enums as well as classes. Currently you can build a DynamicEntity representing an enum, but DynamicEntity itself is a class and will not be usable where an enum is needed. This support could be added on DynamicClassLoader, e.g.: DynamicEntity myEnum = dynamicClassLoader.createDynamicEnum(enumClassName); Could we have a new implementation of DynamicEntity, i.e. DynamicEnumImpl? Some info for generating enums from ASM can be found here: http://old.nabble.com/Creating-enums-with-asm-td20953442.html
Created attachment 165298 [details] Prototype from Rick
Created attachment 165472 [details] Support for Enums with Dynamic Entities
Created attachment 165477 [details] Changed addEnum to take varargs of Objects
Created attachment 165478 [details] Changed addEnum to take varargs of Objects
Created attachment 165482 [details] Support for Enums with Dynamic Entities final version of patch
checked into SVN: revision 7022 reviewed by Rick (as well as discussion with Blaise)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink