diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 03:58:56 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 03:58:56 +0000 |
commit | cb07068ba10b64b32548b7ccc1c2baa45f96d72c (patch) | |
tree | 271c97444f9f312ff7d98c59c17993b4b9218ea3 /libjava/gcj | |
parent | e0fe274b54e87c9429d1111e1e1f028207fb94ef (diff) | |
download | gcc-cb07068ba10b64b32548b7ccc1c2baa45f96d72c.tar.gz |
2000-11-25 Anthony Green <green@redhat.com>
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37751 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gcj')
-rw-r--r-- | libjava/gcj/array.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libjava/gcj/array.h b/libjava/gcj/array.h index 7c659241681..b3ba9938228 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<T>, 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<class T> |