[8u] PRF:8167014 :jdeps: Missing message: warn.skipped.entry

hedongbo hedongbo at huawei.com
Sat Nov 13 02:29:42 UTC 2021


Hi,

    Please review the backport of JDK-8167014 to 8u.
    Bug: https://bugs.openjdk.java.net/browse/JDK-8167014
    Original commit: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/d7c3ad383ed5
    8u webrev: http://cr.openjdk.java.net/~dongbohe/8167014/webrev.00/

    This patch doesn't apply cleanly but is trivial. For JepsTask.java, the lambda expression is used in JDK9,
    and the for loop is used in JDK8. For jdeps.properties, it is only a different context

    Before patch:
    jdeps: tomcat-embed-websocket-10.0.8.jar (https://repo1.maven.org/maven2/org/apache/tomcat/embed/tomcat-embed-websocket/10.0.8/tomcat-embed-websocket-10.0.8.jar)
    ````java
    Exception in thread "main" java.lang.InternalError: Missing message: warn.skipped.entry
        at com.sun.tools.jdeps.JdepsTask.getMessage(JdepsTask.java:709)
        at com.sun.tools.jdeps.JdepsTask.warning(JdepsTask.java:673)
        at com.sun.tools.jdeps.JdepsTask.findDependencies(JdepsTask.java:563)
        at com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:324)
        at com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:306)
        at com.sun.tools.jdeps.Main.main(Main.java:48)
    ````

    After Patch:
    worked correctly.

    Tested with tier1. No regression in tests.


Thanks,
hedongbo


More information about the jdk8u-dev mailing list