If I thought there was any hint of a problem, and for that I'd have to be developing some sort of Java-like alternative, then I'd either negotiate an appropriate licence for the technology from Oracle or use some alternative but freely available technology, depending on what is cheaper/best for the project. Which is what Google could/should have done (or maybe even did do - now up to the court to decide).