This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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 :)