< prev index next >

src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SQLInputImpl.java

Print this page

        

@@ -476,11 +476,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 >