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

Bug 579205 - java indexer became slower #83

Conversation

stephan-herrmann
Copy link
Contributor

Withdraw all .eea handling from JavaSearchNameEnvironment

Plus: add robustness to ExternalAnnotations18Test run at compliance=11

Withdraw all .eea handling from JavaSearchNameEnvironment

+ add robustness to ExternalAnnotations18Test run at compliance=11
@stephan-herrmann
Copy link
Contributor Author

@jarthana , @iloveeclipse I'd like to merge this if tests pass, but I don't know what to do about the downvote from Check Code Freeze Period. For one, I didn't expect it to trigger today already. Secondly, if merging is still allowed, I don't know the ceremony for overriding that check.

@iloveeclipse
Copy link
Member

Just merge if you are sure, no ceremony here.

@stephan-herrmann stephan-herrmann merged commit 45fa8b8 into eclipse-jdt:master May 15, 2022
@iloveeclipse
Copy link
Member

@stephan-herrmann : could this be that we should also update Java 17 tests?
See https://download.eclipse.org/eclipse/downloads/drops4/I20220516-0600/testresults/html/org.eclipse.jdt.core.tests.model_ep424I-unit-macM1-java17_macosx.cocoa.aarch64_17.html

Unexpected markers. ----------- Expected ------------ Null type mismatch: required '@NonNull Object' but the provided value is null\n Null type mismatch: required '@NonNull Test1' but the provided value is null\n Potential null pointer access: The variable v may be null at this location ------------ but was ------------ Null type mismatch: required '@NonNull Object' but the provided value is null\n Null type mismatch: required '@NonNull Test1' but the provided value is null --------- Difference is ---------- expected:<...ovided value is null[\n Potential null pointer access: The variable v may be null at this location]> but was:<...ovided value is null[]>

junit.framework.ComparisonFailure: Unexpected markers.
----------- Expected ------------
Null type mismatch: required '@NonNull Object' but the provided value is null\n
Null type mismatch: required '@NonNull Test1' but the provided value is null\n
Potential null pointer access: The variable v may be null at this location
------------ but was ------------
Null type mismatch: required '@NonNull Object' but the provided value is null\n
Null type mismatch: required '@NonNull Test1' but the provided value is null
--------- Difference is ----------
expected:<...ovided value is null[\n
Potential null pointer access: The variable v may be null at this location]> but was:<...ovided value is null[]>
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.AbstractJavaModelTests.assertMarkers(AbstractJavaModelTests.java:1064)
at org.eclipse.jdt.core.tests.model.ExternalAnnotations17Test.test1FullBuildWithVariable(ExternalAnnotations17Test.java:119)

@stephan-herrmann
Copy link
Contributor Author

@stephan-herrmann : could this be that we should also update Java 17 tests? See https://download.eclipse.org/eclipse/downloads/drops4/I20220516-0600/testresults/html/org.eclipse.jdt.core.tests.model_ep424I-unit-macM1-java17_macosx.cocoa.aarch64_17.html

FYI: ExternalAnnotations17Test is not about Java 17 but Java 1.7 :)

Given that the same test passed on another platform, I guess this is unrelated, but I'll check it later today.

@stephan-herrmann
Copy link
Contributor Author

Given that the same test passed on another platform, I guess this is unrelated, but I'll check it later today.

I tried running this in different contexts: JDK versions, standalone vs. AllJavaModelTests and could not reproduce locally. Nor does it smell like anything I recently touched. Not much I can do.

@iloveeclipse Do let me know, though, if it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants