Skip to content

Commit b2f7c58

Browse files
committed
8263055: hsdb Command Line Debugger does not properly direct output for some commands
Reviewed-by: amenkov, ysuenaga
1 parent ecfa712 commit b2f7c58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/CommandProcessor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,13 +1743,13 @@ public void doit(Tokens t) {
17431743
if (metadata instanceof InstanceKlass) {
17441744
ik = (InstanceKlass) metadata;
17451745
} else {
1746-
System.out.println("Specified address is not an InstanceKlass");
1746+
out.println("Specified address is not an InstanceKlass");
17471747
return;
17481748
}
17491749
} else {
17501750
ik = SystemDictionaryHelper.findInstanceKlass(classname);
17511751
if (ik == null) {
1752-
System.out.println("class not found: " + classname);
1752+
out.println("class not found: " + classname);
17531753
return;
17541754
}
17551755
}
@@ -1861,9 +1861,9 @@ public void doit(Tokens t) {
18611861
String classname = t.nextToken();
18621862
InstanceKlass ik = SystemDictionaryHelper.findInstanceKlass(classname);
18631863
if (ik == null) {
1864-
System.out.println("class not found: " + classname);
1864+
out.println("class not found: " + classname);
18651865
} else {
1866-
System.out.println(ik.getName().asString() + " @" + ik.getAddress());
1866+
out.println(ik.getName().asString() + " @" + ik.getAddress());
18671867
}
18681868
}
18691869
},
@@ -1876,7 +1876,7 @@ public void doit(Tokens t) {
18761876
ClassLoaderDataGraph cldg = VM.getVM().getClassLoaderDataGraph();
18771877
cldg.classesDo(new ClassLoaderDataGraph.ClassVisitor() {
18781878
public void visit(Klass k) {
1879-
System.out.println(k.getName().asString() + " @" + k.getAddress());
1879+
out.println(k.getName().asString() + " @" + k.getAddress());
18801880
}
18811881
}
18821882
);

0 commit comments

Comments
 (0)