-
Notifications
You must be signed in to change notification settings - Fork 26
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
AbstractDiagnosticsCollector: Investigate and resolve issues with matching qualified names. #1025
Comments
Usage of
The above is the code snippet supporting the same. Both the conditions must keep aside.
By keeping |
…bstractDiagnosticsCollector for performance optimisation
@dessina-devasia I've read your comment from yesterday and saw you opened a PR to refactor the code for performance. The purpose of this issue is to determine whether |
@dessina-devasia If you're wondering about what to test, the scenarios are described at a high-level in this issue here (eclipse/lsp4jakarta#507). As an example, someone who specified an annotation like "ce.Entity" in their application should never receive a diagnostic about "jakarta.persistence.Entity". "jakarta.persistence.Entity" ends with "ce.Entity" but they are not the same and if somehow we're determining that they're equivalent, that would be a bug in LTI. |
For better understanding, I'm just framing the issue as below: The class
The methods we are focusing on are Starting with
Here we can see that the variables When |
Also, @mrglavas could you please clarify on what exactly mentioned in the example
Is it something like instead of providing the Currently, it will show like below. Please correct me if I'm wrong. |
@dessina-devasia Yes, though a developer would normally write that using an import of the other package ( |
Sure @mrglavas. Thank you for the clarification. |
@dessina-devasia I created this PR #1081 to cover the Java built-in types to help inspire development of test annotation classes (e.g. |
@dessina-devasia You should create separate issues for improvements to the test automation. I know you added a checklist here, but want to clarify that the expectation for this issue is to resolve issues with |
@mrglavas, Thank you for the clarification. But AbstractDiagnosticsCollector is the base class of all the collectors listed in the checklist, updates will likely be required across all of them to fully implement this. Please correct me if I'm wrong. Also, I'll investigate, whether there is a common way to handle the same as a whole. |
This class is within the
io.openliberty.tools.intellij.lsp4jakarta.lsp4ij
package.See analysis and areas of concern on this issue: #879.
Added an Epic for full test coverage of collectors to ensure no diagnostics are shown for incorrect import or annotations
The text was updated successfully, but these errors were encountered: