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

Eric Milles resolved GROOVY-9871.
---------------------------------
    Fix Version/s: 5.0.0-alpha-1
       Resolution: Fixed

https://github.com/apache/groovy/commit/842687fa68ade49549fd8c076eca4ffec4c93d70

> 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
>             Fix For: 5.0.0-alpha-1
>
>
> 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