[PATCH] Fix for Dialog and FileDialog argument handling

Fernando Nasser fnasser@redhat.com
Wed Dec 31 23:30:00 GMT 2003

I wonder if this can be considered an obvious fix.

A quick check to javadocs show that we can pass null for title (Dialog, and by 
inheritance FileDialog) and that we must throw an exception if the FileDialog 
mode is not either SAVE or LOAD.

Happy New Year!

2003-12-31  Fernando Nasser  <fnasser@redhat.com>

         * java/awt/Dialog.java (constructor): Accept null title as per spec.
         * java/awt/FileDialog.java (constructor): Throw exception on invalid
         argument as per spec.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031231/d122bcbc/attachment.ksh>

More information about the Java-patches mailing list