PATCH: More list updates

Bryce McKinlay bryce@albatross.co.nz
Thu Nov 2 19:56:00 GMT 2000


This patch makes AbstractList.SubList a top-level private class in 0rder
to work around gcj's static inner class problems (arguably, this also
makes the code cleaner). It also fixes a bug in LinkedList: modification
counts must always be updated in the iterator add() and remove() methods
so that other iterators on the same list will detect concurrent
modification correctly against modifications made through the iterator
view.

This patch is against libgcj, but I'm checking the same into classpath.

regards

  [ bryce ]



More information about the Java-patches mailing list