Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8353840

JNativeScan should not abort for missing classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 24
    • tools
    • None
    • b18

      See discussion https://mail.openjdk.org/pipermail/core-libs-dev/2025-April/142301.html

      Some class files that reference missing system classes may in practice be unused at runtime (in the particular case, the reference comes from a class that is overwritten by a version entry for that same class).

      It is unnecessarily punishing to throw an error in such cases for the missing system class, as jnativescan does now. We will not be able to know for a missing system class whether it defines any restricted methods, but if the class can not be loaded, it is safe to assume that a restricted method from that class can never be called.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: