Name: krT82822 Date: 05/31/99
[not clear why this was filed against JDK 1.2beta4 -- am assuming user is referring to beta of JDI --kevinr@eng, 5/31/99]
JDI method:
EventRequestManager.createModificationWatchpointRequest( Field f )
The resulting event is triggered whenever that field is modified in *any* object instance. This is not the most useful behaviour. What is really needed is a way to break when a field in a *specific* object instance is modified. I would suggest the following additional versions of createModificationWatchpointRequest() be added to the API.
createModWatchReq( ArrayReference a, int index )
- breakpoint when an array element is modified
createModWatchReq( ObjectReference o, Field f )
- break when a field in a specific object is modified
createModWatchReq( LocalVariable l, StackFrame f )
- break when a local variable is modified.
- This request disables itself when StackFrame goes out of scope.
Ditto for EventManager.createAccessWatchpointRequest()
(Review ID: 83370)
======================================================================