Include a a JSR 269 annotation processor to the Guice jar to allow Java 6
compilers to detect
things that will definitely cause an exception at runtime.
It could cause a compiler error if:
- more than one constructor is annotated with Inject
- Inject has its 'optional' parameter set when applied to a constructor
More experienced people could probably expand this list (would it be possible
to flag for
everything from Phase 1 of http://code.google.com/p/google-guice/wiki/Bootstrap
?)
There are probably things that could generate compiler warnings too.
Don't know if this would cause compatibility problems with Java 5 (not if the
processor classes
aren't loaded?)
Original issue reported on code.google.com by Ben.Lings on 31 Jan 2009 at 9:44
Original issue reported on code.google.com by
Ben.Lings
on 31 Jan 2009 at 9:44