harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
Date Fri, 16 Feb 2007 14:38:05 GMT

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

Alexei Zakharov reopened HARMONY-953:
-------------------------------------


IMO this should be moved to non-bug-diff component

> [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-953
>                 URL: https://issues.apache.org/jira/browse/HARMONY-953
>             Project: Harmony
>          Issue Type: Task
>          Components: Non-bug differences from RI
>            Reporter: Alexei Zakharov
>         Assigned To: Gregory Shimansky
>            Priority: Trivial
>
> The order of elements returned by Class.getMethods() and Class.getDeclaredMethods() differs
from one returned by RI implementation of these methods. 
> I have wrote a small test and ran it on four different VMs.
> The test simply does TestBean.class.getDeclaredMethods() and prints
> the resulting array.
> TestBean.java:
> class TestBean {
>    String methodCalled = null;
>    public void method(Integer i) {
>        methodCalled = "method1";
>    }
>    public void method(int i) {
>        methodCalled = "method2";
>    }
>    public void method(boolean b) {
>        methodCalled = "method3";
>    }
>    public void method(Boolean b) {
>        methodCalled = "method4";
>    }
> }
> The results:
> RI (Sun 1.5.0_05)
> method int
> method boolean
> method java.lang.Boolean
> method java.lang.Integer
> j9 v3
> method java.lang.Integer
> method int
> method boolean
> method java.lang.Boolean
> DLRVM
> method java.lang.Integer
> method int
> method boolean
> method java.lang.Boolean
> jrockit-R26.3.0-jdk1.5.0_06
> method java.lang.Boolean
> method boolean
> method int
> method java.lang.Integer
> It was decided in the mailing list that this is a low priority task but it should be
fixed nevertheless [1].
> http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200607.mbox/%3c44BC3B05.4060807@gmail.com%3e

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