10 ms·
Google confirms next Android won’t implement Oracle's proprietary Java APIs
- tracker1 11y agoHow does this obviate the patent issues? Or is there patent indemnification from Oracle(or formerly with Sun) with the OpenJDK license?
- grizzles 11y agoIt makes sense. It future-proofs androids ongoing legal viability. If they haven't yet settled with Oracle then it also strengthens their negotiating position on the issue of damages for copying API signatures. Thanks Appeals court! It also makes sense in light of Google's recent announcement that they are going to be shipping a desktop android os with chrome on it soon. Unlike in 2008, Google no longer has to worry if phone vendors care about whether the runtime is GPL+classpath, which was probably the original motivation for an apache licensed runtime. There is still however, the mystery of why the commit is missing the openjdk LICENSE file, or any mention of Oracle at all.
- rogerthis 11y agoI couldn't figure out exactly which version of OpenJDK code they imported, but it's certainly less than 1.8.
- syjer 11y ago1.7: as java.util.Objects is present ( https://android.googlesource.com/platform/libcore.git/+/master/ojluni/src/main/java/java/util/Objects.java https://android.googlesource.com/platform/libcore.git/+/mast... )
- JustSomeNobody 11y agoI wish they could get away from java. I like the language and the platform, but maybe something like go would be better.
- srikz 11y agoOne language which seems to be under consideration is Dart. Check out Flutter[1] [1]https://github.com/flutter/flutter https://github.com/flutter/flutter
- VeilEm 11y agoCompletely subjective here but no Go would not be better. Java has generics. Java has more support, more tooling and Android's existing eco system is fully mature. If they started out from scratch it would result in worse language with less tooling and a smaller ecosystem.
- JustSomeNobody 11y agoWell, I did say I wish they "could".
- draw_down 11y agoOr Swift.
- incepted 11y agoWe already have something better than both Java and Go and it runs flawlessly on Android: Kotlin.
- namelezz 11y agoWill this introduce multiple version issues into JVM ecosystem like Python 2 vs Python 3?
- narrator 11y agoThis is a huge win for open source if Google is going to build on OpenJDK. The implicit patent grants are huge! They can even pour resources into building a better GPL'd run time. So much of Google's internals are written in Java that they would certainly benefit from this. Looks like another LibreOffice/OpenOffice Jenkins/Hudson split in the making. You'd think Oracle would have learned by now. I wonder if they'll fork the Java language standard? That would seriously damage Oracle if it got traction. They couldn't use Oracle's trademarks but people are familiar enough now with Dalvik that they could just introduce Dalvik Server Edition and people would lap it up.
- HappyTypist 11y agoOpenJDK is under GPLv2. There are no patent grants.
- sangnoir 11y agoYour statement is confusing (and possibly wrong depending on how it's read). There are no patent grants in GPLv2. However, OpenJDK carries an automatic patent grant (outside of GPLv2).
- avz 11y agoThis battle is very important: two questions it will answer are these: 1. Are APIs copyrightable? 2. If APIs are copyrightable, does providing an alternative implementation of someone else's API (the way Android provided an alternative implementation for some of the standard Java APIs) constitute a fair use [1]? Google and Oracle settling this out of court would be very bad news: it would leave the above issues in limbo. That is a lot of legal uncertainty for any project that may wish to provide an alternative implementation of someone else's API. [1] https://en.wikipedia.org/wiki/Fair_use https://en.wikipedia.org/wiki/Fair_use EDIT: formatting
- tzs 11y agoThat issue is going to be in limbo even if they don't settle out of court, unless the Supreme Court eventually takes the case (or Congress steps in and modifies copyright law to clarify this). That's because this case is both a patent case and a copyright case, and that messes up the normal appeals path. Copyright precedent in the 9th Circuit is set by the 9th Circuit Court of Appeals and by the Supreme Court, and that is also the normal appeals path from the district courts in the 9th Circuit. When a case involves patents the appeals path is to the Court of Appeals for the Federal Circuit and then to the Supreme Court. CAFC rulings on patent issues set precedent for all district courts. Not so for CAFC rulings on copyright issues. 9th Circuit district courts, for instance, considering API copyrights in the future will continue to look to what the 9th Circuit Court of Appeals has said on this. What the CAFC has said is no more binding on them than what the 5th Circuit or the 7th Circuit or any other non-9th Circuit, non-Supreme Court court has said. This is a pretty messed up situation. When CAFC gets something like a copyright issue that comes along for the ride on a patent issue, they are supposed to follow the precedent of the circuit from whence the case came on that non-patent issue. If they botch that, there is nowhere to appeal to except the Supreme Court. But since the CAFC ruling on the non-patent issue won't be binding on anyone except the parties in that one case, it is not likely that the Supreme Court will take the appeal. Eventually, the issue will arise again in that same district, but without being attached to a patent case, and then can be appealed to the Court of Appeals for that circuit where they can clarify what the correct interpretation is in their circuit.
- wcummings 11y ago
- deleted 11y ago[deleted]
- stefantalpalaru 11y agoRelevant HN discussion, so we go full circle: https://news.ycombinator.com/item?id=10803775 https://news.ycombinator.com/item?id=10803775
- mbreese 11y agoCrazy... here we have a Hacker News comment on a Venture Beat article about a Hacker News post about a Google code commit.
- scrollaway 11y agoSo full circle would actually be referencing this discussion in an android commit. :)
- ethbro 11y agoDon't forget creating a wikipedia article referencing both this discussion and the commit as sources.
- mtgx 11y agoIs this really Google's best move to protect itself from Oracle? How safe is OpenJDK from Oracle?
- curt15 11y agoOpenJDK is the reference implementation of Java. The whole point of its GPL license is to ensure that the project forever remains with the community.
- gst 11y agoOpenJDK is licensed under the GPL. So as long as Google doesn't violate the terms of the GPL it's quite safe to use it. In addition, the GPL provides an implicit patent grant to the code: https://copyleft.org/guide/comprehensive-gpl-guidech7.html https://copyleft.org/guide/comprehensive-gpl-guidech7.html
- scrollaway 11y agoWhat does this mean for OpenJDK? Will Google now be working on it and improving it? From what I gathered in the previous discussion, it's not a drop-in replacement - they made several changes to OpenJDK already.
- tweakz 11y agoYes, Google's statement in the article suggests Google will be working on OpenJDK, at least more than they already have been.
- ethbro 11y agoSo, what's the most evil Oracle can be against future versions of Android given this? And who actually guides the Java roadmap? The OpenJDK trademark grant (http://openjdk.java.net/legal/openjdk-trademark-notice.html http://openjdk.java.net/legal/openjdk-trademark-notice.html) seems to spin on whether or not "the Software is a substantially complete implementation of the OpenJDK development kit or runtime environment source code retrieved from a single Website, and the vast majority of the Software code is identical to that upstream Original Software"? What's to stop Oracle from deciding that future Java roadmaps are going to exclude Android-specific commits? Neither IBM nor Apple's interests seem particularly aligned with Google here (I'm assuming they throw some kind of weight in the OpenJDK politics).
- dkarapetyan 11y agoTime and time again we see such short term thinking does not pay off. It wouldn't be evil on Oracle's part to do that, it would be just plain stupid. The resurgence of Microsoft shows that being open and transparent is the actual winning strategy. Goodwill among developers is not a quantifiable thing but it makes a huge difference.
- ebbv 11y ago> The resurgence of Microsoft shows that being open and transparent is the actual winning strategy. Or at least being a little bit open and transparent enough to build good will, anyway. There's a lot of non-open, non-transparent, non-friendly things about Windows 10.
- 0xFFC 11y agoI am so sorry, i was going to upvote you.but because of my small touch screen i down voted you.i am really sorry. BTW i have exact same question.
- dang 11y agoWe detached this subthread from https://news.ycombinator.com/item?id=10809557 https://news.ycombinator.com/item?id=10809557 and marked it off-topic.
- tedivm 11y agoI have upvoted to counteract your downvote. Order is now restored in the universe.
- Nilzor 11y agoI have also upvoted in case you wanted to upvote yourself. How's the balance now?
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- ethbro 11y agoAs someone who had a neutral opinion of the importance of parent comment, I instead upvoted, thereby proxying and honoring your original intent in combination with tedivm.
- yohui 11y agoI wish there was an option to disable the downvote arrow on comments, or only show the downvote arrow if I click the direct link for a comment (like with flagging comments). I'd rather not create a new HN account just to read and reply on mobile without the risk of accidentally hitting a downvote button while scrolling or trying to upvote a comment.
- patrickaljord 11y agoTitle is confusing, OpenJDK does belong to Oracle and Google is going to use it. It's just that the OpenJDK is GPL.
- dang 11y agoThe title says Google won't use Oracle's proprietary APIs, which seems clear enough.
- comex 11y agoThe original article title was changed to "Google won't implement Oracle's proprietary Java APIs", which makes more sense. This isn't about some special new APIs, it's about Google switching to the OpenJDK for the core APIs from its Harmony-based reimplementation.
- dang 11y agoOk, we'll follow suit.
- AnimalMuppet 11y agoAnd the GPL will make it really hard for Oracle to prevent Google from using it in Android.
- drdaeman 11y agoBut doesn't Google tries to avoid GPL? I think they're pretty anti-GPL with Android, and have some rules against inclusion of GPLed components there, besides the kernel. I think the whole userspace is under non-copyleftish BSD/MIT/etc.
- asuffield 11y ago(Tedious disclaimer: not speaking for anybody else, my opinion only, etc. I'm an SRE at Google.) > But doesn't Google tries to avoid GPL? No. > I think they're pretty anti-GPL with Android, and have some rules against inclusion of GPLed components there, besides the kernel. OEMs don't want their hardware support to be GPL-encumbered. See https://source.android.com/source/licenses.html https://source.android.com/source/licenses.html
- 0xFFC 11y agoGoogle not buying sun was huge mistake.at least they could sell it after keeping java.something like what they did with Motorola. They kept all patent's. They could have done the same with java.
- protomyth 11y agoConsider Google bought Motorola for $12.5B[1] and Oracle bought Sun for $5.6 billion[2], I would think Google buying Sun would have been a better deal than buying Motorola. 1) http://bgr.com/2014/02/13/google-motorola-sale-interview-lenovo/ http://bgr.com/2014/02/13/google-motorola-sale-interview-len... 2) https://en.wikipedia.org/wiki/Sun_acquisition_by_Oracle https://en.wikipedia.org/wiki/Sun_acquisition_by_Oracle
- bitmapbrother 11y agoPerhaps, but it's not like Google lost much by buying Motorola. "I think the Motorola transaction has been a success for us. Financially, we bought the asset for $12.5 billion. It had $3 billion in cash; we were able to sell the Home division for $2.5 billion; we ended selling the handset division for $3 billion. There were some other tax assets as well. When you work through the math, you realize we spent between $2.5 billion and $3.5 billion for the patent assets. At the time, the nearest comparable transaction was the Nortel patent auction where Microsoft and Apple teamed up to buy that asset for $4.5 billion. And there’s a good argument that the Motorola patent portfolio is a better portfolio."
- robotresearcher 11y agoNice informative quote is missing an attribution. Google finds it in an interview in Forbes with Dan Harrison, Google's head of M&A.
- spinchange 11y agoMotorola was threatening to start suing other Android ODMs which would have wrought havoc from within the ecosystem. IIRC, Sun was a lot more forgiving and basically willing to look the other way at Google playing fast & loose with Java stuff. It was not yet in the offing that a) Sun was for sale, or b) Oracle would be the one to buy them within 2-3 years almost exclusively to bludgeon Google with the IP. In hindsight, it would have made all the sense in the world. Back then, I don't think it was clear it would be necessary and would have surprised people in a negative way probably ("Google's going to sell SPARC servers, now?" -- remember IP was not the stated reason for buying Motorola even if it's obvious that is what it was about now - at the time Google claimed to want to make devices). Connecting the dots forward is hard.
- Klathmon 11y agoSo does this mean that Android will be licensed under the GPL going forward?
- guelo 11y agoParts of it yes. Just like the Linux kernel in Android is GPL.
- r3bl 11y agoThere's a bunch of GPL (or at least, open source) code in Android. Just go to Settings -> About phone -> Legal information -> Open source licenses and you'll see that lots and lots of parts of Android are open sourced (most of them using some version of GPL).
- yonran 11y agoIf you distribute OpenJDK, then only the modules that are “derived from or based on” OpenJDK are required to be GPLv2[+CE] (the Classpath Exception allows you to link the library with an independent closed-source library). So I think it would only require platform/libcore itself to be released under GPLv2+CE. Probably manufacturers don’t need to modify platform/libcore too much anyway. GPLv2+CE: http://openjdk.java.net/legal/gplv2+ce.html http://openjdk.java.net/legal/gplv2+ce.html Again, the commit in question: https://android.googlesource.com/platform/libcore.git/+/51b1b6997fd3f980076b8081f7f1165ccc2a4008 https://android.googlesource.com/platform/libcore.git/+/51b1...
- Scarbutt 11y agoNot a Java dev but what are these proprietary Java APIs? doesn't oracle jdk and openjdk share the same APIs?
- cpncrunch 11y agoI think the article is incorrect. I suspect they meant "implementation" rather than "APIs". As I understand it, OpenJDK has the same APIs (otherwise Google wouldn't be able to just switch to OpenJDK).
- benwilber0 11y agofrom my understanding, openjdk is insulated from the supposed copyrighted api issue, though they still struggle with obtaining a test suite that can certify their implementation as "compatible", to some degree or another.
- icebraining 11y agoNo, OpenJDK is the actual reference implementation. It's Apache Harmony that couldn't get the TDK.
- benwilber0 11y agoah, thanks for the clarification
- igravious 11y agoSo why didn't they go this direction at the start?
- Reason077 11y agoOpenJDK didn't exist in the early days of Android, so it wasn't an option. Sun/Oracle created OpenJDK, effectively "open sourcing" Java in response to the popularity of clean-room Java reimplementations like GNU Classpath and Apache Harmony. Why Android did not choose to adopt OpenJDK until now, however, is a mystery known only to Google. Maybe it was just a lot of work, technically speaking, to do so.
- ubertaco 11y ago>When we asked Google why now, the company pointed to to the release of Java 8 last year and the introduction of new language features such as lambdas. As such, Google wants to put more resources into OpenJDK where the team can have a bigger impact on new features and improvements. That’s the developer story Google is pitching in any case, but there’s a massive legal narrative here that can’t be forgotten. Yes, the legal narrative is certainly key here, but as a dev I'm all for a move that brings Java 8 to Android instead of just Java 6. It's about time!
- kuschku 11y agoYou wanna know what I did? 1. Use RetroLambda 2. Write your own implementation of Streams and Optionals, compatible with RxJava and Guava 3. Use in your project 4. Profit
- benwilber0 11y agowell that doesn't really scale at all though
- s73v3r 11y agoNo one should expect everyone to do that. This is basic, platform level stuff, that Google should be providing, unless they want Android to stagnate and whither away.
- 11y ago
- deskamess 11y agoI am kinda surprised they have not proposed a language (new or existing non-Java) yet for their phones. I thought this would at least be in the plans so they do not have to rely on Java alone. A big task for sure. Perhaps they are waiting for Web Assembly to become mainstream. Then do a side-by-side: 1) Web Assembly -> new VM 2) Existing Java Apps -> Dalvik With 2) eventually being phased out. Edit: As pointed out below it is no longer Dalvik, but ART.
- kuschku 11y agoWhich would be a horrible end for everyone. (Also, after they’ve just replaced Dalvik with ART, this isn’t very likely)
- Nullabillity 11y agoJVM bytecode or Dalvik bytecode already fill the purpose of WebAssembly.
- dkarapetyan 11y agoI think they were trying something with Dart but it didn't get enough traction. If it had then it might have become a first class citizen on Android.
- discreteevent 11y agoThey still are. Have a look at flutter.io
- ufmace 11y agoSeems like it would be massively messy to move to anything but another JVM language, considering the long history of Java-based Android. Matter of fact, I'm having trouble thinking of an example of any major platform making such a fundamental change and surviving. Maybe Apple switching from OS9 to OSX/Cocoa. They started building the Carbon compatibility layer, what, 2-3 years ahead of the switch, and IIRC the API is still available today, though considered deprecated. And no version of MacOS had anywhere near the adoption level or number of third-party apps as Android does.
- curt15 11y agoIt's also interesting to note that this is essentially the outcome advocated by the FSF in its amicus brief to the federal circuit. https://www.eff.org/cases/oracle-v-google https://www.eff.org/cases/oracle-v-google
- deleted 11y ago[deleted]
- sauere 11y agoQuestion: why didn't Android use OpenJDK in the first place?
- sparky_ 11y agoWell they based most of their original implementation on Apache Harmony. Just speculating here but it may have been due to dates. OpenJDK's first release was ~2007 but IIRC the original pre-Google Android team started work in 2003 or 2004.
- yarrel 11y agoGPLphobia. This is a good study in why that's irrational.
- yincrash 11y agoNo, OpenJDK didn't exist when Android was in development.
- wmf 11y agoOpenJDK starts much slower and consumes more memory than Dalvik and some official Java APIs are terrible (e.g. AWT); it's likely that Android would have failed if it used official Java.
- zackb 11y agoI'd love to see a bigger push for golang support for Android.
- scotty79 11y agoI'd like to see Google pouring vast resources into OpenJDK development and making Oracle Java obsolete. That's the karma they should get for being Oracle.
- syjer 11y agoOracle Java is based on OpenJDK and certified by Oracle. So I don't see how pouring vast resources into OpenJDK would make "Oracle Java" obsolete.
- scotty79 11y ago> Oracle Java is based on OpenJDK I don't think that's exactly the case. Oracle Java has some features that OpenJDK doesn't have. What if Google accelerated development of Open JDK beyond what Oracle is brewing so far that at some point Oracle will have a choice of just taking OpenJDK and stamping their brand on it (probably illegal) or being forgotten Java-wise?
- mike_hearn 11y agoOracle runs OpenJDK. They aren't separate projects.
- sixbrx 11y agoGoogle would only need to fork and rename though, then Oracle wouldn't be running it. If using the fork were a requirement to running on Android, that's a big draw. I'm not sure Google is really interested in that though.
- guelo 11y agoI think the HN speculation yesterday that there's been a settlement is wrong. This is Google moving to protect itself going forward after it lost the case in the Federal Circuit. That case was sent back down to the lower court only for ruling if Google's use of Oracle's now apparently copyrighted APIs consists of "Fair Use". Since APIs are now copyrightable I don't see how copying thousands of APIs could possibly consist of "Fair Use" so it's looking like Oracle is going to get paid, big time. And Oracle will probably demand a royalty for every phone sold. So in order for Google to avoid paying that royalty going forward they need to move to OpenJDK quickly with their next release, with the belief that using Oracle's GPL JDK implementation also gives them a license to the API. Problem for Google is that OEM and user adoption of new Android versions is slow, it takes several years for phones with old versions to stop selling, and Oracle will get a cut of each sale. In any case, I think this is a healthy development for Java developers and the Java ecosystem. Java has been effectively forked between Android and other uses and this will unify the language again. And it will bring the cool new Java 8 features to Android.
- cwyers 11y agoThe answer is, it's fair use if you are trying to be compatible - DR-DOS could be considered a fair use copy of the MS-DOS APIs, because that's the only way to run DOS programs. But ordinary Java programs don't run on Android and Android programs don't run on the JVM. So Google lacks a fair use defense as far as I can tell.
- saurik 11y agoI am sorry to see your comment was downvoted, as it is quite correct: if you read the actual court documents, this is the argument that was made surrounding fair use, and despite their attempts to lie and say they were, Google could not be shown to be trying to build a compatible product (as it is pretty obvious even to non-technical people that they aren't and never intended to even try). Back when this was first being published I wrote a much longer comment pointing out all of the intricacies and quoting the court opinion. https://news.ycombinator.com/item?id=7723853 https://news.ycombinator.com/item?id=7723853
- 11y ago
- Eleutheria 11y agoI wish they had an agreement with Apple for the next 10 years for the use of Swift so we could write our apps once and run everywhere. But we all know the NIH syndrome, which is a shame since everybody is adopting Google's web extensions standards and they should adopt whatever is best for all in other technologies too.
- Grazester 11y agoSwift? As an Android Developer I think it would not be a great idea. C# maybe a better language(wasn't that open sourced?). It much closer to java than swift is and would allow people like me to move cover over faster. I started off as a C# developer and had not done any real work in java before. I was able to move my C# code(couple thousand lines of code) over to Java in a matter of hours. Anyway I do not wish or hope for a language change period.
- Reason077 11y agoGiven that you know C# and Java, you should not have a great deal of trouble learning other C-family languages, including Swift. Objective-C was/is a bit of an exception to this, as it's "funky" syntax could be a bit intimidating to developers coming from other languages - one of the motivations for Apple's switch to Swift was to address this.
- exabrial 11y agoYou do realize the JVM and related bytecode have been along around _a lot longer_ than Swift.... right?
- cwyers 11y agoAnd,uh,wasn't invented by Google.
- aljones 11y agoThey wouldn't need an agreement with Apple.
- deleted 11y ago[deleted]
- bitmapbrother 11y agoI thought this was rather interesting: OCTLA Signatories List The following organizations and individuals have signed the OpenJDK Community TCK License Agreement (OCTLA) and been granted access to the JCK. Signatories for Java SE 6 Azul Systems, Inc. CACAO - Christian Thalinger Cambridge Software Labs - Edward Nevill Canonical - Matthias Klose Google Red Hat Stratus Technologies tarent Yozosoft http://openjdk.java.net/groups/conformance/JckAccess/jck-access.html http://openjdk.java.net/groups/conformance/JckAccess/jck-acc...
- mike_hearn 11y agoGoogle has been an OpenJDK contributor for server-side stuff for a while.
- exabrial 11y agoGood news AFAICT! Hopefully Android: 1) Gets an updated kernel 2) Can run standard JVM bytecode 3) Switches to CGroups 4) Allows for interop with desktop/server JVM On a side note, I wish WebAssembly would just be JVM byte codes instead of this huge NIH syndrome. No need for the importing the Java SDK, broken sandbox mode, and all the other crap that made Applets fail... just the JVM itself.
- Zigurd 11y agoIt is unlikely that Android will run Java bytecode. The Dalvik runtime was aimed at keeping bytcode compact and interpreting faster than a JVM. ART is a pre-compiling (Dalvik bytecode to native) runtime. Using Java bytecode in the runtime on the Android device would open a whole big can of worms again. With open source APIs and no actual Java(tm) technology in an apk or on a device once code is translated from Java bytecode to Dalvik bytecode, Android stays clear of Oracle copyright claims.
- yincrash 11y agoYou can actually load Java bytecode on Android (since 1.x!) by manually using a separate classloader at runtime[1]. There are even J2ME runners that have been doing that since Android's early days[2]. [1] http://stackoverflow.com/questions/60764/how-should-i-load-jars-dynamically-at-runtime http://stackoverflow.com/questions/60764/how-should-i-load-j... [2] http://www.netmite.com/android/faq.html http://www.netmite.com/android/faq.html
- Zigurd 11y agoThose approaches "dex" the Java bytecode and run Dalvik bytecode.
- grizzles 11y agoThis would be great. The benefits of reuse of the toolchain and ecosystem alone are very compelling. That is another thing that will need to be reinvented by WebAssembly.
- aceperry 11y agoSounds good. I hope that OpenJDK improves, because it's been sluggish and buggy in my experience. What Google should do is to move to something like Kotlin, which might make the whole programming environment less tedious than Java.