Closed d367wang closed 2 years ago
Found a case that causes crash,
public interface Constants { String[] ACCESS_NAMES = { "public", "private", "protected", "static", "final", "synchronized", "volatile", "transient", "native", "interface", "abstract", "strictfp", "synthetic", "annotation", "enum" }; }
The reason is that in VariableAnnotator.annotateArrayLiteral, it firstly check if the array is an annotation element, by calling enclosedByAnnotation, which triggers NullPointerException when the array is declared in an interface.
VariableAnnotator.annotateArrayLiteral
enclosedByAnnotation
Found a case that causes crash,
The reason is that in
VariableAnnotator.annotateArrayLiteral
, it firstly check if the array is an annotation element, by callingenclosedByAnnotation
, which triggers NullPointerException when the array is declared in an interface.