I have a standalone project based on Java-9 with a single class Main.java
on which I was experimenting with the jdeprscan
tool pivoted over the Java SE release, when I ran the same using release 9 on my project there were no logs(assuming that being the expected behaviour) in the console:
➜ standalone git:(master) ✗ jdeprscan --release 9 . Directory .:
meaning there were no deprecated APIs used by the code which seemed just to me.
Then I tried the same with release 8, though I didn't get any Deprecated
logs again but the console displayed certain warnings for the project :
➜ standalone git:(master) ✗ jdeprscan --release 8 . warning: unknown enum constant javax.jws.WebParam.Mode.IN warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
Q: Why are there warning with the release version 8 and not with version 9? To add to the details here for e.g. in JavaSE8 WebParam.Mode.IN
is not marked as deprecated either.
Q: Why do I get these warnings even in the first place when my code isn't involved with any of these enum constants?
Edit: I was giving this a try with JDK10(GA release) and JDK11(EA), and what I could update here is that the only warning left over is
warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
the other two has subsided.