frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Add JSR 269 annotation processor to Guice #322

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Community involvement here would be fantastic...

Original comment by limpbizkit on 26 Apr 2009 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 27 Apr 2009 at 6:08