-
Notifications
You must be signed in to change notification settings - Fork 245
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
ClassCastException when trying to get Element from Node #4202
Comments
got similar issue with function.addAlias() (lambda function construct):
Reverting to jsii 1.85.0 helped:
|
See the other issue how I created a workaround: aws/aws-cdk#26604 |
The registration was done on the object's prototype, and the value from the constructor was always used, even if that was inherited, such that if a parent type had already been resolved previously, all child types would use the parent's FQN instead of their own. Addressed this by instead storing the associations in an external WeakMap, and added a test case to validate correct behavior. Fixes aws/aws-cdk#26604 Fixes #4202 Fixes #4203
|
Describe the bug
Hi,
I'm using aws-cdk for java. After upgrading the artifact software.amazon.jsii:jsii-runtime from version 1.85.0 to 1.86.0 a lot of my stacks don't compile anymore. Here an example stack
when running
cdk synthesize RolesAnywhereStack
a ClassCastException occurs:with jsii-runtime 1.85.0 everything works fine.
Expected Behavior
No ClassCastException
Current Behavior
ClassCastException
Reproduction Steps
try to synthesize this stack
Possible Solution
No response
Additional Information/Context
No response
SDK version used
software.amazon.jsii:jsii-runtime:1.85.0
Environment details (OS name and version, etc.)
Debian openjdk version "17.0.2" 2022-01-18 OpenJDK Runtime Environment (build 17.0.2+8-86) OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: