You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Aleksey Ignatenko (JIRA)" <ji...@apache.org> on 2007/03/14 11:51:09 UTC
[jira] Created: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
[JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
-----------------------------------------------------------
Key: HARMONY-3390
URL: https://issues.apache.org/jira/browse/HARMONY-3390
Project: Harmony
Issue Type: Bug
Components: JDK
Reporter: Aleksey Ignatenko
1 test fails from org.eclipse.jdt.apt.tests suit.
Stack trace:
classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
<failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
ComparisonFailure:
The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Nina Rinskaya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498600 ]
Nina Rinskaya commented on HARMONY-3390:
----------------------------------------
I reproduced the issue on the latest Harmony builds, and I'm now going to write a brief description on how to run the test separately. But just to not keep you waiting while I'm working on it, I'd like to put below the part of test source code, that looks to be the root cause of this failure (or just the similar issue), and it looks that it might be a test bug:
org.eclipse.jdt.apt.tests.annotations.mirrortest.MirrorTestAnnotationProcessor.java:
---------------------------
private void testPackageImpl() {
PackageDeclaration pkg = _env.getPackage("org.eclipse.jdt.apt.tests.annotations.mirrortest");
ProcessorTestStatus.assertEquals("Package name", "org.eclipse.jdt.apt.tests.annotations.mirrortest", pkg.getQualifiedName());
// Not sure if this is the best way to test -- can we count on the number of classes
// remaining the same in java.util?
pkg = _env.getPackage("java");
ProcessorTestStatus.assertEquals("Package name", "java", pkg.getQualifiedName());
ProcessorTestStatus.assertEquals("Number of classes in java", 0, pkg.getClasses().size());
pkg = _env.getPackage("java.util");
ProcessorTestStatus.assertEquals("Package name", "java.util", pkg.getQualifiedName());
Collection<ClassDeclaration> classes = pkg.getClasses();
ProcessorTestStatus.assertEquals("Number of classes in java.util", 79, classes.size());
Collection<EnumDeclaration> enums = pkg.getEnums();
ProcessorTestStatus.assertEquals("Number of enums in java.util", 0, enums.size());
Collection<InterfaceDeclaration> interfaces = pkg.getInterfaces();
ProcessorTestStatus.assertEquals("Number of interfaces in java.util", 15, interfaces.size());
}
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498635 ]
Vasily Zakharov commented on HARMONY-3390:
------------------------------------------
Nina, thank you very much for your response and investigation!
Looks sure like a bug in the test. The number of classes in java.util package received by the test (79 for RI, 74 for Harmony) is the actual number of classes (not enums, not interfaces, not internal classes) in java.util package. This includes both public and non-public classes. Both RI and Harmony have the same public classes available, but there're 9 non-public classes, that are present in RI only:
CurrencyData
JumboEnumSet
RandomAccessSubList
RegularEnumSet
ResourceBundleEnumeration
SubList
TaskQueue
TimerThread
XMLUtils
and 4 non-public classes, that are present in Harmony only:
HugeEnumSet
MapEntry
MiniEnumSet
TimeZones
It seems clear that the difference in these numbers (9 - 4 = 5 = 79 - 74) is the difference observed by the test and causing the fail.
As non-public classes in java.* packages are not specified, basing a test on the number of them is clearly a bug in the test.
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Aleksey Ignatenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480716 ]
Aleksey Ignatenko commented on HARMONY-3390:
--------------------------------------------
To reproduce one needs to:
1. build the latest Harmony jre
2. dowload EUT runniing script from jira-2038
3. update eut.properties: set test.jre.home= to Harmony jre home
4. run "ant -Dtests=jdtapt"
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499041 ]
Vasily Zakharov commented on HARMONY-3390:
------------------------------------------
The filed issue was found to be duplicate.
The problem is already fixed in version 3.3 M6 as https://bugs.eclipse.org/bugs/show_bug.cgi?id=161492.
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-3390.
--------------------------------
Resolution: Invalid
Assignee: Tim Ellison
Was determined to be a bug in the Eclipse test suite.
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
> Assignee: Tim Ellison
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498674 ]
Vasily Zakharov commented on HARMONY-3390:
------------------------------------------
The issues is filed to Eclipse as https://bugs.eclipse.org/bugs/show_bug.cgi?id=188935
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Nina Rinskaya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499562 ]
Nina Rinskaya commented on HARMONY-3390:
----------------------------------------
I imported this testsuite from EUT 3.3 M6 and this testcase passed ok, so it looks that it's really fixed.
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from
org.eclipse.jdt.apt.tests suit
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498237 ]
Vasily Zakharov commented on HARMONY-3390:
------------------------------------------
Aleksey,
I've tried to reproduce the problem the way you described, and "ant -Dtests=jdtapt" produces "Unexpected failures (88)", none of which looks like the problem described in this issue. I used the latest EUT scripts from HARMONY-3556.
Are there any additional configurations to be made for the problem to be reproduced, any hardware requirements or something?
Is there a way to run the testMirror test separately of the other jdtapt tests, to save reproduction time?
Thank you!
> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>
> Key: HARMONY-3390
> URL: https://issues.apache.org/jira/browse/HARMONY-3390
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Aleksey Ignatenko
>
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
> <failure message=" ----------- Expected ------------ NO ERRORS ------------ but was ------------ java.lang.IllegalStateException: Failed during test: Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is ---------- expected:<NO ERRORS> but was:<java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in java.util>" type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.