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

Duplicate entry in InnerClasses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1
    • None

    Description

      For this code:

      class Foo {
          static interface A{}
          static interface B{} // (1)
          static class Inner<X> {}
          static Inner<A> method() {} // (2)
      }
      
      println new Foo()
      

      This error is received:

      java.lang.ClassFormatError: Duplicate entry in InnerClasses in class file Foo
      

      Removing either the declaration of B at (1) or the Generics attribute <A> on the type Inner at (2) will avoid the error.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: