Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Can't see custom warnings in eclipse (I want to have an annotation, classes with which applied will be warned.)
Can't see custom warnings in eclipse [message #1794980] Wed, 12 September 2018 03:00 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Native library path not working in tomcat
Next Topic:My Eclipse Error
Goto Forum:
  


Current Time: Wed Apr 30 13:55:30 EDT 2025

Powered by FUDForum. Page generated in 0.16129 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top