There's a period between those sentences. The "In 2012..." is related to "...a judge ruled that APIs can't be copyrighted at all".
I don't know when Oracle bought Sun (didn't look it up), but this is not what the sentence(s) is(are) implying.
I don't know when Oracle bought Sun (didn't look it up), but this is not what the sentence(s) is(are) implying.
The lawsuit began when Oracle sued Google in 2010 over its use of 37 Java APIs, which Oracle acquired when it bought Sun Microsystems. In 2012, a judge ruled that APIs can't be copyrighted at all, but an appeals court disagreed.
Not sure what confusion could arise from this.