[kaffe] CVS kaffe (robilad): libraries/clib/native/java_lang_reflect_VMArray.c,

Kaffe CVS cvs-commits at kaffe.org
Tue Oct 23 04:11:56 PDT 2007


PatchSet 7589 
Date: 2007/10/23 11:10:30
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
2007-10-22  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/native/java_lang_reflect_VMArray.c,
        libraries/javalib/vmspecific/java/lang/reflect/VMArray.java: Removed.

        * kaffe/kaffevm/Makefile.am (libkaffevm_la_SOURCES): Removed java_lang_reflect_VMArray.c.

        * libraries/javalib/vmspecific/Makefile.am (dist_vminterface_JAVA): Removed java/lang/reflect/VMArray.java.

Members: 
	ChangeLog:1.5086->1.5087 
	kaffe/kaffevm/Makefile.am:1.101->1.102 
	kaffe/kaffevm/Makefile.in:1.263->1.264 
	libraries/clib/native/java_lang_reflect_VMArray.c:1.2->1.3(DEAD) 
	libraries/javalib/vmspecific/Makefile.am:1.9->1.10 
	libraries/javalib/vmspecific/Makefile.in:1.16->1.17 
	libraries/javalib/vmspecific/java/lang/reflect/VMArray.java:1.2->1.3(DEAD) 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5086 kaffe/ChangeLog:1.5087
--- kaffe/ChangeLog:1.5086	Mon Oct 22 20:56:06 2007
+++ kaffe/ChangeLog	Tue Oct 23 11:10:30 2007
@@ -1,5 +1,14 @@
 2007-10-22  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/clib/native/java_lang_reflect_VMArray.c,
+	libraries/javalib/vmspecific/java/lang/reflect/VMArray.java: Removed.
+
+	* kaffe/kaffevm/Makefile.am (libkaffevm_la_SOURCES): Removed java_lang_reflect_VMArray.c.
+
+	* libraries/javalib/vmspecific/Makefile.am (dist_vminterface_JAVA): Removed java/lang/reflect/VMArray.java.
+
+2007-10-22  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/vmspecific/java/lang/VMProcess.java: Removed.
 
 	* libraries/javalib/vmspecific/Makefile.am (dist_vminterface_JAVA): Removed java/lang/VMProcess.java.
Index: kaffe/kaffe/kaffevm/Makefile.am
diff -u kaffe/kaffe/kaffevm/Makefile.am:1.101 kaffe/kaffe/kaffevm/Makefile.am:1.102
--- kaffe/kaffe/kaffevm/Makefile.am:1.101	Sun Oct 21 17:40:49 2007
+++ kaffe/kaffe/kaffevm/Makefile.am	Tue Oct 23 11:10:30 2007
@@ -139,7 +139,6 @@
 	$(top_srcdir)/libraries/clib/net/InetAddressImpl.c \
 	$(top_srcdir)/libraries/clib/native/AccessController.c \
 	$(top_srcdir)/libraries/clib/native/java_lang_ref_Reference.c \
