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

Unable to instantiate object when return type is abstract (java) #220

Closed
eladb opened this issue Sep 12, 2018 · 0 comments
Closed

Unable to instantiate object when return type is abstract (java) #220

eladb opened this issue Sep 12, 2018 · 0 comments
Labels
bug This issue is a bug.

Comments

@eladb
Copy link
Contributor

eladb commented Sep 12, 2018

See aws/aws-cdk#680

@eladb eladb added the bug This issue is a bug. label Sep 12, 2018
@eladb eladb changed the title Unable to instantiate object when return type is abstract Unable to instantiate object when return type is abstract (java) Sep 12, 2018
eladb pushed a commit that referenced this issue Sep 12, 2018
Generate a $proxy class for all abstract classes
and use them when the return type is abstract,
similar to interface proxies.

This change also adds "abstract: true" to all
interface members, so the proxy generator can
treat interfaces and classes polymorphically.

Added a compliance test "returnAbstract" which
verifies this behavior.

Fixes #220
Related to #223 (.NET)
Related to aws/aws-cdk#680 (require jsii update)
eladb pushed a commit that referenced this issue Sep 13, 2018
Generate a $proxy class for all abstract classes
and use them when the return type is abstract,
similar to interface proxies.

This change also adds "abstract: true" to all
interface members, so the proxy generator can
treat interfaces and classes polymorphically.

Added a compliance test "returnAbstract" which
verifies this behavior.

Fixes #220
Related to #223 (.NET)
Related to aws/aws-cdk#680 (require jsii update)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant