harmony-commits mailing list archives

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

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


Mime
View raw message