classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java.lang.Class patches


From: Jeroen Frijters
Subject: RE: java.lang.Class patches
Date: Wed, 9 Apr 2003 14:17:54 +0200

Hi,

Yet another java.lang.Class patch.

Change Log

* 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.
Exceptions thrown by constructor are rethrown without the wrapping
InvocationTargetException. This is a little odd (because it can cause
newInstance() to throw checked exception that aren't declared), but it
is compatible with Sun's implementation.

* vm/reference/java/lang/VMClass.java
(throwException): Added native method to throw checked exceptions
without declaring them.

Regards,
Jeroen

Attachment: class.patch
Description: class.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]