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

Thread.currentThread().getContextClassLoader().getResources() does not load resources from 'watchResources' dir #176

Closed
ghuser opened this issue Feb 22, 2017 · 2 comments

Comments

@ghuser
Copy link

ghuser commented Feb 22, 2017

HotSwapTests.zip

I use jdk1.8.0_121. I run the simple example above (for testing purposes it never terminates) then I update test.xml inside the directory defined in watchResources and currentThread().getContextClassLoader().getResources(); still returns the same results.
Only the return value of Main.class.getResourceAsStream() changes.

@skybber
Copy link
Contributor

skybber commented Feb 23, 2017

There was some missing code for multi-resource methods. Thanks for report!

@ghuser
Copy link
Author

ghuser commented Feb 23, 2017

It works!
But I think this creates a new Issue. When extraClasspath is enabled (nomatter what the path is), currentThread().getContextClassLoader().getResources('test.xml') is empty.

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

No branches or pull requests

2 participants