# HG changeset patch # User egahlin # Date 1377098144 -7200 # Node ID f860aff6ed05412c91253d98b740d0d89d9e529b # Parent 8ef7bdc1bb5a70e77e7bf0c3d11af828fbda1e7f 6417649: -interval=0 is accepted and jconsole doesn't update window content at all Reviewed-by: alanb, jbachorik diff -r 8ef7bdc1bb5a -r f860aff6ed05 jdk/src/share/classes/sun/tools/jconsole/JConsole.java --- a/jdk/src/share/classes/sun/tools/jconsole/JConsole.java Thu Aug 22 15:54:50 2013 -0700 +++ b/jdk/src/share/classes/sun/tools/jconsole/JConsole.java Wed Aug 21 17:15:44 2013 +0200 @@ -858,6 +858,10 @@ try { updateInterval = Integer.parseInt(arg.substring(10)) * 1000; + if (updateInterval <= 0) { + usage(); + return; + } } catch (NumberFormatException ex) { usage(); return;