Fixed compiler error under jdk7.