fixed jdk 5 compile error