From 4cd3baeac23eaaa13f9b1cd6b209fa8cfb20eadd Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 17 Apr 2022 17:02:50 +0200 Subject: [PATCH] fix array JIO strings --- bootstrap/ISBPL.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap/ISBPL.java b/bootstrap/ISBPL.java index ecdb883..69a2e97 100644 --- a/bootstrap/ISBPL.java +++ b/bootstrap/ISBPL.java @@ -1035,13 +1035,14 @@ public class ISBPL { } ISBPLObject o = toISBPL(object.getClass()); if (object instanceof String) { - object = toISBPLString(((String) object)); + return toISBPLString(((String) object)); } if (object.getClass().isArray()) { ISBPLObject[] isbplArray = new ISBPLObject[Array.getLength(object)]; for (int i = 0 ; i < isbplArray.length ; i++) { isbplArray[i] = toISBPL(Array.get(object, i)); } + o.type = getType("array"); object = isbplArray; } o.object = object; @@ -1422,7 +1423,7 @@ class ISBPLType { } class ISBPLObject { - final ISBPLType type; + ISBPLType type; Object object; public ISBPLObject(ISBPLType type, Object object) {