There's something pretty weird in the behavior of ...
# reflect
s
There's something pretty weird in the behavior of reflect. I have a value class wrapping a UUID (which while investigating this, I've realized might be a bit pointless). I have a data class containing that value class, and upon reflection, it is not null, when in fact it is null. If the same class is a normal class instead, in reflection it's null as expected. Is this a bug in reflect or am I just crazy for using a value class in this way?
n
Hi Sean, Did you ever find a solve for this one? I think I'm running into the same behaviour when i call get on a kproperty?
s
I looked through my commits around the time I had this problem, and I don't see anything related. I don't remember what the resolution was, sorry.
n
No worries. Thanks for taking a look. I asked in a different thread and it appears to be a known issue being tracked in youtrack. https://kotlinlang.slack.com/archives/C0AVAB92L/p1730684227073349