Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.7
-
None
Description
@Qualifier(ConfigProps.PREFIX + '.suffix') @CompileStatic class ConfigProps { public static final String PREFIX = 'prefix' }
In this case, the value (prefix.suffix) is a compile-time constant and should be available as an annotation parameter, but the compiler does not recognize this. Both plain and static compilation produce errors, though different errors:
dynamic:
The value for annotation attribute Qualifier.value must be a constant expression
static:
Attribute 'value' should have type 'java.lang.String'; but found type 'java.lang.Object'