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 22:28:23 +1000, Chris wrote:
> 
> Why can't you just import java.util.* AND com.sun.java.collections.*
> and if you're using Java2 then you have an empty
> com.sun.java.collections package.

That would cause a compile time error in JDK 1.1.x or Java 2 without the
download, according to JLS 7.5.2.  And it would cause a compile time
error in Java 2 with the download if the simple name Vector is used,
according to JLS 6.5.5.1.  The only place it would work is JDK 1.1.x
with the download.

We spent quite some time trying to think of a clever hack that would
make our source compile and run in both JDK 1.1.x and Java 2.  The
conversation went exactly like this one that we are having.  Eventually,
none of our ideas worked, and we make incompatible changes to the source
and left JDK 1.1.x behind.

-- 
Weiqi Gao
weiqigao@networkusa.net


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