[ 
https://issues.apache.org/jira/browse/ARTEMIS-5663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram resolved ARTEMIS-5663.
-------------------------------------
      Assignee: Justin Bertram
    Resolution: Not A Bug

All these exceptions seem reasonable to me. For example, if you pass an illegal 
argument (as you do in several of your tests) then you can expect to get an 
{{IllegalArgumentException}}. If you pass {{null}} then you can expect to get a 
{{NullPointerException}}.  If you pass an invalid number then you can expect to 
get a {{NumberFormatException}}. 

Just because an exception is thrown doesn't mean there's a bug.

> 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 results of fuzz-testing of 
> ActiveMQDestination.createDestination methods: 
> 1. IllegalArgumentException (3 different types)
> 2. NullPointerException
> 3. NumberFormatException
> I have created a standalone repro for each bug (attached archive). You can 
> reproduce them by running the following command:
> {code:java}
> java -cp .:jars/* <bug_name>.java {code}
>  



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