Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 532818

Summary: [test]testDuplicateImports3 failure
Product: [Eclipse Project] JDT Reporter: Manoj N Palat <manoj.palat>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact: Manoj N Palat <manoj.palat>
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 4.7.3   
Target Milestone: 4.7.3a   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Manoj N Palat CLA 2018-03-23 07:29:27 EDT
test failed on the server with the following log for 4.7.3a RC1 

Invalid problem log . ----------- Expected ------------ ----------\n 1. ERROR in Test.java (at line 5)\n Double d = null;\n ^^^^^^\n The type Double is ambiguous\n ----------\n ------------ but was ------------ ----------\n 1. ERROR in Test.java (at line 2)\n import static java.awt.geom.Point2D.Double;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n The import java.awt.geom.Point2D.Double collides with another import statement\n ----------\n --------- Difference is ---------- expected:<... Test.java (at line [5)\n Double d = null;\n ^^^^^^\n The type Double is ambiguous]\n ----------\n > but was:<... Test.java (at line [2)\n import static java.awt.geom.Point2D.Double;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n The import java.awt.geom.Point2D.Double collides with another import statement]\n ----------\n >

junit.framework.ComparisonFailure: Invalid problem log .
----------- Expected ------------
----------\n
1. ERROR in Test.java (at line 5)\n
Double d = null;\n
^^^^^^\n
The type Double is ambiguous\n
----------\n

------------ but was ------------
----------\n
1. ERROR in Test.java (at line 2)\n
import static java.awt.geom.Point2D.Double;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The import java.awt.geom.Point2D.Double collides with another import statement\n
----------\n

--------- Difference is ----------
expected:<... Test.java (at line [5)\n
Double d = null;\n
^^^^^^\n
The type Double is ambiguous]\n
----------\n
> but was:<... Test.java (at line [2)\n
import static java.awt.geom.Point2D.Double;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The import java.awt.geom.Point2D.Double collides with another import statement]\n
----------\n
>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:267)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:243)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.checkCompilerLog(AbstractRegressionTest.java:1107)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2827)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2625)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2199)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2188)
at org.eclipse.jdt.core.tests.compiler.regression.NonFatalErrorTest.testDuplicateImports3(NonFatalErrorTest.java:559

Test passes locally. To track the test for the next few builds
Comment 1 Stephan Herrmann CLA 2018-03-23 09:45:30 EDT
Interesting. It looks like the result I got in master. Investigating that difference is the reason for keeping that bug open (I don't have the bugno at hand).
Comment 2 Stephan Herrmann CLA 2018-03-24 19:23:15 EDT
Found the reason, see bug 528350.

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