Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1860

SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.0
    • 4.0
    • None
    • None
    • ServiceMix Kernel testing support

    • Patch Available

    Description

      The folliwing line:

      pkg = name.substring(0, name.lastIndexOf('.'));

      fails when name represents a class in the default package and makes String.substring() throw ad ArrayIndexOutOfBoundsException.

      Attached is a simple fix. I guess you can make it look better

      Patch is against current trunk.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mirko.caserta Mirko Caserta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: