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

ClassUtils.getClass(ClassLoader, String) fails for "void"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4
    • 3.5
    • lang.*
    • None
    • Mac OS X
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

    Description

      ClassUtils.getClass(ClassUtils.class.getClassLoader(), "void") throws "ClassNotFoundException: [V".

      Root cause: ClassUtils contains an abbreviationMap for use in dealing with abbreviated primitive types like "[I" and "[J". However, this commit introduces a "void -> V" mapping for "completeness".

      This seems wholly erroneous, since the maps are used only for primitive array abbreviations, and "void/V" is not among them.

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              henryptung Henry Tung
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 10m
                  10m
                  Remaining:
                  Remaining Estimate - 10m
                  10m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified