Oracle transfers their software to the Apache Foundation: what could possibly go wrong?
It is one of the reasons why being part of Apache is attractive to projects.
http://www.apache.org/licenses/LICENSE-2.0#patent
An entity which contributes to an ALv2 project and then sues over a patent which reads on their contribution loses the the patent license grants from other contributors, effectively locking them out of the project.