On Tue, 17 Nov 2026 18:50:58 GMT, Alan Bateman <[email protected]> wrote:
>> As discussed with Sergeui, Chris and Fred: Update JVMTI to not send field >> access and modification events during construction of objects with >> strictly-initialized instance fields and initialization of classes with >> strictly-initialized static fields. The JVMTI, JDWP and JDI API docs are >> updated to specify the behavior. >> >> A new test is added to exercise strict instance and static fields, >> constructor chaining, inheritance, value classes, and record classes. >> >> The jdwpgen tool is updated to add anchors to the the event descriptions in >> the JDWP spec to allow linking. >> >> Testing: tier1-3. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Alan Bateman has updated the pull request incrementally with one additional > commit since the last revision: > > Word smith JDWP spec change test/jdk/com/sun/jdi/valhalla/FieldWatchpointsTest.java line 127: > 125: > 126: request = > eventRequestManager().createAccessWatchpointRequest(watchField); > 127: testCases.add(new TestCase("access", 2, request)); // > staticField, instanceField I think to test field access in the constructors all you need to do is add an access to the constructor, and this count should remain 2. BTW, this test has a bunch or unused code in it, but I suppose that could be remove by another CR. I'll file one if you want. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33841#discussion_r4609225786
