constructor-impl
of Kotlin value class
is not called
#32324
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: kotlin
An issue related to Kotlin support
type: bug
A general bug
Milestone
The
init
block of thevalue class
can contain processing.This will be compiled into a method named
constructor-impl
in the bytecode.When instantiating a
value class
using Java reflection, bothconstructor-impl
andbox-impl
must be called in order to be equivalent to instantiating it onKotlin
.On the other hand, there is no evidence that
constructor-impl
is called in thespring-framework
, and onlybox-impl
seems to be called.Is this an intentional design?
The text was updated successfully, but these errors were encountered: