Assigned : ALL
Status : OPEN
Comments :
+
+Description: classloader namespacing and unloading of native libraries (btw: jdk 1.2+ instead of jdk 1.1 compliant behaviour)
+Assigned : jowenn
+Status : OPEN
+Comments :
+
+Description: Fix exception stacktraces containing Alpha-leaf methods
+Assigned : jowenn
+Status : OPEN
+Comments :
+
+Description: solve the problem that jython calles methods with double parameters wrongly in cacao
+Assigned : jowenn
+Status : OPEN
+Comments :
+
+Description: Implement JavaVM interface and releated functions to make cacao embeddable
+Assigned : jowenn, all
+Status : OPEN
+Comments :
Changes: Joseph Wenninger
- $Id: VMClassLoader.c 1735 2004-12-07 14:33:27Z twisti $
+ $Id: VMClassLoader.c 1773 2004-12-19 17:39:01Z jowenn $
*/
{
classinfo *c;
- log_text("Java_java_lang_VMClassLoader_defineClass called");
+ /*log_text("Java_java_lang_VMClassLoader_defineClass called");*/
if (off < 0 || len < 0 || off + len > buf->header.size) {
*exceptionptr =
Changes: Joseph Wenninger
- $Id: VMSecurityManager.c 1735 2004-12-07 14:33:27Z twisti $
+ $Id: VMSecurityManager.c 1773 2004-12-19 17:39:01Z jowenn $
*/
*/
JNIEXPORT java_lang_ClassLoader* JNICALL Java_java_lang_VMSecurityManager_currentClassLoader(JNIEnv *env, jclass clazz)
{
- log_text("Java_java_lang_VMSecurityManager_currentClassLoader");
+ /*log_text("Java_java_lang_VMSecurityManager_currentClassLoader");*/
if (cacao_initializing)
return NULL;
*/
JNIEXPORT java_objectarray* JNICALL Java_java_lang_VMSecurityManager_getClassContext(JNIEnv *env, jclass clazz)
{
- log_text("Java_java_lang_VMSecurityManager_getClassContext called");
+ /*log_text("Java_java_lang_VMSecurityManager_getClassContext called");*/
if (cacao_initializing) return 0;
#if defined(__I386__) || defined(__ALPHA__)
return cacao_createClassContextArray();
Changes: Joseph Wenninger
- $Id: VMSystem.c 1735 2004-12-07 14:33:27Z twisti $
+ $Id: VMSystem.c 1773 2004-12-19 17:39:01Z jowenn $
*/
return;
}
- if ((len < 0) || (sp < 0) || (sp + len > s->size) || (dp < 0) || (dp + len > d->size)) {
+ if ((len < 0) || (sp < 0) || (sp + len > s->size) || (dp < 0) || (dp + len > d->size) || (dp+len<0)) {
*exceptionptr = new_exception(string_java_lang_ArrayIndexOutOfBoundsException);
return;
}
##
## Changes:
##
-## $Id: Makefile.am 1756 2004-12-13 10:09:35Z twisti $
+## $Id: Makefile.am 1773 2004-12-19 17:39:01Z jowenn $
## Process this file with automake to produce Makefile.in
$(CACAOC) testarguments.java
$(CACAOH) testarguments
$(CC) -shared $(INCLUDES) $(CFLAGS) testarguments.c -o libtestarguments.so -fPIC
+ $(CACAOC) testgetobjectclass0.java
+ $(CACAOH) testgetobjectclass0
+ $(CC) -shared $(INCLUDES) $(CFLAGS) testgetobjectclass0.c -o libtestgetobjectclass0.so -fPIC
## Local variables:
--- /dev/null
+/* tests/native/testgetobjectclass0.c - tests argument passing
+
+ Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+ R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+ C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+ TU Wien
+
+ This file is part of CACAO.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ Contact: cacao@complang.tuwien.ac.at
+
+ Authors: Joseph Wenninger
+
+ $Id: testgetobjectclass0.c 1773 2004-12-19 17:39:01Z jowenn $
+
+*/
+
+
+#include "config.h"
+#include "native/jni.h"
+
+
+JNIEXPORT void JNICALL Java_testgetobjectclass0_getobjectclass0(JNIEnv *env, jclass clazz)
+{
+ (*env)->GetObjectClass(env,0);
+}
--- /dev/null
+/* tests/native/testgetobjectclass0.java - tests argument passing
+
+ Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+ R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+ C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+ TU Wien
+
+ This file is part of CACAO.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ Contact: cacao@complang.tuwien.ac.at
+
+ Authors: Joseph Wenninger
+
+ $Id: testgetobjectclass0.java 1773 2004-12-19 17:39:01Z jowenn $
+
+*/
+
+
+public class testgetobjectclass0{
+
+ public static native void getobjectclass0();
+
+ public static void main(String[] args) {
+ System.loadLibrary("testgetobjectclass0");
+ getobjectclass0();
+ }
+}