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

Fix some more error ids #797

Conversation

datho7561
Copy link

No description provided.

@datho7561 datho7561 force-pushed the dom-with-javac-more-problemids branch from 183d2c7 to f006fae Compare September 4, 2024 16:11
case "compiler.warn.unchecked.meth.invocation.applied" -> IProblem.UnsafeTypeConversion;
case "compiler.err.encl.class.required" -> IProblem.MissingEnclosingInstanceForConstructorCall;
case "compiler.err.operator.cant.be.applied" -> IProblem.InvalidOperator;
case "compiler.warn.try.resource.not.referenced" -> 0; // ECJ doesn't do this

Choose a reason for hiding this comment

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

This came into discussion today. Should we "ignore" like done here or we should find a way to report such warnings as this is clear benefit from using javac? See #795

Copy link
Author

Choose a reason for hiding this comment

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

I'll take Fred's suggestion of finding the closest category of error and using that as the problem id. As well, I'll comment that these are not in ECJ.

Signed-off-by: David Thompson <[email protected]>
@datho7561 datho7561 force-pushed the dom-with-javac-more-problemids branch from f006fae to ffb1d83 Compare September 4, 2024 17:24
@datho7561
Copy link
Author

There two new failures as a result of this PR. One of the new failures is a flaky test, and another is caused because there is an error where ECJ doesn't generate one. I will merge this as is, because from my understanding this is okay.

@datho7561 datho7561 merged commit 8dbeedb into eclipse-jdtls:dom-with-javac Sep 4, 2024
2 of 3 checks passed
@datho7561 datho7561 deleted the dom-with-javac-more-problemids branch September 4, 2024 18:52
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.

2 participants