--- old/src/java.base/share/classes/sun/nio/ch/ThreadPool.java 2016-04-27 14:34:52.877163116 -0700 +++ new/src/java.base/share/classes/sun/nio/ch/ThreadPool.java 2016-04-27 14:34:52.709163110 -0700 @@ -165,14 +165,11 @@ GetPropertyAction(DEFAULT_THREAD_POOL_THREAD_FACTORY)); if (propValue != null) { try { - Class c = Class - .forName(propValue, true, ClassLoader.getSystemClassLoader()); - return ((ThreadFactory)c.newInstance()); - } catch (ClassNotFoundException x) { - throw new Error(x); - } catch (InstantiationException x) { - throw new Error(x); - } catch (IllegalAccessException x) { + @SuppressWarnings("deprecation") + Object tmp = Class + .forName(propValue, true, ClassLoader.getSystemClassLoader()).newInstance(); + return (ThreadFactory)tmp; + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException x) { throw new Error(x); } }