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
ConcurrentModificationException on creating Config #203
Comments
Wow. Great finding. I'll check it out. Thanks.
L.
|
Might be better off replacing the contents of that getProperties() method with a clone() call:
|
|
@lviggiano this is confused bug for a long time。 can release new version after fix it ? |
Litemn
pushed a commit
to Litemn/owner
that referenced
this issue
Sep 26, 2018
resolved by pull request #241 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
first of all, this is a great api. We use it for about half a year and it is very handy :-) great work!
Now we get an Exception in a multithreaded environment. I analysed it, and found out, that it occurs when the system properties are modified, while a owner Config object is created:
I wrote a junit testcase to reproduce it. And I also found a Workaround for it, by use another SystemProvider (from your api) which take a copy from the system properties made with an enumeration, because enumerations don't throw ConcurrentModificationExceptions.
Here is the testcase:
The text was updated successfully, but these errors were encountered: