[
https://issues.apache.org/jira/browse/GROOVY-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149578#comment-18149578
]
ASF GitHub Bot commented on GROOVY-3056:
----------------------------------------
codecov-commenter commented on PR #3346:
URL: https://github.com/apache/groovy/pull/3346#issuecomment-7092504715
##
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/3346?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 74.9614%. 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
([`10b98d8`](https://app.codecov.io/gh/apache/groovy/commit/10b98d8fc3522734894e71847d159387ddfbb8c3?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.
<details><summary>Additional details and impacted files</summary>
[](https://app.codecov.io/gh/apache/groovy/pull/3346?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## master #3346 +/- ##
==================================================
+ Coverage 74.9518% 74.9614% +0.0096%
- Complexity 48908 48940 +32
==================================================
Files 1768 1768
Lines 161213 161255 +42
Branches 31728 31743 +15
==================================================
+ Hits 120832 120879 +47
- Misses 28968 28969 +1
+ Partials 11413 11407 -6
```
| [Files with missing
lines](https://app.codecov.io/gh/apache/groovy/pull/3346?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
| Coverage Δ | |
|---|---|---|
|
[src/main/java/groovy/lang/ExpandoMetaClass.java](https://app.codecov.io/gh/apache/groovy/pull/3346?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Fgroovy%2Flang%2FExpandoMetaClass.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9ncm9vdnkvbGFuZy9FeHBhbmRvTWV0YUNsYXNzLmphdmE=)
| `80.6142% <100.0000%> (+1.5355%)` | :arrow_up: |
... and [14 files with indirect coverage
changes](https://app.codecov.io/gh/apache/groovy/pull/3346/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>
> Cannot override getter of property starting with "_" using ExpandoMetaClass
> ---------------------------------------------------------------------------
>
> Key: GROOVY-3056
> URL: https://issues.apache.org/jira/browse/GROOVY-3056
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 1.5.6
> Reporter: Peter Ledbrook
> Assignee: Daniel Sun
> Priority: Major
> Attachments: ExpandoMetaClassUnderscoreTests.groovy
>
>
> For most properties you can use code like this to override property read
> access:
> {code}
> MyClass.metaClass.getMyProp = {-> return "New value" }
> {code}
> Groovy's {{getProperty()}} method will then call the above code so objects of
> class {{MyClass}} will appear to have the new value for that property.
> However, if the property starts with an underscore, this behaviour breaks
> down:
> {code}
> MyClass.metaClass.get_ajax = {-> return "Some value" }
> {code}
> The above method will not be called if one uses {{getProperty("_ajax")}}.
> Test case attached.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)