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] Created: (HARMONY-5200) [ibm vme] final fields cannot be set accessible
Date Mon, 26 Nov 2007 21:08:43 GMT
[ibm vme] final fields cannot be set accessible

                 Key: HARMONY-5200
                 URL: https://issues.apache.org/jira/browse/HARMONY-5200
             Project: Harmony
          Issue Type: Bug
          Components: VM
            Reporter: Vasily Zakharov

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.set(t, 4);

Output on RI:


Output on Harmony/IBM VME:

Exception in thread "main" java.lang.IllegalAccessException
        at java.lang.reflect.Field.setImpl(Native Method)
        at java.lang.reflect.Field.set(Field.java:430)
        at Test.main(Test.java:8)

See the last comment at http://jira.codehaus.org/browse/XSTR-379

The similar issue exists for DRLVM: HARMONY-5199

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message