]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
VMClassLoader.java (getPrimitiveClass): Return correct type.
authorTom Tromey <tromey@redhat.com>
Tue, 24 Jul 2001 14:31:42 +0000 (14:31 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 24 Jul 2001 14:31:42 +0000 (14:31 +0000)
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.

From-SVN: r44296

libjava/ChangeLog
libjava/java/lang/VMClassLoader.java

index 56d89c8682911532ea36d7663f8f50f7bcdc62c4..a146eb2dc22e0f8b448875bd7fdcb5a599425467 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-24  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
+       type.
+
 2001-07-23  Tom Tromey  <tromey@redhat.com>
 
        * gcj/javaprims.h: Rebuilt class list.
index de0db88743447b13768e253ea49d84b249960dd0..dcfec0558f3d46d59b97b700e1f60a81be58c63f 100644 (file)
@@ -65,21 +65,21 @@ class VMClassLoader {
     if ("int".equals (type))
       return int.class;
     else if ("long".equals (type))
-      return int.class;
+      return long.class;
     else if ("boolean".equals (type))
-      return int.class;
+      return boolean.class;
     else if ("short".equals (type))
-      return int.class;
+      return short.class;
     else if ("char".equals (type))
-      return int.class;
+      return char.class;
     else if ("byte".equals (type))
-      return int.class;
+      return byte.class;
     else if ("float".equals (type))
-      return int.class;
+      return float.class;
     else if ("double".equals (type))
-      return int.class;
+      return double.class;
     else if ("void".equals (type))
-      return int.class;
+      return void.class;
     return null;
   }
 }