From 31280fb7c47e6a32289b4dfc47880a9f22a9d9b4 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sun, 26 Nov 2000 03:58:56 +0000 Subject: prims.cc (_Jv_NewObjectArray): Undo placement change. 2000-11-25 Anthony Green * prims.cc (_Jv_NewObjectArray): Undo placement change. (_Jv_NewPrimArray): Likewise. * gcj/array.h (__JArray): Undo const change. Removed constructor. (class JArray): Removed constructor. * java/lang/Thread.java (context_class_loader): New private data. (getContextClassLoader): New method. (setContextClassLoader): New method. (Thread): Initialize context_class_loader. * java/net/URLClassLoader.java: Import java.util.Enumeration. (getResource): Rename to findResource. (findResource): New method. Used to be getResource. (getResourceAsStream): Deleted. (jarFileize): Extracted logic from URLClassLoader constructor into this new private method. (addURL): New protected method. (URLClassLoader): Call jarFileize. Use addElement instead of insertElementAt. (findResources): New method. * java/lang/ClassLoader.java: Import java.util.Enumeration. (getResource): Implement correct logic. (findResource): New method. (getResources): New method. (findClass): Create a ClassNotFoundException with the name of the class rather than nothing at all. (defineClass) Only throw ClassFormatError. * java/lang/Class.java (forName): New method. * java/lang/Class.h (forName): New method. * java/lang/natClass.cc (forName): New method. From-SVN: r37751 --- libjava/gcj/array.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'libjava/gcj') diff --git a/libjava/gcj/array.h b/libjava/gcj/array.h index 7c65924..b3ba993 100644 --- a/libjava/gcj/array.h +++ b/libjava/gcj/array.h @@ -17,21 +17,9 @@ extern "Java" { class __JArray : public java::lang::Object { -protected: - // FIXME: this is a hack to work around a bug in the g++ Java - // support. If we add a constructor with a jsize argument to - // JArray, then g++ complains. - __JArray () : length (0) - { - } public: - const jsize length; + jsize length; friend jsize JvGetArrayLength (__JArray*); - - // This probably shouldn't be public. - __JArray (jsize l) : length (l) - { - } }; template -- cgit v1.1