Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 144 by
hamuyrod...@gmail.com: MethodBuilder.addAsmSource() #1034
conversion error
http://code.google.com/p/as3-commons/issues/detail?id=144
What steps will reproduce the problem?
1. Define a method body using a string source
var source:String = (<![CDATA[
getlocal_0
pushscope
getlocal_1
pushint 100
multiply
setlocal_1
getlocal_1
returnvalue
]]>).toString();
methodBuilder.addAsmSource(source);
___
What is the expected output?
methodBuilder.addAsmSource should generate the method body.
___
What do you see instead?
Error:
#1034: Array to vector conversion
___
What version of the product are you using? On what operating system?
as3commons-bytecode-1.1.1 on Windows 8
___
Posible fix:
On org.as3commons.bytecode.emit.impl.MethodBodyBuilder
Line 397
Change: addOpcodes(result[0]);
To: addOpcodes(Vector.<Op>(result[0]));
Line: 431
Chage:_backpatches = _backpatches.concat(newBackpatches);
To: _backpatches =
_backpatches.concat(Vector.<JumpTargetData>(newBackpatches));
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings