Invalid symbolic links on the module source path

Andrew Dinn adinn at redhat.com
Sun Jul 19 08:48:29 UTC 2020



On 19/07/2020 09:01, Florian Weimer wrote:
> Emacs creates dangling symbolic links while source files are edited,
> as a form of lock file.  These have names of the form ".#Main.java"
> (for a source file called Main.java).  Should javac skip reading these
> non-source files, based on their name?
> 
> Presently, javac attempts to open these files and reports an error,
> terminating the compilation.
> 
> (I wonder if there is a reasonably straightforward way to work around
> this using a JavaFileManager.)

I actually like this behaviour because it stops me rebuilding whren I
have unsaved edits to JDK sources (n.b. the JVM build also fails if it
picks up one of these files via a wildcard substitution).

So ... it's not a bug it's a feature -- and quite a useful one as far as
I am concerned ;-)

regards,


Andrew Dinn
-----------
Red Hat Distinguished Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill



More information about the compiler-dev mailing list