On Fri, 3 Jul 2026 15:54:34 GMT, Alan Bateman <[email protected]> wrote:
> JDI StackFrame.getValue/getValues: JDI has always filtered out "this" from
> the local variables...
It is a surprise for me, thanks. And it is right, as I see this JDI code:
private List<LocalVariable> getVariables1() throws
AbsentInformationException {
. . .
for (int i=0; i<count; i++) {
JDWP.Method.VariableTableWithGeneric.SlotInfo si = vartab.slots[i];
/*
* Skip "this*" entries because they are never real
* variables from the JLS perspective.
*/
if (!si.name.startsWith("this$") && !si.name.equals("this")) {
<== !!!
Location scopeStart = new LocationImpl(virtualMachine(),
this, si.codeIndex);
. . .
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/2627#issuecomment-4881220581