Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EJBCLIENT-254] Fix bug where JBossEJBProperties.class.getClassLoader() returned null #300

Closed
wants to merge 1 commit into from

Conversation

jbaesner
Copy link
Contributor

Unfortunately I was not able to provide an automated unittest for this fix, but the Jira issue itself contains the procedure steps to reproduce it...

@dmlloyd
Copy link
Member

dmlloyd commented Aug 17, 2017

It would be much better to handle null properly than to fall back to a random, other classloader. Normally we never want to mix classloader acquisition strategies. In addition, the TCCO may be null anyway.

@jbaesner
Copy link
Contributor Author

Well, in that case a default 'jboss-ejb-client.properties' inside the jar would not be found, as we wouldn't have a ClassLoader...

@dmlloyd
Copy link
Member

dmlloyd commented Aug 17, 2017

You do have a class loader. "Null" just means you have to use ClassLoader.getSystemResource() etc. instead.

@n1hility
Copy link
Member

Take a look at #301

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.

3 participants