On Tue, 17 Nov 2026 08:52:52 GMT, Serguei Spitsyn <[email protected]> wrote:
>> The JDI spec is more "user facing" and doesn't currently speak of slot 0, >> e.g. StackFrame::thisObject is specified to return "this" without getting >> into the possibility of funky bytecode that overwrites slot 0. The intent >> with the updates to the JDI request and event classes is to keep the docs at >> the same level. I can add a sentence if you think we need it, in which case >> it would go into the JDWP spec too. > > 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33841#discussion_r4601729736
