Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185596 Class path does not accept malformed file path
  3. JDK-8185990

Release Note: Path component of file URL cannot be used as class path element without decoding

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Verification:
      Verified

      Description

      The class path specified to the java launcher is expected to be a sequence of file paths. Previous releases incorrectly accept a Windows path with a leading slash, for example, `-classpath /C:/classes`, is not the intended behavior. The implementation of the application class loader has been changed in JDK 9 to use the new file system API which detects that `/C:/classes` is not a valid file path. Existing application specifying file URI on the class path will need to change and specify a valid file path.

        Attachments

          Activity

            People

            Assignee:
            mchung Mandy Chung
            Reporter:
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: