Error setting a default null value for an annotation’s field
I don’t know why, but the JLS is very clear: Discussion Note that null is not a legal element value for any element type. And the definition of a default element is: DefaultValue: default ElementValue Unfortunately I keep finding that the new language features (Enums and now Annotations) have very unhelpful compiler error messages when … Read more