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

ClassNode provides wrong type name for parameters acquired from MethodNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.5.7
    • None
    • parser
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: