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

Xtend: put an error marker on each incompatible exception in overridden method #2913

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

LorenzoBettini
Copy link
Contributor

Closes #2912

The PR also covers the suffix of the error message in case there are several supertypes (this was not covered before).

The markers now look like this:

image

and the two error messages say

The declared exception IOException is not compatible with throws clause in ExceptionThrowing.nullPointerException(), ExceptionThrowingInterface.nullPointerException() and ExceptionThrowingInterface2.nullPointerException()

The declared exception FileNotFoundException is not compatible with throws clause in ExceptionThrowing.nullPointerException(), ExceptionThrowingInterface.nullPointerException() and ExceptionThrowingInterface2.nullPointerException()

@LorenzoBettini LorenzoBettini added this to the Release_2.34 milestone Jan 18, 2024
@LorenzoBettini LorenzoBettini merged commit f393871 into eclipse-xtext:main Jan 19, 2024
4 of 5 checks passed
@LorenzoBettini LorenzoBettini deleted the lb_2912 branch January 19, 2024 12:23
LorenzoBettini added a commit to LorenzoBettini/xtext that referenced this pull request Feb 5, 2024
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.

[Xtend] misplaced error marker for incompatible exception throws
2 participants