harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6159) [classlib][beans] java.beans.Statement.execute() throws java.lang.IllegalAccessException while RI doesn't
Date Mon, 20 Apr 2009 09:36:47 GMT
[classlib][beans] java.beans.Statement.execute() throws java.lang.IllegalAccessException while
RI doesn't

                 Key: HARMONY-6159
                 URL: https://issues.apache.org/jira/browse/HARMONY-6159
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M9
            Reporter: Kevin Zhou
             Fix For: 5.0M10

Given a test case [1], RI works smoothly while HY throws a java.lang.IllegalAccessException
as follows:

Stack Trace:
java.lang.IllegalAccessException: A member of the "class kevin.StatementTest$MockTreeMapInnerClass"
with "public" modifiers can not be accessed from the "class java.beans.Statement"
at java.lang.reflect.ReflectExporter.checkMemberAccess(ReflectExporter.java:87)
at java.lang.reflect.Method.invoke(Method.java:311)
at java.beans.Statement.invokeMethod(Statement.java:219)
at java.beans.Statement.execute(Statement.java:108)

[1] Test Case:
public void test_Statement_Execute() throws Exception {
MockTreeMapInnerClass innerTreeMap = new MockTreeMapInnerClass();
Statement statement = new Statement(innerTreeMap, "get", new Object[] { "key" });

class MockTreeMapInnerClass extends TreeMap {
public Object get(Object key) {
return "value";

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message