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

interface declaration in Groovy generates duplicate class definition when run

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-JSR-6, 1.0-RC-1
    • 1.0
    • class generator
    • None
    • Linux Fedora core 3 2.6.12-1.1381_FC3
      Groovy Version: 1.0-RC-02-SNAPSHOT JVM: 1.5.0_08-b03

    Description

      Creating a simple class in groovy implementing an interface also declared in groovy and instantiating that class results in a java linkage error:
      See example attached to issue.

      groovy TestUser.groovy
      Caught: java.lang.LinkageError: duplicate class definition: IUser

      I tested it in 1.0-RC-01, 1.0-RC-02 and 1.0-JSR-06 with same error.

      Regards

      Pascal

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blackdrag Jochen Theodorou
            pdemilly Pascal Demilly
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment