tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util IntrospectionUtils.java
Date Thu, 05 Aug 2004 14:02:25 GMT
fhanik      2004/08/05 07:02:24

  Modified:    util/java/org/apache/tomcat/util IntrospectionUtils.java
  Log:
  Added in long as a supported data type
  
  Revision  Changes    Path
  1.8       +9 -1      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- IntrospectionUtils.java	26 Jun 2004 17:41:32 -0000	1.7
  +++ IntrospectionUtils.java	5 Aug 2004 14:02:24 -0000	1.8
  @@ -287,6 +287,14 @@
                           } catch (NumberFormatException ex) {
                               ok = false;
                           }
  +                    // Try a setFoo ( long )
  +                    }else if ("java.lang.Long".equals(paramType.getName())
  +                                || "long".equals(paramType.getName())) {
  +                            try {
  +                                params[0] = new Long(value);
  +                            } catch (NumberFormatException ex) {
  +                                ok = false;
  +                            }
   
                           // Try a setFoo ( boolean )
                       } else if ("java.lang.Boolean".equals(paramType.getName())
  @@ -976,4 +984,4 @@
       static void d(String s) {
           System.out.println("IntrospectionUtils: " + s);
       }
  -}
  \ No newline at end of file
  +}
  
  
  

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


Mime
View raw message