redhat-developer / redhat-developer/quarkus-ls
[qute] @CheckedTemplate(requireTypeSafeExpressions = false) is ignored
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
With a checked template defined as
@CheckedTemplate(requireTypeSafeExpressions = false)
public static class Templates {
public static native TemplateInstance item(Item item);
}
The validation still complains about {toto} can't be resolved as a variable.
I'm not too sure how to handle requireTypeSafeExpressions here since it's a warning already, that's still valuable information.
If we make the diagnostic severity configurable, i.e. severity.UndefinedVariable=error, would we have to automatically downgrade it to warning if we detect requireTypeSafeExpressions = false?
@maxandersen @mkouba you got an opinion?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing checked-template validation for @CheckedTemplate and the UndefinedVariable diagnostic. Determine how requireTypeSafeExpressions = false should affect that diagnostic, then verify that the resulting severity or behavior matches the intended configuration without suppressing valuable information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100