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

Address use of default constructors in the javax.script package

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: