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

fix(dotnet): "Could not infer JSII type for .NET type 'AnonymousObject'" #1718

Merged
merged 5 commits into from
Aug 11, 2020

Conversation

RomainMuller
Copy link
Contributor

When obtained through an untyped way (e.g: as part of an opaque object
for example), instances of AnonymousObject could not be cast back to
their Kernel form, because the converter lacked a code path to handle
this type. Instead, it insisted on trying to infer a "better" run-time
type for it.

This adds the necessary code path to handle this condition and properly
return the reverse conversion.

Fixes aws/aws-cdk#7977


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

@RomainMuller RomainMuller added the bug This issue is a bug. label Jun 8, 2020
@RomainMuller RomainMuller requested a review from a team June 8, 2020 13:57
@RomainMuller RomainMuller self-assigned this Jun 8, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 8, 2020
When obtained through an untyped way (e.g: as part of an opaque object
for example), instances of `AnonymousObject` could not be cast back to
their Kernel form, because the converter lacked a code path to handle
this type. Instead, it insisted on trying to infer a "better" run-time
type for it.

This adds the necessary code path to handle this condition and properly
return the reverse conversion.

Fixes aws/aws-cdk#7977
@RomainMuller RomainMuller force-pushed the rmuller/fix-dotnet-anonymousobject branch from c4552a9 to 3567bab Compare June 8, 2020 13:59
@mergify
Copy link
Contributor

mergify bot commented Jul 27, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jul 27, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 27, 2020

Merging (with squash)...

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: 4455afc
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@RomainMuller RomainMuller merged commit 41d79e7 into master Aug 11, 2020
@RomainMuller RomainMuller deleted the rmuller/fix-dotnet-anonymousobject branch August 11, 2020 13:59
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Aug 11, 2020
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. contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cdk Crash on synth of cloudwatch dashboard
3 participants