--- old/src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetProvider.java 2016-04-27 14:35:06.729163577 -0700 +++ new/src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetProvider.java 2016-04-27 14:35:06.569163571 -0700 @@ -136,8 +136,9 @@ } // getFactoryClass takes care of adding the read edge if // necessary - Class c = getFactoryClass(factoryClassName, null, false); - factory = (RowSetFactory) c.newInstance(); + @SuppressWarnings("deprecation") + Object o = getFactoryClass(factoryClassName, null, false).newInstance(); + factory = (RowSetFactory) o; } } catch (Exception e) { throw new SQLException( "RowSetFactory: " + factoryClassName + @@ -202,6 +203,7 @@ // getFactoryClass takes care of adding the read edge if // necessary Class providerClass = getFactoryClass(factoryClassName, cl, false); + @SuppressWarnings("deprecation") RowSetFactory instance = (RowSetFactory) providerClass.newInstance(); if (debug) { trace("Created new instance of " + providerClass +