harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2451) [classlib][luni] SecurityManager.getClassContext output differs from the RI
Date Fri, 27 Apr 2007 06:32:15 GMT

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

Mikhail Markov updated HARMONY-2451:

    Attachment: H-2451_drlvm.patch

Here is the patch fixing DRLVM as the problem is only reproducible there (on IBM VME everything
works fine).

Fix description: SecurityManager.getClassContext() calls non-public package-protected method
of Class: Class.getStackClasses(). According to documentation (see here: http://people.apache.org/~pyang/harmonydoc/windows/kernel_doc/html/classjava_1_1lang_1_1Class_3_01T_01_4.html#e1b426ee6a2a24394327e8002535ae06)
getStackClasses() method should return an array containing the classes of running methods
on the stack starting from the caller of the caller of this method. In DRLVM this method is
not native and additional call to native VMStack.getClasses() method is used. So, as there
is additional layer in the call stack, to meet the specification for getStackClasses() VMStack.getClasses()
should return an array starting from the caller of the caller of the caller of it.

> [classlib][luni] SecurityManager.getClassContext output differs from the RI
> ---------------------------------------------------------------------------
>                 Key: HARMONY-2451
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2451
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Priority: Minor
>         Attachments: H-2451_drlvm.patch, H-2451_test.patch, test.java
> SecurityManager.getClassContext output differs from the RI, attached testcase demonstrates
the problem:
> RI output:
> --------------
> SM
> test
> jrockit.vm.RNI
> --------------
> Harmony VM output:
> --------------
> java.lang.SecurityManager
> SM
> test
> --------------
> Expected SM class to be the first, got class java.lang.SecurityManager

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

View raw message