< prev index next >
src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetProvider.java
Print this page
*** 134,145 ****
if (factoryClassName.equals(ROWSET_FACTORY_IMPL)) {
return defaultRowSetFactory();
}
// getFactoryClass takes care of adding the read edge if
// necessary
! Class<?> c = getFactoryClass(factoryClassName, null, false);
! factory = (RowSetFactory) c.newInstance();
}
} catch (Exception e) {
throw new SQLException( "RowSetFactory: " + factoryClassName +
" could not be instantiated: ", e);
}
--- 134,146 ----
if (factoryClassName.equals(ROWSET_FACTORY_IMPL)) {
return defaultRowSetFactory();
}
// getFactoryClass takes care of adding the read edge if
// necessary
! @SuppressWarnings("deprecation")
! Object o = getFactoryClass(factoryClassName, null, false).newInstance();
! factory = (RowSetFactory) o;
}
} catch (Exception e) {
throw new SQLException( "RowSetFactory: " + factoryClassName +
" could not be instantiated: ", e);
}
*** 200,209 ****
--- 201,211 ----
try {
// 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 +
" using ClassLoader: " + cl);
}
< prev index next >