Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16564

Reading annotations in ConfigurationClassParser does not fall back to ASM on Google App Engine

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.14, 5.0.4
    • Fix Version/s: 4.3.15, 5.0.5
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      ConfigurationClassParser has a sanity test to ensure that annotations can be read and in case of an Exception, it falls back to ASM. On Google App Engine classType.getAnnotations() does not throw an Exception if a class is not found and instead the annotation value looks something like this value=sun.reflect.annotation.TypeNotPresentExceptionProxy.

      This causes unexpected behavior in Spring Boot's OnClassCondition as the metadata is not an AnnotationMetadataReadingVisitor.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                mbhave Madhura Bhave
                Last updater:
                St├ęphane Nicoll
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  36 weeks, 1 day ago