Sun did release their Java implementation under GPL in 2006. There are lots of OpenJDK builds from different companies so you don't have to touch anything 'Oracle' to use Java.
So a for loop written by those evil Oracle fingers is different than one written by some majestic employee of a virtuous company that saves the World on a weekly basis like a child’s cartoon?
Java is a tool that started long before Oracle acquired Sun, it’s open source and actually more open than most languages due to their governance and other powerful players involved.
So are you suggesting to be stuck using Java 6 version?