You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description:
When adding Quartz to a project written in Kotlin (version 2.0.21) and creating the following class:
import kotlin.reflect.KClass
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE)
@DslMarker
annotation class DataDslMarker
@DataDslMarker
interface DataDsl {
fun <E : Any> create(entityClass: KClass<E>): E
fun <E : Any> save(entity: E): E
}
inline fun <reified E : Any> DataDsl.create(init: @DataDslMarker E.() -> Unit = {}) = create(E::class).apply(init)
During application startup, JmixModulesClasspathScanner#candidateDetectors adds a bean of the QuartzJobClassFinder class. In the JmixModulesClasspathScanner#init method, a MetadataReader is created for the DataDslMarker with metadataReader.getClassMetadata().getClassName() returning com.my.project.util.data.DataDslKt$create$1.
When Class.forName(metadataReader.getClassMetadata().getClassName()) is executed in QuartzJobDetector#isCandidate, it throws a java.lang.ExceptionInInitializerError exception, causing the application to fail during initialization.
The text was updated successfully, but these errors were encountered:
Bug Description:
When adding Quartz to a project written in Kotlin (version 2.0.21) and creating the following class:
During application startup, JmixModulesClasspathScanner#candidateDetectors adds a bean of the QuartzJobClassFinder class. In the JmixModulesClasspathScanner#init method, a MetadataReader is created for the DataDslMarker with metadataReader.getClassMetadata().getClassName() returning com.my.project.util.data.DataDslKt$create$1.
When Class.forName(metadataReader.getClassMetadata().getClassName()) is executed in QuartzJobDetector#isCandidate, it throws a java.lang.ExceptionInInitializerError exception, causing the application to fail during initialization.
The text was updated successfully, but these errors were encountered: