[multiple changes]
authorMark Wielaard <mark@klomp.org>
Sun, 27 Jun 2004 12:10:12 +0000 (12:10 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Sun, 27 Jun 2004 12:10:12 +0000 (12:10 +0000)
2004-06-27  Mark Wielaard  <mark@klomp.org>

       * java/awt/EventQueue.java (postEvent): Throw NullPointerException
       when argument is null.

2004-06-26  Mark Wielaard  <mark@klomp.org>

       * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
       (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
       GetMethodID call.
       (cancel_clicked): Likewise.

From-SVN: r83731

libjava/ChangeLog
libjava/java/awt/EventQueue.java
libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c

index cf9ae71ee3ed8be42340e9f034bf77e44e67ec5d..71ab0bfc1af691e94d0870243818fd5f6487fc8e 100644 (file)
@@ -1,3 +1,15 @@
+2004-06-27  Mark Wielaard  <mark@klomp.org>
+
+       * java/awt/EventQueue.java (postEvent): Throw NullPointerException
+       when argument is null.
+
+2004-06-26  Mark Wielaard  <mark@klomp.org>
+
+       * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
+       (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI
+       GetMethodID call.
+       (cancel_clicked): Likewise.
+
 2004-06-26  Andreas Tobler  <a.tobler@schweiz.ch>
 
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
index 5cdfa634265c6cba357964a90f8882413515201c..1c794d4387057178c04e016d498a0fb1b2a36d91 100644 (file)
@@ -161,6 +161,9 @@ public class EventQueue
    */
   public synchronized void postEvent(AWTEvent evt)
   {
+    if (evt == null)
+      throw new NullPointerException();
+
     if (next != null)
       {
         next.postEvent(evt);
index 92e2de3320503973f9256c44b125b081443045cb..add9ef558ca02bbdd57b9b3eb84e135f3a7b7c59 100644 (file)
@@ -198,7 +198,7 @@ ok_clicked (GtkButton *button __attribute__((unused)),
       jclass cx = (*gdk_env)->GetObjectClass (gdk_env, peer_obj);
       hideID = (*gdk_env)->GetMethodID (gdk_env, cx, "gtkHideFileDialog", "()V");
       gtkSetFilenameID = (*gdk_env)->GetMethodID (gdk_env, cx,
-                                   "gtkSetFilename", "(Ljava.lang.String;)V");
+                                   "gtkSetFilename", "(Ljava/lang/String;)V");
       isIDSet = 1;
     }
     
@@ -230,7 +230,7 @@ cancel_clicked (GtkButton *button __attribute__((unused)),
       jclass cx = (*gdk_env)->GetObjectClass (gdk_env, peer_obj);
       hideID = (*gdk_env)->GetMethodID (gdk_env, cx, "gtkHideFileDialog", "()V");
       gtkSetFilenameID = (*gdk_env)->GetMethodID (gdk_env, cx,
-                                   "gtkSetFilename", "(Ljava.lang.String;)V");
+                                   "gtkSetFilename", "(Ljava/lang/String;)V");
       isIDSet = 1;
     }