JDK-8007517 : DefaultMethodRegressionTests.java fail in TL
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-02-05
  • Updated: 2013-09-16
  • Resolved: 2013-08-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b105Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
jtreg test
   tools/javac/defaultMethods/defaultMethodExecution/DefaultMethodRegressionTests.java

contains @ignore.  When it is run via -ignore:run, it fails as shown in JDK-8004831.
Also, see:  JDK-8004360
Comments
Opened a new bug, JDK-8021592.
26-07-2013

There is a problem when running this test in samevm mode, used by langtools regression test. Could you please try your above command with -samevm, it should fail as follows: Trace: [TestNG] Running: tools/javac/defaultMethods/defaultMethodExecution/DefaultMethodRegressionTests.java test public void DefaultMethodRegressionTests.testInferenceVerifier(): failure java.lang.ClassFormatError: Method foo in class I has illegal modifiers: 0x201 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:752) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at DefaultMethodRegressionTests$1.findClass(DefaultMethodRegressionTests.java:122) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:752) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at DefaultMethodRegressionTests$1.findClass(DefaultMethodRegressionTests.java:124) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:339) at DefaultMethodRegressionTests.testInferenceVerifier(DefaultMethodRegressionTests.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:715) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197) at org.testng.TestNG.runSuitesLocally(TestNG.java:1122) at org.testng.TestNG.run(TestNG.java:1030) at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:155) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:491) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:728) at java.lang.Thread.run(Thread.java:724)
26-07-2013

Looks like we just have to remove @ignore.
24-07-2013

Sure. Thanks. That would be very helpful - particularly as I do not have push privileges to langtools repo.
01-05-2013

OK, thanks, I can take it from here, if you like. -- Jon
01-05-2013

The test passes with JDK built with jdk8/tl, upon removing the @ignore line. jtreg -testjdk:/scratch/byadaval/view_storage/jdk8-tl/build/linux-x86_64-normal-server-fastdebug/images/j2sdk-image/ -va -vmoptions:'-server -d64 -XX:-TieredCompilation -ea -esa' tools/javac/defaultMethods/defaultMethodExecution/DefaultMethodRegressionTests.java .... =============================================== tools/javac/defaultMethods/defaultMethodExecution/DefaultMethodRegressionTests.java Total tests run: 2, Failures: 0, Skips: 0 ===============================================
01-05-2013

@ignore This issue means that the following test is ignored: langtools/test/tools/javac/defaultMethods/defaultMethodExecution/DefaultMethodRegressionTests.java
28-04-2013

Assigned this, for now, to Bharadwaj. Trying to identify the confusion between the related bugs, it seems that there are fixes in the Lambda JVM that are not in the TL JVM -- and the lack of those fixes is causing this test to be ignored. It would be nice to identify the relevant JVM change that is in Lamba but not in TL, and link that issue as blocking this bug. When the relevant change has been moved to TL, the tests need to be un-ignored or this bug reassigned back to someone who can do that.
28-04-2013

Nightly testing will now run with -ignore:quiet while promotion testing will run with -ignore:run. @ignore test bugs raised to P2 so they are not overlooked at promotion or EC evaluation.
17-04-2013

Could we fix the test ?
05-04-2013