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

Running with exploded module should support symlinked classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 17
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      This is the runtime equivalent of JDK-8267583.

      To reproduce:

      > unzip greetings.zip
      > javac -d bin/com.greetings src/com.greetings/module-info.java src/com.greetings/com/greetings/Main.java
      > java -p bin -m com.greetings/com.greetings.Main
      Greetings!
      > mv bin/com.greetings/com/greetings/Main.class target; ln -s $PWD/target/Main.class bin/com.greetings/com/greetings/Main.class
      > java -p bin -m com.greetings/com.greetings.Main
      Error occurred during initialization of boot layer
      java.lang.module.FindException: Error reading module: bin/com.greetings
      Caused by: java.lang.module.InvalidModuleDescriptorException: Package com.greetings not found in module

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alanb Alan Bateman
              Reporter:
              dnsimon Douglas Simon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: