GROOVY-11888: STC: method resolution fails for UnionTypeClassNode due…#2415
Merged
paulk-asert merged 2 commits intoapache:masterfrom Mar 31, 2026
Merged
GROOVY-11888: STC: method resolution fails for UnionTypeClassNode due…#2415paulk-asert merged 2 commits intoapache:masterfrom
paulk-asert merged 2 commits intoapache:masterfrom
Conversation
… to premature covariant elimination
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2415 +/- ##
==================================================
+ Coverage 66.3773% 66.3838% +0.0065%
- Complexity 29877 29906 +29
==================================================
Files 1392 1394 +2
Lines 116799 116908 +109
Branches 20665 20686 +21
==================================================
+ Hits 77528 77608 +80
- Misses 32916 32931 +15
- Partials 6355 6369 +14
🚀 New features to boost your workflow:
|
ffdb59a to
0814117
Compare
Member
|
Let me have a look at the unit test cases. I wasn't familiar with cases that failed. Were these cases that came from some project? |
eric-milles
reviewed
Mar 31, 2026
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
Outdated
Show resolved
Hide resolved
eric-milles
reviewed
Mar 31, 2026
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
Show resolved
Hide resolved
eric-milles
reviewed
Mar 31, 2026
Member
eric-milles
left a comment
There was a problem hiding this comment.
The change looks good overall. I had very minor comments. And I added the failing tests to the jira description.
… to premature covariant elimination
0814117 to
0cf0d9e
Compare
Contributor
Author
I actually asked AI to help me review any edge cases that might be missing for PR #2397. It came up with those test cases and they were applicable to master not just GROOVY_5_0_X. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… to premature covariant elimination