Message4915
Calling iterator.hasNext() when iterating over a HashSet results in an
IllegalAccessError when running Jython 2.2.1 on IBM JDK 6 SR5 (32 bit
and 64 bit) on Linux. A short program to trigger the bug is pasted in below.
The same program is verified to work with Jython 2.2.1 on Sun JDK
1.6.0_14 and on IBM JDK 5 SR9-SSU.
The same program is verified to work with Jython 2.5.0 on all JDK:s above.
I.e: the bug seems only to affect Jython 2.2.1 and IBM JDK 6 SR5 (32 and
64 bit) on Linux.
Stack trace:
---
Traceback (innermost last):
File "bug.py", line 8, in ?
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:77)
at java.lang.reflect.Method.invoke(Method.java:590)
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"
---
Program to trigger the bug:
---
from java.lang import System
print System.getProperty("java.vendor")
from java.util import HashSet
s = HashSet()
s.add("a")
itr = s.iterator()
# Next line fails
itr.hasNext()
--- |
|
Date |
User |
Action |
Args |
2009-07-17 08:02:03 | kargu2 | set | recipients:
+ kargu2 |
2009-07-17 08:02:03 | kargu2 | set | messageid: <1247817723.05.0.91696471148.issue1404@psf.upfronthosting.co.za> |
2009-07-17 08:02:02 | kargu2 | link | issue1404 messages |
2009-07-17 08:02:02 | kargu2 | create | |
|