Andrey Slepykh created ARTEMIS-4824:
---------------------------------------
Summary: code overload DM_BOXED_PRIMITIVE_FOR_PARSING
Key: ARTEMIS-4824
URL: https://issues.apache.org/jira/browse/ARTEMIS-4824
Project: ActiveMQ Artemis
Issue Type: Bug
Components: ActiveMQ-Artemis-Native
Affects Versions: 2.25.0
Reporter: Andrey Slepykh
Assignee: Clebert Suconic
Attachments: image-2024-06-19-18-06-30-222.png
!image-2024-06-19-18-06-30-222.png!
you are using the ```Integer.valueOf``` [in line
89|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L89]
method which hashes the information, although ultimately the
connectionCountThreshold variable is only used for comparison using the "if" on
line
[53|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L53]
of the same file
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author: Firsov Vladimir, BMSTU ([email protected])
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact