Repository navigation
GROOVY-12536: SC: a lambda or method reference taking a String throws ClassCastException for a GString element of a List<String> - #3056
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3056 +/- ##
==================================================
+ Coverage 73.7763% 73.7843% +0.0080%
- Complexity 42753 42789 +36
==================================================
Files 1678 1678
Lines 147462 147568 +106
Branches 27899 27929 +30
==================================================
+ Hits 108792 108882 +90
- Misses 28513 28516 +3
- Partials 10157 10170 +13
🚀 New features to boost your workflow:
|
|
Friendly ping: CI is green and this is ready for review. If there are no objections, I plan to merge it this weekend. Thanks! |
… ClassCastException for a GString element of a List<String> When a native lambda or method reference is typed as String because of a type variable, LambdaMetafactory check-cast the argument to String before Groovy could coerce a GString. Accept the erased parameter type and convert a GString to String inside the lambda or a synthetic method-reference adapter.
3583c6d to
b5e8847
Compare
✅ All tests passed ✅🏷️ Commit: b5e8847 Learn more about TestLens at testlens.app/docs. |
|
@daniellansun Since this and #3022 were both merged, |
https://issues.apache.org/jira/browse/GROOVY-12536