Can't see custom warnings in eclipse [message #1794980] |
Wed, 12 September 2018 03:00  |
Eclipse User |
|
|
|
I want to have an annotation, classes with which applied will be warned.
I followed this instruction. (since I'm not allowed to use links, the URL is misrepresented intentionally)
http : / / stackoverflow.com/questions/1752607/how-to-intentionally-cause-a-custom-java-compiler-warning-message
Now command line javac will emits the warning I want, but in eclipse, I can't see any warning symbol. I have tried turning on all warning switches in Window -> Preferences -> Java - Compiler -> Errors/Warnings.
I know Eclipse JDT has its built-in compiler, what I don't get is why it behaves differently with the javac in my OS on this.
|
|
|
Re: Can't see custom warnings in eclipse [message #1795080 is a reply to message #1794980] |
Fri, 14 September 2018 03:45  |
Eclipse User |
|
|
|
I can't, at this point, tell you why this won't work because Eclipse does implement the javax.annotation.processing.Messager API and we have several tests that test this. I can look at this if you can share your annotation processor. Also, have you confirmed that your processor gets called? This you can do by printing to the console inside the process() method.
|
|
|
Powered by
FUDForum. Page generated in 0.16129 seconds