re PR java/19674 (Empty declaration through semicolon (;) causes compile failure)

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  Bryce McKinlay  <mckinlay@redhat.com>

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

From-SVN: r101634
This commit is contained in:
Bryce McKinlay 2005-07-05 21:09:57 +00:00 committed by Bryce McKinlay
parent 73f397d429
commit b226520a2d
4 changed files with 18 additions and 0 deletions

View 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.

View 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:

View 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:

View File

@ -0,0 +1,7 @@
public interface PR19674
{
public interface Inside
{
void m(int p, int p2);
};
}