Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9871

NPE when processing the AST of nested annotations from JAR files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.4, 2.5.19, 3.0.13
    • None

    Description

      Source: https://github.com/micronaut-projects/micronaut-openapi/issues/313

      This source:

       

      @JsonSubTypes([
              @JsonSubTypes.Type(value = Dog, name = "dog"),
              @JsonSubTypes.Type(value = Cat, name = "cat")
      ])
      Animal animal
      

      Will cause GroovyCodeVisitor to throw a NPE because the list parameter is null.

       

      Attachments

        Activity

          People

            emilles Eric Milles
            alvaro.sanchez Alvaro Sanchez-Mariscal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: