Fresh from losing a critical battle in its fight with Google over Java and Android, Oracle has now been shamed a little more thanks to the judge ordering it to pay Google's legal fees.

One of the conditions attached to Oracle's repeated attempts as filing the case was put in place by Judge William Alsup, who demanded Oracle be forced to pay Google's legal fees if it lost the case, as a sort of advance punishment in case it turned out to be a big waste of the court's time.

And, with Oracle's attempt to patent its Java APIs being thrown out, that's what happened. Google's legal fees are believed to have run up to around $300,000 as a result of being dragged repeatedly through the courts. [Court agreement via Android Guys via Gizmodo UK]