Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1467

Default method parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.5.2
    • None
    • Win XP, JDK1.5.0_06, JSR-06

    Description

      A method declarator in an interface may include one or more default parameters.
      These defaults should apply to only the parameters at the end of the parameter list.
      JSR-06 permits them to appear anywhere.

      Question: Do defaults in interfaces make sense? Could a class implementing the interface
      offer a different default value? This leads to ambiguity.

      Attachments

        Activity

          People

            paulk Paul King
            kenb Kenneth Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: