JDK-8250239 : Address use of default constructors in the javax.script package
  • Type: CSR
  • Component: core-libs
  • Sub-Component: javax.script
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 16
  • Submitted: 2020-07-23
  • Updated: 2020-07-24
  • Resolved: 2020-07-23
Related Reports
CSR :  
Description
Summary
-------

Replace the default constructor on `CompiledScript` with an equivalent explicit constructor.

Problem
-------

The  `CompiledScript` class in the `javax.script` package uses a default constructor.

Solution
--------

Add an equivalent explicit constructor.

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

    @@ -42,6 +42,10 @@
      * @since 1.6
      */
     public abstract class CompiledScript {
    +    /**
    +     * Constructor for subclasses to call.
    +     */
    +    public CompiledScript() {}
     
         /**
          * Executes the program stored in this <code>CompiledScript</code> object.


Comments
Moving to Approved.
23-07-2020