Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-979

TypeUtils.parameterizeWithOwner - wrong format descriptor for "invalid number of type parameters"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.5
    • lang.reflect.*
    • None

    Description

      The TypeUtils.parameterizeWithOwner method uses the following format string:

      "invalid number of type parameters specified: expected %s, got %s"

      with parameters that are actually ints.

      This means that the parameters are boxed into Integers and then converted to Strings by the formatter.

      Seems to me it would make more sense to either create the Strings directly from the ints, or box the ints and use "%d" for the place holders.

      Attachments

        1. LANG-979.patch
          0.8 kB
          Bruno P. Kinoshita

        Activity

          People

            britter Benedikt Ritter
            sebb Sebb
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: