Hey guys, I am trying to use CsvCustomBindByName annotation of opencsv library, but Intellij marks it red with message “an annotation argument must be a compile-time constant” error by Intellij, while it successfully compiles, but gives the following runtime error:
java.lang.annotation.IncompleteAnnotationException: com.opencsv.bean.CsvCustomBindByName missing element converter
My code is this:
class Test{
@CsvCustomBindByName(column = “DT”, converter = LocalDateConverter::class.java) var dt: LocalDate? = null
}
Any ideas?