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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment