RFR: 8293051: Further refactor javac after removal of -source/-target/--release 7 [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Sep 5 15:10:45 UTC 2022
On Fri, 2 Sep 2022 21:35:46 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> This PR is a continuation of PR [1] which removed support for source and target 1.7 option in javac. This is is removing additional switches in javac that were providing support to legacy behavior related to source and target 1.7. What else could be missing?
>>
>> TIA
>>
>> [1] https://github.com/openjdk/jdk/pull/10074
>
> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>
> fixing additional test
Great cleanup - few test changes were not 100% clear to me, probably I'm missing some context.
test/jdk/java/lang/invoke/defineHiddenClass/src/HiddenInterface.java line 31:
> 29: public interface HiddenInterface {
> 30: default void test() {
> 31: record R() {}
surprised to see this change
test/langtools/jdk/jshell/ToolEnablePreviewTest.java line 76:
> 74: public void testCompilerTestFlagEnv() {
> 75: test(new String[] {"-C", "-XDforcePreview"},
> 76: (a) -> assertCommandOutputContains(a, "Function<Integer,Integer> f = (var i) -> i + i",
surprised to see these changes
-------------
PR: https://git.openjdk.org/jdk/pull/10150
More information about the compiler-dev
mailing list