-
Notifications
You must be signed in to change notification settings - Fork 246
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
Implemented interface discovery broken in Python as well #2963
Labels
bug
This issue is a bug.
language/python
Related to Python bindings
module/pacmak
Issues affecting the `jsii-pacmak` module
module/runtime
Issues affecting the `jsii-runtime`
p1
Comments
rix0rrr
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Aug 19, 2021
RomainMuller
added a commit
that referenced
this issue
Aug 19, 2021
When a type extends a jsii class, any additional interfaces implemented via the `@jsii.implements` annotation were not properly registered, and overrides were not properly discovered. This was the combination of a code-generation bug, which caused the type passed to the `create` kernel method to be that of the jsii class, instead of the dynamic class (`self.__class__`); and a kernel bug, which caused those inheritance graphs to completely skip overrides detection. Fixes #2963
RomainMuller
added a commit
that referenced
this issue
Aug 19, 2021
When a type extends a jsii class, any additional interfaces implemented via the `@jsii.implements` annotation were not properly registered, and overrides were not properly discovered. This was the combination of a code-generation bug, which caused the type passed to the `create` kernel method to be that of the jsii class, instead of the dynamic class (`self.__class__`); and a kernel bug, which caused those inheritance graphs to completely skip overrides detection. Fixes #2963
RomainMuller
added
language/python
Related to Python bindings
module/pacmak
Issues affecting the `jsii-pacmak` module
module/runtime
Issues affecting the `jsii-runtime`
p1
bug
This issue is a bug.
and removed
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Aug 19, 2021
mergify bot
pushed a commit
that referenced
this issue
Aug 19, 2021
When a type extends a jsii class, any additional interfaces implemented via the `@jsii.implements` annotation were not properly registered, and overrides were not properly discovered. This was the combination of a code-generation bug, which caused the type passed to the `create` kernel method to be that of the jsii class, instead of the dynamic class (`self.__class__`); and a kernel bug, which caused those inheritance graphs to completely skip overrides detection. Fixes #2963 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
|
5 tasks
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.
language/python
Related to Python bindings
module/pacmak
Issues affecting the `jsii-pacmak` module
module/runtime
Issues affecting the `jsii-runtime`
p1
🐛 Bug Report
I have another one similar to #2951
Originally reported as aws/aws-cdk#16120
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
What is the problem?
Python code:
When used in a Pipelines pipeline, leads to the following error:
The
produce_action
call takes a struct that contains anIStage
, which has anaddAction()
method. The method is not translated toadd_action
, probably because the interfaces aren't discovered properly again:Repro here: https://github.com/rix0rrr/jsii-repro
The text was updated successfully, but these errors were encountered: