You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2024/06/19 15:23:00 UTC
[jira] [Commented] (ARTEMIS-4824) code overload DM_BOXED_PRIMITIVE_FOR_PARSING
[ https://issues.apache.org/jira/browse/ARTEMIS-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856296#comment-17856296 ]
Justin Bertram commented on ARTEMIS-4824:
-----------------------------------------
Please do not set the "Component" field to {{ActiveMQ-Artemis-Native}} when the issue has nothing to do with it.
> 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
> Affects Versions: 2.25.0
> Reporter: Andrey Slepykh
> Priority: Major
> 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 (fvv22u102@student.bmstu.ru)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact