News for hackers. Stuff that matters.
Re:Google responds aggressively to Oracle Java suit by anigbrowl on Wednesday October 06, 2010 @08:41PM (#1766419)
Morally speaking, Google is on firm ground. Legally speaking, not so much. I'm not a lawyer and I don't like software patents so I hope that I'm mistaken here.

First, Oracle's sudden reversal of course following the takeover is a distraction. Oracle says it were unaware of key facts until after it had bought Sun, like a groom who discovers on his wedding night that the bride had been in an abusive relationship with the best man. Bogus? Maybe, but that's for a court to decide - the claim is plausible enough to justify conducting a trial, rather than dismissing the suit on the mere say-so of Google. Oracle only needs to demonstrate that what they learned after the acquisition altered their view.

That might sound trite, but suppose Sun had accepted Oracle's advice in February 2009 and said 'OK, Java is free to anyone for anything forever, just don't forget how nice we are,' and there was no basis for this suit as a result. If Oracle secretly thought the patents were worth billion$ at the time, why urge Sun to give them away? It was a surprise when Oracle sued Google, not least because nobody expected a patent challenge to Android from Sun. So lifting the licensing restrictions would not have damaged Sun's already-low stock price (about $4) in 2009. If it had, Oracle could have purchased the company for less money.

See, Oracle paid about $7.5bn for Sun and is now suing Google for ~$10bn, and the first reaction is 'they only bought Sun so they could sue Google for $$$.' But if Sun had gone the last mile in making Java open source as Oracle urged them to do, there would be no basis for filing a lawsuit. If Oracle had defended Sun's refusal to OS Java and then bought the company, it'd make sense - they'd have been protecting their intended investment. But Oracle's benefit from a fully open source Java SE would have been...$0. It's not as if Oracle was trying to launch a Java-derived mobile platform of its own, and being obstructed by Sun. To prove Oracle had unclean hands, Google would have to show that Oracle knew Sun would reject Oracle's suggestions and committee vote, and that Oracle was only pretending to support the idea.

On the technical level, Sun never issued a license that would allow the full use of Apache's Harmony on mobile devices. No license = no Java on mobile. You can, perhaps, make something of your own that does the same thing, but as soon as you say the word 'Java' it becomes Sun's business. Before going on, I know Android does not align with the Java SE. I will argue that legally, it shouldn't reference Java at all.

Google used some of the Harmony class libraries for Dalvik. That was source code, and not software, but the Harmony license (= the Apache 2.0 license) treats them the same way (see 'Definitions' in http://harmony.apache.org/license.html). So using Harmony source code = using Harmony. This license says nothing about mobile devices, but clause 5 acknowledges the precedence of other conditions in other license agreements, saying that 'nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.' In other words, Sun retains the rights it reserved when it made Java available. Some rights were never licensable.

At the time the Apache license was crafted, the license governing further development of Java was v2.8 of the Sun Community Source License (2001; http://java.sun.com/javase/6/scsl_6-license.txt). It makes specific claims, which are not superseded by the Harmony license: the important ones being that you can't use any parts of Java, or even offer a Java-compatible API, for any purposes other than non-commercial research unless you first sign a fee-paying license agreement with Sun. Since then, Sun released a simplified Java Research License (2005, http://java.net/jrl.csp) with essentially the same limitations. That's not a problem for Apache, because it's a non-profit organization.

There might be arguments about whether Google should have relied on the terms of the 2001 SCSL or the 2005 JRL when evaluating their rights under the Harmony license, because the earlier one is more explicit about what uses of the tools and technology are permissible. The JRL says simply that it 'is not intended to permit or enable access to the Technology for active consultation as part of creating an independent implementation of the Technology' - where 'Technology' includes any Java source code ever put out by Sun. The SCSL says you can develop your own stuff from Java for purposes other than research, but at the very least you have to validate what's Java-compatible or not before you deploy it anywhere, using sun's TCK, and you are not allowed to use the TCK for the purposes of building your own compatibility testing software. Also, mobile platform validation is explicitly excluded. Also, here's a non-legalese 2005 note from Sun clarifying what their position was when they released the JRL in 2005: https://jdk.dev.java.net/javase_ip_issues.html

Sure, Google are giving away Android, but they are doing so to be competitive in the smartphone market. They even commissioned and sold their own phone to promote the Android platform, and price their advertising services to reflect their brand strength across all internet access platforms. To the extent that Google has a financial interest in uptake of Android, it's commercial activity. The upshot of this is that by offering even a partial Java SE API in Android under authority of the Harmony license, Google has gone way past anything that could be called 'research.'

Google argues that in any case, Dalvik is not a Java VM, and Android is a system for producing Dalvik bytecode, which is nothing like Java bytecode. The obvious response to this is to ask why, then, they're using a subset of the Java SE API in Dalvik. Why have classes called 'Java' and 'Javax' which behave like the Java API does? Why not just start from scratch, rather than touting the possibility of writing code for Android in 'Java'? Let's face it, before this lawsuit began if you went up to any random developer and said 'Quick, what is this Android thing everyone is talking about?' the reply would have been 'Oh, it's a cellphone development platform based on Java.' Why didn't Sun make a fuss about this earlier? Oracle's position seems to be that they should have, and now that they are the new assignees of all Sun's IP, they are moving quickly to enforce the very same rights that Sun's management so carelessly failed to protect.

But, Google says, even if it emulates Java in many respects and incorporates bits of Harmony derived from Java, Dalvik only links to those libraries and linking is explicitly allowed by the Apache license agreement, and does not constitute a 'derivative work.' But that only applies to those parts of Harmony which were created by Apache. It does not confer retroactive rights to the Java SE, or remove the conditions which apply to redistribution of the Java SE - ie that noncommercial use is prohibited without payment of a license fee to Sun. So again, they shouldn't be offering an API that bears a strong resemblance to Sun's work, albeit a partial one. If you had never used Harmony and went straight from JDK to Android, your first thought would be 'oh, looks quite similar to Java SE.' Not permissible, under the license terms.

Everyone has assumed that when they implemented Android on their hardware using the Android SDK, they did so under license from Google; and that Google are in turn authorized to give away Android under the terms of the Apache license, and that Apache are in turn authorized to give away Harmony under the terms of the Java license from Sun. But the grant of rights by Sun specifically excluded deployment of Java SE or any of its parts onto completely new platforms unless a license was first obtained from Sun, and they had never issued any such license despite the urging of other interested parties.

Nor do I think that Google's argument of Dalvik being something fundamentally different because it produces its own bytecode is very strong. In practice, the way it is used is to read in Java source code, spit out some object code, and run it on a VM. The Apache license doesn't distinguish, though; and while the SCSL does allow you to build and distribute your own binaries of things like VMs and compilers (albeit only for research purposes), that same license is the one that specifically limits any kind of reuse on other platforms without an appropriate license...including mobile platforms.

So to wrap up, it seems to me that Google is relying on a certain construction of the SCSL which provides a loophole for them to distribute Dalvik because it is an entirely new product, but the very same license which allows this precludes them from even using the same class names. Referring to the Apache license's exclusion of linked libraries from 'derivative works' is no good, because the same document is pendant on the terms of the underlying agreement between Apache and Sun. Google's argument, when you strip away everything else, appears to contain a scope bug.

Re:Google responds aggressively to Oracle Java suit by bad_user on Thursday October 07, 2010 @01:43AM (#1766952)

     Dalvik only links to those libraries and linking is explicitly allowed by the 
     Apache license agreement, and does not constitute a 'derivative work.' But 
     that only applies to those parts of Harmony which were created by 
     Apache.
Harmony is a clean-room implementation of Java. No parts from Java SE were copied, so licensing terms of Java SE don't apply. There could be licensing terms for Harmony, but that's for the usage of the "Java" trademark, but AFAIK Sun hasn't provided a TCK to Harmony yet.

You also can't copyright API interfaces, so the point that Dalvik works with classes named "java" and "javax" doesn't really hold.

Also note that this lawsuit is about patents + unidentified copyright violations (on which Oracle just got bitch-slapped because they haven't identified them, as required by law), it is not about a breach of license / contract.

EDIT

And you know, Android applications are first developed and compiled using Sun's JDK. Only after that a compiler translates JVM bytecode to Dalvik. THAT's WHAT COMPILERS DO.

Are you going to suggest that compilers are illegal now?

Re:Google responds aggressively to Oracle Java suit by cletus on Thursday October 07, 2010 @06:54AM (#1767427)
Sun provided a patent license to OpenJDK/Harmony. That's important. Whether or not any code was used affects copyright violations, not patent issues.

Copy someone's code and you violate copyright.

Two people can independently come up with the exact same algorithm, one of them patents it and the other is in violation. That's just how crazy the patent system is.

Sun's license to OpenJDK was contingent on that JDK not being modified. Oracle's argument is that Google has violated that license so is outside the royalty-free patent license for the OpenJDK, which I hate to admit, is actually a reasonable argument.

That'll be enough to get a trial if Oracle wants one. When I first heard about the lawsuit I considered it an incompetent shakedown to justify the purchase price for Sun. I say "incompetent" because they picked the wrong target thinking Google of all companies would simply roll over and cut Oracle into the Android action.

I hate to admit that because I think Oracle's actions are shortsighted and, well, moronic as Google has done more to further the Java platform than anyone (including Sun) and I'm opposed to software patents anyway.

Re:Google responds aggressively to Oracle Java suit by bad_user on Thursday October 07, 2010 @07:46AM (#1767505)
The patent grant doesn't extend to Harmony because it hasn't passed the TCK (because it contains a fields of use restriction).

You also can't violate a license, if you haven't agreed to one in the first place. This is also important!

Violating a license is different than unknowingly infringing on a patent.

Re:Google responds aggressively to Oracle Java suit by cletus on Thursday October 07, 2010 @10:31AM (#1767935)
> You also can't violate a license, if you haven't agreed to one in the first place.

Perhaps I chose a misleading word by saying "violating" as it implies only the problems for license holders. The nature of patents however is that if someone has a patent affecting your software you are potentially in violation if you either don't have a license or you do have a license and are in violation of it (which tends to devolve into a contractual dispute).

Re:Google responds aggressively to Oracle Java suit by anigbrowl on Thursday October 07, 2010 @03:36AM (#1767124)
My reading (which like I say, could be wrong) is that Google would like to shift it away from being a breach of license but as written, the SCSL terminates if the Java technology is ported to a different platform without the TCK protocol being satisfied. I think Oracle's answer to the question of what bits of Android violate Sun copyright will be 'all of it.'

I suggest rereading the SCSL, and consider why Harmony couldn't legally proceed without a TCK.

Re:Google responds aggressively to Oracle Java suit by mzl on Thursday October 07, 2010 @04:21AM (#1767189)
Remember, copyright-issues by definition do not apply to clean-room implementations. For there to be a breach of copyright, one has to show that the copyrightable material (i.e., the source code) actually derives from the corresponding copyrightable material that Oracle owns. If it truly is a clean-room implementation, then the engineers responsible must never have looked at the original source code, making the claim moot.

Patents are a whole different ball-game though.

Re:Google responds aggressively to Oracle Java suit by sutro on Wednesday October 06, 2010 @10:28PM (#1766629)
Great summary. I think Google's Dalvik is quite similar to the unlicensed, unauthorized, crippled JVM that Microsoft shipped with Windows for a while (in an effort to subvert Java) which drew them into a lawsuit with Sun that Sun won. Google wants to have their cake and eat it too -- a development platform broadly accessible to all Java developers, but without having to pay anything or concede any third-party ownership or provenance. Google isn't doing the Java community any favors by forking the platform and muddying the waters. I don't think Google is on firm legal or moral ground. If Oracle's lawsuit helps prevent a UNIX-style balkanization of Java then I'm all for it.
Re:Google responds aggressively to Oracle Java suit by bad_user on Thursday October 07, 2010 @02:04AM (#1766996)
Microsoft was sued because of contract violations. There is no contract between Google and Sun to speak of. There is no license to defend. That's why the lawsuit is about patents.

> If Oracle's lawsuit helps prevent a UNIX-style balkanization of Java then I'm all for it.

Yeah, it's like they thought about you and your needs when they started this, and not about those 10 billion USD which they want.

Re:Google responds aggressively to Oracle Java suit by anigbrowl on Thursday October 07, 2010 @03:43AM (#1767135)
OK, but why didn't Sun open source Java before Oracle took them over? And why were Oracle urging them to do so?
Re:Google responds aggressively to Oracle Java suit by dlevine on Thursday October 07, 2010 @01:59AM (#1766985)
Except that Dalvik isn't a JVM. The Microsoft JVM actually executed Java bytecode with some proprietary additions, which ran afoul of Sun's licensing terms. Dalvik executes dex files, and does so in a completely different manner than a JVM does.
Re:Google responds aggressively to Oracle Java suit by tdurden on Thursday October 07, 2010 @02:53AM (#1767061)
implementation detail
Re:Google responds aggressively to Oracle Java suit by heresy on Thursday October 07, 2010 @01:24AM (#1766931)
I'm sure in the US this is probably legally possible, but can you clarify why/how one can patent an API?

An API in and of itself is nothing, it seems ridiculous to me that it can be afforded any legal protections.

I don't see how an API is different from a protocol in a legal sense, and we have reverse engineered protocols all over the place (e.g. Samba).

And from an API point of view: Wine, ReactOS.

I just don't understand what Google is doing wrong, other than succeeding where Sun never did.

Re:Google responds aggressively to Oracle Java suit by anigbrowl on Thursday October 07, 2010 @06:50PM (#1769833)
Sorry for not answering last night, I overlooked your question. The patents are not for an API, they're for things like sandboxing, preprocessors etc. You can see them all here: http://www.scribd.com/doc/38768100/Oracle-v-Google-Complaint

Should such things be patentable, maybe not but the fact is that they are at present. In the US, if I patent something and you come up with your own invention which does the same thing, I can say you're infringing. It doesn't matter whether you were even aware of my invention (except for the purpose of awarding damages); the patent is granted for the purpose which is fulfilled rather more than the mechanism used. On the upside, patents last 20 years and after than anyone can clone your idea (sooner in some cases).

Claims about the API etc are copyright claims, which here include source code, but also specifications and documentation and so on. The basic argument from Oracle's side is that Sun owned Java, but granted people the freedom to do whatever they liked with it up to a point. Go past that point, and you've broken the agreement and the grant of rights is revoked.

But there was no agreement, you might say - however, there usually is. You have to acknowledge one to download the JDK, and you're agreeing to the terms therein. The reason Google is making such strenuous effort to point out that Dalvik != Java is because Java is not actually so open that they could just port it. Building their own compiler and VM gets them off a particular contractual hook in the licensing terms, but the problem is that going to such lengths to comply with a single provision in the license creates an implicit acceptance of the license as a whole, and (like most contracts) said license also includes a provision that if one part fails when its legality challenged, all the other parts still remain in force.