< prev index next >
src/java.sql.rowset/share/classes/com/sun/rowset/CachedRowSetImpl.java
Print this page
@@ -2960,11 +2960,13 @@
if (c != null) {
// create new instance of the class
SQLData obj = null;
try {
ReflectUtil.checkPackageAccess(c);
- obj = (SQLData) c.newInstance();
+ @SuppressWarnings("deprecation")
+ Object tmp = c.newInstance();
+ obj = (SQLData) tmp;
} catch(Exception ex) {
throw new SQLException("Unable to Instantiate: ", ex);
}
// get the attributes from the struct
Object attribs[] = s.getAttributes(map);
@@ -5708,11 +5710,13 @@
if (c != null) {
// create new instance of the class
SQLData obj = null;
try {
ReflectUtil.checkPackageAccess(c);
- obj = (SQLData) c.newInstance();
+ @SuppressWarnings("deprecation")
+ Object tmp = c.newInstance();
+ obj = (SQLData) tmp;
} catch(Exception ex) {
throw new SQLException("Unable to Instantiate: ", ex);
}
// get the attributes from the struct
Object attribs[] = s.getAttributes(map);
< prev index next >