mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 22:35:12 +00:00
Fixing tests
This commit is contained in:
parent
dad7c56b7d
commit
b79bce1f40
@ -602,9 +602,13 @@ class Example implements Comparable<Example> {
|
||||
*/
|
||||
private static void scanForKeys(JCDiagnostic d, Set<String> keys) {
|
||||
keys.add(d.getCode());
|
||||
for (Object o: d.getArgs()) {
|
||||
if (o instanceof JCDiagnostic) {
|
||||
scanForKeys((JCDiagnostic) o, keys);
|
||||
List<Object> todoArgs = new ArrayList<>(Arrays.asList(d.getArgs()));
|
||||
while (!todoArgs.isEmpty()) {
|
||||
Object o = todoArgs.removeLast();
|
||||
if (o instanceof JCDiagnostic sd) {
|
||||
scanForKeys(sd, keys);
|
||||
} else if (o instanceof List l) {
|
||||
todoArgs.addAll(l);
|
||||
}
|
||||
}
|
||||
for (JCDiagnostic sd: d.getSubdiagnostics())
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
// key: compiler.err.not.exhaustive.details
|
||||
// key: compiler.misc.not.exhaustive.detail
|
||||
// options: -XDexhaustivityTimeout=-1
|
||||
|
||||
class NotExhaustiveDetails {
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
// key: compiler.err.not.exhaustive.statement.details
|
||||
// key: compiler.misc.not.exhaustive.detail
|
||||
// options: -XDexhaustivityTimeout=-1
|
||||
|
||||
class NotExhaustiveDetails {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user