jtreg must not add "--enable-preview" and "--source N" to the list of javac arguments of the compile action when a lower JDK is the target
Source: https://github.com/openjdk/jdk/blob/cec222e46065fc15db3f2eb241d3607d605ab580/test/langtools/tools/jnativescan/TestMissingSystemClass.java#L28
```
error: invalid source release 20 with --enable-preview
(preview language features are only supported for release 24)
```
Source: https://github.com/openjdk/jdk/blob/beeffd4671649e5d8f9c96f0455ac90a82917234/test/langtools/tools/javac/classfiles/attributes/Synthetic/BridgeMethodsForLambdaTargetRelease14Test.java#L38
```
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 24)
```
Source: https://github.com/openjdk/jdk/blob/cec222e46065fc15db3f2eb241d3607d605ab580/test/langtools/tools/jnativescan/TestMissingSystemClass.java#L28
```
error: invalid source release 20 with --enable-preview
(preview language features are only supported for release 24)
```
Source: https://github.com/openjdk/jdk/blob/beeffd4671649e5d8f9c96f0455ac90a82917234/test/langtools/tools/javac/classfiles/attributes/Synthetic/BridgeMethodsForLambdaTargetRelease14Test.java#L38
```
error: invalid source release 14 with --enable-preview
(preview language features are only supported for release 24)
```
- clones
-
CODETOOLS-7903808 IOOBE in compile action when processing class files only
- Resolved
- relates to
-
CODETOOLS-7903813 Tag enablePreview with false should take precedence
- Resolved
-
CODETOOLS-7903775 Add LIBRARY.properties
- Resolved
- links to
-
Commit(master) openjdk/jtreg/c4852e33
-
Review(master) openjdk/jtreg/226