You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import java.io.IOException;
import java.io.OutputStream;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Output;
public class b<T> {
class D {
}
T t;
D d = new D();
public static void main(String[] args) throws Exception {
Kryo kryo = new Kryo();
Output output = new Output(new OutputStream() {
@Override
public void write(int b) throws IOException {
}
});
kryo.writeObject(output, new b());
output.close();
}
}
we obtain a
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.esotericsoftware.kryo.serializers.FieldSerializerGenericsUtil.newCachedFieldOfGenericType(FieldSerializerGenericsUtil.java:199)
at com.esotericsoftware.kryo.serializers.FieldSerializer.newCachedField(FieldSerializer.java:279)
at com.esotericsoftware.kryo.serializers.FieldSerializer.createCachedFields(FieldSerializer.java:243)
at com.esotericsoftware.kryo.serializers.FieldSerializer.rebuildCachedFields(FieldSerializer.java:188)
at com.esotericsoftware.kryo.serializers.FieldSerializer.<init>(FieldSerializer.java:109)
So it seems that in FieldSerializerGenericsUtil.java:198 a chekc on the fieldGenerics length should be done
The text was updated successfully, but these errors were encountered:
given this snippet class :
we obtain a
So it seems that in FieldSerializerGenericsUtil.java:198 a chekc on the fieldGenerics length should be done
The text was updated successfully, but these errors were encountered: