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 Zakharov (JIRA)" <ji...@apache.org> on 2007/09/22 12:13:50 UTC

[jira] Created: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

[drlvm][jni] behavior of CallVoidMethod incompatible with RI
------------------------------------------------------------

                 Key: HARMONY-4841
                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Win32
            Reporter: Alexei Zakharov
            Priority: Minor


In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.


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


[jira] Resolved: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky resolved HARMONY-4841.
----------------------------------------

    Resolution: Fixed

Patch is applied at 579146. Attached test passes for me. Please verify that the fix works for you.

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Assignee: Gregory Shimansky
>            Priority: Minor
>         Attachments: H4841.zip, patch
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Updated: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-4841:
---------------------------------------

    Attachment: patch

Attached is the patch that makes CallVoidMethod to call constructors non-virtually.

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Priority: Minor
>         Attachments: H4841.zip, patch
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Updated: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-4841:
-------------------------------------

    Attachment: H4841.zip

Reproducer is attached.  It fails on DRLVM and passes on J9 as well as on RI.

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Priority: Minor
>         Attachments: H4841.zip
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Assigned: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky reassigned HARMONY-4841:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Assignee: Gregory Shimansky
>            Priority: Minor
>         Attachments: H4841.zip, patch
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Updated: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-4841:
-------------------------------------

    Attachment:     (was: H4841.zip)

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Priority: Minor
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Closed: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov closed HARMONY-4841.
------------------------------------


Verified. The issue is not reproducible anymore.

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Assignee: Gregory Shimansky
>            Priority: Minor
>         Attachments: H4841.zip, patch
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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


[jira] Updated: (HARMONY-4841) [drlvm][jni] behavior of CallVoidMethod incompatible with RI

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-4841:
-------------------------------------

    Attachment: H4841.zip

Makefile was added

> [drlvm][jni] behavior of CallVoidMethod incompatible with RI
> ------------------------------------------------------------
>
>                 Key: HARMONY-4841
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4841
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Win32
>            Reporter: Alexei Zakharov
>            Priority: Minor
>         Attachments: H4841.zip
>
>
> In DRLVM JNI implementation if CallVoidMethod(env,obj,mid) is applied to some object (obj) and constructor of its superclass (described by mid) then constructor of object's class rather than object's superclass will be called. However, both RI and J9 call superclass's constructor in this case. Please see the attached test case for details.

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