I have a jython script on AIX (with IBM JDK) that parses a HashMap and prints its keys and values.
The HashMap signature is HashMap<String,String> and I want to print both the keys and values in a loop.
I get an iterator over the keys in this hashmap but when I try to check for more elements, I get the following exception -
java.lang.IllegalAccessException: java.lang.IllegalAccessException: Class org.python.core.PyReflectedFunction can not access a member of class java.util.HashMap$AbstractMapIterator with modifiers "public"
Here is how my script looks like (the same script works fine on Linux)