This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]