Does anybody knows why when using Kotlin/JVM + Gra...
# reflect
s
Does anybody knows why when using Kotlin/JVM + GraalVM native images with reflection I have to declare reflection configuration for arrays of the parameter used. For example:
Copy code
class SampleHandler(private val sampleService: SampleService) {
	fun hello(request: ServerRequest)= ok().syncBody(sampleService.generateMessage())
	fun json(request: ServerRequest) = ok().syncBody(Sample(sampleService.generateMessage()))
}
I have to configure:
Copy code
nes (24 sloc) 542 Bytes
[
  {
    "name": "com.sample.SampleService",
    "allPublicConstructors" : true,
    "allDeclaredConstructors" : true,
    "allDeclaredMethods": true
  },
  {
    "name": "[Lcom.sample.SampleService;",
    "allPublicConstructors" : true,
    "allDeclaredConstructors" : true,
    "allDeclaredMethods": true
  },
  {
    "name": "com.sample.SampleHandler",
    "allDeclaredConstructors" : true,
    "allDeclaredMethods": true
}]