⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 array.c

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 C
字号:
/*      * java.lang.reflect.Array.c * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution  * of this file.  */#include "config.h"#include "config-std.h"#include "config-mem.h"#include "object.h"#include "classMethod.h"#include "baseClasses.h"#include "itypes.h"#include "soft.h"#include "exception.h"#include "java_lang_reflect_Array.h"#include <native.h>#include "defs.h"jintjava_lang_reflect_Array_getLength(struct Hjava_lang_Object* obj){	if (!CLASS_IS_ARRAY(OBJECT_CLASS(obj)))		SignalError("java.lang.IllegalArgumentException", "");	return (obj_length((HArrayOfObject*)obj));}struct Hjava_lang_Object*java_lang_reflect_Array_newArray(struct Hjava_lang_Class* clazz, jint size){	if (size < 0) {		SignalError("java.lang.NegativeArraySizeException", "");	}	return (newArray(clazz, (jsize) size));}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -