jonkiparsky / z-engine

Automatically exported from code.google.com/p/z-engine
0 stars 0 forks source link

trouble checking room contents: "look" causes ConcurrentModificationException #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Dump of game, from startup to crash:

/Users/jon/java/alt_repack:534 $ java -jar ZEngine.jar 
/Users/jon/java/alt_repack/./src/gamefiles
You are in a hallway
You can see exits to the NORTH and SOUTH
There is TRACT and  here.
propspath = /Users/jon/java/alt_repack/./src/gamefiles/props/
>> take flashlight
FLASHLIGHT, 
You have a FLASHLIGHT.
The FLASHLIGHT is OFF
>> look

Exception in thread "main" java.util.ConcurrentModificationException
    at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
    at java.util.AbstractList$Itr.next(AbstractList.java:343)
    at zengine.Room.listItems(Unknown Source)
    at zengine.Room.description(Unknown Source)
    at zengine.State.look(Unknown Source)
    at gamefiles.grammar.Look.execute(Unknown Source)
    at zengine.Sentence.execute(Unknown Source)
    at zengine.Parser.processMove(Unknown Source)
    at zengine.Parser.makeMove(Unknown Source)
    at zengine.ZEngineMain.start(Unknown Source)

Original issue reported on code.google.com by jon.kipa...@gmail.com on 4 Sep 2011 at 2:44

GoogleCodeExporter commented 8 years ago

Original comment by jon.kipa...@gmail.com on 4 Sep 2011 at 2:52