Comment: Re:Does this mean Java really is free? (Score 5, Informative) 234
That depends on whether they assigned the copyright along with the submission. If they had already assigned the copyright to Sun (as I believe was required to have it accepted), then they would no longer have the right to submit it anywhere else. Such is the stupid world we live in, which is why I can easily believe that a developer would have forgotten they did it, especially on such a trivial function.
Your point is well taken, so I did some checking. openJDK submissions require that you accept the "Oracle Contributor Agreement" [nee Sun]. From that document:
2. With respect to any worldwide copyrights, or copyright applications and registrations, in your contribution:
- you hereby assign to us joint ownership, and to the extent that such assignment is or becomes invalid, ineffective or unenforceable, you hereby grant to us a perpetual, irrevocable, non-exclusive, worldwide, no-charge, royalty-free, unrestricted license to exercise all rights under those copyrights. This includes, at our option, the right to sublicense these same rights to third parties through multiple levels of sublicensees or other licensing arrangements;
- you agree that each of us can do all things in relation to your contribution as if each of us were the sole owners, and if one of us makes a derivative work of your contribution, the one who makes the derivative work (or has it made) will be the sole owner of that derivative work;
- you agree that you will not assert any moral rights in your contribution against us, our licensees or transferees;
- you agree that we may register a copyright in your contribution and exercise all ownership rights associated with it; and
- you agree that neither of us has any duty to consult with, obtain the consent of, pay or render an accounting to the other for any use or distribution of your contribution.
The first two clauses appear to cover it. The joint ownership clause seems mostly concerned that any submission grants rights to Sun/Oracle to use the code. But, the original submitter retains parallel rights [as long as they don't try to revoke Oracle's right]. The derivative work clause implies that either party may make a derivative work without consulting the other and gets full rights to the new work.
Thus, giving the rangeCheck function to Android is allowed by this agreement under either of these two clauses.