You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
BigDecimal is interpreted by the Exporter as "Integer-like".
The culprit is this method in ExcelExport:984:
private boolean isIntegerLongShortOrBigDecimal(final Class<?> type) { if ((Integer.class.equals(type) || (int.class.equals(type)))) { return true; } if ((Long.class.equals(type) || (long.class.equals(type)))) { return true; } if ((Short.class.equals(type)) || (short.class.equals(type))) { return true; } if ((BigDecimal.class.equals(type)) || (BigDecimal.class.equals(type))) { return true; } return false; }
correct implementation would be:
private boolean isIntegerLongShortOrBigInteger(final Class<?> type) { if ((Integer.class.equals(type) || (int.class.equals(type)))) { return true; } if ((Long.class.equals(type) || (long.class.equals(type)))) { return true; } if ((Short.class.equals(type)) || (short.class.equals(type))) { return true; } if ((BigInteger.class.equals(type)) || (BigInteger.class.equals(type))) { return true; } return false; }
BigDecimal must be treated "Double-Style"....
The text was updated successfully, but these errors were encountered: