[
https://issues.apache.org/jira/browse/GROOVY-7439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071133#comment-18071133
]
ASF GitHub Bot commented on GROOVY-7439:
----------------------------------------
codecov-commenter commented on PR #2217:
URL: https://github.com/apache/groovy/pull/2217#issuecomment-4188171793
##
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/2217?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 68.9946%. Comparing base
([`c3c909c`](https://app.codecov.io/gh/apache/groovy/commit/c3c909ca5d0b3b53ccb81582b102dedb29626cf6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache))
to head
([`2852afe`](https://app.codecov.io/gh/apache/groovy/commit/2852afe9ba4b7c6e95bdc87b2f7e1a9d3d01eef5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 771 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
[](https://app.codecov.io/gh/apache/groovy/pull/2217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## master #2217 +/- ##
==================================================
+ Coverage 68.9893% 68.9946% +0.0053%
- Complexity 29628 29629 +1
==================================================
Files 1423 1423
Lines 114222 114222
Branches 19811 19811
==================================================
+ Hits 78801 78807 +6
+ Misses 28802 28796 -6
Partials 6619 6619
```
[see 4 files with indirect coverage
changes](https://app.codecov.io/gh/apache/groovy/pull/2217/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>
> Compilation errors using groovy trait and @CompileStatic and @Slf4j("LOG")
> --------------------------------------------------------------------------
>
> Key: GROOVY-7439
> URL: https://issues.apache.org/jira/browse/GROOVY-7439
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 2.4.3
> Reporter: Allen Arakaki
> Assignee: Eric Milles
> Priority: Major
> Labels: trait, traits
> Fix For: 5.0.0-beta-1
>
>
> Compilation errors using groovy trait and @CompileStatic and @Slf4j("LOG")
> Easy to reproduce:
> ------------------------------------------------
> {code}
> import org.slf4j.Logger
> import groovy.transform.CompileStatic
> import groovy.util.logging.Slf4j
> @Slf4j("LOG")
> @CompileStatic
> trait TTest {
> void test1() {
> LOG.debug("Logging test1 ...")
> }
> void test2() {
> //((Logger)LOG).debug("Logging test2 ...")
> }
> }
> {code}
> Results in the following:
> | Error Compilation error: startup failed:
> ..\src\groovy\TTest.groovy: 10: [Static type checking] - Cannot find matching
> method java.lang.Object#debug(java.lang.String). Please check if the declared
> type is right and if the method exists.
> @ line 10, column 5.
> LOG.debug("Logging test1 ...")
> ^
> {code}
> import org.slf4j.Logger
> import groovy.transform.CompileStatic
> import groovy.util.logging.Slf4j
> @Slf4j("LOG")
> @CompileStatic
> trait TTest {
> void test1() {
> //LOG.debug("Logging test1 ...")
> }
> void test2() {
> ((Logger)LOG).debug("Logging test2 ...")
> }
> }
> {code}
> Results in the following error:
> | Error Compilation error: startup failed:
> ..\src\groovy\TTest.groovy: -1: Access to TTest#LOG is forbidden @ line -1,
> column -1.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)