Jdeprscan warning with --release 8

I have a standalone Java-9 based project with one class on which I experimented with a tool moved over the Java SE release, when I ran the same using version 9 in my project, there were no logs in the console (assuming that this is the expected behavior): Main.java jdeprscan

standalone git:(master)jdeprscan --release 9 .
Directory .:

means there were no legacy APIs used by code that just seemed to me.

Then I tried the same with release 8, although I didn’t get any Deprecatedagain, but the console showed 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 is there a warning with version 8 and not version 9? To add to the details here, for example. in JavaSE8 is WebParam.Mode.INnot marked as deprecated.

: , - ?

. JDK10 ( GA) JDK11 (EA), , , , :

warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL

.

+4
2

, jdeprscan.

jdeprscan . , jdeprscan, - JDK, , . --release, javac, , , JDK 8. , - JDK , jdeprscan , , .

javax.xml.ws javax.xml.ws.annotation, , . , . ( , javax.xml.ws javax.xml.ws.annotation , , - .)

JDK-8187155, . , jdeprscan, . , , , .

( , JDK 9 API List.of, , JDK 9. jdeprscan , , , JDK 9, --release 8. , - .)

+4

Java 9 . , Java 8. , - , .

, , , , . ; , jdeprscan , .

0

Source: https://habr.com/ru/post/1685030/


All Articles