Skip to content

Java: support abstract return types - #224

Merged
eladb merged 5 commits into
masterfrom
benisrae/java-return-abstract
Sep 13, 2018
Merged

eladb merged 5 commits into
masterfrom
benisrae/java-return-abstract

Conversation

@eladb

@eladb eladb commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

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)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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
eladb merged commit 3257223 into master Sep 13, 2018
@eladb
eladb deleted the benisrae/java-return-abstract branch September 13, 2018 14:43
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.

3 participants