Attempt to let code jdk1.5 compatible