@mcc I might be misremembering, but I'm pretty sure the API Oracle sued over pre-dated them open sourcing Java. It's one of the reasons the lawsuit was so petty. By the time it had worked its way through the courts, Google had switched over to the open API so they were suing for stuff that no longer applied.
(One of the many reasons why I have strong negative opinions about Oracle)