We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa5f199 commit d8e179cCopy full SHA for d8e179c
1 file changed
java/src/processing/mode/java/Debugger.java
@@ -1124,13 +1124,13 @@ protected void printThis(ThreadReference t) {
1124
} else {
1125
StackFrame sf = t.frame(0);
1126
ObjectReference thisObject = sf.thisObject();
1127
- if (this != null) {
+ if (thisObject != null) {
1128
ReferenceType type = thisObject.referenceType();
1129
System.out.println("fields in this (" + type.name() + "):");
1130
for (Field f : type.visibleFields()) {
1131
System.out.println(f.typeName() + " " + f.name() + " = " + thisObject.getValue(f));
1132
}
1133
- } else { // TODO [this is not reachable - fry]
+ } else {
1134
System.out.println("can't get this (in native or static method)");
1135
1136
0 commit comments