java 6 compatibilty