|
From: | ujihara at aurora dot dti dot ne dot jp |
Subject: | [Bug classpath/24752] ArrayList#listIterator(int).nextIndex() and previousIndex() should not call checkMod(). |
Date: | 11 Nov 2005 13:07:56 -0000 |
------- Comment #4 from ujihara at aurora dot dti dot ne dot jp 2005-11-11 13:07 ------- I am understanding what you say and I partially agree with you. But nextIndex() method is always safe aside from the fact that the return value is valid or not. I notcie that the following sentence is described on a ConcurrentModificationException part of Sun's Java API Specification. 'This exception may be thrown by methods that have detected concurrent modification of an object when such MODIFICATION is not permissible.' I think nextIndex() method doesn't modify anything and Sun's implementation follows the specifications. FYI, the testcase of Jakarta-Commmons Collections is failed with GNU Classpath because of this matter. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24752
[Prev in Thread] | Current Thread | [Next in Thread] |