RFR : 7144488 StackOverflowError occurres on list via Collections.synchronizedList(List)
Alan Bateman
Alan.Bateman at oracle.com
Wed Feb 22 14:22:51 UTC 2012
On 22/02/2012 13:25, Seán Coffey wrote:
> Bug recently reported. We enter infinite recursion on a boundary case
> for Collections.synchronizedList.remove(..)
>
> Fix is a simple equals check in class method before delegating the call.
>
> bug : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7144488
> webrev : http://cr.openjdk.java.net/~coffeys/webrev.7144488/
Sean - the fix looks okay to me but I assume there are other cases, like
with SynchronizedSet and hashCode for example. I don't know if they are
all fixable, at least not the hashCode cases.
-Alan.
More information about the core-libs-dev
mailing list