You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "paulk-asert (via GitHub)" <gi...@apache.org> on 2024/07/04 11:02:58 UTC
[PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
paulk-asert opened a new pull request, #2097:
URL: https://github.com/apache/groovy/pull/2097
… attributes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
Posted by "daniellansun (via GitHub)" <gi...@apache.org>.
daniellansun commented on PR #2097:
URL: https://github.com/apache/groovy/pull/2097#issuecomment-2209282220
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #2097:
URL: https://github.com/apache/groovy/pull/2097#issuecomment-2208726244
## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2097?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 68.6371%. Comparing base [(`6cd477b`)](https://app.codecov.io/gh/apache/groovy/commit/6cd477b3157675f0ceee9fbd62e3efd0cc9bdb3e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`570fcbc`)](https://app.codecov.io/gh/apache/groovy/commit/570fcbc7400b10fa7d3f836c950b52a4eec6f575?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 167 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
[](https://app.codecov.io/gh/apache/groovy/pull/2097?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## master #2097 +/- ##
==================================================
+ Coverage 68.5957% 68.6371% +0.0414%
- Complexity 29233 29331 +98
==================================================
Files 1426 1426
Lines 113494 113615 +121
Branches 19548 19594 +46
==================================================
+ Hits 77852 77982 +130
+ Misses 29088 29087 -1
+ Partials 6554 6546 -8
```
| [Files](https://app.codecov.io/gh/apache/groovy/pull/2097?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [...va/org/apache/groovy/parser/antlr4/AstBuilder.java](https://app.codecov.io/gh/apache/groovy/pull/2097?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fapache%2Fgroovy%2Fparser%2Fantlr4%2FAstBuilder.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2dyb292eS9wYXJzZXIvYW50bHI0L0FzdEJ1aWxkZXIuamF2YQ==) | `86.6075% <100.0000%> (-0.0235%)` | :arrow_down: |
| [...rg/codehaus/groovy/classgen/AnnotationVisitor.java](https://app.codecov.io/gh/apache/groovy/pull/2097?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Fclassgen%2FAnnotationVisitor.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L2NsYXNzZ2VuL0Fubm90YXRpb25WaXNpdG9yLmphdmE=) | `88.6667% <100.0000%> (ø)` | |
... and [43 files with indirect coverage changes](https://app.codecov.io/gh/apache/groovy/pull/2097/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
Posted by "paulk-asert (via GitHub)" <gi...@apache.org>.
paulk-asert merged PR #2097:
URL: https://github.com/apache/groovy/pull/2097
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
Posted by "paulk-asert (via GitHub)" <gi...@apache.org>.
paulk-asert commented on PR #2097:
URL: https://github.com/apache/groovy/pull/2097#issuecomment-2241329543
**Update**: the current PR now uses `withMethodClosure` instead of the previous version which used `with`. This means that it works with static compilation and static type checking.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GROOVY-11432: Support method references/method pointers in annotation… [groovy]
Posted by "paulk-asert (via GitHub)" <gi...@apache.org>.
paulk-asert commented on PR #2097:
URL: https://github.com/apache/groovy/pull/2097#issuecomment-2210872828
I'll write an email to the dev list shortly and await feedback before merging. As currently designed, it works for dynamic Groovy and fails when using static compilation. This is kind of as I'd expect since we have a "dangling" method reference not associated with a functional interface. But we could also make some assumptions and use a `Consumer` and make it work for statically compiled code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org