On Wed, 1 Jul 2026 18:20:07 GMT, Alan Bateman <[email protected]> wrote:

>> src/hotspot/share/prims/jvmti.xml line 3384:
>> 
>>> 3382:         a return type of <code>void</code>. A class initializer is a 
>>> special
>>> 3383:         method named named <code>&lt;clinit&gt;</code> with a return 
>>> type of
>>> 3384:         <code>void</code>.
>> 
>> I'm not sure of the purpose of calling out what constructors and class 
>> initializers are.
>
> This is setup for the sentence that follows. Without it, it would be too much 
> of a surprise to say that the function cannot be used to return early from 
> the constructor of a value class.

I had considered that. There is no mention of class initializer below. Also, I 
would think that these terms are already generally understood and don't need 
clarification here.

-------------

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2604#discussion_r3508258144

Reply via email to