The `BeanDefinitionReader` throws an Exception whe...
# spring
h
The
BeanDefinitionReader
throws an Exception when I specify a class in the run() method, but not when I provide the class name.
Copy code
java.lang.IllegalArgumentException: Invalid source type class kotlin.reflect.jvm.internal.KClassImpl
	at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:144) ~[spring-boot-1.3.2.RELEASE.jar:1.3.2.RELEASE]
This seems to have worked in previous versions, since I see Boot projects on Github which use the class?