You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by xiaoda08 <xi...@sei.pku.edu.cn> on 2009/08/05 06:57:46 UTC

Re: [jira] Updated: (SMX4-329) jaxb-api bundle should throwJAXBException when contextPath is empty string

Hi,


Thanks so much!

I have met a network problem these days and can not open servicemix jira page, failed to submit the ticket for that issue.

Thanks again for your help!


--Xiao Da


2009-08-05 



xiaoda08@sei.pku.edu.cn
Peking University, China




发件人: Freeman Fang (JIRA) 
发送时间: 2009-08-05  11:15:01 
收件人: dev 
抄送: 
主题: [jira] Updated: (SMX4-329) jaxb-api bundle should throwJAXBException when contextPath is empty string 
 
     [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang updated SMX4-329:
------------------------------
    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
  was:
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
> jaxb-api bundle should throw JAXBException when contextPath is empty string
> ---------------------------------------------------------------------------
>
>                 Key: SMX4-329
>                 URL: https://issues.apache.org/activemq/browse/SMX4-329
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: specs-1.4.0
>
>
> 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
-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.