Restore Java 5 compatibility.