Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 13, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 5 Jan 2013 at 3:08

@GoogleCodeExporter
Copy link
Author

Hi,

Of course, here it is.. 

Original comment by [email protected] on 5 Jan 2013 at 5:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant