[
https://issues.apache.org/jira/browse/GROOVY-12820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149510#comment-18149510
]
ASF GitHub Bot commented on GROOVY-12820:
-----------------------------------------
codecov-commenter commented on PR #3331:
URL: https://github.com/apache/groovy/pull/3331#issuecomment-7089421163
##
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/3331?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
Report
:x: Patch coverage is `65.21739%` with `8 lines` in your changes missing
coverage. Please review.
:white_check_mark: Project coverage is 74.9507%. Comparing base
([`09e84fa`](https://app.codecov.io/gh/apache/groovy/commit/09e84fa4b0d4c37a5ac2efc48dfd2db93a84cab7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache))
to head
([`6bcdff1`](https://app.codecov.io/gh/apache/groovy/commit/6bcdff16a21489b57391b87ebaeb89039635a5b2?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on master.
| [Files with missing
lines](https://app.codecov.io/gh/apache/groovy/pull/3331?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
| Patch % | Lines |
|---|---|---|
|
[...ovy/classgen/asm/sc/StaticTypesCallSiteWriter.java](https://app.codecov.io/gh/apache/groovy/pull/3331?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Fclassgen%2Fasm%2Fsc%2FStaticTypesCallSiteWriter.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L2NsYXNzZ2VuL2FzbS9zYy9TdGF0aWNUeXBlc0NhbGxTaXRlV3JpdGVyLmphdmE=)
| 65.2174% | [5 Missing and 3 partials :warning:
](https://app.codecov.io/gh/apache/groovy/pull/3331?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
|
<details><summary>Additional details and impacted files</summary>
[](https://app.codecov.io/gh/apache/groovy/pull/3331?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## master #3331 +/- ##
==================================================
- Coverage 74.9518% 74.9507% -0.0011%
- Complexity 48908 48933 +25
==================================================
Files 1768 1768
Lines 161213 161278 +65
Branches 31728 31747 +19
==================================================
+ Hits 120832 120879 +47
- Misses 28968 28979 +11
- Partials 11413 11420 +7
```
| [Files with missing
lines](https://app.codecov.io/gh/apache/groovy/pull/3331?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
| Coverage Δ | |
|---|---|---|
|
[...ovy/classgen/asm/sc/StaticTypesCallSiteWriter.java](https://app.codecov.io/gh/apache/groovy/pull/3331?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Fclassgen%2Fasm%2Fsc%2FStaticTypesCallSiteWriter.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L2NsYXNzZ2VuL2FzbS9zYy9TdGF0aWNUeXBlc0NhbGxTaXRlV3JpdGVyLmphdmE=)
| `76.2976% <65.2174%> (-0.2790%)` | :arrow_down: |
... and [11 files with indirect coverage
changes](https://app.codecov.io/gh/apache/groovy/pull/3331/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test
Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests,
report on failures, and find test suite problems.
- :package: [JS Bundle
Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save
yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
> SC: compound assignment to a subscript whose getAt/putAt belong to an
> enclosing instance fails to compile or reads the wrong object
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12820
> URL: https://issues.apache.org/jira/browse/GROOVY-12820
> Project: Groovy
> Issue Type: Bug
> Reporter: Scott Murphy Heiberg
> Priority: Major
>
> On master (09e84fa), JDK 25.0.4:
> {code:groovy}
> class Box {
> String id
> Box(String id) { this.id = id }
> String getAt(int i) { 'g' + id + i }
> void putAt(int i, String v) { id = 'put(' + v + ')' }
> @groovy.transform.CompileStatic
> class In { def t(In other) { other[2] += 'w' } }
> Object in() { new In() }
> }
> def a = new Box('A'), b = new Box('B')
> a.in().t(b.in())
> assert b.id == 'put(gB2w)'
> {code}
> Dynamic Groovy and {{@TypeChecked}} call {{getAt}} and {{putAt}} on
> {{other}}'s enclosing {{Box}}. Under {{@CompileStatic}}, each of these fails
> with GroovyBugError in class generation, at
> {{StaticTypesCallSiteWriter.makeSingleArgumentCall}}:
> {code:groovy}
> other[2] += 'w'
> other[2]++
> other[2] ?= 'e'
> {code}
> With private {{getAt}}/{{putAt}} and an inner {{class Sub extends Box}}, the
> code compiles, but the read uses {{getAt}} on {{other}} itself while the
> write goes to the enclosing instance, so {{b.id}} becomes {{put(gself2w)}}
> instead of {{put(gB2w)}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)