문제

I am using an external library called superCSV and this library apparently makes use of isEmpty. After a search on SO, I found that this method was introduced in 2.3 and indeed the crash I am getting is from 2.2

Is there anyway I can fix it that while still using the library? Perhaps provide an implementation of isEmpty? or somehow get it not to crash? Thank you

도움이 되었습니까?

해결책

Are you using the latest version of SuperCSV?
This has been fixed with SuperCSV 2.0.1 (and higher) by restoring Java 5 compatibility.

You can see the related commit here: http://sourceforge.net/p/supercsv/code/264/

Instead of calling java.lang.String.isEmpty() the library is now doing a simple check for String.length() == 0. That should fix your problem.

다른 팁

If you have the source of the library, change the call to from isEmpty() to equals("").

If you don't have the source of the library, not really.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top