Is it possible to create a KClass from within Java...
# reflect
d
Is it possible to create a KClass from within Java?
e
but why?
d
The reasoning was for use in creating a multiplatform heterogeneous dictionary for the broader task of having something similar to .NET WPF's DependencyObject without any direct ties to a UI framework since I am using this in engine code running in a service or CLI and not in the UI
Anyway for the specific task I was able to overcome by using
KType
and figured out how to create a
KType
from a
Class<T>
e
honestly it would make more sense to go from
Type
to
KType
, but that function is missing. https://youtrack.jetbrains.com/issue/KT-31196