Static array length access bug in gcj
Anand Krishnaswamy
anandkr@nortelnetworks.com
Sat Apr 1 00:00:00 GMT 2000
Title: RE: Static array length access bug in gcj
Thanks for the workaround. It works fine for my needs. I did file the bug report and here's the information:
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Thank you very much for your problem report.
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ It has the internal identification `gcj/129'.
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ The individual assigned to look at your
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ report is: apbianco.
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >Category:ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ gcj
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >Responsible:ÃÂ ÃÂ ÃÂ apbianco
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >Synopsis:ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Static array length access bug in gcj
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >Arrival-Date:ÃÂ ÃÂ Fri Jan 07 12:20:00 PST 2000
Anand
-----Original Message-----
From:ÃÂ ÃÂ Jeff Sturm [SMTP:jsturm@sigma6.com]
Sent:ÃÂ ÃÂ Friday, January 07, 2000 2:51 PM
To:ÃÂ ÃÂ ÃÂ ÃÂ Krishnaswamy, Anand [RICH2:2K25:EXCH]
Cc:ÃÂ ÃÂ ÃÂ ÃÂ 'java-discuss@sourceware.cygnus.com'
Subject:ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Re: Static array length access bug in gcj
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