Fix compile error on JDK 1.6.