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

Determine why NettyTests fail with proposed change to ResteasyCdiExtension

XMLWordPrintable

      When this code is added to
      resteasy-cdi/src/main/java/org/jboss/resteasy/cdi/ResteasyCdiExtension.java

      private boolean isFinalClass(Class clazz) {
            // Unproxyable bean type: classes which are declared final
            boolean isFinal = Modifier.isFinal(clazz.getModifiers());
      
            if (!isFinal) {
               // check methods
               for (Method m : clazz.getMethods()) {
                  int mod = m.getModifiers();
                  if (Modifier.isFinal(mod) && !Modifier.isStatic(mod)
                     && (Modifier.isPublic(mod) || Modifier.isProtected(mod))) {
                     isFinal = true;
                     break;
                  }
               }
            }
            //return Modifier.isFinal(clazz.getModifiers());
            return isFinal;
         }
      

      These tests fail
      CdiNettyTest.testLoadFailure:79 expected:<406> but was:<500>
      SeCdiNettyTest.testLoadFailure:77 expected:<406> but was:<500>

      Determine why.

              rsearls r searls
              rsearls r searls
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: