On Aug 26, 7:57 am, Joshua Cranmer <Pidgeo...@verizon.invalid> wrote:
Roedy Green wrote:
The URL you gave says "Annotations became available in the language
itself beginning with version 1.5 of the JDK. A provisional
interface for compile-time annotation processing was provided by
the apt tool in JDK version 1.5, and was formalized through JSR-269
and integrated into the javac compiler in version 1.6."
The annotation processing tool was separate from the compiler in 1.5,
but they decided in 1.6 to integrate it into the javac API.
It sounds to me like annotations in 1.5 would have at best been
ignored by Javac. Language lawyer??
Nope. They were fully functional in 1.5 javac (as some would have to
be reified to the class files). All that the text is saying is that
user-customizable annotation processing was separated from the
compiler in 1.5.
Just so it's clear, I'm compiling with JDK 1.5, with a "source" value
of "1.5".
I'm still looking for some idea of why the annotations appear to be
unavailable at runtime. I've verified the annotations are stored in
the class file, using JD-GUI to examine the class file. As I
mentioned earlier, the retention policy is RUNTIME, so they should be
available. Is there something about Spring, WebLogic 10.1, or ATG
Dynamo that might cause this to happen?
class loader.