--module-source-path does not accept symlink
Weijun Wang
weijun.wang at oracle.com
Mon Feb 27 03:41:11 UTC 2017
Looks like this is a regression of the latest changeset in langtools:
8173914: StandardJavaFileManager.setLocationForModule
http://hg.openjdk.java.net/jdk9/dev/langtools/rev/a42d01aa6c9e
The 2nd javac call succeeds if I backout the change.
--Max
On 02/27/2017 11:31 AM, Weijun Wang wrote:
> $ mkdir -p s/z
> $ echo "module z { }" > s/z/module-info.java
> $ javac --module-source-path s -d /tmp s/z/module-info.java
> $ ln -s s t
> $ javac --module-source-path t -d /tmp t/z/module-info.java
> t/z/module-info.java:1: error: module not found on module source path
> module z { }
> ^
> 1 error
>
> Is this a bug?
>
> I find this issue when I was running jib and my /var/tmp/jib_myname is a
> symlink to another jib directory in another Linux installation.
>
> Thanks
> Max
More information about the compiler-dev
mailing list