Would WINE be legal if Oracle won? Would Oracle's OpenOffice be able to read and save Microsoft document formats? Replicating APIs has always been a huge part of the Open Source movement.
WINE would be fair use because it’s purpose is to allow programs written for Windows to run on Linux.
Google’s use of the Java API would be infringement because Google’s use of the API is to provide a familiar environment for Java developers and it was easier to borrow the Java API than design a new one.
To me the intention matters. If you copied it so that you could market that you work with existing software then I think you ought to be fine. If you copied it because designing a query language is hard then probably not.
Edit: also why do those emails matter? The facts of the case aren't dependent on them. There's nothing wrong with a company looking to build a semi interoperable replacement to avoid license fees. That's why sun bought and continued development on OpenOffice; they figured out that was cheaper than the MS Office fees at their scale.
If Oracle wins, software engineering will be seriously hampered. And that's not hyperbole. If you are on Oracle's side you directly jeopardize the livelihoods of most of the contributors of this board. So not only am I not surprised by the downvotes, I think they're appropriate.
Some terms about API use would likely change in some software agreements. Google would fess up about 8 billion dollars. And not much else would happen.
Software engineering is a vital part of the world and the economy and it will not go away because the law got enforced.
Then they could demand licenses for any C toolchain as well as any piece of code (libc, Linux) that included libc/UNIX compatible declarations.
This could be highly beneficial to software engineering since it would discourage the use of languages like C and Java, as well as UNIX-like systems. ;-)
That being said, I feel ruling against Oracle would be also very perilous for open software from for profit entities, as it would have a harmful chilling effect on companies trying to dual license or keep their technology open. Arguments Google had made in earlier stages used the GPL-licensed OpenJDK to justify using their non-GPL implementation.