Fix for 1.7 version of java compiler