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

Improve Error handling incorrectly implementing Java interface #836

Closed
petekanev opened this issue Aug 28, 2017 · 2 comments
Closed

Improve Error handling incorrectly implementing Java interface #836

petekanev opened this issue Aug 28, 2017 · 2 comments
Assignees

Comments

@petekanev
Copy link
Contributor

Problem:
Making a call to the interface constructor in JavaScript without prefixing it with the new keyword would abruptly crash the app without a stack trace or an exception message.

let r = java.lang.Runnable({ run: () => { }});

Solution:
Handle incorrect calls to interface constructors and throw a nativescript exception object with the appropriate message.

@petekanev
Copy link
Contributor Author

Addressed by #843

@petekanev petekanev self-assigned this Sep 26, 2017
@petekanev
Copy link
Contributor Author

A fix will be available in the upcoming 3.3.0 release.

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

2 participants