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

stub generator creates wrong code for inner and nested classes

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

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1, 1.8-beta-1
    • Compiler
    • None

    Description

      class Foo {
      def foo

      class Bar

      { // could also be static }

      }

      Look at the generated Java source code. All property accessors in Foo are replicated in Bar. An easy way to show this is to define a property with the same name in both classes. Javac will fail with a duplicate declaration error.

      Attachments

        Activity

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

          People

            roshandawrani Roshan Dawrani
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment