geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r793453 - /geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
Date Mon, 13 Jul 2009 04:41:37 GMT
Author: xuhaihong
Date: Mon Jul 13 04:41:37 2009
New Revision: 793453

URL: http://svn.apache.org/viewvc?rev=793453&view=rev
Log:
GERONIMO-4217 Check for all data primitive types when shortcutting to the primordial classloader
(Patch from Rex Wang)

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java?rev=793453&r1=793452&r2=793453&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/MultiParentClassLoader.java
Mon Jul 13 04:41:37 2009
@@ -308,7 +308,11 @@
                 name.equals("boolean") ||
                 name.equals("int") ||
                 name.equals("double") ||
-                name.equals("long")) {
+                name.equals("long") ||
+                name.equals("short") ||
+                name.equals("float") ||
+                name.equals("byte") ||
+                name.equals("char")) {
             Class clazz = ClassLoader.getSystemClassLoader().loadClass(name);
             return resolveClass(clazz, resolve);
         }
@@ -389,7 +393,11 @@
                 name.equals("boolean") ||
                 name.equals("int") ||
                 name.equals("double") ||
-                name.equals("long")) {
+                name.equals("long") ||
+                name.equals("short") ||
+                name.equals("float") ||
+                name.equals("byte") ||
+                name.equals("char")) {
             try {
         	    return resolveClass(findSystemClass(name), resolve);
             } catch (ClassNotFoundException cnfe) {



Mime
View raw message