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

JSRVariableScopeCodeVisitor doesn't like String[]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-JSR-3
    • Component/s: class generator
    • Labels:
      None

      Description

      getTypeName() in JSRVariableScopeCodeVisitor doesn't handle String[], which means you can't override a method where the base class method expects a String array. The fix is easy - just add another "else if" around line 415 something like:

      else if (name.equals("java.lang.String")) {
      return prefix + "L";
      }

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              rodcope Rod Cope
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified