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

Type names are sometimes in .class file syntax, rather than source syntax.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-6
    • 1.0-beta-6
    • class generator
    • None

    Description

      In methods generated by the groovy compiler, type names in parameter signatures end up using the .class file type format, where the rest of the system using source format.

      So, for example, a String array is normally represented as "java.lang.String[]"; in the getStrings() method generated in createGStringClass, it's represented by "[Ljava.lang.String;".

      As mentioned above, "createGStringClass" in ClassGenerator is a good example of this.

      Attachments

        1. jvm-type-name-fix.patch
          3 kB
          Mark C Chu-Carroll

        Activity

          People

            guillaume Guillaume Sauthier
            markcc Mark C Chu-Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Time Spent - 2h
                5m
                Logged:
                Time Spent - 2h Time Not Required
                2h