JiBX
  1. JiBX
  2. JIBX-285

BindGen does not work on classes in the default package

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2
    • Fix Version/s: JiBX 1.2.2
    • Component/s: BindGen
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Trying to run the binding generator on a class in the default package (i.e. no package name) strips the first letter from the class name and fails.
      The bug seems to b in the GlobalCustom class (split + 1).

      private ClassCustom buildClassCustomization(String type) {
      int split = type.lastIndexOf('.');
      if (split < 0)

      { split = 0; }

      PackageCustom pack = getPackage(type.substring(0, split));
      ClassCustom clas = pack.addClassCustomization(type.substring(split + 1));
      return clas;
      }

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Added test case and corrected problems.

        Show
        Dennis Sosnoski added a comment - Added test case and corrected problems.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Alex
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: