RE: Proposal: Change behavior of AST getMemberClassValue() and equivalents

2021-01-06 Thread Milles, Eric (TR Technology)
I think it is implemented this way because it must support an unresolved annotation. That is, you may have a transform that runs before ResolveVisitor fills in all the type information. The transform can only ask for what is present in the AST. If it wants to use the default values of any ann

Proposal: Change behavior of AST getMemberClassValue() and equivalents

2021-01-05 Thread Christopher Smith
Currently, the method AbstractASTTransformation#getMemberClassValue takes as a parameter a "default value" (parameter defaulted to null), which is returned if the annotation instance does not provide a value for that parameter. This means that if an annotation is declared with a "default Foo.class"