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:
parent
190f08bd30
commit
ab3ec830b3
@ -1,5 +1,9 @@
|
|||||||
2003-10-22 Tom Tromey <tromey@redhat.com>
|
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:
|
PR libgcj/12656:
|
||||||
* libjava.lang/PR12656.java: New file.
|
* libjava.lang/PR12656.java: New file.
|
||||||
* libjava.lang/PR12656.out: New file.
|
* libjava.lang/PR12656.out: New file.
|
||||||
|
22
libjava/testsuite/libjava.lang/PR12416.java
Normal file
22
libjava/testsuite/libjava.lang/PR12416.java
Normal 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]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
libjava/testsuite/libjava.lang/PR12416.out
Normal file
1
libjava/testsuite/libjava.lang/PR12416.out
Normal file
@ -0,0 +1 @@
|
|||||||
|
public static final int A.a
|
Loading…
Reference in New Issue
Block a user