diff --git a/java2json/java2json.go b/java2json/java2json.go index 4711eac..68cde60 100644 --- a/java2json/java2json.go +++ b/java2json/java2json.go @@ -16,6 +16,7 @@ import ( // ParseJavaObject parses a serialized java object. func ParseJavaObject(buf []byte) (interface{}, error) { jop := NewJavaObjectParser(bytes.NewReader(buf)) + jop.SetMaxDataBlockSize(len(buf)) return jop.ParseJavaObject() }