< prev index next >

src/jdk.attach/share/classes/com/sun/tools/attach/spi/AttachProvider.java

Print this page
rev 11875 : 8079360: AttachProviderImpl could not be instantiated
Reviewed-by:

*** 239,249 **** * * <p> AttachProvider implementations are loaded and instantiated * (using the zero-arg constructor) at the first invocation of this method. * The list returned by the first invocation of this method is the list * of providers. Subsequent invocations of this method return a list of the same ! * providers. The list is unmodifable. * * @return A list of the installed attach providers. */ public static List<AttachProvider> providers() { synchronized (lock) { --- 239,249 ---- * * <p> AttachProvider implementations are loaded and instantiated * (using the zero-arg constructor) at the first invocation of this method. * The list returned by the first invocation of this method is the list * of providers. Subsequent invocations of this method return a list of the same ! * providers. The list is unmodifiable. * * @return A list of the installed attach providers. */ public static List<AttachProvider> providers() { synchronized (lock) {
*** 262,273 **** } catch (Throwable t) { if (t instanceof ThreadDeath) { ThreadDeath td = (ThreadDeath)t; throw td; } ! // Ignore errors and exceptions ! System.err.println(t); } } } return Collections.unmodifiableList(providers); } --- 262,273 ---- } catch (Throwable t) { if (t instanceof ThreadDeath) { ThreadDeath td = (ThreadDeath)t; throw td; } ! // Log errors and exceptions since we cannot return them ! t.printStackTrace(); } } } return Collections.unmodifiableList(providers); }
< prev index next >