harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Ignatenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3393) [JDK][EUT] 58 tests failed in org.eclipse.jdt.core.tests.compiler.regression.TestAll suit
Date Wed, 14 Mar 2007 11:43:09 GMT

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

Aleksey Ignatenko commented on HARMONY-3393:
--------------------------------------------

These issues are to be verified, it is possible that the issue is in wrong written test (Eclipse
bug). 
The possible fail reason here is that string is expected from the output is initially generated
with RI implementation, but the resulting string differs from expected with 2 words placed
in opposite positions. That happens because of list of this words is generated from some container
like HashMap, but iteration order via HashMap elements is not specified by spec. Therefore
we get different parameters order on different VMs and as a result other string at output
than we expected. 


> [JDK][EUT] 58 tests failed in org.eclipse.jdt.core.tests.compiler.regression.TestAll
suit
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3393
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3393
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>            Reporter: Aleksey Ignatenko
>
> 58 tests failed in org.eclipse.jdt.core.tests.compiler.regression.TestAll suit.
> Some stack traces:
> 1.       <failure message="Invalid problem log . ----------- Expected ------------
----------\n 1. ERROR in X.java (at line 2)\n  class Y exten
> ds X implements AX&lt;Thread&gt; {}\n        ^\n The interface AX cannot be implemented
more than once with different arguments: AX&lt;Strin
> g&gt; and AX&lt;Thread&gt;\n ----------\n  ------------ but was ------------
----------\n 1. ERROR in X.java (at line 2)\n  class Y extends
> X implements AX&lt;Thread&gt; {}\n        ^\n The interface AX cannot be implemented
more than once with different arguments: AX&lt;Thread&g
> t; and AX&lt;String&gt;\n ----------\n  --------- Difference is ----------  expected:&lt;...String&gt;
and AX&lt;Thread...&gt; but was:&lt;.
> ..Thread&gt; and AX&lt;String...&gt;" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure:
Invalid problem log .
> ----------- Expected ------------
> ----------\n
> 1. ERROR in X.java (at line 2)\n
>         class Y extends X implements AX&lt;Thread&gt; {}\n
>               ^\n
> The interface AX cannot be implemented more than once with different arguments: AX&lt;String&gt;
and AX&lt;Thread&gt;\n
> ----------\n
> ------------ but was ------------
> ----------\n
> 1. ERROR in X.java (at line 2)\n
>         class Y extends X implements AX&lt;Thread&gt; {}\n
>               ^\n
> The interface AX cannot be implemented more than once with different arguments: AX&lt;Thread&gt;
and AX&lt;String&gt;\n
> ----------\n
> --------- Difference is ----------
>  expected:&lt;...String&gt; and AX&lt;Thread...&gt; but was:&lt;...Thread&gt;
and AX&lt;String...&gt;
>         at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:134)
>         at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java)
>         at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:690)
>         at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java)
>         at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java)
>         at org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test0109(GenericTypeTest.java:3288)
>         at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>         at junit.extensions.TestDecorator.basicRun(TestDecorator.java)
>         at junit.extensions.TestDecorator.run(TestDecorator.java)
>         at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:47)
> 2.      <failure message="Invalid problem log . ----------- Expected ------------
----------\n 1. WARNING in X.java (at line 1)\n  public clas
> s X implements AX {}\n                            ^^\n AX is a raw type. References to
generic type AX&lt;P&gt; should be parameterized\n --
> --------\n 2. ERROR in X.java (at line 2)\n  class Y extends X implements AX&lt;Thread&gt;
{}\n        ^\n The interface AX cannot be implem
> ented more than once with different arguments: AX and AX&lt;Thread&gt;\n ----------\n
 ------------ but was ------------ ----------\n 1. WAR
> NING in X.java (at line 1)\n  public class X implements AX {}\n                     
      ^^\n AX is a raw type. References to generic type
>  AX&lt;P&gt; should be parameterized\n ----------\n 2. ERROR in X.java (at line
2)\n  class Y extends X implements AX&lt;Thread&gt; {}\n
>     ^\n The interface AX cannot be implemented more than once with different arguments:
AX&lt;Thread&gt; and AX\n ----------\n  --------- Di
> fference is ----------  expected:&lt;... and AX&lt;Thread&gt;...&gt;
but was:&lt;...&lt;Thread&gt; and AX...&gt;" type="junit.framework.Comp
> arisonFailure">junit.framework.ComparisonFailure: Invalid problem log .
> ----------- Expected ------------
> ----------\n
> 1. WARNING in X.java (at line 1)\n
>         public class X implements AX {}\n
>                                   ^^\n
> AX is a raw type. References to generic type AX&lt;P&gt; should be parameterized\n
> ----------\n
> 2. ERROR in X.java (at line 2)\n
>         class Y extends X implements AX&lt;Thread&gt; {}\n
>               ^\n
> The interface AX cannot be implemented more than once with different arguments: AX and
AX&lt;Thread&gt;\n
> ----------\n
> ------------ but was ------------
> ----------\n
> 1. WARNING in X.java (at line 1)\n
>         public class X implements AX {}\n
>                                   ^^\n
> AX is a raw type. References to generic type AX&lt;P&gt; should be parameterized\n
> ----------\n
> 2. ERROR in X.java (at line 2)\n
>         class Y extends X implements AX&lt;Thread&gt; {}\n
>               ^\n
> The interface AX cannot be implemented more than once with different arguments: AX&lt;Thread&gt;
and AX\n
> ----------\n

-- 
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