summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2003-04-17 12:32:29 +0000
committerBrian Jones <cbj@gnu.org>2003-04-17 12:32:29 +0000
commit9f094a1d9ed277488452bf1088597594b0357951 (patch)
tree17a0e423358d26488056b46e1392eb6b22082a2c /vm
parenta2cf7c59e7fdacd2aaa9a38d5bb1049223f40c41 (diff)
downloadclasspath-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')
-rw-r--r--vm/reference/java/lang/VMClass.java5
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