You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/05/11 01:32:14 UTC

cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util IntrospectionUtils.java

costin      02/05/10 16:32:14

  Modified:    util/java/org/apache/tomcat/util IntrospectionUtils.java
  Log:
  Very strange, sometimes it's Boolean.
  
  Revision  Changes    Path
  1.3       +6 -2      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java
  
  Index: IntrospectionUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IntrospectionUtils.java	22 Mar 2002 04:12:01 -0000	1.2
  +++ IntrospectionUtils.java	10 May 2002 23:32:14 -0000	1.3
  @@ -349,6 +349,9 @@
   		setPropertyMethod.invoke( o, params );
   	    }
   
  +	} catch( IllegalArgumentException ex2 ) {
  +            System.err.println("IAE " + o + " " + name + " " + value);
  +            ex2.printStackTrace();
   	} catch( SecurityException ex1 ) {
   	    if( dbg > 0 )
   		d("SecurityException for " + o.getClass() + " " +
  @@ -623,6 +626,7 @@
   				"getOptions1", new Class[] {} )) {
   	    args0=(String[])callMethod0( proxy, "getOptions1");
   	}
  +
   	if( args0==null ) {
   	    //args0=findVoidSetters(proxy.getClass());
   	    args0=findBooleanSetters(proxy.getClass());
  @@ -706,10 +710,10 @@
   	for( int i=0; i<m.length; i++ ) {
   	    if( m[i].getName().startsWith("set") &&
   	    	m[i].getParameterTypes().length == 1 &&
  -	    	"boolean".equals( m[i].getParameterTypes()[0].getName()) ) {
  +	    	"boolean".equalsIgnoreCase( m[i].getParameterTypes()[0].getName()) ) {
   	    	String arg=m[i].getName().substring( 3 );
   	    	v.addElement( unCapitalize( arg ));
  -	    }
  +	    } 
   	}
   	String s[]=new String[v.size()];
   	for( int i=0; i<s.length; i++ ) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>