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

stub generator creates wrong code for inner and nested classes

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: