Go ahead and message Gary Gregory to see when they are planning on a release of commons-beanutils. Yeah they are still making code changes but the last release they made was almost five years ago (https://central.sonatype.com/artifact/commons-beanutils/commons-beanutils/versions) so there are a whole bunch of apache commons libraries that are in what I call "development hell" because changes are constantly being made but no releases are being made.
Cx78f40514-81ff,
Sorry I am closing this one. If you do a mvn dependency:tree on the opencsv project or just look at the pom file you see we are using the latest version (4.4) of common-collections4 mvn dependency:tree [INFO] Scanning for projects... [INFO] [INFO] ------------------------< com.opencsv:opencsv >------------------------- [INFO] Building opencsv 5.9.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- dependency:3.6.1:tree (default-cli)...
Yeah I am going to close this one. I agree with you with the sentiment about commons-beanutils being a dead project but there is a story here and I wished I knew what it was. If you check you will find that back in 2017 there was a apache commons-beanutils2 created in 2014 but looking at the git branches the first checkin referencing beanutils2 was 2017 (https://commons.apache.org/sandbox/commons-beanutils2/index.html). And looking at the git repo (https://github.com/apache/commons-beanutils) it...
If you have a simple code sample that you can make into a unit test I will try it out. Otherwise I will test it out in the next week or so depending on when I can get free. Thanks for finding this. I am surprised our existing unit tests did not catch it.
To expand on the cascading errors problem we have had quite a bit of support requests where data was mis quoted causing shifts in the columns so after the first error you really don't know if anything after that is really an error or if its because you are looking at the wrong data for a given column.
So if you want to look at a working example download the opencsv code and look at AnnotationTest. Specifically the testMultipleExceptionsPerLine method. Looking at your example, which thank you for loading that to github for me as that made it way easier to see what is going on., the first thing that jumped out at me was that you don't need the .withExceptionHandler(new ExceptionHandlerQueue()) as that is the default that is used when you call the .withThrowExceptions(false). You only need to use...
Six I apologize for taking so long to get back to this. Work and family has been keeping me busy. Me personally I am going to pass on this for two reasons: The first is I actually like your solution!! I believe it was what Andrew was envisioning when he designed the setColumnOrderOnWrite and seeing what you did made me actually understand what Andrew did. Hopefully between now and our next release (nothing planned) I am going to update the documentation ( https://opencsv.sourceforge.net/#changing_the_write_order)...