[External] : Re: Case-insensitive file systems and output file clashes - survey
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Feb 24 01:09:37 UTC 2023
On 2/23/23 1:06 PM, Archie Cobbs wrote:
>
>>
> If anyone were to pursue this, I would recommend that it be done
> at least 99.99% in a separate implementation of
> `java.nio.file.FileSystem`, and not directly in javac itself.
> Such a FileSystem could be used without changing javac at all when
> invoking javac through its API (i.e.
> `javax.tools.JavaCompiler.getTask`), or with minimal change to
> command-line javac to specify the use of that file system.
>
> That's a neat approach.
>
> The idea of a javac flag like --use-filesystem-impl
> com.foobar.MyFileSystem is something that could be useful in its own
> right.
>
> -Archie
FWIW, I probably meant `javax.tools.JavaFileManager` instead of
`java.nio.file.FileSystem`. That good, because it's easier to write an
interposing file manager than a new file system. :-)
-- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20230223/d084001a/attachment.htm>
More information about the compiler-dev
mailing list