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

Java stub generator does not generate signatures for methods that take default arguments?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-rc-3
    • None
    • None

    Description

      In Groovy the following is allowed:

      class Hello {
      void foo(String one, String two = "foo") {
      println "$one $two"
      }
      }
      println new Hello().foo("boo") // prints "boo foo"

      However the joint compiler throws a compilation error because it only sees the method that takes two String arguments

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: