Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263055: hsdb Command Line Debugger does not properly direct output f…
…or some commands

Reviewed-by: amenkov, ysuenaga
  • Loading branch information
plummercj committed Mar 12, 2021
1 parent ecfa712 commit b2f7c58dc9f29278a12070128a6eff75bbb12149
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/CommandProcessor.java
@@ -1743,13 +1743,13 @@ public void doit(Tokens t) {
if (metadata instanceof InstanceKlass) {
ik = (InstanceKlass) metadata;
} else {
System.out.println("Specified address is not an InstanceKlass");
out.println("Specified address is not an InstanceKlass");
return;
}
} else {
ik = SystemDictionaryHelper.findInstanceKlass(classname);
if (ik == null) {
System.out.println("class not found: " + classname);
out.println("class not found: " + classname);
return;
}
}
@@ -1861,9 +1861,9 @@ public void doit(Tokens t) {
String classname = t.nextToken();
InstanceKlass ik = SystemDictionaryHelper.findInstanceKlass(classname);
if (ik == null) {
System.out.println("class not found: " + classname);
out.println("class not found: " + classname);
} else {
System.out.println(ik.getName().asString() + " @" + ik.getAddress());
out.println(ik.getName().asString() + " @" + ik.getAddress());
}
}
},
@@ -1876,7 +1876,7 @@ public void doit(Tokens t) {
ClassLoaderDataGraph cldg = VM.getVM().getClassLoaderDataGraph();
cldg.classesDo(new ClassLoaderDataGraph.ClassVisitor() {
public void visit(Klass k) {
System.out.println(k.getName().asString() + " @" + k.getAddress());
out.println(k.getName().asString() + " @" + k.getAddress());
}
}
);

0 comments on commit b2f7c58

Please sign in to comment.