On Wed, 15 Jul 2026 19:45:02 GMT, Chen Liang <[email protected]> wrote:

> When the JVM of javac runs with -J--enable-preview, javac should still 
> compile against the non-preview class path when it is not passed 
> --enable-preview. We have this hack within InMemoryJavaCompiler that turns 
> out breaks things when we try to fix some javac issues (#2643), because we 
> expect the output bytecode to be stable for transformations.
> 
> Turns out now this change is redundant. Tier 1-6 is clear so far except the 
> known CreateCoreDumpOnCrash.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Reverting this looks fine.  Thank you for verifying that the RedefineClasses 
tests pass with this change.

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

Marked as reviewed by coleenp (Committer).

PR Review: 
https://git.openjdk.org/valhalla/pull/2645#pullrequestreview-4715398134

Reply via email to