8191846: jstat prints debug message when debugging is disabled
Reviewed-by: ehelin, rehn
This commit is contained in:
parent
250c05ee4c
commit
9771e4daa7
@ -69,8 +69,10 @@ public class ExpressionResolver implements ExpressionEvaluator {
|
|||||||
// look it up
|
// look it up
|
||||||
Monitor m = vm.findByName(id.getName());
|
Monitor m = vm.findByName(id.getName());
|
||||||
if (m == null) {
|
if (m == null) {
|
||||||
|
if (debug) {
|
||||||
System.err.println("Warning: Unresolved Symbol: "
|
System.err.println("Warning: Unresolved Symbol: "
|
||||||
+ id.getName() + " substituted NaN");
|
+ id.getName() + " substituted NaN");
|
||||||
|
}
|
||||||
return new Literal(Double.valueOf(Double.NaN));
|
return new Literal(Double.valueOf(Double.NaN));
|
||||||
}
|
}
|
||||||
if (m.getVariability() == Variability.CONSTANT) {
|
if (m.getVariability() == Variability.CONSTANT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user