Have you seen Oracle's patent lawsuit against Google over their misuse of Java in Android? Billions in damages if they win, and recent developments look like it could go that way. Google is already building an OS to replace Android.
Just the library. Oracle said Google reimplementing Java API is an infringement of their IP because function prototypes should be regarded as protected properties as well.