dhatim / fastexcel

Generate and read big Excel files quickly
Other
684 stars 122 forks source link

Calling ws.value(x, y, value) when value is a Character #129

Closed dorssar closed 3 years ago

dorssar commented 4 years ago

ws.value(0, 0, "a" as Character)

The following throws an exception:

java.lang.IllegalArgumentException: No supported cell type for class java.lang.Character at org.dhatim.fastexcel.Cell.setValue(Cell.java:106) at org.dhatim.fastexcel.Worksheet.value(Worksheet.java:495)

rzymek commented 4 years ago

If you have char c = 'a' then just call ws.value(0,0,String.valueOf(c)).

rzymek commented 3 years ago

In 0.11.0 release it is no longer possible to trigger this exception. value(row,col,v) is no longer accepting Object - only the supported types.