Commit 3257223
Elad Ben-Israel
fix(java): support abstract return types (#224)
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)1 parent 72927bd commit 3257223
69 files changed
Lines changed: 7834 additions & 6804 deletions
File tree
- packages
- codemaker
- jsii-build-tools
- jsii-calc-base-of-base/test
- jsii-calc-base/test
- jsii-calc-lib/test
- jsii-calc
- lib
- test
- jsii-dotnet-generator/src
- Amazon.JSII.Generator.UnitTests/Interface
- Amazon.JSII.Generator
- Class
- Interface
- jsii-dotnet-jsonmodel/src/Amazon.JSII.JsonModel/Spec
- jsii-java-runtime-test/project/src/test/java/software/amazon/jsii/testing
- jsii-java-runtime/project/src/main/java/software/amazon/jsii
- jsii-kernel
- jsii-pacmak
- lib/targets
- test
- expected.jsii-calc-base
- dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId
- java/src/main/java/software/amazon/jsii/tests/calculator/base
- sphinx
- expected.jsii-calc-lib
- dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId
- java/src/main/java/software/amazon/jsii/tests/calculator/lib
- sphinx
- expected.jsii-calc
- dotnet/Amazon.JSII.Tests.CalculatorPackageId
- Amazon/JSII/Tests/CalculatorNamespace
- java/src/main/java/software/amazon/jsii/tests/calculator
- InterfaceInNamespaceIncludesClasses
- InterfaceInNamespaceOnlyInterface
- composition
- sphinx
- jsii-runtime
- jsii-spec
- jsii
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| 257 | + | |
253 | 258 | | |
254 | 259 | | |
255 | 260 | | |
| |||
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
266 | 272 | | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| 276 | + | |
270 | 277 | | |
271 | 278 | | |
272 | 279 | | |
| |||
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
320 | | - | |
| 327 | + | |
321 | 328 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
816 | 868 | | |
0 commit comments