Skip to content

Commit 5a4228b

Browse files
committed
Create a JavaArray object in do_array
1 parent b61a813 commit 5a4228b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

javaobj.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -852,13 +852,13 @@ def do_array(self, parent=None, ident=0):
852852
# TC_ARRAY classDesc newHandle (int)<size> values[size]
853853
log_debug("[array]", ident)
854854
_, classdesc = self._read_and_exec_opcode(
855-
ident=ident + 1, expect=(self.TC_CLASSDESC,
856-
self.TC_PROXYCLASSDESC,
857-
self.TC_NULL, self.TC_REFERENCE))
855+
ident=ident + 1,
856+
expect=(self.TC_CLASSDESC, self.TC_PROXYCLASSDESC,
857+
self.TC_NULL, self.TC_REFERENCE))
858858

859-
array = []
859+
array = JavaArray(classdesc)
860860

861-
self._add_reference(array)
861+
self._add_reference(array, ident)
862862

863863
(size,) = self._readStruct(">i")
864864
log_debug("size: {0}".format(size), ident)

0 commit comments

Comments
 (0)