Tested under Java version 1.5.