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

Prevent multiple errors from being reported at the same offset #449

Conversation

datho7561
Copy link

Fixes #320

Fixes eclipse-jdt#320

Signed-off-by: David Thompson <davthomp@redhat.com>
Copy link

@mickaelistria mickaelistria left a comment

Choose a reason for hiding this comment

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

I don't think this fix is valid. It seems possible that 2 distinct error can be at the same location (for example 1 deprecation warning + 1 "not static member" on the same dereference.
This issue seems like a very particular case, while the proposed patch seems too general.

@datho7561
Copy link
Author

It seems from the documentation that our error reporter is expected to only report the first error reported at the office. Although, the offset reported by javac is different for these two errors. javac doesn't report both errors on the command line. I'll take another look into this.

@datho7561 datho7561 closed this Jun 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.

[javac] unexpected "incompatible types: int cannot be converted to int[]" error
2 participants