activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Ramirez (JIRA) <j...@apache.org>
Subject [jira] Created: (AMQ-2321) getServices() method of BrokerService throws a ClassCastException
Date Thu, 09 Jul 2009 15:45:07 GMT
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.


Mime
View raw message