I'm working on the Hibernate project and a huge userbase that needs to deploy JDK 5.0 annotations on JDK 1.4. I'm very clueless about JVM details, can anyone give an estimate on the effort that would be required to support Annotations in Retroweaver?
It really depends upon your use case. Retroweaver basically leaves the 1.5 annotations intact withiin the transformed class file. This means that JDK1.5 annotation-processing tools should be able to understand and use those annotations just fine.
If you need the annotations for runtime processing, then I'd need to write a 1.4-based implementation of the 1.5 annotation API - probably by stuffing the annotation data into private fields in the class.
What are your users' needs?
On the website, under "Documentation", the "Supported 1.5 Language Features" list now includes "Annotations". How can I understand that?
Backport175 (http://backport175.codehaus.org) supports reading the Annotations. I've got a local modified version of Retroweaver here, that modifies the constant pool to replace java.lang.annotation.Annotation with a reference to a private interface (to allow loading the Annotation Interfaces themselves) and it _seems_ to work.
I would like to use hibernate 3 with annotations for persistence, however am stuck in an environment that requires java 1.4. I tried making an example program and retroweaving but now get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/annotation/Annotation
Does retroweaver provide an implementation? If not is there a way around this?
I need too run-time annotations. It would be great if Retroweaver could support them (using backport175 or not)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.