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: Mon, 7 Apr 2003 12:09:30 +0200

Hi,

More fixes to java.lang.Class.

Change Log:

* java/lang/Class.java
(getSigners): If signers array is null, don't attempt to clone it
(internalGetFields): Implemented algorithm dictated by API docs and used
HashSet to prevent the same field showing up twice (if an interface is
implemented multiple times)
(getMethods): Changed comments to indicate that Object methods are
available from array types. This is in contrast with the API docs, but
it matches common sense and the Sun implementation.
(internalGetMethods): For consistency, changed to use HashMap instead of
java.util.HashMap.
(getField): Now uses internalGetField.
(internalGetField): New method to implement correct search algorithm.
(getMethod): Changed comments to indicate that Object methods are
available from array types. Changed to use internalGetMethod.
(internalGetMethod): New method to implement correct search algorithm.
(matchParameters): Don't use equals() to compare Class objects, they
have to be identical so == can be used.

Regards,
Jeroen

Attachment: class.patch
Description: class.patch


reply via email to

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