Fix OpenJDK6 type inference bug