diff options
author | Brian Jones <cbj@gnu.org> | 2003-04-17 12:32:29 +0000 |
---|---|---|
committer | Brian Jones <cbj@gnu.org> | 2003-04-17 12:32:29 +0000 |
commit | 9f094a1d9ed277488452bf1088597594b0357951 (patch) | |
tree | 17a0e423358d26488056b46e1392eb6b22082a2c /vm/reference | |
parent | a2cf7c59e7fdacd2aaa9a38d5bb1049223f40c41 (diff) | |
download | classpath-9f094a1d9ed277488452bf1088597594b0357951.tar.gz |
2003-04-17 Jeroen Frijters <jeroen@sumatra.nl>
* java/lang/Class.java
(constructor): Added transient field to cache constructor.
(newInstance): Fixed to consider non-public constructors as well,
added constructor object caching and implemented accessibility check.
* vm/reference/java/lang/VMClass.java (throwException): option method
used to throw exception without declaring it... useful for
duplicating Sun behavior in newInstance
* include/java_lang_VMClass.h: updated
Diffstat (limited to 'vm/reference')
-rw-r--r-- | vm/reference/java/lang/VMClass.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/reference/java/lang/VMClass.java b/vm/reference/java/lang/VMClass.java index 008b89664..a24a7b2fb 100644 --- a/vm/reference/java/lang/VMClass.java +++ b/vm/reference/java/lang/VMClass.java @@ -359,4 +359,9 @@ public final class VMClass static native Class loadArrayClass(String name, ClassLoader classloader) throws ClassNotFoundException; + /** + * Throw a checked exception without declaring it. + */ + static native void throwException(Throwable t); + } // class VMClass |