Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8250239

Address use of default constructors in the javax.script package

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 16
    • core-libs
    • None
    • minimal
    • Java API
    • SE

      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.

            darcy Joe Darcy
            darcy Joe Darcy
            Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: