< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/MessageOutput.java

Print this page
rev 14117 : 8145468: update java.lang APIs with new deprecations
Reviewed-by: XXX


 181             try {
 182                 println(key);
 183             } catch (MissingResourceException mex) {
 184                 printDirectln(key);
 185             }
 186         }
 187         System.out.flush();
 188         e.printStackTrace();
 189     }
 190 
 191     static void printPrompt() {
 192         ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
 193         if (threadInfo == null) {
 194             System.out.print
 195                 (MessageOutput.format("jdb prompt with no current thread"));
 196         } else {
 197             System.out.print
 198                 (MessageOutput.format("jdb prompt thread name and current stack frame",
 199                                       new Object [] {
 200                                           threadInfo.getThread().name(),
 201                                           new Integer (threadInfo.getCurrentFrameIndex() + 1)}));
 202         }
 203         System.out.flush();
 204     }
 205 }


 181             try {
 182                 println(key);
 183             } catch (MissingResourceException mex) {
 184                 printDirectln(key);
 185             }
 186         }
 187         System.out.flush();
 188         e.printStackTrace();
 189     }
 190 
 191     static void printPrompt() {
 192         ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
 193         if (threadInfo == null) {
 194             System.out.print
 195                 (MessageOutput.format("jdb prompt with no current thread"));
 196         } else {
 197             System.out.print
 198                 (MessageOutput.format("jdb prompt thread name and current stack frame",
 199                                       new Object [] {
 200                                           threadInfo.getThread().name(),
 201                                           Integer.valueOf(threadInfo.getCurrentFrameIndex() + 1)}));
 202         }
 203         System.out.flush();
 204     }
 205 }
< prev index next >