general JRE/JDK 7 compatibility