You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2009/08/05 04:42:36 UTC

[jira] Created: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

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
             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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMX4-329.
-------------------------------

    Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=801051&view=rev

> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang closed SMX4-329.
-----------------------------


> 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.


[jira] Assigned: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMX4-329:
---------------------------------

    Assignee: Freeman Fang

> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SMX4-329 started by Freeman Fang.

> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4-329) jaxb-api bundle should throw JAXBException when contextPath is empty string

Posted by "xiaoda (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53479#action_53479 ] 

xiaoda commented on SMX4-329:
-----------------------------

I think that is ok now , thanks!

And how can I close this issue ? or anybody close it ?

> 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.


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

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ 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.