Skip to content

Commit c4eef48

Browse files
committed
Fixed call to load_from_blockdata
1 parent db3a92d commit c4eef48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javaobj/deserialize/beans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __str__(self):
265265
__repr__ = __str__
266266

267267
def load_from_blockdata(
268-
self, reader: DataStreamReader, indent: int = 0
268+
self, parser, reader: DataStreamReader, indent: int = 0
269269
) -> bool:
270270
"""
271271
Reads content stored in a block data

javaobj/deserialize/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def _read_class_data(self, instance: JavaInstance) -> None:
484484

485485
if cd.desc_flags & constants.SC_BLOCK_DATA:
486486
# Call the transformer if possible
487-
if not instance.load_from_blockdata(self.__reader):
487+
if not instance.load_from_blockdata(self, self.__reader):
488488
# Can't read :/
489489
raise ValueError(
490490
"hit externalizable with nonzero SC_BLOCK_DATA; "

0 commit comments

Comments
 (0)