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

Enhance class paths check during runtime

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      During CDS dump time, it would not record an entry in the classpath which is not a jar file.

      e.g. -cp A.jar:B.jar

      If A.jar is not a jar file, CDS only records B.jar in the archive.

      During runtime, if the same -cp is specified. Both A.jar and B.jar will be used for comparing with the shared classpath in the archive. This resulting in class paths mismatch and the archive will not be used. It is because during runtime, it only checks if the file exists. It should check if a file is a jar file in the classpath, as is being done during dump time, and ignore the entry if it isn't a jar file.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ccheung Calvin Cheung
              Reporter:
              ccheung Calvin Cheung
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: