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

MultipleCompilationErrorsException was thrown when the codes exist nested java style old loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-3
    • None
    • None
    • Windows 2000
      Groovy Version: 1.1-beta-2
      JVM: 1.5.0_08-b03

    Description

      When I run the codes, the following exception has been thrown,
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
      OldLoop.groovy: 2: The current scope does already contain a variable of the name
      forLoopDummyParameter

      The codes:
      for (int i=0;i<10;i++) {
      for (int j=9;j>=0;j--)

      { println i+j }

      }

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            tiger_shark Tiger Shark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: