Jdk 6 compatibility and ignored some test cases