2 ms·
There was a project to add structs (record types without heap allocation) to OpenJDK, but it seems to be dead. [0] There's also this less dead looking project,
by MaxBarraclough 8y ago
There was a project to add structs (record types without heap allocation) to OpenJDK, but it seems to be dead. [0]
There's also this less dead looking project, with goals that seem pretty similar. [1] Perhaps some day Java will finally gain this feature that obviously should have been there in the beginning. There's a reason .Net has them.
[0] http://openjdk.java.net/jeps/169 http://openjdk.java.net/jeps/169
[1] https://cr.openjdk.java.net/~briangoetz/amber/datum.html https://cr.openjdk.java.net/~briangoetz/amber/datum.html