Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8347629: Test FailOverDirectExecutionControlTest.java fails with -Xcomp #3008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class FailOverDirectExecutionControlTest extends ExecutionControlTestBase

ClassLoader ccl;
ExecutionControlProvider provider;
Logger logger;
LogTestHandler hndlr;
Map<Level, List<String>> logged;

Expand Down Expand Up @@ -95,7 +96,7 @@ public void close() throws SecurityException {
@BeforeMethod
@Override
public void setUp() {
Logger logger = Logger.getLogger("jdk.jshell.execution");
logger = Logger.getLogger("jdk.jshell.execution");
logger.setLevel(Level.ALL);
hndlr = new LogTestHandler();
logger.addHandler(hndlr);
Expand Down Expand Up @@ -137,8 +138,8 @@ public void setUp() {
@Override
public void tearDown() {
super.tearDown();
Logger logger = Logger.getLogger("jdk.jshell.execution");
logger.removeHandler(hndlr);
logger = null;
Thread.currentThread().setContextClassLoader(ccl);
}

Expand Down