Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.0-alpha-2
-
None
Description
Consider the following:
@Tag(value=C.VALUE) class C<@Tag(value=C.VALUE) T> extends @Tag(value=C.VALUE) Object implements @Tag(value=C.VALUE) Serializable { public static final String VALUE = "" //... }
Annotations located in the class header are processed before VariableScopeVisitor (in ResolveVisitor). Only the annotation in C properly resolves "C" and its constant field "VALUE".
Attachments
Issue Links
- is related to
-
GROOVY-9155 JSR308 annotation attributes not being validated
- Closed
-
GROOVY-10750 Compiler does not resolve compile-time constants in string concatenation
- Closed
- relates to
-
GROOVY-11206 Concatenated strings not treated as compile-time constants
- Closed