Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18224

ClassNotFoundException thrown when processing enums with annotations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 29.0.0.Final
    • 29.0.0.Beta1
    • MP OpenAPI
    • None

    Description

      https://github.com/smallrye/smallrye-open-api/issues/1508

      We can workaround the issue by calling OpenApiProcessor.modelFromAnnotations(...) with a ClassLoader that delegates to both the io.smallrye.openapi and deployment module.

      However, ideally upstream should either allow the ClassLoader used to load AnnotationScanner instances to be specified independently from the ClassLoader used to load application enum classes; or allow WildFly to bypass the service loading required to create its AnnotationScanner instances.

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: