runtime/ClassInitErrors/TestStackOverflowDuringInit.java seems to be very fragile and it fails after JDK-8294960: Convert java.base/java.lang.invoke package to use the Classfile API to generate lambdas and method handles
It fails with:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class java.lang.Long$LongCache and/or Caused by: java.lang.StackOverflowError missing from stacktrace
at TestStackOverflowDuringInit.verify_stack(TestStackOverflowDuringInit.java:91)
at TestStackOverflowDuringInit.main(TestStackOverflowDuringInit.java:78)
However the log contains:
java.lang.StackOverflowError
at java.base/java.lang.Number.<init>(Number.java:59)
at java.base/java.lang.Long.<init>(Long.java:1136)
at java.base/java.lang.Long.valueOf(Long.java:1023)
at TestStackOverflowDuringInit.recurse(TestStackOverflowDuringInit.java:58)
at TestStackOverflowDuringInit.recurse(TestStackOverflowDuringInit.java:59)
at TestStackOverflowDuringInit.recurse(TestStackOverflowDuringInit.java:59)