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

VerifyError with nonstatic category references in static methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.6
    • 1.7.7, 1.8-beta-4
    • class generator, Compiler
    • None
    • wxp sp3, jdk 1.6.0_20, groovy 1.7.6

    Description

      when an inner class annotated with @Category is referenced from a static method,
      it fails at runtime with a VerifyError

      without the @Category annotation it works just fine,
      so perhaps its something with the transformation

      attached is a simple example

      Attachments

        1. GROOVY4584_staticInnerClasses.patch
          37 kB
          Paul King
        2. innerCategory.groovy
          0.5 kB
          Pertino Juan

        Activity

          People

            paulk Paul King
            jpertino Pertino Juan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: