Skip to content

fix to serialize interfaces\abstract types - #92

Closed
galziv wants to merge 1 commit into
rpgmaker:masterfrom
galziv:master
Closed

galziv wants to merge 1 commit into
rpgmaker:masterfrom
galziv:master

Conversation

@galziv

@galziv galziv commented Nov 26, 2015

Copy link
Copy Markdown

Try to get Newobj only for types with constructor. Without condition an exception is thrown.

Try to get Newobj only for types with constructor. Without condition an exception is thrown.
@rpgmaker

Copy link
Copy Markdown
Owner

This will cause an exception since opcodes.stloc is still going to be called when their is no value on the stack to pop. It will be better to use an attribute to get the correct type to initialize when a constructor does not exists.

Thanks,

@galziv

galziv commented Nov 27, 2015

Copy link
Copy Markdown
Author

Sorry, but I'm not that familiar with the framework. What do you mean by "using an attribute"? can you show an example or refer me to the relevant doc?
Thanks in advance.

@rpgmaker

Copy link
Copy Markdown
Owner

@galziv

galziv commented Nov 28, 2015

Copy link
Copy Markdown
Author

I'll review. Thank you for the prompt replies!

@rpgmaker

Copy link
Copy Markdown
Owner

I am closing the pull request since I can merge because it will break current functionality.

Thanks,

@rpgmaker rpgmaker closed this Nov 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants