Issue 134 in as3-commons: Type Coercion failed: Array to Vector.<Op> and Array to Vector.<JumpTargetData>

12 views
Skip to first unread message

as3-c...@googlecode.com

unread,
Jan 3, 2013, 9:16:52 PM1/3/13
to as3-commons...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 134 by wojm...@gmail.com: Type Coercion failed: Array to
Vector.<Op> and Array to Vector.<JumpTargetData>
http://code.google.com/p/as3-commons/issues/detail?id=134

What steps will reproduce the problem?
1. calling methodBuilder.addAsmSource() with source string given in example
tutorial :)

What is the expected output? What do you see instead?
Exception is raised.

What version of the product are you using? On what operating system?
Checked out files from svn, today. Windows 7, Flash CS6.

Please provide any additional information below.
There are simple type cast problem, in MethodBodyBuilder.addAsmSource()
function. I've changed the following lines to fix it:

addOpcodes( result[0] );
to
addOpcodes( Vector.<Op>( result[0] ) );

and in function addBackPatches():
_backpatches = _backpatches.concat( newBackpatches );
to
_backpatches = _backpatches.concat( Vector.<JumpTargetData>(newBackpatches)
);

BTW, great work, thanks!




as3-c...@googlecode.com

unread,
Jan 4, 2013, 10:08:45 PM1/4/13
to as3-commons...@googlegroups.com

Comment #1 on issue 134 by rol...@stackandheap.com: Type Coercion failed:
Array to Vector.<Op> and Array to Vector.<JumpTargetData>
http://code.google.com/p/as3-commons/issues/detail?id=134

Hi there, could you please provide a patch file for the changes you're
suggesting
Thanks for your contribution!

as3-c...@googlecode.com

unread,
Jan 5, 2013, 12:02:04 PM1/5/13
to as3-commons...@googlegroups.com

Comment #2 on issue 134 by wojm...@gmail.com: Type Coercion failed: Array
to Vector.<Op> and Array to Vector.<JumpTargetData>
http://code.google.com/p/as3-commons/issues/detail?id=134

Hi,

Of course, here it is..

Reply all
Reply to author
Forward
0 new messages