[jdom-interest] 1.1 Collections

Ken Rune Helland kenh at csc.no
Mon Mar 5 09:23:02 PST 2001

At 10:32 AM 3/5/2001 -0600, GB/DEV - Philip Nelson wrote:

> > It occurred to me that by adding the attached file to the
> > project, it would
> > be possible to add
> >   import com.sun.java.util.collections.*;
> > just after each
> >   import java.util.*;
> > And then get rid of a lot of ant trickery.
>It would still mess with my ide though.  I seems I would always have to have
>both jar files loaded in the IDE classpath to compile but the compiler
>wouldn't be able to tell which one to use.

If you import two classes/interfaces with the same
name the compiler will complain about ambeguity when
doing a reference declaration or new statement.

You woud have to use the complete classname with
the pacages to distinguisg between them.

Best Regards

More information about the jdom-interest mailing list