[Laszlo-dev] Re: PERFORCE change 34879 for review
phuduc at yahoo.com
Wed Nov 16 13:55:36 PST 2005
Yes and no. By default compiling source under 1.5
generates 1.5 version bytecode that will not execute
under the 1.4 JVM...you'll get
java.lang.UnsupportedClassVersionError in the
stacktrace. You can however, explicitly tell the 1.5
compiler to compile using 1.4 for the source and
target; this generated bytecode will run under the 1.4
JVM. But that comes with the caveat that you do not
use 1.5 specific features while specifying 1.4 for the
target and source...it won't compile if you do.
So basically no, you cannot compile 1.5 specific
features like generics, for-each, auto-boxing, etc,
and expect it to run under a 1.4 JVM.
--- P T Withington <ptw at laszlosystems.com> wrote:
> On 16 Nov 2005, at 14:49, Oliver Steele wrote:
> > On Nov 16, 2005, at 3:41 AM, P T Withington wrote:
> >> Are you successfully running on 5? Perhaps I
> should install the
> >> developer preview on my Mac and see if it is any
> faster than 1.4.
> >> Do we think we can require java 5 any time soon?
> It has a couple
> >> of nifty features that sure would make our code
> cleaner. Or do we
> >> have to support 1.4 for ever?
> > We can easily require the Java 5 compiler, if it's
> stable on Mac/
> > Windows/Linux. Can we take advantage of its
> features without
> > requiring a version five JVM for deployment?
> I don't know the answer to that. Perhaps someone
> else on the list does?
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
Yahoo! FareChase: Search multiple travel sites in one click.
More information about the Laszlo-dev