< prev index next >

src/jdk.internal.le/share/classes/jdk/internal/jline/TerminalFactory.java

Print this page

        

*** 80,90 **** } t = getFlavor(flavor); } else { try { ! t = (Terminal) Thread.currentThread().getContextClassLoader().loadClass(type).newInstance(); } catch (Exception e) { throw new IllegalArgumentException(MessageFormat.format("Invalid terminal type: {0}", type), e); } } --- 80,92 ---- } t = getFlavor(flavor); } else { try { ! @SuppressWarnings("deprecation") ! Object o = Thread.currentThread().getContextClassLoader().loadClass(type).newInstance(); ! t = (Terminal) o; } catch (Exception e) { throw new IllegalArgumentException(MessageFormat.format("Invalid terminal type: {0}", type), e); } }
< prev index next >