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(pacmak): Support more than 255 properties for interfaces in Java #3133

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

ansgarm
Copy link
Contributor

@ansgarm ansgarm commented Nov 5, 2021

  • fix(pacmak): support more than 255 properties in interfaces for Java
  • chore(tests): update snapshots

Resolves #3132

This is a naive approach to fix the problem outlined in #3132 – it should not be user facing and should not break anything (famous last words before CI fails). Happy for any feedback!


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

@ansgarm ansgarm changed the title fix(pacmak): Support more than 255 properties for interfaces in Java" fix(pacmak): Support more than 255 properties for interfaces in Java Nov 5, 2021
this.code.openBlock(
`protected ${INTERFACE_PROXY_CLASS_NAME}(${constructorArgs})`,
`protected ${INTERFACE_PROXY_CLASS_NAME}(final ${BUILDER_CLASS_NAME} builder)`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly a bit non-traditional use of a builder, but the alternative would require the fields to be mutable. Does seem fine given that this is an internal class.

packages/jsii-pacmak/lib/targets/java.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@RomainMuller RomainMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thank you!

@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2021

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 Nov 10, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2021

Merging (with squash)...

@aws aws deleted a comment from allcontributors bot Nov 10, 2021
@RomainMuller
Copy link
Contributor

@all-contributors add @ansgarm for code and bug

@allcontributors
Copy link
Contributor

@RomainMuller

I've put up a pull request to add @ansgarm! 🎉

@mergify mergify bot merged commit ba4a20d into aws:main Nov 10, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java: too many parameters error for interfaces with more than 255 properties (sorry!)
3 participants