[ 
https://issues.apache.org/jira/browse/GROOVY-9871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles reassigned GROOVY-9871:
-----------------------------------

    Assignee: Eric Milles

> 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
>            Assignee: Eric Milles
>            Priority: Major
>              Labels: annotations
>
> 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.20.10#820010)

Reply via email to