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

Projects
None yet
2 participants
@ghuser

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 skybber closed this in 2e836de Feb 23, 2017

@skybber

This comment has been minimized.

Contributor

skybber commented Feb 23, 2017

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

@ghuser

This comment has been minimized.

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