[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] how to access 'Variables' variable
From: Guillaume Laforge <glaforge () gmail ! com>
Date: 2005-04-26 8:27:53
Message-ID: 197b18fc0504260127578217c9 () mail ! gmail ! com
[Download RAW message or body]
Hello,
Once again, I think you've encountered a bug!
You're a real human debugger ;-)
Could you please fill a JIRA request in our bug tracker?
http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242
Thanks in advance.
See some comments below:
On 23/04/05, Gayathri Karthik <gayathrik@gmail.com> wrote:
> [snip]
> D:\lab\groovy>groovy test.gy
> key is name and value is bob
> key is age and value is 22
> size of the bound variables is 5
> key is list and value is [hello, hi, hye]
> Caught: java.util.ConcurrentModificationException
> at test.run(D:\lab\groovy\test.gy:13)
> at test.main(D:\lab\groovy\test.gy)
I also get that error, whether it be in the interactive shell in on
the command-line:
groovy> a = 1
groovy> b = "foo"
groovy> for (keyval in binding.variables) {
groovy> println "${keyval.key} = ${keyval.value}"
groovy> }
groovy> go
a = 1
Exception: null
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at CommandLine.run(CommandLine.groovy:3)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:501)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:453)
at groovy.ui.InteractiveShell.run(InteractiveShell.java:154)
at groovy.ui.InteractiveShell.main(InteractiveShell.java:92)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:429)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
null
So, please put that in JIRA so that we don't forget about it. And I
hope we'll fix it quickly.
Thanks again for your patience, and sorry for any inconvienience.
--
Guillaume Laforge
http://glaforge.free.fr/weblog/?catid=2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic