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]

Patch: DateFormat.parse exception and SimpleDateFormat Vector->ArrayList


This patch updates DateFormat.parse() to throw an IllegalArgumentException if the wrong type of object is passed, matching the JRE behaviour.

It also converts SimpleDateFormat to use ArrayList instead of Vector for the "tokens" array, which is somewhat more efficient.

Regards

Bryce.

Attachment: Format.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]