Corrected usage of java 7 when source is set to java 6