Running with exploded module should support symlinked classes

XMLWordPrintable

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

      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

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

              Created:
              Updated: