bekk/db-scheduler-ui

Cannot resolve parameter names for constructor TaskDetailsRequestParams

geirsagberg opened this issue · 1 comments

Hello, good work on the library!

I am running into an exception:

java.lang.IllegalStateException: Cannot resolve parameter names for constructor public no.bekk.dbscheduler.ui.model.TaskDetailsRequestParams(no.bekk.dbscheduler.ui.model.TaskRequestParams$TaskFilter,java.lang.Integer,java.lang.Integer,no.bekk.dbscheduler.ui.model.TaskRequestParams$TaskSort,java.lang.Boolean,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean,java.time.Instant,java.time.Instant,java.lang.String,java.lang.String,java.lang.Boolean)

When debugging I see that all parameter names are arg0, arg1 etc.

According to StackOverflow all parameter names are stripped when not compiling with debugInfo.

I suspect you have to annotate each field in TaskDetailsRequestParams with a @RequestParam annotation, or possible provide a no-arg constructor in addition.

Seems to be fixed by #91