Skip to content
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

GenericsRegressionTest.testBug434044_comment36 fails in I-Builds #2545

Closed
jukzi opened this issue Jun 10, 2024 · 1 comment
Closed

GenericsRegressionTest.testBug434044_comment36 fails in I-Builds #2545

jukzi opened this issue Jun 10, 2024 · 1 comment
Labels
bug Something isn't working regression Something was broken by a previous change test Work on unit tests, no change of productive code

Comments

@jukzi
Copy link
Contributor

jukzi commented Jun 10, 2024

the "capture" index does not match anymore in testBug434044_comment36 - 1.7
for example:
https://download.eclipse.org/eclipse/downloads/drops4/I20240608-0320/testresults/html/org.eclipse.jdt.core.tests.compiler_ep433I-unit-mac64-java17_macosx.cocoa.x86_64_17.html

Invalid problem log . ----------- Expected ------------ ----------\n 1. ERROR in EclipseJava8Generics.java (at line 28)\n final Object propertyValue = typedProperty.getBar().doFoo(null);\n ^^^^^\n The method doFoo(String) is ambiguous for the type capture#3-of ? extends EclipseJava8Generics.AbstractFoo<?>\n ----------\n ------------ but was ------------ ----------\n 1. ERROR in EclipseJava8Generics.java (at line 28)\n final Object propertyValue = typedProperty.getBar().doFoo(null);\n ^^^^^\n The method doFoo(String) is ambiguous for the type capture#2-of ? extends EclipseJava8Generics.AbstractFoo<?>\n ----------\n ---------------------- ---------- expected:<...or the type capture#[3]-of ? extends Eclips...> but was:<...or the type capture#[2]-of ? extends Eclips...>

junit.framework.ComparisonFailure: Invalid problem log .
----------- Expected ------------
----------\n
1. ERROR in EclipseJava8Generics.java (at line 28)\n
final Object propertyValue = typedProperty.getBar().doFoo(null);\n
^^^^^\n
The method doFoo(String) is ambiguous for the type capture#3-of ? extends EclipseJava8Generics.AbstractFoo<?>\n
----------\n

------------ but was ------------
----------\n
1. ERROR in EclipseJava8Generics.java (at line 28)\n
final Object propertyValue = typedProperty.getBar().doFoo(null);\n
^^^^^\n
The method doFoo(String) is ambiguous for the type capture#2-of ? extends EclipseJava8Generics.AbstractFoo<?>\n
----------\n

---------------------- ----------
expected:<...or the type capture#[3]-of ? extends Eclips...> but was:<...or the type capture#[2]-of ? extends Eclips...>
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:242)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.checkCompilerLog(AbstractRegressionTest.java:1581)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:3586)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:3289)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2854)
at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2843)
at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest.testBug434044_comment36(GenericsRegressionTest.java:4950)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at junit.framework.TestCase.runTest(TestCase.java:177)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:972)
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 junit.framework.TestSuite.run(TestSuite.java:236)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:59)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
@jukzi jukzi added bug Something isn't working regression Something was broken by a previous change test Work on unit tests, no change of productive code labels Jun 10, 2024
@iloveeclipse
Copy link
Member

Duplicate of #2537

@iloveeclipse iloveeclipse marked this as a duplicate of #2537 Jun 10, 2024
@jukzi jukzi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something was broken by a previous change test Work on unit tests, no change of productive code
Projects
None yet
Development

No branches or pull requests

2 participants