-
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
fix(dotnet): Use nested classes for proxies to avoid name collision #2368
Conversation
Oh this is neat! I wonder if we shouldn't simply name the proxy type Besides this, we'll need to dutifully make sure this is not a breaking change to existing users... |
You're correct... I guess there isn't much to worry about in this case (we cannot support people using internal declarations using reflection anyway, or we may never change anything...).
The integration test run on GitHub workflows indeed runs a full build and generation of the CDK (actually - now only |
@all-contributors add @jsteinich for code |
I've put up a pull request to add @jsteinich! 🎉 |
(I like this, marked it as You may want to make the PR "ready for review" (as far as I'm concerned, it is...). |
Adds @jsteinich as a contributor for code. This was requested by RomainMuller [in this comment](#2368 (comment))
I've taken some more time to understand what tests exist and how the proxies are used, so I'll go ahead and update. The one not quite ideal piece is some warnings because of the |
I think we should be able to get a relatively clean signal - if any type in the inheritance chain is from the same library and has a proxy, then we add the |
Alright I have added some logic to only emit the |
Pull request has been modified.
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Merging (with squash)... |
Fixes #2367
C# proxy classes now nested in associated type using the name
Jsii_Proxy
. Using non-standard_
in naming to further reduce chance of collision.I would like to do some more testing since I'm not familiar with the details of how the proxies work.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.