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

TupleConstructor with empty includes includes all

    XMLWordPrintableJSON

Details

    Description

      I know this is a bit of an edge case, but I find the behavior doesn't follow what one would expect

      assert Cat.class.declaredConstructors.size() == 1  // fails
      
      @groovy.transform.TupleConstructor(includes=[])
      class Cat {
        String name
        int age
      }
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              keegan Keegan Witt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: