[ https://issues.apache.org/jira/browse/HARMONY-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545695
]
Vasily Zakharov commented on HARMONY-5199:
------------------------------------------
Alexei, thank you very much for the quick fix, it seems to resolve the problem with XStream.
I just wonder it it was right to remove the null check that previously existed in commented
code...
> [drlvm][kernel] final fields cannot be set accessible
> -----------------------------------------------------
>
> Key: HARMONY-5199
> URL: https://issues.apache.org/jira/browse/HARMONY-5199
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Alexei Fedotov
> Attachments: fix_if.patch, test_fix_if.patch
>
>
> The following simple test fails:
> import java.lang.reflect.*;
> public class TestField {
> final public int g = 3;
> public static void main(String[] args) throws Exception {
> TestField t = new TestField();
> Field f = t.getClass().getField("g");
> f.setAccessible(true);
> f.setInt(t, 4);
> System.out.println(t.g);
> }
> }
> See the last comment at http://jira.codehaus.org/browse/XSTR-379
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|