BeanShell Troubles

I had to fight with BeanShell again today. ¬†For some reason, incrementing a simple int doesn’t work if the int is outside of the scope of the method that increments it. It works just fine if the integer is modified in-scope; that is, the same method, or in the main body of the beanshell script.