mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8173605: Remove support for source and target 1.7 option in javac
Reviewed-by: vromero
This commit is contained in:
parent
7c2f2994da
commit
2d18dda3f2
156 changed files with 182 additions and 4570 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -55,8 +55,6 @@ public class TestMetafactoryBridges {
|
|||
|
||||
enum ClasspathKind {
|
||||
NONE(),
|
||||
B7(7, ClassKind.B),
|
||||
A7(7, ClassKind.A),
|
||||
B8(8, ClassKind.B),
|
||||
A8(8, ClassKind.A);
|
||||
|
||||
|
@ -292,10 +290,7 @@ public class TestMetafactoryBridges {
|
|||
throw new AssertionError("Unexpected compilation failure");
|
||||
}
|
||||
|
||||
boolean altMetafactory =
|
||||
cpKind == ClasspathKind.B7 &&
|
||||
!sources.contains(ClassKind.B) &&
|
||||
(pp == PreferPolicy.NEWER || !spKind.sources.contains(ClassKind.B));
|
||||
boolean altMetafactory = false;
|
||||
|
||||
if (altMetafactory != diagChecker.altMetafactory) {
|
||||
throw new AssertionError("Bad metafactory detected - expected altMetafactory: " + altMetafactory +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue