Skip to content

Commit

Permalink
8347629: Test FailOverDirectExecutionControlTest.java fails with -Xcomp
Browse files Browse the repository at this point in the history
  • Loading branch information
lahodaj committed Jan 23, 2025
1 parent 119899b commit e47ecfd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
Expand All @@ -62,6 +63,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 +97,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 +139,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

0 comments on commit e47ecfd

Please sign in to comment.