harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5199) [drlvm][kernel] final fields cannot be set accessible
Date Mon, 26 Nov 2007 21:05:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545604
] 

Vasily Zakharov commented on HARMONY-5199:
------------------------------------------

Thanks alot for taking note of this, Alexei!

By the way, IBM VME makes the same mistake.


> [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
>
> 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.set(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.


Mime
View raw message