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

unreachable proxy server causes ConcurrentModificationException

XMLWordPrintable

    • b127
    • 9
    • b175
    • Verified

        This is a regression in JDK9.
        Due to a change in DynamicProxyManager caused by warning cleanup (JDK-JDK-8156586) when a proxy is removed from the ProxyCache we usually get a java.util.ConcurrentModificationException.
        We are returning (from getProxyList()) the cached List of proxys instead of a clone of it.
        fix is trivial:
                 List<Proxy> dup = new ArrayList<Proxy>();
        - dup = pInfo;
        + dup.addAll(pInfo);
                 return dup;

              herrick Andy Herrick (Inactive)
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: