Jonas Maebe - 2011-06-24

The Jasmin parser interprets every string that represents a Java bytecode opcode as a Java bytecode opcode when it appears in a method body.

You can work around this by single-quoting identifiers. I.e., in your case:
.var 2 is 'ret' I from 36 to 39