In thought Oracle should have won this case as well and the opinion basically affirmed the reasoning but went the other way. The basis for Oracle winning was that copying the Java API for interoperability with developers rather than for existing software was copying for Java’s beauty rather than being purely functional.
Whenever this case came up on HN people outright refused to acknowledge that one’s intentions even mattered when copying an API.