161 points · by g1n016399 · 10y ago · 155 comments
Andreas Gal, Former CTO of Mozilla, wrote yesterday: "... a curious event got my attention: A commit appeared in the Android code base that indicates that Google is abandoning its own re-implementation of Java in favor of Oracle’s original Java implementation. I’ll try to explain why I think this is a huge change and will have far-reaching implications for Android and the Android ecosystem." Source: http://andreasgal.com/2016/01/05/oracle-sinks-its-claws-into...
Bradley M. Kuhn, in charge with the task of enforcing the GPL for Linux, wrote today: "Thus, my conclusion about this situation is quite different than the pundits and link-bait news articles. I speculate that Google weighed a technical decision against its own copyleft compliance processes, and determined that Google would succeed in its compliance efforts on Android, and thus won't face compliance problems, and can therefore easily benefit technically from the better code. However, for those many downstream redistributors of Android who fail at license compliance already, the ironic outcome is that you may finally find out how friendly and reasonable Conservancy's Linux GPL enforcement truly is, once you compare it with GPL enforcement from a company like Oracle, who holds avarice, not software freedom, as its primary moral principle." Source: http://ebb.org/bkuhn/blog/2016/01/05/jdk-in-android.html
https://sfconservancy.org/supporter/ https://sfconservancy.org/copyleft-compliance/principles.htm...
Google's current approach using Harmony's clean-room API implementation has been basically deemed illegal. Google will likely have to pay millions if not billions to Oracle for copyright infringement. And they will continue to be infringing as long as they are distributing their current Android systems.
P.S. The law of the land is now that when you create an API it is copyrighted.
The US is the only strange land where such a law could be even comprehended. Asserting API copyright to someone on the basis of accusation of copying nine lines of code[1] indicates that a jury isn't in its right mind.
(While I am not sure it nails all the nuances exactly, especially around the distinction between web and language APIs, it is an infinitely better account of the situation than what I've seen in any tech media so far. Golly, I wonder why.)
Of course, it doesn't help that the better informed comment is also down-voted, making it harder to find.
Considering all this, I feel that the only important thing in technology is that concentration of power shouldn't be in the hands of one/few tech companies, be it Oracle or Google. Rather, there should be checks and balances everywhere. Ideally, all software should be produced by communities where all coders are chosen strictly on merit every commit passes through the scrutiny of all members.
No, it's just the law of the Federal Circuit and only when interpreting 9th circuit law. Their decision is not binding precedent on any of the usual circuits, and their usual domain is patent law, not copyright law.
I look forward to the extinction WINE and PostgreSQL, and the resurrection of the SCO corpse for another tilt at Linux vendors, he said sarcastically.
Instead, for the APIs it supports, WINE was designed to interoperate with Windows programs (binary and source) in same kind of way the Android Java environment interoperates with Java programs (again both binary and source) for the APIs it supports. There are some minor differences (e.g. WINE works with binary applications directly, Android requires that Java bytecode be compiled to Dex bytecode, etc.) but the overall structure is the same.
Sure, Android only supports few Java APIs and WINE supports tons of Windows APIs, but that's the distinction fair use hangs on, how does any re-implementation of a proprietary API ever get off the ground (legally anyway)?
That point on Microsoft is just their revisionism, though; the documents and emails gathered by discovery at the time show they weren't excited about Java, but actually trying to "kill cross-platform Java by growing the polluted Java market" (direct quote from their internal strategy docs).
Its not like there is some central corporate entity behind Wine - Codeweavers sells its own proprietary fork and could be sued, but upstream free software Wine was founded by a guy from Switzerland (outside the jurisdiction of the incredibly barbaric IP around software in the US, at least until the TPP passes and spreads that plague through the Pacific rim, but even then Europe remains safe and sane for now). They could sue any individual contributor to Wine who lives in the US, but there is no way to extract royalties from the Wine project itself.
Wasn't one of the central issues that Google copied Java headers verbatim? Wine doesn't copy windows.h [1]; it seems to be a clean room reimplementation.
[1]: https://github.com/wine-mirror/wine/blob/367b30d8278684aaff3...
Oracle's argument is that an API is copyrightable, and cloning an API is illegal.
The only known way to obtain a license to use those APIs is to use the GPLed Java implementation of those APIs.
Google did a clean-room implementation. But what about derivatives? Obviously you have to redistribute your source. Does using your patched version magically become legal iff your changes are merged into the upstream? This seems to defeat the GPL entirely, since it doesn't matter that you have a license to modify the source code if doing so means you are violating copyright on the APIs.
And no, they didn't violate the GPL. When a copyright owner releases code under an open-source license, that doesn't mean that they are waiving their copyrights. Open-source is not the public domain.
From what I infer, Google borrowed the implementation of classes from Apache Harmony's project, which had nothing to do with OpenJDK. That is, it is an independent implementation of the J2SE, etc.. If that is the case, Google can be found to be infringing on Oracle's copyright when it distributes binaries derived from Apache Harmony code that infringes on Oracle's copyright over Java APIs.
The version the article is talking about is OpenJDK; Oracle holds the copyright of the OpenJDK implementation, and licenses it under the GPL. By using OpenJDK, Google is allowed to distribute programs and code derivative of OpenJDK code as long as it complies with the terms of the licenses.
A word of caution: IANAL.
Since Oracle/Sun is effectively giving OpenJDK for free I'd argue the damages are effectively 0 USD so Oracle would win a 0 USD compensation. Since the lower court justice mostly sided with Google I'm guessing compensation won't be much for Oracle.
Oracle has stolen an "r" from the API specification of my full name. How/where can I sue them?
Also, copyrighted APIs are only "language-level" APIs (or just APIs as we've always called them) -- not web APIs (or protocols, as we used to call them), simply because web APIs lack other prerequisites to be copyrightable.
To the question of fair use. There are several fair use defenses, but two apply to the industry in cases like this: 1/ non-profit use, 2/ use for the sake of compatibility (to prevent vendor lock-in). AFAIK, all third-party implementations of APIs happen to be one or the other (or both). Android is neither -- it is for profit and it is not compatible with Java programs. More than that: it wasn't even done to prevent vendor lock-in. So even if Google loses on the fair-use case, chances are that the defense still holds for all other cases of third-party implementation. Unlike the claims made by Google's PR, this ruling's effect on the industry are at worst tiny, and most likely nil.
No, this is incorrect. Because it was a copyright case decided by the Federal Circuit, it is precedent nowhere. Literally no court will need to treat it as precedent. Please educate yourself further before making these lengthy posts in threads like this; you're spreading misinformation.
> Also, copyrighted APIs are only "language-level" APIs... not web APIs (or protocols, as we used to call them)
From this and your post below, this appears to be a distinction you have made up (to appeal to the audience here? I have no clue). "Structure, sequence and organization" are certainly aspects of web APIs that could be copyrightable under the Federal Circuit's ruling.
Also, no one called web APIs "protocols" anymore than they called system calls "protocols". Unless you're talking about actual protocols, in which case I'd just stick to calling them "protocols" because that's what we still call them.
> There are several fair use defenses, but two apply to the industry in cases like this: 1/ non-profit use, 2/ use for the sake of compatibility (to prevent vendor lock-in).
Non-profit use is neither necessary or sufficient for fair use (see Google's recent book scanning ruling, for instance), and the compatibility argument is not with existing JVMs but with existing Java source code.
As for the rest of you post on fair use, I would suggest other readers to take a look at the actual four factors of fair use in the US, as your summary is a poor one. One good source:
I am most certainly not. I concede that I am not clear on how much this serves as a precedent if at all, but that has little or no bearing on what I've said on the case.
> From this and your post below, this appears to be a distinction you have made up (to appeal to the audience here? I have no clue). "Structure, sequence and organization" are certainly aspects of web APIs that could be copyrightable under the Federal Circuit's ruling.
You can apply "structure, sequence and organization" to anything you like, but if you want it to be copyrighted, your work must be fixed. If it is not fixed -- as in the case of web "APIs" -- it cannot be copyrighted no matter what other properties it may have. If there is a piece of text long enough to be considered "a work" that must be replicated verbatim (or through some copyright-preserving transformation) for you to implement my web API, then that could be copyrighted.
The problem is that even if you have a fixed media form you may not be eligible to copyright (which is where structure, sequence etc. applies).
> and the compatibility argument is not with existing JVMs but with existing Java source code.
Android is not compatible with Java sources.
> I would suggest other readers to take a look at the actual four factors of fair use in the US, as your summary is a poor one. One good source
That is indeed a much better summary of fair use than my poor attempt. Nevertheless, it has no bearing on my point, which is that the result of this lawsuit has little to no effect on any other players.
If you're posting to satisfy an earnest effort to be productive and helpful, instead use the time that you would have otherwise spent writing these comments to go somewhere and ask questions in an attempt to better understand the area of discussion here. But don't do this.
While I myself have simplified some of the points regarding fair use defense, I also linked (in this comment: https://news.ycombinator.com/item?id=10851052) to a more nuanced discussion. The bottom line is that both interoperability and commercial use will play a central role in the debate over Google's fair-use claim (and any debate over API implementation).
I also know that Google was encouraged to use OpenJDK for Android precisely in order to prevent the very predictable lawsuit (as well as for other reasons) long before it happened, but Google refused to use GPL software for that part of the Android runtime.
If we're talking speculation, then I'm guessing the next piece of news might be an announcement that Google is buying Java and Oracle's Java team. The line of thinking goes...
- Despite currently looking like losing a lawsuit, Google has just cosied closer to Oracle's version of Java. (Something's afoot...)
- Despite currently looking like winning a lawsuit, and Java 8 being very well received, Oracle's rumoured to have just let its Java evangelists go, and to be less interested in Java than it used to be. (They look willing to sell...)
- JavaOne was apparently a bit light on announcements (Could something other than just work on Java 9 be distracting them and making them put some plans on hold for a mo...)
- Having a litigious competitor own a key piece of Android is surely a pain point for Google that gets more painful as Android keeps storming ahead. Buying it would make that pain go away.
- Google's looking at possibly having to pay some money in the lawsuit, and will likely want to get something for it
- Oracle's looking at an uncertain return from the lawsuit, hasn't extracted that much revenue from Java itself, and might just be happy to take some cash for someone else to be custodian of it from here on
Similar to how people expected Microsoft or Google to buy here maps, and then a bunch of car manufacturers bought it (due to wanting to have an open alternative usable in their cars, without relying on an oligopol)
Yeah, this seems to be a clear case of an editorialized article title. :(
The post itself is well-written and thoughtfully argued, so it's disappointing that it's undermined by the author's choice of tone. If anyone is qualified to share their detailed thoughts on the OpenJDK/Android move, former/current officers of Mozilla are high on that list.
> Swing will now sit on every Android phone, using up resources.
It's pretty worrying that the former Mozilla CTO seems to be so uninformed about a topic or -- worse -- decided to write an article on a topic without even spending a few minutes researching it and understanding the implications.
It doesn't reflect well on Mozilla either that they hired someone who seems to be so out of his depth on core matters to Mozilla's business.
Andreas wasn't hired as an executive, and you could have easily confirmed this [1] before posting this comment. He started as a developer in 2008 on the JS engine. As he was basically responsible for TraceMonkey, Andreas is a large part of the reason why SpiderMonkey is one of if not the fastest JS engines around.
The point is that he was Mozilla's CTO and his article is filled with inaccuracies showing he doesn't really understand what he's writing about and, worse, that he didn't even bother researching any of it.
[1]: https://github.com/xamarin/XobotOS [2]: https://blog.xamarin.com/android-in-c-sharp/
Has no one in this branch of the thread ever heard of a little thing called Go?
You could also bring up Dart, although Google's apparent commitment (and my own interest) in that is far lower.
Work IS coming along on being able to write full Android apps entirely in other Google-originated languages. You might reasonably ask why they're not pouring dramatically more resources into accelerating that process. I don't know, but I can only speculate that the enormous scale of the existing Android ecosystem makes it risky to send the wrong signal prematurely.
If we're looking at a matter of years before full featured Android apps in pure Go is feasible, then you probably wouldn't want to talk that up TODAY. The perception would be that Java on Android is dead, and major new app development for Android would halt.
The absence of generics and exceptions makes Go a step backward compared to Java. It was also absolutely not designed for Android (its driving design goal was to compile fast).
Dart's type system is also much weaker than Java so it would be a step back as well.
Right now, Google doesn't have any in-house credible alternative language to Java.
Interestingly, Kotlin is growing on Android without Google having anything to do.
Why doesn't Google ditch java ?
Because such a switch would be very costly and there are many more cost effective ways to improve the platform (like for example databinding).
I also doubt that Google would choose a language controlled by Microsoft, they had enough trouble with the java lawsuit..
if the rumors of the merge of Android & ChromeOS are true, maybe this will be accompanied with with a big framework change ? It will depend on how this plan materialize exactly but that would be the right time for that.
And Java IS open source. Lets not allow Oracle to monopolize and troll the API spec. If we allow that to happen, it will open a floodgates of patent trolls across the United States and the victims could be innocent startups who have just begun struggling and innovating in the market.
As a citizen, you can vote for legislators and senators who are of sane-mind and who understand technology enough to understand the hilarity of this situation. After all, you can read everything about them online when a candidate stands for an election, its not like some developing/third-world country where information and media are controlled.
Well, we could just all move to Germany, where ownership over copyright can never be signed away, and then fork Java.
So when is that going to happen? The Linux Foundation just stopped funding the Software Freedom Conservancy, in a concerted effort with others to kill it and any GPL enforcement.
Since 2006/7, Java has been available under two licenses: commercial and open-source. The commercial license allows free implementation of the Java APIs and has a full patent grant, but requires conformance with the Java TCK (Technology Compatibility Kit) and requires payment if used in mobile devices (this was Java's main revenue stream for a long time). It is also possible to license the JDK source from Oracle under the commercial license for a fee. The same JDK is also released under the GPL. This license is completely free and unencumbered (the GPL itself prohibits any restrictions). It does not require compatibility (unless you want to call the result "Java"), and has no field of use restrictions. It also has a full (implicit) patent grant. As this article notes, OpenJDK's copyleft is not viral either (certainly not more than Linux): applications and libraries running on top of it are unaffected due to the "classpath exception". You can do whatever you like with Java when you use it under the terms of its open-source license: use the implementation, use just the APIs and implement it yourself, use the whole thing or just small portion, pass the TCK, not pass the TCK, fork it or not. You are even allowed to use it to implement .NET.
Google has had both of these options for licensing Java (at least since May 2007, but that was still before Android was released). Until very recently, Google chose neither. They couldn't reach an agreement with Sun on the fee for the first license, and didn't like the second (possibly because they feared that phone manufacturers would reject a GPL runtime, classpath exception or no). Instead, they chose to argue in court that the APIs are not Oracle's to license[1].
What has changed now? Perhaps Google realized that given Android's success, phone vendors would swallow whatever license Google gives them. In any event this is a win for everyone: Google wins because they will need to spend less resources on maintaining Android, Oracle wins because Java will now be on Android, and Android and Java developers win because they'll have a better runtime and greater compatibility. This is contingent, however, on Google not forking OpenJDK too much beyond compatibility; the license does allow them to do so.
Yes, the mainline OpenJDK project is steered by the JCP (Google, Intel, Twitter, and IBM are all members) and Oracle does have veto power, but that is just the project governance. Anyone is free to fork OpenJDK, as long as they don't call the result Java (unless they fork and choose to pass the TCK). The situation is no different from other large open-source projects.
[1]: I have no opinion on whether or not Google's actions were legally justified (I do have an opinion about their ethics), but I do know that unlike Google's PR line, the ruling has little or no effect on the industry. Google's actions with Java's APIs were quite different from any other API implementation that I know of. Also, the ruling does not apply to web APIs. See discussion here: https://news.ycombinator.com/item?id=10811011.
How were Google actions different from what the Apache Foundation did with the Harmony project (which Google used for their Java implementation), or from any other API implementation? Is it just that the copyright holder eventually released a GPL version of the code while Google chose to stick with their own implementation? I don't see how that is relevant.
API copyright being enforcable is huge for the industry, it means it was illegal for the Harmonly project to implement Java without a license, or for GNUStep to implement Cocoa, or for Mono to implement .NET Windows.Forms. Also 1991 Linux was probably illegal and Wine definitely is. These are just off the top of my head, just search for "open source implementation of" on Bing, chances are most of the results are about illegal projects, including open source implementation of various standards: standards don't necessarily come with a universal license grant, at least for patents (see e.g. the H.264 situation). I would be interested to know if things are different regarding copyright licenses.
The harmony project was intended as a drop-in replacement for JDK classes, namely as a component in a system interoperable with Java. Android is not such a system (although Android may yet be ruled to be fair-use, too).
> it means it was illegal for the Harmony project to implement Java without a license, or for GNUStep to implement Cocoa, or for Mono to implement .NET Windows.Forms. Also 1991 Linux was probably illegal and Wine definitely is.
That is the wrong conclusion. That something is copyrighted does not automatically mean that replicating it is illegal because of something called fair-use. If the goal of your implementation is to create an interoperable system, then you might be within your rights to implement an API even without complying with the license[1].
[1]: https://www.cs.duke.edu/courses/cps182s/fall02/cscopyright/C...
However I would put Linux together with Android then: Linux was similarly replicating Unix APIs for the convenience of compatibility with existing code, and explicitely not aiming for full interoperability.
Octave is another project with an approach similar to Android: trying to provide an open-source Matlab that is mostly compatible, for convenience and to increase the appeal of the platform to Matlab developers, but they are not interested in compatibility for its own sake[1].
Mono falls in the middle, as they are not only providing an alternative runtime for .NET applications, they're also interesting in expanding the platform with new APIs such as POSIX bindings and Gtk#.
[1] At least that was the case a few years ago. It might have changed lately. And this disinterest for full compatibily was partly due there being no "Matlab standard" to implement. See this post from 2000 by the Octave maintainer (https://lists.gnu.org/archive/html/help-octave/2000-12/msg00...):
I never intended Octave to be a Matlab clone, nor am I really interested in creating such a thing, but that seems to be what many users of Octave want. It is not very interesting to me to simply reimplement all the features/bugs of Matlab.
I am finding it too constraining to try to maintain almost any level of compatibility with a proprietary product for which there is no standard. It stifles any creativity by the threat of future incompatibility. I see this is as a real problem, not just an imagined one.
Free software needs a vision beyond reimplementation of existing proprietary tools. Those of us who are interested in free software tools must become leaders rather than followers, and I am optimistic that this can happen for numerical software. But I don't believe it can happen if Octave continues down its current path.
Unless I'm missing something, this is no longer the case. Oracle is arguing that they own the API and the only legal implementation is theirs (ie, Java). Just renaming is (say... "Android") is insufficient.
Forking is going to be legally on very shaky ground at least.
What Google did was copy the APIs, remove the copyright notice (arguing the APIs aren't copyrightable), and release the code under a different license. You can't do that under the GPL terms.
>If a developer does not want to be subject to the licensing terms of a library, he has a few options...Another option for a developer is to do what Google did when it created Android, and create replacement code libraries that are compatible with the existing code libraries, but which are new copyrighted works. Being "compatible" in this context means that the new libraries are called in the same way that the old libraries are--that is, using the same APIs. But the actual copyrighted code that is being called is a new work.
https://www.publicknowledge.org/news-blog/blogs/gpl-does-not...
Don't call it OpenJDK since OpenJDK is copyrighted. Don't remove the Copyright inside the files. License new code as the same license as applied to OpenJDK.
If that is happening you are completely free.
As the author of the article said, it's a tool, and you may or may not use it. Don't downplay the need for a copyleft licence (which a cool hack around copyright, if you ask me): some people use is from a philosophical reason, and some - as the basis for their entire business model.
The principles of copyleft are tremendously valuable, I just wish we had a modern license that reflected the reality of the modern internet, and modern software.
About the ambiguity - my feeling about it is that they (Stallman and the lawyers, I suppose) leaned towards the usual way these documents are done, to make the licence more general - which irks us, the programmers. For a lawyer, "the code" is a good enough term.
I agree with you on having a new copyleft licence - but I'm afraid is hard to get something even to match GPL, and worse - you can step in the same, or other subtle traps as the initial versions of the GPL did - that tivoization stuff was nasty as hell. If only some of the licenses would "die" eventually, but the process reminds me of this comic - https://xkcd.com/927/
That's good, but there other options too that are practically similar to MIT. Most notably, the APL (Apache Public License), MPL (Mozilla Public License) and even the old BSD public license. They just differ in legal gobbledegook in their content, but essentially, you can pick and use any software under these terms and you can use/modify them in whatever manner with a peace of mind!
APL more explicitly/specifically transfers the legal rights to the user of the software through the legal wordings used. In this manner, APL is an improvement over the MIT, which in turn, is an improvement over good old BSD license. Even BSD license intended to do the same thing, but it appears that the modern law prefers every intention to be explicitly stated, rather than leaving room for assumption/derivation of that intent.
http://opensource.org/licenses/apachepl.php
The particular license is just "Apache License" or ASL, in fact.
MIT: Do whatever you want
BSD: Do whatever you want, don't use our name
APL: Do whatever you want, don't sue us for patents
MPL: Do whatever you want, as long as you release modifications to the original source files
LGPL: You can use this as long as you publish changes to the library and dynamically link it in software with a non-(L)GPL license.
GPL: Any source code connected to this to this code must also be GPL.
There are plenty of happy JVM vendors to choose that haven't had any problem to comply with the license:
https://en.wikipedia.org/wiki/List_of_Java_virtual_machines
Microsoft with its J++ fork and Google with Android Java have no else but themselves to blame.
But apparently Google gets a free pass while Microsoft not, because "hey it's Google and they are sooo cool".
Google with Android Java have no else but themselves to blame.
That argument is equivalent to "well, you should just have not left your door unlocked". Just because Google could have used OpenJDK and thus avoid the lawsuit doesn't mean they should have to do so.
And Microsoft's case is completely different, as they did get a license from Sun, and preceded to deliberately violate it, with the intention (as we know from the internal emails and documents) of killing Java.
This will become even worse after Java 9 and 10 get released, specially with the infrastructure API and language changes they bring in.
So if Google keeps their stubbornness, any Java library writer will be faced with support Android Java or official Java dilemma.
And hacks like RetroLamba aren't going to help anyway.
I really don't see any difference in behavior vs what Microsoft did.
Interesting indeed how the two cases are perceived differently. I wonder to what extent they really were similar, legally speaking. At least one important difference is that Microsoft did license Java from Sun. Microsoft was using the Java trademark and advertising J++ as "Java-compatible" although their implementation was not passing the compliance tests.
To go back to the perception of Microsoft and Google's actions by the community, I think it's not hard to explain:
On one hand, you have Microsoft developing a proprietary Java product with the goal of undermining cross-platform Java and locking users and developers to the Windows platform. Remember the famous internal Microsoft email:
"We should just quietly grow j++ share and assume that people will take more advantage of our classes without ever realizing they are building win32-only java apps."
On the other hand, there is Google using Java for the purpose of delivering an open-source operating system. They didn't license Java, but I think the perception is that one should not require a license to use a programming language and/or implement its standard libraries. And compared to Microsoft, the perception is that any Java incompatibily introduced by Google in Android is not malicious but due to technical decisions (be they good or bad).
Even their recent actions with OpenJDK are related to version 7, not 8.
At their Autumn conference they only addressed Java 8, reluctantly during Q&A, and still asked devs to cherry pick features from it.
Given that Google is creating a Python 3 / Python 2 situation, due to their Java fork, I fail to see how their actions are less damaging to the Java eco-system than what Microsoft did.
The situations are completely different. Microsoft was a Java licensee and as such, had to abide by the license (they didn't).
Google is not a Java licensee, so Oracle's attack on them is following a totally different angle.