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

Fix up transforms (apart from TupleConstructor) which are affected by empty includes default

    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
      }
      

      This is a CLONE to cover the other transforms. TupleConstructor was fixed in GROOVY-7523.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: