|
Authored by: Anonymous on Wednesday, April 18 2012 @ 12:15 PM EDT |
Part of the confusion comes from Josh Bloch having worked for Sun and wrote the
old Array sort code, then he went to work for Google and wrote a better sort
algorthm for Google. Google then decided to contribute that to Oracle so every
java programmer could enjoy the result... And as thanks Oracle buys Sun and sues
Google... over 9 lines of "copied" code...[ Reply to This | Parent | # ]
|
|
Authored by: bugstomper on Wednesday, April 18 2012 @ 12:19 PM EDT |
As far as I know Joshua Bloch wrote the original Arrays.java class, which
contains the rangeCheck function, when he was working at Sun. He also included
rangeCheck in example code in a book that he authored. He used it again when he
wrote TimSort for Android while at Google (and donated TimSort to OpenJDK for
use in OpenJDK 7).
(Disclaimer, the above is from memory, with no fact checking for this comment)
The Android source code repository shows that a functionally equivalent method
in the Arrays class was changed from private to public, rangeCheck was removed
from TimSort, and the calls to rangeCheck replaced with calls to that newly
public method in Arrays, the changes committed in December 2010. So rangeCheck
is gone from Android since then even if Google is not making a point of that in
this trial.
[ Reply to This | Parent | # ]
|
|
|
|
|