fix array JIO strings
This commit is contained in:
parent
6e2f22fe69
commit
4cd3baeac2
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue