RFR: 8338675: javac shouldn't silently change .jar files on the classpath [v7]

David Beaumont duke at openjdk.org
Tue Apr 1 12:20:46 UTC 2025


On Mon, 31 Mar 2025 20:50:57 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> David Beaumont has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove unused import.
>
> test/langtools/tools/javac/processing/filer/TestNoOverwriteJarFiles.java line 81:
> 
>> 79:  * an existing class file entry. This would be very problematic.
>> 80:  * <p>
>> 81:  * This test ensures javac will not modify JAR files on the classpath, even if
> 
> Does something reasonable happen if the soucepath and classpath are both set to the same jar file?

Behaviour is same for either/both. Jar file is never modified, sources appear in the working directory.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23699#discussion_r2022740166


More information about the compiler-dev mailing list