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

Parent synthetic classes should preserve method exceptions #336

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

theron-wang
Copy link
Collaborator

@theron-wang theron-wang commented Jul 26, 2024

The issue with na-389 was that a child method had a throws clause, but its synthetic, parent class definition did not keep these exceptions, leading to a compilation error. This PR addresses this by ensuring that UnsolvedMethods generate with the original exceptions.

A test case can be found in InheritMethodExceptionTest.

@theron-wang theron-wang marked this pull request as ready for review July 26, 2024 01:40
@theron-wang theron-wang requested a review from kelloggm July 26, 2024 01:40
Copy link
Collaborator

@kelloggm kelloggm left a comment

Choose a reason for hiding this comment

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

Nice catch! Fix LGTM.

@kelloggm kelloggm merged commit 3e836d3 into njit-jerse:main Jul 26, 2024
2 checks passed
@theron-wang theron-wang deleted the synthetic-throw branch August 1, 2024 17:26
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