boojay icon indicating copy to clipboard operation
boojay copied to clipboard

Long type name incorrect when passed as a parameter

Open JamesCaska opened this issue 10 years ago • 0 comments

    l as long = 32768
    print l

generates the following bytecode

30: ldc 32768 (129) 32: istore_1 33: getstatic java.lang.System.out Ljava/io/PrintStream; (47) 36: iload_1 37: invokevirtual java.io.PrintStream.println (Llong;)V (132)

The 37: has the parameter (Llong;) but it should be (J) ie 37: invokevirtual java.io.PrintStream.println (J)V (132)

JamesCaska avatar Sep 02 '14 07:09 JamesCaska