Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.13, 4.0.14, 4.0.15
-
None
Description
This bug was introduced in 4.0.13.
I have two classes:
package bug.repro class Constants { @PackageScope static final String CONSTANT = 'foo' }
package bug.repro import static bug.repro.Constants.CONSTANT @groovy.transform.CompileStatic class UsesConstants { void run() { println CONSTANT.isEmpty() } }
As of 4.0.12, this compiles as expected (would print false). As of 4.0.13, it produces
[Static type checking] - Cannot find matching method bug.repro.constants#getCONSTANT(). Please check if the declared type is correct and if the method exists.
Attachments
Issue Links
- is related to
-
GROOVY-8145 Cross-project @Log + static import issue
- Closed
-
GROOVY-11104 Static import of property accessor for type in same unit
- Closed