Eduardo Issao Ito [[EMAIL PROTECTED]] wrote:
> 
> Why not make Java 2 also use com.sun.java.util.collections?
> It is the same as java.util.Collections.
> 
True, the collection classes are the same, but the JDK 1.1 collections package
includes its own version of 'Comparable'. This conflicts with 
java.lang.Comparable, and therefore causes the ambiguous references during
compilation. It would be possible to work around this problem if java.lang 
weren't implicitly imported by the compiler or if java.lang.Comparable were in 
a different package (e.g., java.util), but no such luck. :(

-- 
Christopher Elkins


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to