[
https://issues.apache.org/jira/browse/GROOVY-12301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108284#comment-18108284
] ASF GitHub Bot commented on GROOVY-12301: ----------------------------------------- codecov-commenter commented on PR #2833: URL: https://github.com/apache/groovy/pull/2833#issuecomment-5424785492 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2833?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 `50.00000%` with `1 line` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 70.6508%. Comparing base ([`47f3b75`](https://app.codecov.io/gh/apache/groovy/commit/47f3b75e70158a5d8099fd26be0b3140b703d507?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`22c0cdd`](https://app.codecov.io/gh/apache/groovy/commit/22c0cdd05fb6e6841871c576589a276bd622f1fa?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/2833?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines | |---|---|---| | [...roovy/transform/stc/StaticTypeCheckingSupport.java](https://app.codecov.io/gh/apache/groovy/pull/2833?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Ftransform%2Fstc%2FStaticTypeCheckingSupport.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3RyYW5zZm9ybS9zdGMvU3RhdGljVHlwZUNoZWNraW5nU3VwcG9ydC5qYXZh) | 50.0000% | [0 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/groovy/pull/2833?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/2833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) ```diff @@ Coverage Diff @@ ## master #2833 +/- ## ================================================== - Coverage 70.6514% 70.6508% -0.0005% - Complexity 36525 36526 +1 ================================================== Files 1571 1571 Lines 133962 133963 +1 Branches 24690 24690 ================================================== Hits 94646 94646 + Misses 30800 30798 -2 - Partials 8516 8519 +3 ``` | [Files with missing lines](https://app.codecov.io/gh/apache/groovy/pull/2833?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/StaticTypeCheckingSupport.java](https://app.codecov.io/gh/apache/groovy/pull/2833?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Ftransform%2Fstc%2FStaticTypeCheckingSupport.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3RyYW5zZm9ybS9zdGMvU3RhdGljVHlwZUNoZWNraW5nU3VwcG9ydC5qYXZh) | `82.5301% <50.0000%> (ø)` | | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/apache/groovy/pull/2833/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 does not resolve generic return type properly > ------------------------------------------------- > > Key: GROOVY-12301 > URL: https://issues.apache.org/jira/browse/GROOVY-12301 > Project: Groovy > Issue Type: Bug > Affects Versions: 6.0.0-alpha-1, 5.0.3, 4.0.31 > Reporter: Björn Kautler > Priority: Major > > Given this snippet: > {code:java} > @Grab('org.jboss.weld:weld-spock:4.0.4.Final') > import org.jboss.weld.spock.WeldInitiator > import org.jboss.weld.spock.WeldInitiator.Builder > > @groovy.transform.CompileStatic > class Foo { > def foo() { > Builder builder = > WeldInitiator.from(WeldInitiator.createWeld()).inject(this) > println(builder) > } > } > new Foo().foo() {code} > STC complains > {code:java} > Cannot assign value of type > org.jboss.weld.junit.AbstractWeldInitiator$AbstractBuilder to variable of > type org.jboss.weld.spock.WeldInitiator$Builder {code} > IntelliJ knows the type of the {{inject}} result properly as {{{}Builder{}}}, > and in Java it also compiles fine. > (This time I verified it still happens in 6.0.0-alpha-1 which is available in > groovyconsole.dev :)) -- This message was sent by Atlassian Jira (v8.20.10#820010)
