On Tue, 17 Nov 2026 15:27:36 GMT, Chris Plummer <[email protected]> wrote:

>> This was my understanding too from previous spec discussions that the JDI 
>> spec is more "user facing" and does not speak of slot 0. :)
>
> Ok. I just wanted to make sure this was intentional. Good to know it is 
> consistent with the rest of the JDI spec.
> 
> I think working "this" into the text might make the first sentence a bit less 
> wordy or more clear. For example:
> 
>  * This notification is not generated for an instance field of "this" if the 
> current
>  * frame of the event thread is a constructor
>  * and the constructor's declaring class or any of its superclasses has 
> strictly-initialized
>  * instance fields
> 
> I'm also wondering if mention of "event thread" is really necessary, or even 
> "current frame" for that matter. Aren't they both implied? I don't see them 
> otherwise being used in the spec for events.
> 
>  * This notification is not generated for an instance field of "this" when in 
> a constructor
>  * and the constructor's declaring class or any of its superclasses has 
> strictly-initialized
>  * instance fields.

I've tweaked the wording in both JDI and JDWP to reduce the length of the 
sentences.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33841#discussion_r4605395921

Reply via email to