The following test failed in the JDK20 CI:
java/lang/invoke/lambda/LogGeneratedClassesTest.java
Here's a snippet from the log file:
#section:testng
----------messages:(5/169)----------
command: testng LogGeneratedClassesTest
reason: User specified action: run testng LogGeneratedClassesTest
Mode: agentvm
Agent id: 12
elapsed time (seconds): 2.126
----------configuration:(16/1596)*----------
Boot Layer
class path: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\javatest.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\jtreg.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\junit.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\hamcrest.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\testng.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\jcommander.jar
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\guice.jar
patch: java.base C:\\sb\\prod\\1660677053\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part1\\patches\\java.base
Test Layer
class path: C:\\sb\\prod\\1660677053\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part1\\classes\\1\\java\\lang\\invoke\\lambda\\LogGeneratedClassesTest.d
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+11-642\\src.full\\open\\test\\jdk\\java\\lang\\invoke\\lambda
C:\\sb\\prod\\1660677053\\testoutput\\test-support\\jtreg_open_test_jdk_tier1_part1\\classes\\1\\java\\nio\\file
C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+11-642\\src.full\\open\\test\\jdk\\java\\nio\\file
----------rerun:(34/5377)*----------
<snip>
----------System.out:(120/7518)*----------
config LogGeneratedClassesTest.setup(): success
test LogGeneratedClassesTest.testDumpDirIsFile(): failure
java.lang.AssertionError: only show error once expected [1] but found [0]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertEqualsImpl(Assert.java:140)
at org.testng.Assert.assertEquals(Assert.java:122)
at org.testng.Assert.assertEquals(Assert.java:797)
at LogGeneratedClassesTest.testDumpDirIsFile(LogGeneratedClassesTest.java:165)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
test LogGeneratedClassesTest.testDumpDirNotExist(): failure
java.lang.AssertionError: only show error once expected [1] but found [0]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertEqualsImpl(Assert.java:140)
at org.testng.Assert.assertEquals(Assert.java:122)
at org.testng.Assert.assertEquals(Assert.java:797)
at LogGeneratedClassesTest.testDumpDirNotExist(LogGeneratedClassesTest.java:149)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
WARNING: POSIX is not supported. Skipping testDumpDirNotWritable test.
test LogGeneratedClassesTest.testDumpDirNotWritable(): success
test LogGeneratedClassesTest.testLogging(): success
accepted: dumpLong
accepted: dumpLong\\com
accepted: dumpLong\\com\\example
accepted: dumpLong\\com\\example\\nonsense
accepted: dumpLong\\com\\example\\nonsense\\nonsense
filetered out: dumpLong\\java
filetered out: dumpLong\\java\\lang
filetered out: dumpLong\\java\\lang\\Class$$Lambda$41.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$21.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$22.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$23.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$24.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$25.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$26.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$27.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$28.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$29.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$30.class
filetered out: dumpLong\\java\\lang\\SecurityManager$$Lambda$31.class
filetered out: dumpLong\\java\\lang\\System$$Lambda$32.class
filetered out: dumpLong\\java\\util
filetered out: dumpLong\\java\\util\\ServiceLoader$$Lambda$40.class
filetered out: dumpLong\\jdk
filetered out: dumpLong\\jdk\\internal
filetered out: dumpLong\\jdk\\internal\\loader
filetered out: dumpLong\\jdk\\internal\\loader\\BuiltinClassLoader$$Lambda$39.class
filetered out: dumpLong\\jdk\\internal\\loader\\BuiltinClassLoader$$Lambda$49.class
filetered out: dumpLong\\jdk\\internal\\logger
filetered out: dumpLong\\jdk\\internal\\logger\\SimpleConsoleLogger$CallerFinder$$Lambda$42.class
filetered out: dumpLong\\sun
filetered out: dumpLong\\sun\\net
filetered out: dumpLong\\sun\\net\\www
filetered out: dumpLong\\sun\\net\\www\\protocol
filetered out: dumpLong\\sun\\net\\www\\protocol\\jrt
filetered out: dumpLong\\sun\\net\\www\\protocol\\jrt\\JavaRuntimeURLConnection$$Lambda$38.class
test LogGeneratedClassesTest.testLoggingException(): success
test LogGeneratedClassesTest.testNotLogging(): success
config LogGeneratedClassesTest.cleanup(): success
===============================================
java/lang/invoke/lambda/LogGeneratedClassesTest.java
Total tests run: 6, Passes: 4, Failures: 2, Skips: 0
===============================================
----------System.err:(24/1402)----------
TestLambda.java:7: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
System.setSecurityManager(new SecurityManager());
^
TestLambda.java:7: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
System.setSecurityManager(new SecurityManager());
^
2 warnings
LongPackageName.java:7: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
System.setSecurityManager(new SecurityManager());
^
LongPackageName.java:7: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
System.setSecurityManager(new SecurityManager());
^
2 warnings
java.lang.Exception: failures: 2
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2