Originally Posted by
darkestfright
The compiler seems to accept <E extends Comparable, Cloneable>, but as soon as it reaches
I get:
...
1 error
[/CODE]
Probably because Cloneable is en empty interface, so if you retrieve a Cloneable interface from something you can't call clone unless you are doing so on the object that implements a public form of the method clone. I just played around with it and the following seemed to work for my short test I tried....
public class YourClass <T extends Comparable<T> & Cloneable>{
}