Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What in 1.5 is non-Java?




On 5 Oct 2004, at 6:42 AM, Todd O'Bryan wrote:

So, it seems that most of what Sun provides is just Java code for various added APIs with new releases of software.

Granted, version 1.5 has lots of changes in the actual language, but from what I understand, these changes are mostly cosmetic and do not change the actual bytecode the compiler produces. If that's the case, shouldn't someone be able to make the new 1.5 classes available to the JRE and provide 1.5 considerably earlier?

For that matter, since the complier is basically a command-line program, shouldn't the Solaris code basically translate without much changing to OS X?

Or is there more going on here than I think?

A while back, Sun provided an experimental release of some of the features of 1.5 (generics, enums, ...) that can be added to JDK 1.4


  http://java.sun.com/developer/earlyAccess/adding_generics/

If you use Fink, I've written a couple of packages to simplify the install. Because of licensing issues with getting the adding_generics file from Sun, they have not been accepted into Fink, but are available at:

http://sourceforge.net/tracker/? func=detail&aid=860837&group_id=17203&atid=414256
http://sourceforge.net/tracker/? func=detail&aid=860840&group_id=17203&atid=414256


Just put the files in your local tree, manually download the adding_generics-2_2-ea.zip file and go:

  $ fink install jsr14 jsr14adaptor

I successfully use this to compile Findbugs which was written for JDK 1.5

[I just noticed that they've updated it to version 2.4 now, so you might need to slightly modify the .info file to use the new version]

--
Rohan Lloyd

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.