Bugs item #1002888, was opened at 2004-08-03 13:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1002888&group_id=44253
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parameterized class that implements several interfaces
Initial Comment:
If you wish to parameterize a class with a type T, that
implements the two interfaces Comparable and
Serializable, there is a problem in distinguishing
between a second parameterized class S that you might
want to have. Sun decided to use the "&" when
implementing several interfaces here. And they are
using the extends keyword. This is all legal syntax in
the Java 1.5 beta 3 that we are now using. But the "&"
is not currently supported in DynamicJava.
Example;
import java.io.Serializable;
public class A <T extends Comparable<T> & Serializable, S>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1002888&group_id=44253
|