CSV writer bug
Brought to you by:
quies_net
In version 1.6.1:
In file RenderUtils.java line 187 there is a line that gives a class cast error:
Writer csv = csvConstructor.newInstance(target);
Later on that object is used with:
csv.flush();
I recommend the following changes:
Replace the first line with:
Object csv = csvConstructor.newInstance(target);
Replace the flush line with:
Method flushRecord = csvClass.getDeclaredMethod("flush");
flushRecord.invoke(csv);