PatchSet 7586 Date: 2007/10/22 14:06:33 Author: robilad Branch: HEAD Tag: (none) Log: 2007-10-22 Dalibor Topic <[EMAIL PROTECTED]>
* libraries/clib/native/ClassLoader.c (java_lang_VMClassLoader_getPrimitiveClass0): Rewritten to use getPrimitiveClassFromSignature. Members: ChangeLog:1.5083->1.5084 libraries/clib/native/ClassLoader.c:1.54->1.55 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.5083 kaffe/ChangeLog:1.5084 --- kaffe/ChangeLog:1.5083 Mon Oct 22 13:38:54 2007 +++ kaffe/ChangeLog Mon Oct 22 14:06:33 2007 @@ -1,5 +1,11 @@ 2007-10-22 Dalibor Topic <[EMAIL PROTECTED]> + * libraries/clib/native/ClassLoader.c + (java_lang_VMClassLoader_getPrimitiveClass0): + Rewritten to use getPrimitiveClassFromSignature. + +2007-10-22 Dalibor Topic <[EMAIL PROTECTED]> + * kaffe/kaffevm/classMethod.h (getPrimitiveClassFromSignature): Added prototype. Index: kaffe/libraries/clib/native/ClassLoader.c diff -u kaffe/libraries/clib/native/ClassLoader.c:1.54 kaffe/libraries/clib/native/ClassLoader.c:1.55 --- kaffe/libraries/clib/native/ClassLoader.c:1.54 Mon Jul 17 00:50:16 2006 +++ kaffe/libraries/clib/native/ClassLoader.c Mon Oct 22 14:06:33 2007 @@ -4,6 +4,9 @@ * Copyright (c) 1996, 1997 * Transvirtual Technologies, Inc. All rights reserved. * + * Copyright (c) 2007 + * Kaffe.org contributors. See ChangeLog for details. + * * See the file "license.terms" for information on usage and redistribution * of this file. */ @@ -31,28 +34,7 @@ struct Hjava_lang_Class* java_lang_VMClassLoader_getPrimitiveClass0(jchar typeCode) { - switch(typeCode) { - case 'Z': - return (booleanClass); - case 'B': - return (byteClass); - case 'C': - return (charClass); - case 'D': - return (doubleClass); - case 'F': - return (floatClass); - case 'I': - return (intClass); - case 'J': - return (longClass); - case 'S': - return (shortClass); - case 'V': - return (voidClass); - default: - return(NULL); - } + return getPrimitiveClassFromSignature(typeCode); } /* _______________________________________________ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe