News for hackers. Stuff that matters.
Re:Oops: Android contains directly copied Java code, strengt... by gawker on Friday January 21, 2011 @11:32AM (#2127814)
I wonder if the code was copied before Google bought Android or after. And would they be able to just pay licensing to Oracle for the code?

I don't get one thing. I thought Java is supposedly open-source? How come there's proprietary source code? Or are these files part of a particular Java library developed by Sun that are not part of the Java that they open-sourced?

Re:Oops: Android contains directly copied Java code, strengt... by SeveredCross on Friday January 21, 2011 @11:43AM (#2127854)
The issue is not with the open-source portion, it's with relicensing. The implication is that parts of the code that are in Android's Java implementation were copied outright and then relicensed to APL, which is not allowed--the original code is GPL, and must stay GPL, unless the original author decides to license it under a different license.
Re:Oops: Android contains directly copied Java code, strengt... by yuhong on Friday January 21, 2011 @12:08PM (#2127947)
Also, the code was not copied from OpenJDK, but decompiled from an old proprietary version of Java.
Re:Oops: Android contains directly copied Java code, strengt... by protomyth on Friday January 21, 2011 @12:09PM (#2127950)
Relicensing is also not allowed when something says PROPRIETARY / CONFIDENTIAL" and "DO NOT DISTRIBUTE" except by the code owner.
Re:Oops: Android contains directly copied Java code, strengt... by bad_user on Friday January 21, 2011 @12:39PM (#2128092)
Relicensing is also not allowed when something doesn't ship with a license or doesn't explicitly allow relicensing.

Basically you can't do shit if it isn't explicitly allowed.

Re:Oops: Android contains directly copied Java code, strengt... by Tyrannosaurs on Friday January 21, 2011 @11:51AM (#2127886)
The timing is irrelevant. It's almost certain that when Google bought Android, they'd have taken on any legal liabilities that went with it. It's possible that the previous owners might have agreed to keep them but it would be very unusual for that to be the case.

As for could the just pay Oracle to license the code - they could have done at the time had Oracle, or Sun as it would have been at the time, agreed but they didn't. It would seem highly unlikely given that Oracle are currently suing them that they'd be willing to enter into such a license with Google now.

Re:Oops: Android contains directly copied Java code, strengt... by metageek on Friday January 21, 2011 @12:05PM (#2127940)
>The timing is irrelevant.

Not entirely; it might make a difference in how hard it is for Oracle to prove willful infringement (which increases the damages.

And even if it's irrelevant to the case, it's still an interesting question.

Re:Oops: Android contains directly copied Java code, strengt... by Tyrannosaurs on Friday January 21, 2011 @12:13PM (#2127973)
Agree it's an interesting question but I don't see how the timing impacts proof of whether it was wilful or not.

Google inherit everything the previous developer did including the intent or otherwise. It doesn't get to say "but we didn't know when we bought it", that's what due diligence and contacts are for.

Re:Oops: Android contains directly copied Java code, strengt... by metageek on Friday January 21, 2011 @02:23PM (#2128518)
(a) If Android, Inc., didn't have all the policies in place that larger companies do (e.g., code review), then it would have been easier for a naïve engineer to make the mistake. If so, it might actually not be willful.

(b) The longer ago it happened, the more likely it is that any evidence of how it happened has been lost. If so, even if it was willful, Oracle might have trouble proving it.

Re:Oops: Android contains directly copied Java code, strengt... by spiffworks on Friday January 21, 2011 @12:40PM (#2128094)
Unless I am mistaken, willful infringement applies to patents, whereas this only proves willful copyright infringement. Are the willful infringement clauses for copyright as well?
Re:Oops: Android contains directly copied Java code, strengt... by metageek on Friday January 21, 2011 @02:19PM (#2128499)
I think so; willful infringement triggers the triple-damages provisions.
Re:Oops: Android contains directly copied Java code, strengt... by gawker on Friday January 21, 2011 @12:02PM (#2127926)
So I'm guessing Google can't claim ignorance (i.e. did not check all code line by line for copyright material) when they bought Android as a defence statement?
Re:Oops: Android contains directly copied Java code, strengt... by Tyrannosaurs on Friday January 21, 2011 @12:15PM (#2127986)
Nope, that's what due diligence is for.

My guess is that the only out they'd have with this is if the purchase contract specified that any legal liability might remain with the previous owners but it's unusual to find anyone who will agree to that with a sale.

Re:Oops: Android contains directly copied Java code, strengt... by jacquesm on Friday January 21, 2011 @12:36PM (#2128078)
Google is damned about that bit either way.

The possibilities are that they did not perform proper due diligence on the code that they bought, which should have brought this to light (and a giant the size of google really should know how to do a code audit) (bad), the second possibility is that they did do proper due diligence, were aware of the provenance of this chunk of code and chose to ignore it (bad), the third is that the code got incorporated after the sale (bad).

There are no 'goods' here, the central question is if this is a part that is critical.

That said, I'm fairly sure that any large enough software project that has had contributions from large numbers of sources is subject to this kind of pollution, unless very strict measures are taken to avoid it.

Re:Oops: Android contains directly copied Java code, strengt... by lepton on Friday January 21, 2011 @11:45AM (#2127861)
Open-source code is still copyrighted.
Re:Oops: Android contains directly copied Java code, strengt... by eru on Friday January 21, 2011 @12:40PM (#2128095)
Yes, unless you live in the US or similar and put it into the public domain.
Re:Oops: Android contains directly copied Java code, strengt... by Semiapies on Friday January 21, 2011 @06:39PM (#2129385)
Which has nothing to do with this situation.
Re:Oops: Android contains directly copied Java code, strengt... by eru on Saturday January 22, 2011 @12:59AM (#2130057)
Yes, sorry.
Re:Oops: Android contains directly copied Java code, strengt... by fluidcruft on Friday January 21, 2011 @01:16PM (#2128234)
I think these are from the Java compliance test suite used to test that a Java implementation conforms to the specification. Sun had committed to releasing the compliance tests, but then dragged its feet and it never happened.