[ 
https://issues.apache.org/jira/browse/ARTEMIS-5663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033251#comment-18033251
 ] 

Justin Bertram commented on ARTEMIS-5663:
-----------------------------------------

{{IllegalArgumentException}}, {{NullPointerException}}, and 
{{NumberFormatException}} all extend {{RuntimeException}} which means there is 
no expectation that they will be declared in a method's {{throws}} clause. 

That said, it would potentially make sense to add some JavaDoc. I would be open 
to that if there was a reasonable use-case from an actual human and not 
something algorithmically generated by an artificial fuzz tester that doesn't 
make sense in the real world.

It's also worth noting that while there are a number of public helper methods 
in {{ActiveMQDestination}} these are part of the JMS implementation and not 
part of the JMS API so are not really meant to be used by application 
developers.

Ultimately I would ask that you not open further issues like this unless you 
have a reasonable, real-world use-case and accompany the issue with a PR to fix 
the issue. Thanks!

> Exceptions in ActiveMQDestination.createDestination method
> ----------------------------------------------------------
>
>                 Key: ARTEMIS-5663
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5663
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.31.2, 2.43.0
>         Environment: openjdk version "21.0.8" 2025-07-15
>            Reporter: Mikhail Titov
>            Assignee: Justin Bertram
>            Priority: Major
>         Attachments: Exceptions_ActiveMQDestination.createDestination.tar
>
>
> Some bugs were discovered as a result of fuzz-testing the 
> {{ActiveMQDestination.createDestination}} method:
> # {{IllegalArgumentException}} (3 different types)
> # {{NullPointerException}}
> # {{NumberFormatException}}
> I have created a standalone repro for each bug (attached archive). You can 
> reproduce them by running the following command:
> {noformat}
> java -cp .:jars/* <bug_name>.java {noformat}
>  



--
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


Reply via email to