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

ClassNode provides wrong type name for parameters acquired from MethodNode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.5.7
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None

      Description

      Looks like for type parameters on MethodNode returns wrong name.

      To be more specific:
      node.getParameters[0].getType().getName()

      If the parameter is simple native or reference type the name is correct (for example String -> java.lang.String, byte -> byte). However for arrays it returns something strange which is nor java signature neither jvm signature for reference types (for example String[] -> [Ljava.lang.String. For arrays of native types it returns the name in jvm notation (for example byte[] -> [B).

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              phejl Petr Hejl
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: