harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu" <sean.xx....@gmail.com>
Subject [test] Problem encoutered when running eclipse's unit test with harmony
Date Thu, 01 Feb 2007 03:55:08 GMT
Hi , everybody

I am trying to run unit tests of the latest eclipse whose version is
3.2.1with harmony classlib and IBM J9 VM.
But i encountered some problems when run the tests in package of
org.eclipse.jdt.core.tests.compiler.regression.

All the failing test's message seem similar who all contains this sentence:
The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files

At first, i thought it may be because that eclipse could not recognize our
harmony's JRE, so i added the plugin
org.apache.harmony.eclipse.jdt.launching_1.0.2.jar before testing.
But it was good-for-nothing.

I find someone had successuflly run these tests with DRLVM, is there any
further configuration???
Have you ever encountered the similar problem??

Thanks very much.



Here is one of the error full message
===============================
Invalid problem log . ----------- Expected ------------ ----------\n 1.
ERROR in X.java (at line 3)\n * @see <a href="spec.html#section">Java
Spec<a>\n ^^^\n Javadoc: Malformed link reference\n ----------\n
------------ but was ------------ ----------\n 1. ERROR in X.java (at line
1)\n public class X {\n ^\n The type java.lang.Object cannot be resolved. It
is indirectly referenced from required .class files\n ----------\n 2. ERROR
in X.java (at line 3)\n * @see <a href="spec.html#section">Java Spec<a>\n
^^^\n Javadoc: Malformed link reference\n ----------\n --------- Difference
is ---------- expected:<......> but was:<...1)\n public class X {\n ^\n The
type java.lang.Object cannot be resolved. It is indirectly referenced from
required .class files\n ----------\n 2. ERROR in X.java (at line ...>

junit.framework.ComparisonFailure: Invalid problem log .
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 3)\n
* @see <a href="spec.html#section">Java Spec<a>\n
^^^\n
Javadoc: Malformed link reference\n
----------\n

------------ but was ------------
----------\n
1. ERROR in X.java (at line 1)\n
public class X {\n
^\n
The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files\n
----------\n
2. ERROR in X.java (at line 3)\n
* @see <a href="spec.html#section">Java Spec<a>\n
^^^\n
Javadoc: Malformed link reference\n
----------\n

--------- Difference is ----------
expected:<......> but was:<...1)\n
public class X {\n
^\n
The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files\n
----------\n
2. ERROR in X.java (at line ...>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(
TestCase.java:28)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(
TestCase.java:189)
at
org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest
(AbstractRegressionTest.java:687)
at
org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest
(AbstractRegressionTest.java:569)
at
org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest
(AbstractRegressionTest.java:548)
at
org.eclipse.jdt.core.tests.compiler.regression.JavadocBugsTest.testBug73479(
JavadocBugsTest.java:2993)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(
CompilerTestSetup.java:48)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:330)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:24)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java
:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(
PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:40)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:177)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:213)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
at com.ibm.oti.vm.JarRunner.main(JarRunner.java:42)
0.016
testBug73995 - 1.3 Failure Unexpected problems: ---------- 1. ERROR in
X.java (at line 1) public class X { ^ The type java.lang.Object cannot be
resolved. It is indirectly referenced from required .class files ----------

junit.framework.AssertionFailedError: Unexpected problems: ----------
1. ERROR in X.java (at line 1)
public class X {
^
The type java.lang.Object cannot be resolved. It is indirectly referenced
from required .class files
----------

at
org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest
(AbstractRegressionTest.java:463)
at
org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest
(AbstractRegressionTest.java:279)
at
org.eclipse.jdt.core.tests.compiler.regression.JavadocBugsTest.testBug73995(
JavadocBugsTest.java:317)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(
CompilerTestSetup.java:48)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:330)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:24)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java
:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(
PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:40)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:177)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:213)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
at com.ibm.oti.vm.JarRunner.main(JarRunner.java:42)

-- 
Sean Qiu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message