Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-329

jaxb-api bundle should throw JAXBException when contextPath is empty string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • specs-1.4.0
    • None
    • None

    Description

      currently the code is
      String[] packages = contextPath.split(":");
      if (packages == null || packages.length == 0)

      { throw new JAXBException("Invalid contextPath"); }

      but if contextPath is "", then the pachages.length == 1 but pachages[0] == "", we should also throw exception for this case

      [1] is discussion on mailing list for this issue
      http://www.nabble.com/A-question-about-org.apache.servicemix.specs.jaxb-api-2.1-td24755350.html

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: