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

Running with exploded module should support symlinked classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 9, 17
    • core-libs
    • 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

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

              Dates

                Created:
                Updated: