[
https://issues.apache.org/jira/browse/GROOVY-12305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108989#comment-18108989
]
ASF GitHub Bot commented on GROOVY-12305:
-----------------------------------------
codecov-commenter commented on PR #2839:
URL: https://github.com/apache/groovy/pull/2839#issuecomment-5445842339
##
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/2839?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 70.6486%. Comparing base
([`914da78`](https://app.codecov.io/gh/apache/groovy/commit/914da787bb357e4fcc952ebf33e4d34a6a9055c9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache))
to head
([`30e7925`](https://app.codecov.io/gh/apache/groovy/commit/30e79255c4228d977cfd0e5e9bb329a7d970f996?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/2839?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## master #2839 +/- ##
==================================================
- Coverage 70.6486% 70.6486% -0.0001%
- Complexity 36522 36533 +11
==================================================
Files 1571 1571
Lines 133963 133973 +10
Branches 24690 24692 +2
==================================================
+ Hits 94643 94650 +7
- Misses 30802 30804 +2
- Partials 8518 8519 +1
```
| [Files with missing
lines](https://app.codecov.io/gh/apache/groovy/pull/2839?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
| Coverage Δ | |
|---|---|---|
|
[...roovy/transform/stc/StaticTypeCheckingVisitor.java](https://app.codecov.io/gh/apache/groovy/pull/2839?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Ftransform%2Fstc%2FStaticTypeCheckingVisitor.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3RyYW5zZm9ybS9zdGMvU3RhdGljVHlwZUNoZWNraW5nVmlzaXRvci5qYXZh)
| `87.2727% <100.0000%> (+0.0125%)` | :arrow_up: |
... and [8 files with indirect coverage
changes](https://app.codecov.io/gh/apache/groovy/pull/2839/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>
> STC vs static compile: type-coercion in ternary expression is not handled
> properly in static compilation
> --------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12305
> URL: https://issues.apache.org/jira/browse/GROOVY-12305
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 6.0.0-alpha-1, 5.0.3, 4.0.31
> Reporter: Björn Kautler
> Priority: Major
>
> This compiles and runs fine, printing {{{}c{}}}:
> {code:java}
> @groovy.transform.TypeChecked
> class Foo {
> def foo() {
> Map foo = [a:[b:'c']] as Map
> println(foo.a instanceof Map ? foo.a.b : foo.a)
> }
> }
> new Foo().foo(){code}
> If you swap {{TypeChecked}} for {{{}CompileStatic{}}}, it fails to compile at
> class generation phase, complaining that "Access to java.lang.Object#b is
> forbidden".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)