Quantcast

--module-source-path does not accept symlink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

--module-source-path does not accept symlink

Weijun Wang
$ 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --module-source-path does not accept symlink

Weijun Wang
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
Loading...