Skip to content

Commit 185c018

Browse files
authored
FormJson of an SDT with a member of Numeric Collection may cause Cast Exception (#647)
Issue: 100548
1 parent a4ab12d commit 185c018

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/java/com/genexus/xml/GXXMLSerializable.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,10 @@ private void collectionFromJSONArray(JSONArray jsonArray, GXSimpleCollection gxC
479479
}
480480
else
481481
{
482-
gxColl.addBase(currObj);
482+
if (gxColl.getElementsType() == java.math.BigDecimal.class)
483+
gxColl.addBase(DecimalUtil.stringToDec(jsonArray.getString(i)));
484+
else
485+
gxColl.addBase(currObj);
483486
}
484487
}
485488
}

0 commit comments

Comments
 (0)