Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-701

DecoratorMatcher does not check whether type is assignable for first case resulting in ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.4.Final
    • 2.3.2.Final
    • jaxrs
    • None

      On line 40 of DecoratorMatcher, it doesn't check whether

      targetClass.isAssignableFrom(annotation.annotationType().getAnnotation(Decorator.class).target())

      .

      This could result (and does) in a ClassCastException in the DecoratorProcessor which is called.

            patriot1burke@gmail.com Bill Burke (Inactive)
            ajvanerp Jeroen van Erp (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: