You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/05/12 04:07:45 UTC

svn commit: r943355 - /myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm

Author: lu4242
Date: Wed May 12 02:07:45 2010
New Revision: 943355

URL: http://svn.apache.org/viewvc?rev=943355&view=rev
Log:
small fix use new Integer instead Integer.valueOf to keep compatible with jdk 1.4

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm?rev=943355&r1=943354&r2=943355&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm Wed May 12 02:07:45 2010
@@ -183,7 +183,12 @@ $innersource
 #end
         }
 #if ($defaultValue)
+#if ($defaultValue.startsWith("Integer.valueOf("))
+## replace Integer.valueOf with new Integer in jdk 1.4
+        return new Integer($defaultValue.substring(16);
+#else
         return $defaultValue; 
+#end
 #elseif ($utils.isPrimitiveClass($type))
         return $utils.primitiveDefaultValue($type);
 #else