harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4822) [classlib][EUT] testDeleteMultipleMembersFromVariousCUs fails from EUT 3.2 jdtcore suite
Date Fri, 21 Sep 2007 18:03:50 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529517
] 

Vasily Zakharov commented on HARMONY-4822:
------------------------------------------

This issue is a result of HashMap elements internal ordering change. The test expects the
two values coming in certain order, and they come in reverted order at this point.

The ordering is set at this point:

	DeleteElementsOperation.groupElements() line: 135
	DeleteElementsOperation.processElements() line: 178
	DeleteElementsOperation(MultiOperation).executeOperation() line: 90
	DeleteElementsOperation(JavaModelOperation).run(IProgressMonitor) line: 720
	Workspace.run(IWorkspaceRunnable, ISchedulingRule, int, IProgressMonitor) line: 1737
	DeleteElementsOperation(JavaModelOperation).runOperation(IProgressMonitor) line: 784
	JavaModel.delete(IJavaElement[], boolean, IProgressMonitor) line: 137
	DeleteTests(AbstractJavaModelTests).assertDeletion(IJavaElement[]) line: 499
	DeleteTests.testDeleteMultipleMembersFromVariousCUs() line: 592

and is expected wrongly and causes failure at this point:

	org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:133)
	org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:114)
	org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertDeltas(AbstractJavaModelTests.java:512)
	org.eclipse.jdt.core.tests.model.DeleteTests.testDeleteMultipleMembersFromVariousCUs(DeleteTests.java:593)

As elements ordering in HashMap is not covered by the specification, I think this is not a
Harmony bug, but EUT bug.


> [classlib][EUT] testDeleteMultipleMembersFromVariousCUs fails from EUT 3.2 jdtcore suite
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4822
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4822
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Ilya Berezhniuk
>
> Test testDeleteMultipleMembersFromVariousCUs fails with following message:
> ------------------------------
> Testcase: org.eclipse.jdt.core.tests.model.DeleteTests.testDeleteMultipleMembersFromVariousCUs:
> junit.framework.ComparisonFailure: Unexpected delta.
> ----------- Expected ------------
> P[*]: {CHILDREN}\n
>     &lt;project root&gt;[*]: {CHILDREN}\n
>         a.b.c[*]: {CHILDREN}\n
>             X.java[*]: {CHILDREN | FINE GRAINED | PRIMARY RESOURCE}\n
>                 &lt;import container&gt;[*]: {CHILDREN | FINE GRAINED}\n
>                     import java.util.Vector[-]: {}\n
>                 X[*]: {CHILDREN | FINE GRAINED}\n
>                     main(String[])[-]: {}\n
>                     Bar[-]: {}\n
>         a.b[*]: {CHILDREN}\n
>             Y.java[*]: {CHILDREN | FINE GRAINED | PRIMARY RESOURCE}\n
>                 Y[*]: {CHILDREN | FINE GRAINED}\n
>                     foo[-]: {}\n
>                     main(String[])[-]: {}
> ------------ but was ------------
> P[*]: {CHILDREN}\n
>     &lt;project root&gt;[*]: {CHILDREN}\n
>         a.b[*]: {CHILDREN}\n
>             Y.java[*]: {CHILDREN | FINE GRAINED | PRIMARY RESOURCE}\n
>                 Y[*]: {CHILDREN | FINE GRAINED}\n
>                     foo[-]: {}\n
>                     main(String[])[-]: {}\n
>         a.b.c[*]: {CHILDREN}\n
>             X.java[*]: {CHILDREN | FINE GRAINED | PRIMARY RESOURCE}\n
>                 &lt;import container&gt;[*]: {CHILDREN | FINE GRAINED}\n
>                     import java.util.Vector[-]: {}\n
>                 X[*]: {CHILDREN | FINE GRAINED}\n
>                     main(String[])[-]: {}\n
>                     Bar[-]: {}
> ------------------------------
> See logs in:
> http://people.apache.org/~smishura/r576550/Windows_x86/eut/report.txt
> http://people.apache.org/~smishura/r576550/Windows_x86/eut/output.txt
> To reproduce failures:
> 1) Use Harmony JDK from http://people.apache.org/builds/harmony/snapshots/r576550/apache-harmony-jdk-r576550-windows-x86-32-snapshot.zip
> 2) Download http://mirrors.nsa.co.il/eclipse/eclipse/downloads/drops/R-3.2-200606291905/eclipse-Automated-Tests-3.2.zip
> 3) To run with script or command line, use instructions in eclipse-testing/readme.html
from eclipse-Automated-Tests-3.2.zip archive
> 4) To run from Eclipse GUI follow the instruction in http://wiki.apache.org/harmony/Eclipse_Unit_Tests_Pass_on_DRLVM#How_to_run_EUT_individual

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message