Author: pete.muir(a)jboss.org
Date: 2008-10-31 14:03:41 -0400 (Fri, 31 Oct 2008)
New Revision: 9475
Modified:
trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java
Log:
JBSEAM-3594, instrument abstract classes so abstract constructors are run, thanks to Clint
Popetz
Modified: trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java
===================================================================
--- trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java 2008-10-31
17:58:26 UTC (rev 9474)
+++ trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java 2008-10-31
18:03:41 UTC (rev 9475)
@@ -143,7 +143,7 @@
for (CtMethod method : implementation.getDeclaredMethods())
{
- if (!Modifier.isStatic(method.getModifiers()))
+ if (!Modifier.isStatic(method.getModifiers()) &&
!Modifier.isAbstract(method.getModifiers()))
{
if (!("getHandler".equals(method.getName()) ||
"getEnclosingInstance".equals(method.getName())))
{
@@ -235,7 +235,7 @@
private static boolean isInstrumentable(CtClass clazz)
{
int modifiers = clazz.getModifiers();
- return !(Modifier.isAbstract(modifiers) || Modifier.isInterface(modifiers) ||
Modifier.isEnum(modifiers));
+ return !(Modifier.isInterface(modifiers) || Modifier.isEnum(modifiers));
}
}
Show replies by date