- Add missing patch (I didn't update from sources before merging).
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 30 Mar 2006 10:00:57 +0000 (10:00 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 30 Mar 2006 10:00:57 +0000 (10:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@390055 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/modeler/Registry.java

index 1aac7dc..92ddff2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
- * Copyright 2001-2004 The Apache Software Foundation.\r
+ * Copyright 2001-2006 The Apache Software Foundation.\r
  * \r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -713,6 +713,9 @@ public class Registry implements RegistryMBean, MBeanRegistration  {
         } else if( "java.lang.Integer".equals( type ) ||\r
                 "int".equals( type )) {\r
             objValue=new Integer( value );\r
+        } else if( "java.lang.Long".equals( type ) ||\r
+                "long".equals( type )) {\r
+            objValue=new Long( value );\r
         } else if( "java.lang.Boolean".equals( type ) ||\r
                 "boolean".equals( type )) {\r
             objValue=new Boolean( value );\r