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

Exception when registering call method named new #51

Closed
jirenius opened this issue Feb 12, 2020 · 1 comment
Closed

Exception when registering call method named new #51

jirenius opened this issue Feb 12, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jirenius
Copy link
Owner

Issue

Using DynamicHandler or_BaseHandler_ to register a call method with the name "new" will result in the exception:

System.ArgumentException: Must use SetNew to register handler for new call requests

Solution

This is due to a deprecated validation used to enforce correct behavior prior to v0.4.2 and RES protocol v1.2.0. The validation should be removed and any example updated.

@jirenius jirenius added the bug Something isn't working label Feb 12, 2020
@jirenius jirenius self-assigned this Feb 12, 2020
jirenius added a commit that referenced this issue Feb 12, 2020
Added tests to validate that call methods named new is allowed.
Fixed example 03_BookCollection to use Call instead of New.
jirenius added a commit that referenced this issue Feb 12, 2020
…stering-call-method-named-new

Bugfix/gh 51 exception when registering call method named new
@jirenius
Copy link
Owner Author

Resolved in #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant