java 6.0 compatibility