This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

other/1954: problem with gcj



>Number:         1954
>Category:       other
>Synopsis:       problem with gcj
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 12 14:06:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Joel@solidum.com
>Release:        unknown-1.0
>Organization:
>Environment:
linux
>Description:
i'm trying to generate an object file from a java file named test.java :

import java.util.*;
public class test{
  public static void main(String args[]){
    ArrayList tata = new ArrayList();
    tata.add(new Integer(345)); 
    Integer toto = (Integer) tata.get(0);
    System.out.println("HelloWolr"+toto.toString());
  }
}
by using the command :
gcj  -B /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/ -c test.java

but it seams that gcj those not recognize the ArrayList type, here is
the error message:

test.java:4: Type `ArrayList' not found in the declaration of the local
variable `tata'.
    ArrayList tata = new ArrayList();

thanks.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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