Declaration of a value-type Class

167 views Asked by At

I want to specify my Class as a value-type one, so it can be stacked in method calls.

I tried the @jdk.internal.ValueBased annotation but it is not exposed from its module. The doco gives a list of required properties, but does not say how to declare it.

If the compiler is left to its own judgment (in deciding to make a Class value-based or not), how can I tell which decision it took?

Note: this is Dec 2022, so the current target is Java 19

0

There are 0 answers