Skip to content

Type Coercion failed: Array to Vector.<Op> and Array to Vector.<JumpTargetData> #134

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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!



Original issue reported on code.google.com by [email protected] on 4 Jan 2013 at 2:16

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions