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 2006/07/21 20:13:14 UTC

[jira] Created: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

[drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
------------------------------------------------------------------------------

                 Key: HARMONY-953
                 URL: http://issues.apache.org/jira/browse/HARMONY-953
             Project: Harmony
          Issue Type: Bug
          Components: Non-bug differences from RI
         Environment: winXP
            Reporter: Alexei Zakharov


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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Commented: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Or have DRLVM component added.  I thought one of the problems is that we 
don't actually know how to deterministically fix as it's not specified 
in the spec.


Mikhail Loenko wrote:
> 2006/9/14, Alexei Zakharov (JIRA) <ji...@apache.org>:
>>    [ 
>> http://issues.apache.org/jira/browse/HARMONY-953?page=comments#action_12434627 
>> ]
>>
>> Alexei Zakharov commented on HARMONY-953:
>> -----------------------------------------
>>
>> IMO it should be moved to DRLVM component.
> 
> 
> +1
> 
> Thanks,
> Mikhail
> 
> 
> 
>>
>> > [drlvm] order of elements returned by Class.getDeclaredMethods 
>> differs from RI
>> > 
>> ------------------------------------------------------------------------------ 
>>
>> >
>> >                 Key: HARMONY-953
>> >                 URL: http://issues.apache.org/jira/browse/HARMONY-953
>> >             Project: Harmony
>> >          Issue Type: Bug
>> >          Components: Non-bug differences from RI
>> >         Environment: winXP
>> >            Reporter: Alexei Zakharov
>> >
>> > 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.
>> -
>> If you think it was sent incorrectly contact one of the 
>> administrators: http://issues.apache.org/jira/secure/Administrators.jspa
>> -
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [jira] Commented: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

Posted by Mikhail Loenko <ml...@gmail.com>.
2006/9/14, Alexei Zakharov (JIRA) <ji...@apache.org>:
>    [ http://issues.apache.org/jira/browse/HARMONY-953?page=comments#action_12434627 ]
>
> Alexei Zakharov commented on HARMONY-953:
> -----------------------------------------
>
> IMO it should be moved to DRLVM component.


+1

Thanks,
Mikhail



>
> > [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
> > ------------------------------------------------------------------------------
> >
> >                 Key: HARMONY-953
> >                 URL: http://issues.apache.org/jira/browse/HARMONY-953
> >             Project: Harmony
> >          Issue Type: Bug
> >          Components: Non-bug differences from RI
> >         Environment: winXP
> >            Reporter: Alexei Zakharov
> >
> > 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.
> -
> If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


[jira] Commented: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-953?page=comments#action_12434627 ] 
            
Alexei Zakharov commented on HARMONY-953:
-----------------------------------------

IMO it should be moved to DRLVM component.

> [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-953
>                 URL: http://issues.apache.org/jira/browse/HARMONY-953
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>         Environment: winXP
>            Reporter: Alexei Zakharov
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-953?page=comments#action_12434575 ] 
            
Tony Wu commented on HARMONY-953:
---------------------------------

This is not a non-bug difference I think

> [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-953
>                 URL: http://issues.apache.org/jira/browse/HARMONY-953
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>         Environment: winXP
>            Reporter: Alexei Zakharov
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-953) [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-953?page=all ]

Paulex Yang updated HARMONY-953:
--------------------------------

    Component/s: DRLVM
                     (was: Non-bug differences from RI)

> [drlvm] order of elements returned by Class.getDeclaredMethods differs from RI
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-953
>                 URL: http://issues.apache.org/jira/browse/HARMONY-953
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: winXP
>            Reporter: Alexei Zakharov
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira