--- old/src/java.sql.rowset/share/classes/javax/sql/rowset/spi/SyncFactory.java 2016-04-21 08:39:38.198868960 -0700 +++ new/src/java.sql.rowset/share/classes/javax/sql/rowset/spi/SyncFactory.java 2016-04-21 08:39:38.034950959 -0700 @@ -582,14 +582,12 @@ * there. **/ c = Class.forName(providerID, true, cl); - return (SyncProvider) c.newInstance(); + @SuppressWarnings("deprecation") + Object result = c.newInstance(); + return (SyncProvider)result; - } catch (IllegalAccessException e) { + } catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) { throw new SyncFactoryException("IllegalAccessException: " + e.getMessage()); - } catch (InstantiationException e) { - throw new SyncFactoryException("InstantiationException: " + e.getMessage()); - } catch (ClassNotFoundException e) { - throw new SyncFactoryException("ClassNotFoundException: " + e.getMessage()); } }