This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/1954: problem with gcj
- To: gcc-gnats at gcc dot gnu dot org
- Subject: other/1954: problem with gcj
- From: joel at solidum dot com
- Date: 12 Feb 2001 22:04:37 -0000
- Reply-To: joel at solidum dot com
>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: