Static array length access bug in gcj
Jeff Sturm
jsturm@sigma6.com
Sat Apr 1 00:00:00 GMT 2000
Anand Krishnaswamy wrote:
> public class B {
> public static void main ( String[] args ) {
> int length = A.strArr.length;
Gcj still has trouble parsing ambiguous expressions like above (it has
to decide if A is a class or package name). It will compile if you
decompose the complex expression:
String[] array = A.strArr;
int length = array.length;
I reproduced this bug with a recent snapshot. I still don't see it
mentioned in gnats however. Can you file a bug report?
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl
--
Jeff Sturm
jsturm@sigma6.com
More information about the Java
mailing list