Bug 22214 - Java code with Vector<Double> does not compile with GCJ
Summary: Java code with Vector<Double> does not compile with GCJ
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.0.0
: P1 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 28067
Blocks: 22091
  Show dependency treegraph
 
Reported: 2005-06-28 08:52 UTC by Sid
Modified: 2007-01-09 20:47 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-06-28 10:37:02


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sid 2005-06-28 08:52:33 UTC
GCC version 4.0.0 20050324 (prerelease)
Platform: win32

Java code:
------------------------------------------------------------
import java.util.*;

public class X {
    public void f() {
	Vector<Double> V = new Vector<Double>();
    }
}
------------------------------------------------------------
$ gcj -C  X.java
X.java:5: error: ':' expected.
        Vector<Double> V = new Vector<Double>();
                 ^
1 error
Comment 1 Ranjit Mathew 2005-06-28 10:37:02 UTC
Yes, GCJ doesn't support generics yet.
Comment 2 Tom Tromey 2007-01-09 20:47:53 UTC
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.