harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5199) [drlvm][kernel] final fields cannot be set accessible
Date Tue, 27 Nov 2007 06:14:43 GMT

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

Alexey Varlamov resolved HARMONY-5199.
--------------------------------------

    Resolution: Duplicate
      Assignee: Alexey Varlamov

Vasily observed right, specification states that only non-static final fields can be modified.

> [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
>            Assignee: Alexey Varlamov
>         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.


Mime
View raw message