harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko" <mloe...@gmail.com>
Subject [classlib][util] HARMONY-574: Java 5 Enhancement:new class java.util.PriorityQueue
Date Fri, 16 Jun 2006 04:14:07 GMT
Hi Paulex!

fyi the following method:

        public int compare(Object object1, Object object2) {
            // test cast
            E e1 = (E) object1;
            E e2 = (E) object2;
            return 0;
        }

compiles to the following bytecode:

   0:	aload_1
   1:	astore_3
   2:	aload_2
   3:	astore	4
   5:	iconst_0
   6:	ireturn

So, it does not have any cast testing.

I'll slightly update the test if you don't mind

Thanks,
Mikhail

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


Mime
View raw message