Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 399571 - [1.8] DefaultMethodsTest.testModifiers5 fails with b74 build
Summary: [1.8] DefaultMethodsTest.testModifiers5 fails with b74 build
Status: CLOSED DUPLICATE of bug 381345
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380501
  Show dependency tree
 
Reported: 2013-01-30 19:17 EST by Manoj N Palat CLA
Modified: 2013-01-31 18:31 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj N Palat CLA 2013-01-30 19:17:19 EST
DefaultMethodsTest
org.eclipse.jdt.core.tests.compiler.regression.DefaultMethodsTest
1.8
testModifiers5(org.eclipse.jdt.core.tests.compiler.regression.DefaultMethodsTest)
junit.framework.AssertionFailedError: Unexpected error running resulting class file for C.java:
--[START]--
java.lang.ClassFormatError: Method foo in class I has illegal modifiers: 0x1

	at java.lang.ClassLoader.defineClass1(Native Method)

	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)

	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)

	at ---[END]---


	at junit.framework.Assert.fail(Assert.java:50)

	at junit.framework.Assert.assertTrue(Assert.java:20)

	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest
(AbstractRegressionTest.java:2541)

	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2317)

	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:1383)

	at org.eclipse.jdt.core.tests.compiler.regression.DefaultMethodsTest.testModifiers5(DefaultMethodsTest.java:202)

	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:477)

	at junit.framework.TestCase.runTest(TestCase.java:168)

	at junit.framework.TestCase.runBare(TestCase.java:134)

	at junit.framework.TestResult$1.protect(TestResult.java:110)

	at junit.framework.TestResult.runProtected(TestResult.java:128)

	at junit.framework.TestResult.run(TestResult.java:113)

	at junit.framework.TestCase.run(TestCase.java:124)

	at junit.framework.TestSuite.runTest(TestSuite.java:243)

	at junit.framework.TestSuite.run(TestSuite.java:238)

	at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:55)

	at junit.framework.TestSuite.runTest(TestSuite.java:243)

	at junit.framework.TestSuite.run(TestSuite.java:238)

	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)

	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

	at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)

	at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:23)

	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:477)

	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)

	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)

	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)

	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

	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:477)

	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)

	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

=> Originally part of bug 399452, created this bug to track separately
Comment 1 Stephan Herrmann CLA 2013-01-31 18:17:00 EST
My initial feeling as of bug 396139 comment 12 was: This is a regression in the VM itself. 

At a closer look the VM, which previously couldn't cope with class file version 52, now *requires* this version for accepting default methods.
Comment 2 Stephan Herrmann CLA 2013-01-31 18:31:55 EST
I've fixed this bug by fixing bug 381345.

*** This bug has been marked as a duplicate of bug 381345 ***