< prev index next >

src/java.management/share/classes/javax/management/remote/JMXConnectorFactory.java

Print this page

        

*** 529,539 **** } // We have just proved that this cast is correct Class<? extends T> providerClassT = Util.cast(providerClass); try { ! return providerClassT.newInstance(); } catch (Exception e) { final String msg = "Exception when instantiating provider [" + className + "]"; throw new JMXProviderException(msg, e); --- 529,541 ---- } // We have just proved that this cast is correct Class<? extends T> providerClassT = Util.cast(providerClass); try { ! @SuppressWarnings("deprecation") ! T result = providerClassT.newInstance(); ! return result; } catch (Exception e) { final String msg = "Exception when instantiating provider [" + className + "]"; throw new JMXProviderException(msg, e);
< prev index next >