View Single Post
Old 10-30-2003, 10:57 AM   #27
Derk
New Member
 
Join Date: Oct 2003
Posts: 19
Derk is on a distinguished road
Hehe.. good thing you asked... I was under the impression the impression it wouldn't work this way...

[code] <cl 100.0% el 100.0%> set derk foo bar
foo->bar
<cl 100.0% el 100.0%> exec attributes = player.getAttributes()
<cl 100.0% el 100.0%> exec player.println(attributes.next())
admin
<cl 100.0% el 100.0%> set derk foo foobity
foo->foobity
<cl 100.0% el 100.0%> exec player.println(attributes.next())
Traceback (innermost last);
File "<string>", line 1, in ?
File
"scripts/exec.py", line 1, in ?
File "<string>", line 1, in
?
java.util.ConcurrentModificationException
at
java.util.Hashtable$Enumerator.next(Hashtable.java ;976)[/quote]


Which is interesting, because according to the java api... I am not using a java iterator, but a java enumeration.

Derk is offline   Reply With Quote