Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5680

MessageBrokerView.getTempQueues() have test for destination.isTopic() instead of destination.isQueue()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.12.0
    • None
    • None

    Description

      The following code is a near-copy of the .getTempTopics() right above - without the change of the "if (destination.isTopic()..." to "if (destination.isQueue()..."

          /**
           * Retrieve a set of all TemporaryQueues be used by the Broker
           * @return  all TemporaryQueues
           */
          public Set<ActiveMQTempQueue> getTempQueues(){
              Set<ActiveMQTempQueue> result = new HashSet<ActiveMQTempQueue>();
              for (ActiveMQDestination destination:getDestinations()){
                  if (destination.isTopic() && destination.isTemporary()){
                      result.add((ActiveMQTempQueue) destination);
                  }
              }
              return result;
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            stolsvik Endre Stølsvik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: