axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r797969 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java
Date Sun, 26 Jul 2009 18:21:25 GMT
Author: veithen
Date: Sun Jul 26 18:21:25 2009
New Revision: 797969

URL: http://svn.apache.org/viewvc?rev=797969&view=rev
Log:
AXIS2-4448: Applied patch submitted by Detelin Yordanov to fix instantiation of static nested
classes.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java?rev=797969&r1=797968&r2=797969&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DefaultObjectSupplier.java
Sun Jul 26 18:21:25 2009
@@ -19,6 +19,8 @@
 
 package org.apache.axis2.engine;
 
+import java.lang.reflect.Modifier;
+
 import org.apache.axis2.AxisFault;
 
 public class DefaultObjectSupplier implements ObjectSupplier {
@@ -31,7 +33,7 @@
 			Class parent = clazz.getDeclaringClass();
 			Object instance = null;
 
-			if (parent != null) {
+			if (parent != null && !Modifier.isStatic(clazz.getModifiers())) {
 				// if this is an inner class then that can be a non static inner class. 
 				// those classes have to be instantiated in a different way than a normal initialization.
 				instance = clazz.getConstructor(new Class[] { parent })



Mime
View raw message