fix openjdk6 bug