This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Static array length access bug in gcj
- To: Anand Krishnaswamy <anandkr at nortelnetworks dot com>
- Subject: Re: Static array length access bug in gcj
- From: Jeff Sturm <jsturm at sigma6 dot com>
- Date: Fri, 07 Jan 2000 15:50:32 -0500
- CC: "'java-discuss at sourceware dot cygnus dot com'" <java-discuss at sourceware dot cygnus dot com>
- Organization: AppNet
- References: <F908F961B7CDD111BC720000F8073E4301E85CF9@crchy271.us.nortel.com>
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