-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
11.0.8
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.
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.
- duplicates
-
JDK-8267558 Symlinks can't point outside module-source-path
- Closed
- relates to
-
JDK-8175990 Javac fails to find module-info.java if module source path contains symlinks
- Closed
- links to