[ https://issues.apache.org/jira/browse/GROOVY-11624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945742#comment-17945742 ]
ASF GitHub Bot commented on GROOVY-11624: ----------------------------------------- codecov-commenter commented on PR #2200: URL: https://github.com/apache/groovy/pull/2200#issuecomment-2816090478 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2200?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report All modified and coverable lines are covered by tests :white_check_mark: > Project coverage is 68.9452%. Comparing base [(`54fff88`)](https://app.codecov.io/gh/apache/groovy/commit/54fff885ce17cb551fc66ef5ae562ecf4513db45?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`0a7dbd4`)](https://app.codecov.io/gh/apache/groovy/commit/0a7dbd4e4fac4e085a15178ae45e67219c15b66c?dropdown=coverage&el=desc&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/2200?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) ```diff @@ Coverage Diff @@ ## master #2200 +/- ## ================================================== - Coverage 68.9476% 68.9452% -0.0024% - Complexity 29552 29560 +8 ================================================== Files 1423 1423 Lines 113901 113905 +4 Branches 19753 19753 ================================================== Hits 78532 78532 - Misses 28770 28775 +5 + Partials 6599 6598 -1 ``` | [Files with missing lines](https://app.codecov.io/gh/apache/groovy/pull/2200?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | |---|---|---| | [.../sc/transformers/StaticCompilationTransformer.java](https://app.codecov.io/gh/apache/groovy/pull/2200?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fcodehaus%2Fgroovy%2Ftransform%2Fsc%2Ftransformers%2FStaticCompilationTransformer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9vcmcvY29kZWhhdXMvZ3Jvb3Z5L3RyYW5zZm9ybS9zYy90cmFuc2Zvcm1lcnMvU3RhdGljQ29tcGlsYXRpb25UcmFuc2Zvcm1lci5qYXZh) | `98.5294% <100.0000%> (+0.0919%)` | :arrow_up: | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/apache/groovy/pull/2200/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> > Unable to use statically imported const string in annotation > ------------------------------------------------------------ > > Key: GROOVY-11624 > URL: https://issues.apache.org/jira/browse/GROOVY-11624 > Project: Groovy > Issue Type: Bug > Components: Compiler, Static compilation > Affects Versions: 5.0.0-alpha-12 > Reporter: Saravanan > Assignee: Eric Milles > Priority: Minor > > I have a java class defined (pulled in as byte code from a jar dependency) > > {code:java} > package com.org.nativecompiler.cli; > public final class MyDefinitionInJava { > public static final String MYTEXTINJAVA = "asdsad"; > } > {code} > I am using this in my Groovy class. When I compile my groovy class with the > java jar in the dependency path, > > {code:groovy} > import static com.org.nativecompiler.cli.MyDefinitionInJava.MYTEXTINJAVA; > public interface Interfaces { > String OTHERTEXT = MYTEXTINJAVA + "1234"; > @Deprecated(since = OTHERTEXT) > public interface InnerClass { > } > } > {code} > I get a compile error (in comple static mode) in the use of OTHERTEXT > Expected > 'com.org.nativecompiler.cli.MyDefinitionInJava.MYTEXTINJAVA.plus(1234)' to be > an inline constant of type java.lang.String in @java.lang.Deprecated > This seems to be an issue only if I static import it. This works if I use > MyDefintionInJava.MYTEXTINJAVA directly -- This message was sent by Atlassian Jira (v8.20.10#820010)