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

Groovy fails to call varargs method signatures when an empty arg list is supplied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-beta-2
    • syntax
    • None
    • JDK 5.0 Apple Inc

    Description

      //Java code
      public class FacesMessages implements Serializable
      {
         //vargars signature
         public void add(String messageTemplate, Object... params)
         {
            ...
         }
      ...
      }
      
      //From an other class
      //This piece of code fails in Groovy, work in Java
         void invalid()
         {
            facesMessages.add("Please try again")
         }
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            epbernard Emmanuel Bernard
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: