You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Raphaël Ramirez (JIRA)" <ji...@apache.org> on 2009/07/09 17:45:07 UTC

[jira] Created: (AMQ-2321) getServices() method of BrokerService throws a ClassCastException

getServices() method of BrokerService throws a ClassCastException
-----------------------------------------------------------------

                 Key: AMQ-2321
                 URL: https://issues.apache.org/activemq/browse/AMQ-2321
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.2.0
         Environment: Java 1.6.0_13-b03
            Reporter: Raphaël Ramirez
            Priority: Minor


The getServices() method of org.apache.activemq.broker.BrokerService throws a ClassCastException on runtime.

    public Service[] getServices() {
        return (Service[]) services.toArray();
    }

must be replace with :

    public Service[] getServices() {
        return (Service[]) services.toArray(new Service[0]);
    }


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


[jira] Resolved: (AMQ-2321) getServices() method of BrokerService throws a ClassCastException

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

Gary Tully resolved AMQ-2321.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.3.0

fixed in r792591. thanks

> getServices() method of BrokerService throws a ClassCastException
> -----------------------------------------------------------------
>
>                 Key: AMQ-2321
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2321
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0
>         Environment: Java 1.6.0_13-b03
>            Reporter: Raphaël Ramirez
>            Assignee: Gary Tully
>            Priority: Minor
>             Fix For: 5.3.0
>
>
> The getServices() method of org.apache.activemq.broker.BrokerService throws a ClassCastException on runtime.
>     public Service[] getServices() {
>         return (Service[]) services.toArray();
>     }
> must be replace with :
>     public Service[] getServices() {
>         return (Service[]) services.toArray(new Service[0]);
>     }

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


[jira] Assigned: (AMQ-2321) getServices() method of BrokerService throws a ClassCastException

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

Gary Tully reassigned AMQ-2321:
-------------------------------

    Assignee: Gary Tully

> getServices() method of BrokerService throws a ClassCastException
> -----------------------------------------------------------------
>
>                 Key: AMQ-2321
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2321
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0
>         Environment: Java 1.6.0_13-b03
>            Reporter: Raphaël Ramirez
>            Assignee: Gary Tully
>            Priority: Minor
>
> The getServices() method of org.apache.activemq.broker.BrokerService throws a ClassCastException on runtime.
>     public Service[] getServices() {
>         return (Service[]) services.toArray();
>     }
> must be replace with :
>     public Service[] getServices() {
>         return (Service[]) services.toArray(new Service[0]);
>     }

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