Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7164191

properties.putAll API may fail with ConcurrentModifcationException on multi-thread scenario

XMLWordPrintable

        System.getProperties() returns a globally accessible set of properties. Another thread can modify the system properties while you are iterating them so CME will be thrown.
        The following SDK/JDK test is added by this fix:

            sun/management/AgentCMETest.java

              dsamersoff Dmitriy Samersoff
              dsamersoff Dmitriy Samersoff
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: