This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new kawa snapshot 1.6.90


On 27 Apr 2001 06:56:52 -0500, Weiqi Gao wrote:
> Chris wrote:
> > 
> > The Java2 Collection classes are available for Java1. Therefore
> > I suggest you assume Java2, and if you've got Java1 - well you're
> > just going to have to download the Java2 Collections for Java1.
> > What's the problem with that?
> 
> The Collections API download uses the com.sun.java.collections namespace
> rather than the java.util namespace.  And there is no way to write one
> source file that uses the API and compiles in both environments.

Hmm, how about

--- file com/sun/java/collections/fictive.java ---
package com.sun.java.collections;
class fictive {}
--- end ---

and then put:

import java.util.*;
import com.sun.java.collections.*;

in each file that needs collections?
I know it's ugly and I just mention to show there is a way. :)

Cheers,
Ivan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]