Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "Collection's remove() method" changed to "ArrayList's remove() method".

...

This noncompliant code example (based on Sun Developer Network SDN 2011 bug report 6687277) uses the Collection ArrayList's remove() method to remove an element from an ArrayList while iterating over the ArrayList. The resulting behavior is unspecified.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="361da225491dec6b-0b4449cf-401242b0-ac93831f-173e07dc37acab1d45c9cc25"><ac:plain-text-body><![CDATA[

[[API 2006

AA. References#API 06]]

Class [ConcurrentModificationException

http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fdc754cb10e5aa5b-65e70fba-433d466f-aae6a378-bf120df6dc177b37d77b250a"><ac:plain-text-body><![CDATA[

[[SDN 2008

AA. References#SDN 08]]

[Sun Bug database, Bug ID 6687277

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6687277]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f63c82d6222116ac-d81230cc-4a344414-832c860a-2bcef50252f197cd63e06770"><ac:plain-text-body><![CDATA[

[[Goetz 2006a

AA. References#Goetz 06]]

5.1.2. Iterators and ConcurrentModificationException

]]></ac:plain-text-body></ac:structured-macro>

...