Skip to content

Feature/validate @resource type compatibility#1519

Open
Rejoice472 wants to merge 10 commits intoOpenLiberty:lsp4jakarta-0.2.6-integration-branchfrom
Rejoice472:feature/Validate-@Resource-type-compatibility
Open

Feature/validate @resource type compatibility#1519
Rejoice472 wants to merge 10 commits intoOpenLiberty:lsp4jakarta-0.2.6-integration-branchfrom
Rejoice472:feature/Validate-@Resource-type-compatibility

Conversation

@Rejoice472
Copy link
Contributor

This is a synch up pr raised to address the lsp4jakarta issue eclipse-lsp4jakarta/lsp4jakarta#662
corresponding lsp4jakarta pr link -> eclipse-lsp4jakarta/lsp4jakarta#799

Screen.Recording.2026-02-04.at.9.59.43.AM.mov

@archana-1924
Copy link
Contributor

The issue ticks quick fix too, are we raising a separate PR for quick fix?

@Rejoice472
Copy link
Contributor Author

The issue ticks quick fix too, are we raising a separate PR for quick fix?

Yes, we will raise a separate PR for the quick fixes, since two have been identified and they require more work.

@Joseph-Bineesh
Copy link
Contributor

Do we have validation for class similar to method and field? I can see similar changes in jakarta PR.

@Rejoice472
Copy link
Contributor Author

Do we have validation for class similar to method and field? I can see similar changes in jakarta PR.

Yes. we have

PsiParameter param = element.getParameterList().getParameter(0);
checkTypeCompatibility(unit, diagnostics, annotation, param.getType(), "parameter");
}
default -> System.out.println("Unexpected value");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to logger

@Rejoice472
Copy link
Contributor Author

Do we have validation for class similar to method and field? I can see similar changes in jakarta PR.

Yes . that is already existing one.

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