Parser bug
MoT
Sebastien.Villemot@ens.fr
Fri Apr 9 05:18:00 GMT 1999
Hi!
There seems to be a little bug in the .java parser. The following program
is rejected:
Noustoulight:~$ cat gni.java
class gni {
public static void main(String[] args)
{
int n = 5;
int[] gnu = new int[10];
gnu[n]++;
}
}
Noustoulight:~$ gcj --main=gni gni.java -o gni
gni.java: In class `gni':
gni.java: In method `main(java.lang.String[])':
gni.java:6: Invalid argument to `++'.
gnu[n]++;
^
1 error
Compiling the native binary from the .class file works correctly.
Congratulations for gcj, it's a major contribution to the open source
community :)
More information about the Java
mailing list