[JSR308] Custom annotations?

Richard Gomes rgomes1997 at yahoo.co.uk
Mon Feb 11 17:57:52 EST 2008


Hi Mike,

That's correct.
I'm thinking to raise error messages when the annotation processor is being 
used. At the moment, I'm inserting annotations as directed by JSR-308 guide, 
in a preparation for a further step.

Thanks

--Richard

On Monday 11 February 2008 18:54:56 Michael Ernst wrote:
> > Compliant Java compilers cannot change their behavior based
> > on different annotation values.
>
> More specifically, when javac is run without an annotation processor
> (that is, without a type-checking plug-in), then the presence/absence of
> annotations cannot change what errors/warnings javac emits.
>
> If you use an annotation processor with javac, via "javac -processor ...",
> then the processor is permitted to issue additional errors/warnings.
>
> I suspect that when Richard said, "[this code] cannot compile", he was
> thinking of the situation where a type-checking annotation processor is
> being used.
>
>                     -Mike




More information about the JSR308 mailing list