Made it compatible with OpenJDK