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).

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

Commit messages:
 - Don't make InMemoryJavaCompiler javac preview if just the runtime is preview

Changes: https://git.openjdk.org/valhalla/pull/2645/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2645&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388343
  Stats: 16 lines in 1 file changed: 0 ins; 16 del; 0 mod
  Patch: https://git.openjdk.org/valhalla/pull/2645.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2645/head:pull/2645

PR: https://git.openjdk.org/valhalla/pull/2645

Reply via email to