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

javac --module-source-path failure if symlinks are present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 11.0.8
    • tools

      reporter encountering issues when using javac and --module-source-path on a src path which contains symbolic links to src files outside of the src dir.

      more info from submitter:
      =======
      To confirm that this is not a transaction or java flag usage issue, I tried
      with a Java project example

      https://openjdk.java.net/projects/jigsaw/quick-start#multimodulecompile

      $SRCHOME/jdk11/bin/javac -d mods --module-source-path src
      src/com.greetings/com/greetings/Main.java
      src/com.greetings/com/greetings/Main.java:1: error: not in a module on the
      module source path
      package com.greetings;
      ^
      1 error

      In this case src/com.greetings/com/greetings/Main.java is a symlink pointing
      to Main.java located outside the mods folder. I also observed that if the
      original file Main.java symlink points to is placed somewhere under the mods
      then this issue doesn't occur.

            Unassigned Unassigned
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: