You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Alvaro Sanchez-Mariscal (Jira)" <ji...@apache.org> on 2020/12/22 10:20:00 UTC
[jira] [Created] (GROOVY-9871) NPE when processing the AST of
nested annotations from JAR files
Alvaro Sanchez-Mariscal created GROOVY-9871:
-----------------------------------------------
Summary: NPE when processing the AST of nested annotations from JAR files
Key: GROOVY-9871
URL: https://issues.apache.org/jira/browse/GROOVY-9871
Project: Groovy
Issue Type: Bug
Reporter: Alvaro Sanchez-Mariscal
Source: [https://github.com/micronaut-projects/micronaut-openapi/issues/313]
This source:
{code:java}
@JsonSubTypes([
@JsonSubTypes.Type(value = Dog, name = "dog"),
@JsonSubTypes.Type(value = Cat, name = "cat")
])
Animal animal
{code}
Will cause [GroovyCodeVisitor|https://github.com/apache/groovy/blob/GROOVY_3_0_4/src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java#L202] to throw a NPE because the {{list}} parameter is {{null}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)