[kaffe] CVS kaffe (robilad): removed another unused org.kaffe.lang class

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 16 17:02:40 PDT 2006


PatchSet 7361 
Date: 2006/07/16 23:54:17
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
removed another unused org.kaffe.lang class
2006-07-17  Dalibor Topic  <robilad at kaffe.org>

        * test/regression/KaffeInternal.java:
        Use org.kaffe.lang.UNIXProcess for the test.

        * libraries/javalib/vmspecific/org/kaffe/lang/PackageHelper.java:
        Removed unused class.

Members: 
	ChangeLog:1.4865->1.4866 
	libraries/javalib/Makefile.am:1.446->1.447 
	libraries/javalib/Makefile.in:1.560->1.561 
	libraries/javalib/vmspecific/org/kaffe/lang/PackageHelper.java:1.1->1.2(DEAD) 
	test/regression/KaffeInternal.java:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4865 kaffe/ChangeLog:1.4866
--- kaffe/ChangeLog:1.4865	Sun Jul 16 23:31:57 2006
+++ kaffe/ChangeLog	Sun Jul 16 23:54:17 2006
@@ -1,5 +1,13 @@
 2006-07-17  Dalibor Topic  <robilad at kaffe.org>
 
+	* test/regression/KaffeInternal.java:
+	Use org.kaffe.lang.UNIXProcess for the test.
+
+	* libraries/javalib/vmspecific/org/kaffe/lang/PackageHelper.java:
+	Removed unused class.
+
+2006-07-17  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/vmspecific/org/kaffe/lang/ResourceReader.java,
 	libraries/javalib/vmspecific/org/kaffe/lang/ClassPathReader.java:
 	Removed unused classes.
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.446 kaffe/libraries/javalib/Makefile.am:1.447
--- kaffe/libraries/javalib/Makefile.am:1.446	Sun Jul 16 23:32:03 2006
+++ kaffe/libraries/javalib/Makefile.am	Sun Jul 16 23:54:20 2006
@@ -277,7 +277,6 @@
 	vmspecific/java/util/zip/ZipOutputStream.java \
 	vmspecific/org/kaffe/jar/ExecJar.java \
 	vmspecific/org/kaffe/jar/ExecJarName.java \
-	vmspecific/org/kaffe/lang/PackageHelper.java \
 	vmspecific/org/kaffe/lang/UNIXProcess.java \
 	vmspecific/org/kaffe/management/Classpath.java \
 	vmspecific/org/kaffe/management/Debug.java \
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.560 kaffe/libraries/javalib/Makefile.in:1.561
--- kaffe/libraries/javalib/Makefile.in:1.560	Sun Jul 16 23:32:05 2006
+++ kaffe/libraries/javalib/Makefile.in	Sun Jul 16 23:54:23 2006
@@ -590,7 +590,6 @@
 	vmspecific/java/util/zip/ZipOutputStream.java \
 	vmspecific/org/kaffe/jar/ExecJar.java \
 	vmspecific/org/kaffe/jar/ExecJarName.java \
-	vmspecific/org/kaffe/lang/PackageHelper.java \
 	vmspecific/org/kaffe/lang/UNIXProcess.java \
 	vmspecific/org/kaffe/management/Classpath.java \
 	vmspecific/org/kaffe/management/Debug.java \
===================================================================
Checking out kaffe/libraries/javalib/vmspecific/org/kaffe/lang/PackageHelper.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/vmspecific/org/kaffe/lang/Attic/PackageHelper.java,v
VERS: 1.1
***************
--- kaffe/libraries/javalib/vmspecific/org/kaffe/lang/PackageHelper.java	Mon Jul 17 00:02:40 2006
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,45 +0,0 @@
-/*
- * Java core library component.
- *
- * Copyright (c) 2002
- *      Dalibor Topic.  All rights reserved.
- * Copyright (c) 2002
- *      Transvirtual Technologies, Inc.  All rights reserved.
- *
- * See the file "license.terms" for information on usage and redistribution
- * of this file.
- *
- * Author: Dalibor Topic <robilad at yahoo.com>
- */
-
-package org.kaffe.lang;
-
-/* this class implements utility methods for packages */
-public class PackageHelper {
-    public static final String getPackageName(Class clazz) {
-	String name = clazz.getName();
-	/* skip over array depth */
-	int start = name.lastIndexOf('[');
-	if (start != -1) {
-	    /* Array of Lclass; or Linterface; or Lprimitive; */
-	    ++start;
-	    if (name.charAt(start) == 'L') {
-		/* it's a class or interface */
-		++start;
-	    }
-	}
-	else {
-	    /* it is a simple class of interface,
-	     * or a primitive class.
-	     */
-	    start = 0;
-	}
-
-	int end = name.lastIndexOf('.');
-	if (end < 0) {
-	    end = 0;
-	}
-
-	return name.substring(start, end);
-    }
-}
Index: kaffe/test/regression/KaffeInternal.java
diff -u kaffe/test/regression/KaffeInternal.java:1.4 kaffe/test/regression/KaffeInternal.java:1.5
--- kaffe/test/regression/KaffeInternal.java:1.4	Wed Oct 19 20:16:40 2005
+++ kaffe/test/regression/KaffeInternal.java	Sun Jul 16 23:54:25 2006
@@ -1,5 +1,5 @@
 
-import org.kaffe.lang.PackageHelper;
+import org.kaffe.lang.UNIXProcess;
 import gnu.classpath.SystemProperties;
 
 /**
@@ -11,7 +11,7 @@
     {
 	try
 	{
-            PackageHelper.getPackageName (KaffeInternal.class);
+            UNIXProcess.sendSignal(0,0);
 	}
 	catch(Throwable th)
 	{
@@ -30,6 +30,6 @@
 }
 
 /* Expected Output:
-java.lang.NoClassDefFoundError: org/kaffe/lang/PackageHelper
+java.lang.NoClassDefFoundError: org/kaffe/lang/UNIXProcess
 java.lang.NoClassDefFoundError: gnu/classpath/SystemProperties
 */




More information about the kaffe mailing list