Compatibility with JDK 1.5 tested