Description
When getTypes() returns more than 127 entries, read of classes with index > 127 will fail.
public void readFields(DataInput in) throws IOException { type = in.readByte(); Class clazz = getTypes()[type]; ... }
public void readFields(DataInput in) throws IOException { type = in.readByte(); Class clazz = getTypes()[type & 0xff]; ... }