Bug 566242 - testAnnotationPath9 failure
Summary: testAnnotationPath9 failure
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 4.21 M3   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 573817 (view as bug list)
Depends on:
Blocks: 565083
  Show dependency tree
 
Reported: 2020-08-20 23:36 EDT by Manoj N Palat CLA
Modified: 2021-08-19 07:00 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj N Palat CLA 2020-08-20 23:36:38 EDT
at https://download.eclipse.org/eclipse/downloads/drops4/I20200820-0230/testresults/html/org.eclipse.jdt.core.tests.model_ep417I-unit-win32-java11_win32.win32.x86_64_11.html
with st:
Module mementos. ----------- Expected ------------ =Test/C:\Program Files\AdoptOpenJDK\jdk-11.0.7.10-hotspot\/lib\/jrt-fs.jar`java.base=/annotationpath=/annots=/=/add-exports=/jdk.rmic\/sun.rmi.rmic\=ALL-UNNAMED=/<'`java.base ------------ but was ------------ =Test/C:\/Program Files\/AdoptOpenJDK\/jdk-11.0.7.10-hotspot\/lib\/jrt-fs.jar`java.base=/annotationpath=/annots=/=/add-exports=/jdk.rmic\/sun.rmi.rmic\=ALL-UNNAMED=/<'`java.base --------- Difference is ---------- expected:<=Test/C:\[Program Files\AdoptOpenJDK\]jdk-11.0.7.10-hotspo...> but was:<=Test/C:\[/Program Files\/AdoptOpenJDK\/]jdk-11.0.7.10-hotspo...>

junit.framework.ComparisonFailure: Module mementos.
----------- Expected ------------
=Test/C:\Program Files\AdoptOpenJDK\jdk-11.0.7.10-hotspot\/lib\/jrt-fs.jar`java.base=/annotationpath=/annots=/=/add-exports=/jdk.rmic\/sun.rmi.rmic\=ALL-UNNAMED=/<'`java.base
------------ but was ------------
=Test/C:\/Program Files\/AdoptOpenJDK\/jdk-11.0.7.10-hotspot\/lib\/jrt-fs.jar`java.base=/annotationpath=/annots=/=/add-exports=/jdk.rmic\/sun.rmi.rmic\=ALL-UNNAMED=/<'`java.base
--------- Difference is ----------
expected:<=Test/C:\[Program Files\AdoptOpenJDK\]jdk-11.0.7.10-hotspo...> but was:<=Test/C:\[/Program Files\/AdoptOpenJDK\/]jdk-11.0.7.10-hotspo...>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:266)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:242)
at org.eclipse.jdt.core.tests.model.MementoTests.testAnnotationPath9(MementoTests.java:878)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at junit.framework.TestCase.runTest(TestCase.java:177)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:957)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.runTest(SuiteOfTestCases.java:115)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.superRun(SuiteOfTestCases.java:99)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite$1.protect(SuiteOfTestCases.java:87)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.run(SuiteOfTestCases.java:96)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:43)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:82)
at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:73)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
at org.eclipse.test.EclipseTestRunner.runTests(EclipseTestRunner.java:226)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:202)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:52)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:35)
Comment 1 Andrey Loskutov CLA 2021-08-12 08:24:30 EDT
*** Bug 573817 has been marked as a duplicate of this bug. ***
Comment 2 Andrey Loskutov CLA 2021-08-12 08:28:51 EDT
Still there in 4.21 :-(

https://download.eclipse.org/eclipse/downloads/drops4/I20210811-1800/testresults/html/org.eclipse.jdt.core.tests.model_ep421I-unit-win32-java11_win32.win32.x86_64_11.html

Stephan, I assume there could be test expectation issue related the paths conversion (backslash vs slash) used on Windows, could you please take a look? The test was added via bug 466299.
Comment 3 Stephan Herrmann CLA 2021-08-12 10:26:31 EDT
(In reply to Andrey Loskutov from comment #2)
> Still there in 4.21 :-(
> 
> https://download.eclipse.org/eclipse/downloads/drops4/I20210811-1800/
> testresults/html/org.eclipse.jdt.core.tests.model_ep421I-unit-win32-
> java11_win32.win32.x86_64_11.html
> 
> Stephan, I assume there could be test expectation issue related the paths
> conversion (backslash vs slash) used on Windows, could you please take a
> look? The test was added via bug 466299.

I don't have any windows box to analyze this :(
Comment 4 Eclipse Genie CLA 2021-08-16 04:25:23 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/184059
Comment 6 Andrey Loskutov CLA 2021-08-17 04:03:17 EDT
Works fine in https://download.eclipse.org/eclipse/downloads/drops4/I20210816-1800
Comment 7 Jay Arthanareeswaran CLA 2021-08-19 07:00:20 EDT
(In reply to Andrey Loskutov from comment #6)
> Works fine in
> https://download.eclipse.org/eclipse/downloads/drops4/I20210816-1800

Thanks Andrey for verifying this. Marking accordingly.