This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New Miscompilation Into Bytecode Error


Ranjit Mathew wrote:
...
in contrast to the following code produced by GCJ:
---------------------------- 8< ----------------------------
Hello$1$Local(Hello,int,int);
  Code:
   0:   aload_0
   1:   aload_1
   2:   putfield        #14; //Field this$0:LHello;

The initializer must be called first (I think).


5: aload_0
This is "this".

6: aload_1
This is the Hello instance.

Now where is the integer value for the following call? That is what the verifier complains about.

   7:   invokespecial   #29; //Method "<init>":(LHello;I)V
   10:  return
---------------------------- 8< ----------------------------

Regards Stephan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]