This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI Patch: Hashtable and HashMap


Hashtable would incorrectly accept null values in the event it was initialized using the Map constructor from a Map that does contain null values, because it used putAllInternal() instead of putAll(). I've added a mauve check to test for this. Looking at the stack trace the JDK gives for this test, the comment on putAllInternal is wrong, so I updated HashMap as well.

Regards

Bryce.

Attachment: Hashtable-2.patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]