-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(cli): broken java init template #13988
Conversation
Change the java init templates to not call the stack builder classes and instead call the generated stack class constructor. Change the structure of the comments to correctly allow uncommenting in order to pass env config if needed. fix: #13964
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the sample app templates?
...k/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
Show resolved
Hide resolved
@Mergifyio refresh |
Command
|
The sample app templates didn't get these changes originally but we can unify those to include all of these comments as well in another PR. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
The Java init templates were recently fixed to use `new` instead of the builder, because the builder would instantiate the wrong class (`Stack` instead of `MyStack`) (#13988). However, the structure was changed to have 3 different `new` calls in 3 different comment blocks. Change it back to the old structure: there is one instantiation, and uncommenting just passes or doesn't pass the `env` property. Except this time we use `new` instead of the builder.
The Java init templates were recently fixed to use `new` instead of the builder, because the builder would instantiate the wrong class (`Stack` instead of `MyStack`) (#13988). However, the structure was changed to have 3 different `new` calls in 3 different comment blocks. Change it back to the old structure: there is one instantiation, and uncommenting just passes or doesn't pass the `env` property. Except this time we use `new` instead of the builder. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Change the java init templates to not call the stack builder classes and instead call the generated stack class constructor. Change the structure of the comments to correctly allow uncommenting in order to pass env config if needed. fix: aws#13964 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
The Java init templates were recently fixed to use `new` instead of the builder, because the builder would instantiate the wrong class (`Stack` instead of `MyStack`) (aws#13988). However, the structure was changed to have 3 different `new` calls in 3 different comment blocks. Change it back to the old structure: there is one instantiation, and uncommenting just passes or doesn't pass the `env` property. Except this time we use `new` instead of the builder. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Change the java init templates to not call the stack builder classes and
instead call the generated stack class constructor. Change the structure
of the comments to correctly allow uncommenting in order to pass env
config if needed.
fix: #13964
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license