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

David Beaumont duke at openjdk.org
Fri Mar 21 15:11:42 UTC 2025


> Modifying `JavacFileManager` to skip creating sibling output class files for source files found in JARs.
> 
> This should match older (JDK 8) behavior whereby the JAR was not writable, and results in any newly generated class files being written to the current working directory (the output of class files into current directory isn't good, but it should match the old behavior).

David Beaumont has updated the pull request incrementally with two additional commits since the last revision:

 - Rewriting test and merging annotation tests based on feedback.
 - Updating from feedback.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23699/files
  - new: https://git.openjdk.org/jdk/pull/23699/files/2fbb486e..2905c223

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23699&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23699&range=03-04

  Stats: 672 lines in 4 files changed: 280 ins; 391 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/23699.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23699/head:pull/23699

PR: https://git.openjdk.org/jdk/pull/23699


More information about the compiler-dev mailing list