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

VerifyError for explicit this parameter and default argument(s)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0-alpha-3
    • 5.0.0-alpha-4
    • Compiler
    • None

    Description

      Consider the following:

                  @Retention(RUNTIME) @Target(TYPE_USE) @interface TypeAnno0 { String value() }
                  @Retention(RUNTIME) @Target(TYPE_USE) @interface TypeAnno1 { String value() }
      
                  class Foo {
                      def bar(@TypeAnno0(value="this") Foo this, @TypeAnno1(value="that") that = null) {
                      }
                  }
      

      Loaded class Foo causes verify error due to generated method call in bar().

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: