OSDN Git Service

2005-07-05 Bryce McKinlay <mckinlay@redhat.com>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2005 21:09:57 +0000 (21:09 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2005 21:09:57 +0000 (21:09 +0000)
        PR java/19674
        * parse.y (interface_member_declaration): Allow empty statements in
        interface declarations.

2005-07-05  Bryce McKinlay  <mckinlay@redhat.com>

* testsuite/libjava.compile/PR19674.java: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101634 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/parse.y
libjava/ChangeLog
libjava/testsuite/libjava.compile/PR19674.java [new file with mode: 0644]

index 83861f1..bb7f08a 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-05  Bryce McKinlay  <mckinlay@redhat.com>
+
+        PR java/19674
+        * parse.y (interface_member_declaration): Allow empty statements in
+        interface declarations.
+
 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
 
        * Makefile.in (parse.o): Adjust dependencies.
index cda54c1..89e3e6e 100644 (file)
@@ -1320,6 +1320,7 @@ interface_member_declaration:
                { end_class_declaration (1); }
 |      interface_declaration   /* Added, JDK1.1 inner interfaces */
                { end_class_declaration (1); }
+|      empty_statement
 ;
 
 constant_declaration:
index 4d08213..146b9f3 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-05  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.compile/PR19674.java: New test.
+
 2005-07-05  Aaron Luchko  <aluchko@redhat.com>
 
        * gnu/classpath/jdwp/processor/StringReferenceCommandSet.java:
diff --git a/libjava/testsuite/libjava.compile/PR19674.java b/libjava/testsuite/libjava.compile/PR19674.java
new file mode 100644 (file)
index 0000000..2c23895
--- /dev/null
@@ -0,0 +1,7 @@
+public interface PR19674
+{
+  public interface Inside
+  {
+    void m(int p, int p2);
+  };
+}