This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: invoke-static
Jim White wrote:
Also I believe that most Open Source JVM's are only 1.1.
Most Open Source JVMs use the Classpath libraries, so they
probably support Java2 collections, for example. But of course
things like Class.forName, ThreadLocal, and java.lang.ref depend
on VM-specific native methods, where the implementation status
may vary.
I do want the out-of-the-box sources to work with GCJ 3.3,
and I'd like them to work on Kaffe. Other Open Source JVMs
are obscure enough I think that people can use select-java1.
But isn't this something that can be handled with a switch? We could
have (or is there already and I haven't noticed) a target language
switch like javac's -target for this sort of thing.
How would that help a JVM that does not implement ThreadLocal or the
3-argument Class.forName (for example) to compile (or run) Kawa source
code that uses those features?
--
--Per Bothner
per at bothner dot com http://per.bothner.com/