harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-6159) [classlib][beans] java.beans.Statement.execute() throws java.lang.IllegalAccessException while RI doesn't
Date Mon, 22 Jun 2009 09:12:08 GMT

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

Tim Ellison closed HARMONY-6159.
--------------------------------


No response, assuming ok.

> [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
>            Assignee: Tim Ellison
>             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.


Mime
View raw message