Skip to content

ARTEMIS-6234 Fix bugs related to arguments in embeded server - #6672

Open
GChuf wants to merge 1 commit into
apache:mainfrom
GChuf:ARTEMIS-6234
Open

ARTEMIS-6234 Fix bugs related to arguments in embeded server#6672
GChuf wants to merge 1 commit into
apache:mainfrom
GChuf:ARTEMIS-6234

Conversation

@GChuf

@GChuf GChuf commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

if (args.length == 1) {
if (args.length >= 1) {
if (args[0] == null || args[0].trim().isEmpty()) {
throw new java.io.IOException("Work directory cannot be empty");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be IllegalArgumentException.

@jbertram

jbertram commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

It would be ideal to have a test to verify the problem and prevent future regressions. See org.apache.activemq.artemis.core.server.embedded.MainTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants