You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/04/20 12:10:47 UTC

[jira] Updated: (HARMONY-6159) [classlib][beans] java.beans.Statement.execute() throws java.lang.IllegalAccessException while RI doesn't

     [ https://issues.apache.org/jira/browse/HARMONY-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Zhou updated HARMONY-6159:
--------------------------------

    Attachment: HARMONY-6159.diff

Would you please help to try it?

> [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
>
>         Attachments: HARMONY-6159.diff
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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" });
> statement.execute();
> }
> class MockTreeMapInnerClass extends TreeMap {
> @Override
> 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.