-        $(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c \
         $(top_srcdir)/libraries/clib/native/Constructor.c \
         $(top_srcdir)/libraries/clib/native/Field.c \
         $(top_srcdir)/libraries/clib/native/Method.c \
Index: kaffe/kaffe/kaffevm/Makefile.in
diff -u kaffe/kaffe/kaffevm/Makefile.in:1.263 kaffe/kaffe/kaffevm/Makefile.in:1.264
--- kaffe/kaffe/kaffevm/Makefile.in:1.263	Sun Oct 21 17:40:49 2007
+++ kaffe/kaffe/kaffevm/Makefile.in	Tue Oct 23 11:10:30 2007
@@ -117,7 +117,6 @@
 am_libkaffevm_la_OBJECTS = libkaffevm_la-InetAddressImpl.lo \
 	libkaffevm_la-AccessController.lo \
 	libkaffevm_la-java_lang_ref_Reference.lo \
-	libkaffevm_la-java_lang_reflect_VMArray.lo \
 	libkaffevm_la-Constructor.lo libkaffevm_la-Field.lo \
 	libkaffevm_la-Method.lo libkaffevm_la-Class.lo \
 	libkaffevm_la-ClassLoader.lo libkaffevm_la-java_lang_Object.lo \
@@ -486,7 +485,6 @@
 	$(top_srcdir)/libraries/clib/net/InetAddressImpl.c \
 	$(top_srcdir)/libraries/clib/native/AccessController.c \
 	$(top_srcdir)/libraries/clib/native/java_lang_ref_Reference.c \
-        $(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c \
         $(top_srcdir)/libraries/clib/native/Constructor.c \
         $(top_srcdir)/libraries/clib/native/Field.c \
         $(top_srcdir)/libraries/clib/native/Method.c \
@@ -664,7 +662,6 @@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libkaffevm_la-java_lang_String.Plo at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libkaffevm_la-java_lang_Thread.Plo at am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libkaffevm_la-java_lang_ref_Reference.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libkaffevm_la-java_lang_reflect_VMArray.Plo at am__quote@
 
 .c.o:
 @am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -952,13 +949,6 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/libraries/clib/native/java_lang_ref_Reference.c' object='libkaffevm_la-java_lang_ref_Reference.lo' libtool=yes @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libkaffevm_la_CFLAGS) $(CFLAGS) -c -o libkaffevm_la-java_lang_ref_Reference.lo `test -f '$(top_srcdir)/libraries/clib/native/java_lang_ref_Reference.c' || echo '$(srcdir)/'`$(top_srcdir)/libraries/clib/native/java_lang_ref_Reference.c
-
-libkaffevm_la-java_lang_reflect_VMArray.lo: $(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c
- at am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libkaffevm_la_CFLAGS) $(CFLAGS) -MT libkaffevm_la-java_lang_reflect_VMArray.lo -MD -MP -MF $(DEPDIR)/libkaffevm_la-java_lang_reflect_VMArray.Tpo -c -o libkaffevm_la-java_lang_reflect_VMArray.lo `test -f '$(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c' || echo '$(srcdir)/'`$(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c
- at am__fastdepCC_TRUE@	mv -f $(DEPDIR)/libkaffevm_la-java_lang_reflect_VMArray.Tpo $(DEPDIR)/libkaffevm_la-java_lang_reflect_VMArray.Plo
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c' object='libkaffevm_la-java_lang_reflect_VMArray.lo' libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libkaffevm_la_CFLAGS) $(CFLAGS) -c -o libkaffevm_la-java_lang_reflect_VMArray.lo `test -f '$(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c' || echo '$(srcdir)/'`$(top_srcdir)/libraries/clib/native/java_lang_reflect_VMArray.c
 
 libkaffevm_la-Constructor.lo: $(top_srcdir)/libraries/clib/native/Constructor.c
 @am__fastdepCC_TRUE@	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libkaffevm_la_CFLAGS) $(CFLAGS) -MT libkaffevm_la-Constructor.lo -MD -MP -MF $(DEPDIR)/libkaffevm_la-Constructor.Tpo -c -o libkaffevm_la-Constructor.lo `test -f '$(top_srcdir)/libraries/clib/native/Constructor.c' || echo '$(srcdir)/'`$(top_srcdir)/libraries/clib/native/Constructor.c
===================================================================
Checking out kaffe/libraries/clib/native/java_lang_reflect_VMArray.c
RCS:  /home/cvs/kaffe/kaffe/libraries/clib/native/Attic/java_lang_reflect_VMArray.c,v
VERS: 1.2
***************
--- kaffe/libraries/clib/native/java_lang_reflect_VMArray.c	Tue Oct 23 11:11:56 2007
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,62 +0,0 @@
-/* java.lang.reflect.Array native functions
-   Copyright (C) 1998, 2004  Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath 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.
- 
-GNU Classpath 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 GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-/*
- * java.lang.reflect.Array native functions.
- * Author: John Keiser
- * Version: 1.1.0
- * Date: 2 Jun 1998
- */
-
-#include <config.h>
-#include <stddef.h>
-
-#include "java_lang_reflect_VMArray.h"
-
-/*
- * Class:     java_lang_reflect_Array
- * Method:    createObjectArray
- * Signature: (Ljava/lang/Class;I)Ljava/lang/Object;
- */
-JNIEXPORT jobject JNICALL
-Java_java_lang_reflect_VMArray_createObjectArray0
-  (JNIEnv * env,
-   jclass thisClass __attribute__ ((__unused__)),
-   jclass arrayType, jint arrayLength)
-{
-  return (jobject) (*env)->NewObjectArray (env, arrayLength, arrayType, NULL);
-}
Index: kaffe/libraries/javalib/vmspecific/Makefile.am
diff -u kaffe/libraries/javalib/vmspecific/Makefile.am:1.9 kaffe/libraries/javalib/vmspecific/Makefile.am:1.10
--- kaffe/libraries/javalib/vmspecific/Makefile.am:1.9	Mon Oct 22 20:56:07 2007
+++ kaffe/libraries/javalib/vmspecific/Makefile.am	Tue Oct 23 11:10:30 2007
@@ -39,7 +39,6 @@
 	java/lang/reflect/Constructor.java \
 	java/lang/reflect/Field.java \
 	java/lang/reflect/Method.java \
-	java/lang/reflect/VMArray.java \
 	java/net/VMInetAddress.java \
 	java/security/VMAccessController.java \
 	java/security/VMSecureRandom.java \
Index: kaffe/libraries/javalib/vmspecific/Makefile.in
diff -u kaffe/libraries/javalib/vmspecific/Makefile.in:1.16 kaffe/libraries/javalib/vmspecific/Makefile.in:1.17
--- kaffe/libraries/javalib/vmspecific/Makefile.in:1.16	Mon Oct 22 20:56:07 2007
+++ kaffe/libraries/javalib/vmspecific/Makefile.in	Tue Oct 23 11:10:30 2007
@@ -314,7 +314,6 @@
 	java/lang/reflect/Constructor.java \
 	java/lang/reflect/Field.java \
 	java/lang/reflect/Method.java \
-	java/lang/reflect/VMArray.java \
 	java/net/VMInetAddress.java \
 	java/security/VMAccessController.java \
 	java/security/VMSecureRandom.java \
===================================================================
Checking out kaffe/libraries/javalib/vmspecific/java/lang/reflect/VMArray.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/vmspecific/java/lang/reflect/Attic/VMArray.java,v
VERS: 1.2
***************
--- kaffe/libraries/javalib/vmspecific/java/lang/reflect/VMArray.java	Tue Oct 23 11:11:56 2007
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,74 +0,0 @@
-/* java.lang.reflect.VMArray - VM class for array manipulation by reflection.
-   Copyright (C) 1998, 1999, 2001, 2003, 2005  Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath 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.
-
-GNU Classpath 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 GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package java.lang.reflect;
-
-import gnu.classpath.Configuration;
-
-class VMArray
-{
-
-  static
-  {
-    if (Configuration.INIT_LOAD_LIBRARY)
-      {
-        System.loadLibrary("javalang");
-      }
-  }
-
-  /**
-   * Dynamically create an array of objects.
-   *
-   * @param type guaranteed to be a valid object type
-   * @param dim the length of the array
-   * @return the new array
-   * @throws NegativeArraySizeException if dim is negative
-   * @throws OutOfMemoryError if memory allocation fails
-   */
-  static Object createObjectArray(Class type, int dim)
-  {
-    if (dim < 0)
-      throw new NegativeArraySizeException("Can't create an array of " 
-					   + type.getName() 
-					   + " of length "
-					   + dim);
-    return createObjectArray0(type, dim);
-  }
-
-  static native Object createObjectArray0(Class type, int dim);
-}




More information about the kaffe mailing list