You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Fedotov (JIRA)" <ji...@apache.org> on 2007/11/26 22:12:43 UTC

[jira] Updated: (HARMONY-5199) [drlvm][kernel] final fields cannot be set accessible

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

Alexei Fedotov updated HARMONY-5199:
------------------------------------

    Description: 
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




  was:
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





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