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

Exception "The variable name 'i' conflicts with the class name 'i'" even if no class "i" exists

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-5
    • parser
    • None

    Description

      When executing a simple script in an Eclipse environment, the use of a variable i leads to this error :
      "The variable name 'i' conflicts with the class name 'i'", even if no class "i" exists.

      The loadClass() function of the GroovyClassLoader class seems to find an inexisting i class.
      Some i classes exist in the Eclipse project like org.argouml.ui.i, but none without any package.
      Nevertheless, the GroovyClassLoader find an i class and script finishes with the above error.

      Used script :
      <%
      int i = 0
      %>

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            hamot Jean-Luc Hamot
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: