activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher L. Shannon (JIRA)" <>
Subject [jira] [Commented] (AMQ-6786) AbstractInactivityMonitor.startMonitorThreads() throws IllegalArgumentException
Date Thu, 03 Aug 2017 14:56:00 GMT


Christopher L. Shannon commented on AMQ-6786:

I think the exception in this case is appropriate.  Setting a negative initialDelayTime is
an error so an exception should be thrown indicating this so the value can be fixed.  With
your patch the code will skip over scheduling of the tasks entirely which is probably not
what a user wants.

> AbstractInactivityMonitor.startMonitorThreads() throws IllegalArgumentException
> -------------------------------------------------------------------------------
>                 Key: AMQ-6786
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>            Reporter: Giovanni Liva
>         Attachments: patchAMQ-6786.txt
> The method startMonitorThreads() of class org.apache.activemq.transport.AbstractInactivityMonitor
can throw an IllegalArgumentException.
> The current code verifies that only _readCheckTime_ and _writeCheckTime_ are positive
integers without checking the value of _initialDelayTime_ .

This message was sent by Atlassian JIRA

View raw message