2 ms·
What VM support? Records are a Java compiler feature. It just auto-generates all the boilerplate at compile time, there doesn't seem to be any bytecode or VM su
by kllrnohj 7y ago
What VM support? Records are a Java compiler feature. It just auto-generates all the boilerplate at compile time, there doesn't seem to be any bytecode or VM support for this feature?
It seems functionally identical at the VM/bytecode level to what Kotlin's data classes already do.
- davewritescode 7y agoMy mistake, I thought this was more akin to value types proposed in this JEP https://openjdk.java.net/jeps/169 https://openjdk.java.net/jeps/169 This is disappointing.
- pron 7y agoRecords are meant to play nicely with inline types, i.e. when inline types land, you'll be able to declare inline records.