re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.)

PR libgcj/12416:
	* libjava.lang/PR12416.out: New file.
	* libjava.lang/PR12416.java: New file.

From-SVN: r72817
This commit is contained in:
Tom Tromey 2003-10-22 19:28:15 +00:00 committed by Tom Tromey
parent 190f08bd30
commit ab3ec830b3
3 changed files with 27 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2003-10-22 Tom Tromey <tromey@redhat.com>
PR libgcj/12416:
* libjava.lang/PR12416.out: New file.
* libjava.lang/PR12416.java: New file.
PR libgcj/12656:
* libjava.lang/PR12656.java: New file.
* libjava.lang/PR12656.out: New file.

View File

@ -0,0 +1,22 @@
interface A
{
int a = 0;
}
interface B extends A
{
}
interface C extends A
{
}
public class PR12416 implements B, C
{
static public void main (String[] unused)
{
java.lang.reflect.Field[] fields = PR12416.class.getFields();
for (int i = 0; i != fields.length; ++i) {
System.out.println (fields[i]);
}
}
}

View File

@ -0,0 +1 @@
public static final int A.a