invokespecial on abstract method
Christian Stuellenberg
gcj@stuellenberg.de
Fri Oct 3 09:51:00 GMT 2003
>>>>> "Christian" == Christian Stuellenberg <gcj@stuellenberg.de> writes:
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
Christian> If I look at the bytecode there is an invokespecial on
Christian> an abstract method: <bytecode...>
Andrew> Where?
I'm sorry, I wanted to write invokeonvirtual instead of invokespecial
(the package name was also wrong, but now it is):
Method public size () -> int
0 iconst_1
1 ifeq 9
4 aload_0
5 invokestatic #6 <Method testing/fun.size (Ltesting/A;)I>
8 ireturn
9 aload_0
10 invokenonvirtual #11 <Method java/util/AbstractCollection.size ()I>
13 ireturn
Method public get (int) -> java/lang/Object
0 iload_1
1 iconst_0
2 if_icmpne 11
5 aload_0
6 iload_1
7 invokestatic #15 <Method testing/fun.get (Ltesting/A;I)Ljava/lang/Object;>
10 areturn
11 aload_0
12 iload_1
13 invokenonvirtual #20 <Method java/util/AbstractList.get (I)Ljava/lang/Object;>
16 areturn
Method public <init> () -> void
0 aload_0
1 invokenonvirtual #24 <Method java/util/AbstractList.<init> ()V>
4 return
More information about the Java
mailing list