it should works on openjdk6