Lots of "make check" regressions

Bryce McKinlay bryce@albatross.co.nz
Fri Feb 16 18:17:00 GMT 2001


Alexandre Petit-Bianco wrote:
> Alexandre Petit-Bianco writes:
>> > So here's a patch, I'm testing it.
>> Well, that gets me to:
>> === libjava Summary ===
>> # of expected passes 1587
> # of unexpected failures 6
> # of unexpected successes 17
> # of expected failures 114
>> I'll be checking that in shortly.

Thanks Alex, this seems to fix most of the regressions and I'm getting
similar results now. But did you notice the failure with Array_1?
$ gcj -C Array_1.java
$ gcj -c Array_1.class
Array_1.java: In class `Array_1':
Array_1.java: In method `Array_1.main(java.lang.String[])':
Array_1.java:12: Cannot find file for class int[][].
$ gcj Array_1.java --main=Array_1
$ ./a.out
true
Aborted (core dumped)
Basically this distills down to:
public class A1
{
 public static void main(String[] args)
 {
 int[] a = new int[1];
 int[] b = (int[]) a.clone();
 }
}
Looks like it could be a runtime problem, but this makes me suspicious
of the compiler:
$ gcj -C A1.java
$ java A1
Exception in thread "main" java.lang.IllegalAccessError: try to access
method [I.clone()Ljava/lang/Object; from class A1
 at A1.main(A1.java:6)
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /