Test with HSSF.main() using 2 arguments produced an unreadable output Feature tested: * given 2 arguments where the first is an input filename and the second * an output filename (not write), attempts to fully read in the * spreadsheet and fully write it out. My source XLS had comments, size 21KB; HSSF produces an output of 7KB and unreadable by Excel. I suspected comments might be the problem. Deleted the comments and try again, open output in Excel gives error information might be missing. Finally removed the entire column that had the cell with comment, then the output open in Excel fine.
Created attachment 4073 [details] Excel with comments
probably won't implement comments until 3.0
Whilst comments are not implemented, this bug dealt with corruption of a sheet with comments embedded. The current version of head will read and then write the file without error.