-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java9ElementTests#test530024_001 and MementoTests#testAnnotationPath9 failing in builds #736
Comments
The root cause of the new fail is that the JRE path contains now The JRE path is part of the I'm not sure what that memento escaping is supposed to do in presence of valid path characters for Java elements that contain real path as a part of the memento name. There are few characters used by See also related discussion on https://bugs.eclipse.org/bugs/show_bug.cgi?id=430136 |
I can make the test fail locally by moving my JDK to a path with ~ in it. I thought I should be able to replicate this failure in the Java Element view, but can't. Will take a closer look at to find what's going on. |
use same encoding in test assumption as in implementation. eclipse-jdt#736
The test is failing with this trace only on Windows machine. But this is not reproducible on my Windows 11 machine.
----------- Expected ------------
=Java9Elements/C:/PROGRA
1/ECLIPS1/jdk-17.0.5.8-hotspot/jmods/java.base.jmod=/module=/true=/<'java.base ------------ but was ------------ =Java9Elements/C:\/PROGRA\~1\/ECLIPS\~1\/jdk-17.0.5.8-hotspot\/jmods\/java.base.jmod=/module=/true=/<'
java.base--------- Difference is ----------
expected:<...9Elements/C:/PROGRA[~1/ECLIPS]~1/jdk-17.0.5.8-hot...> but was:<...9Elements/C:/PROGRA[~1/ECLIPS]~1/jdk-17.0.5.8-hot...>
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.Java9ElementTests.test530024_001(Java9ElementTests.java:1635)
I see similar failures in MementoTests#testAnnotationPath9() also. The difference is the extra escaping char \ before '~'.
Interestingly testAnnotationPath9 was fixed via https://bugs.eclipse.org/bugs/show_bug.cgi?id=566242
The text was updated successfully, but these errors were encountered: