Valhalla breaks minimal-j framework
Bruno Eberhard
bruno.eberhard at pop.ch
Mon Dec 1 20:36:00 UTC 2025
Am 01.12.2025 um 21:10 schrieb Ethan McCue:
> I think I'm understanding. So $ has the same type as the source class,
> but each field on it is initialized to something with a unique identity,
> their values aren't important, their identity is.
Exactly.
You pretty much got all my ideas around the problem right.
1) code generation
I simply don't like code generation. It makes setup of projects
difficult. It easily breaks because of some wrong paths or forgotten
re-generate. Has to integrate in IDEs.
2) special field classes
Using the normal classes is so much more natural. No need to convert.
3) Use values instead of always "new Integer(0)".
Yes this works. For almost all supported classes like: String, Integer,
Long, LocalDate, LocalDateTime, LocalTime, BigDecimal.
For Boolean and Enum I would have to use the second solution.
I started with the framework with java 8. Never thought at that time
this would become a problem.
More information about the valhalla-dev
mailing list