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.
|