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

IApiAnnotations.isExact for CompositeApiDescription.resolveAnnotations #1390

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

merks
Copy link
Contributor

@merks merks commented Sep 5, 2024

  • CompositeApiDescription.resolveAnnotations should be able to properly find the best match annotation using IApiAnnotations.isExact which is now also implemented by TypeAnnotations.isExact.

#1386

Copy link

github-actions bot commented Sep 5, 2024

Test Results

   283 files   -   2     283 suites   - 2   53m 44s ⏱️ -57s
 3 580 tests ±  0   3 503 ✅  -   1   77 💤 + 1  0 ❌ ±0 
10 766 runs   - 166  10 563 ✅  - 138  203 💤  - 28  0 ❌ ±0 

Results for commit 15bf1d1. ± Comparison against base commit 7c21dfb.

This pull request skips 1 test.
org.eclipse.pde.build.internal.tests.p2.P2Tests ‑ offBug237662

♻️ This comment has been updated with latest results.

- CompositeApiDescription.resolveAnnotations should be able to properly
find the best match annotation using IApiAnnotations.isExact which is
now also implemented by TypeAnnotations.isExact.

eclipse-pde#1386
@iloveeclipse
Copy link
Member

I've just rebased on master to have the fix for API filter warning

@merks
Copy link
Contributor Author

merks commented Sep 5, 2024

I see. The test were all green?

@iloveeclipse
Copy link
Member

I see. The test were all green?

Yes, I just dislike merging PR's with partially red state.

@iloveeclipse
Copy link
Member

I've tried the patch and I can confirm it solves the jdt.core problem.

So if I understood it correct, the regression was in 40cf1f0 as the code checked for the annotation to be instanceof ApiAnnotations and of course TypeAnnotations weren't but should be (from very beginning probably).

@iloveeclipse iloveeclipse merged commit 0953a33 into eclipse-pde:master Sep 5, 2024
16 of 17 checks passed
@iloveeclipse
Copy link
Member

Many thanks Ed!

@HannesWell
Copy link
Member

Thank you Ed for this.

So if I understood it correct, the regression was in 40cf1f0 as the code checked for the annotation to be instanceof ApiAnnotations and of course TypeAnnotations weren't but should be (from very beginning probably).

I wonder how this can be unnoticed for four years? :O

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.

3 participants