JDK-8250579 : Address reliance on default constructors in javax.sql
  • Type: CSR
  • Component: core-libs
  • Sub-Component: javax.sql
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 16
  • Submitted: 2020-07-25
  • Updated: 2020-07-25
  • Resolved: 2020-07-25
Related Reports
CSR :  
Description
Summary
-------

Replace a default constructor in `javax.sql.rowset.RowSetMetaDataImpl` with an equivalent explicit constructor.

Problem
-------

The class `javax.sql.rowset.RowSetMetaDataImpl` relies on a default constructor. 

Solution
--------

Add an explicit public no-arg constructor.

Specification
-------------

    diff -r b3af0bdfb85a src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java
    --- a/src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java	Fri Jul 24 13:49:38 2020 -0700
    +++ b/src/java.sql.rowset/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java	Fri Jul 24 19:13:28 2020 -0700
    @@ -52,6 +52,10 @@
      * @since 1.5
      */
     public class RowSetMetaDataImpl implements RowSetMetaData,  Serializable {
    +    /**
    +     * Constructs a {@code RowSetMetaDataImpl} object.
    +     */
    +    public RowSetMetaDataImpl() {}
     
         /**
          * The number of columns in the <code>RowSet</code> object that created


Comments
Moving to Approved.
25-07-2020

Adding [~lancea] as a reviewer per http://mail.openjdk.java.net/pipermail/core-libs-dev/2020-July/067916.html
25-07-2020