You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bi...@apache.org on 2006/06/05 02:50:01 UTC

svn commit: r411629 - /jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java

Author: billbarker
Date: Sun Jun  4 17:50:01 2006
New Revision: 411629

URL: http://svn.apache.org/viewvc?rev=411629&view=rev
Log:
Attempt fix for MODELER-15.

Of course, this will have no effect in Tomcat until the Tomcat team decides to upgrade the Modeler version.  While, deprecating the DOM source, and using the Digester source would probably be better, it would also place a hard dependancy on [digester], which while probably ok for TC 4.x and TC 3.x, would almost certainly be rejected by the Tomcat team for TC 5.x.

Also clean up a couple of Java 5 warnings.


Modified:
    jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java

Modified: jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java?rev=411629&r1=411628&r2=411629&view=diff
==============================================================================
--- jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java (original)
+++ jakarta/commons/proper/modeler/trunk/src/java/org/apache/commons/modeler/util/IntrospectionUtils.java Sun Jun  4 17:50:01 2006
@@ -57,7 +57,7 @@
 	    throw new RuntimeException("No method " + method + " in " +
                     proxy.getClass() );
 	}
-	executeM.invoke(proxy, null );
+	executeM.invoke(proxy, (Object [])null );
     }
 
     /**
@@ -376,7 +376,7 @@
 		Class paramT[]=methods[i].getParameterTypes();
 		if( getter.equals( methods[i].getName() ) &&
 		    paramT.length == 0 ) {
-		    return methods[i].invoke( o, null );
+		    return methods[i].invoke( o, (Object [])null );
 		}
 
 		if( "getProperty".equals( methods[i].getName())) {
@@ -790,6 +790,10 @@
     }
 
     static Hashtable objectMethods=new Hashtable();
+
+    public static void clear() {
+        objectMethods.clear();
+    }
 
     public static Method[] findMethods( Class c ) {
 	Method methods[]= (Method [])objectMethods.get( c );



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org