mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8062348: langtools tests should close file manager (group 1)
Reviewed-by: darcy
This commit is contained in:
parent
b587478f7c
commit
8bd23f1681
145 changed files with 2701 additions and 2452 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2014, 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
|
||||
|
@ -117,16 +117,17 @@ public class InterruptedExceptionTest {
|
|||
|
||||
//create default shared JavaCompiler - reused across multiple compilations
|
||||
JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
|
||||
StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null);
|
||||
try (StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null)) {
|
||||
|
||||
for (XlintOption xlint : XlintOption.values()) {
|
||||
for (SuppressLevel suppress_decl : SuppressLevel.values()) {
|
||||
for (SuppressLevel suppress_use : SuppressLevel.values()) {
|
||||
for (ClassKind ck : ClassKind.values()) {
|
||||
for (ExceptionKind ek_decl : ExceptionKind.values()) {
|
||||
for (ExceptionKind ek_use : ExceptionKind.values()) {
|
||||
new InterruptedExceptionTest(xlint, suppress_decl,
|
||||
suppress_use, ck, ek_decl, ek_use).run(comp, fm);
|
||||
for (XlintOption xlint : XlintOption.values()) {
|
||||
for (SuppressLevel suppress_decl : SuppressLevel.values()) {
|
||||
for (SuppressLevel suppress_use : SuppressLevel.values()) {
|
||||
for (ClassKind ck : ClassKind.values()) {
|
||||
for (ExceptionKind ek_decl : ExceptionKind.values()) {
|
||||
for (ExceptionKind ek_use : ExceptionKind.values()) {
|
||||
new InterruptedExceptionTest(xlint, suppress_decl,
|
||||
suppress_use, ck, ek_decl, ek_use).run(comp, fm);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue