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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 11.0.8
    • Component/s: 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.

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

              Created:
              Updated: