VMClassLoader.java (getPrimitiveClass): Return correct type.
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct type. From-SVN: r44296
This commit is contained in:
parent
897c6ab759
commit
82545bf72f
2 changed files with 13 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue