We recently changed our build system to force you to use javac 1.5. While you can build the system with javac 1.6 (and you can certainly build apps with 1.6), many members of the Android team still need to use javac 1.5 for various reasons (mostly because Mac OS X.) If someone uses javac 1.6, we are at risk of checking in code that does not compile on javac 1.5 (use of @Override on interface methods.) This has been the cause of broken builds several times in the past. While we could simply use -target 1.5 -source 1.5 with javac 1.6, we decided to not take risk and make sure everyone uses a similar compiler. Thus the enforcement of javac 1.5.
On Mon, Jul 27, 2009 at 5:39 AM, Fred Grott(shareme)<fred.gr...@gmail.com> wrote: > > I seem to made a good Guess..Apache Harmony targets sun java 5 > compliance.. > > Fred Grott > http://mobilebytes.wordpress.com > > > > On Jul 27, 6:59 am, Mark Murphy <mmur...@commonsware.com> wrote: >> Chih-Wei wrote: >> > Recently the build system will check if java version is 1.5, and stop >> > if the version mismatch. >> >> No, it doesn't. >> >> It probably checks for the Sun compiler, since the system requirements >> say that is required: >> >> http://developer.android.com/sdk/1.5_r3/requirements.html >> >> But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have >> for some months now, on Ubuntu. It is definitely not limiting you to >> Java 1.5. >> >> It may be limiting you from using non-standard JDKs -- I would guess >> that is a matter of reducing testing and support costs. So long as you >> (and perhaps other like-minded folk) are willing to take on the burden >> of testing and support for OpenJDK, there is nothing really stopping you >> from trying to use it. >> >> -- >> Mark Murphy (a Commons >> Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to *Advanced* Android Development_ >> Version 1.0 Available! > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---