-
Bug
-
Resolution: Done
-
Major
-
4.0.0.CR3, 3.7.0.Final
-
None
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.
- relates to
-
RESTEASY-1015 ResteasyCdiExtension is adding CDI scopes to classes that should not be CDI beans
- Resolved
-
RESTEASY-2315 ResteasyCdiExtension is adding CDI scopes to classes that should not be CDI beans, Part II
- Resolved