Please add your +1 👍 to let us know you have encountered this
Status: Will be fixed as a part of 2.47.0
Overview:
In Java, using ServerDeploymentConfig.ONE_AT_A_TIME with ServerDeploymentGroupProps results in a type error.
Workaround:
The current workaround is to stay on 2.44.0.
[Original Issue]
Describe the bug
Using ServerDeploymentConfig.ONE_AT_A_TIME with ServerDeploymentGroupProps results in a type error.
The DeploymentConfig Property expects a type of IServerDeploymentConfig, but the static enums in ServerDeploymentConfig where changed to be typed as IBaseDeploymentConfig
I observed this bug in the latest release of the Java CDK bindings.
Expected Behavior
I expect ServerDeploymentGroupProps.builder().deploymentConfig(ServerDeploymentConfig.ONE_AT_A_TIME) to not result in a type error as it was working in 2.44.0, but became broken in 2.45.0.
Current Behavior
Using ServerDeploymentGroupProps.builder().deploymentConfig(ServerDeploymentConfig.ONE_AT_A_TIME) in Java results in a type error.
Reproduction Steps
Install latest CDK, try to create a ServerDeploymentGroupProps.builder() instance and pass ServerDeploymentConfig.ONE_AT_A_TIME to the deploymentConfig method.
This also impacts LambdaDeploymentGroup.builder(), and I imagine others.
Possible Solution
I think the issue stems from these lines 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaL82-L85 that used to call 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaL126-L131 that had the correct type.
However now 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaR36 calls 6840d8e#diff-40567274e0d0eeca9055e6d9bce3a1c5b325045f8e21f14e60f08076eebdd061R118 which has the incorrect type.
Additional Information/Context
No response
CDK CLI Version
2.45.0
Framework Version
No response
Node.js Version
14.20
OS
Amazon Linux 2
Language
Java
Language Version
No response
Other information
No response
Please add your +1 👍 to let us know you have encountered this
Status: Will be fixed as a part of 2.47.0
Overview:
In Java, using ServerDeploymentConfig.ONE_AT_A_TIME with ServerDeploymentGroupProps results in a type error.
Workaround:
The current workaround is to stay on 2.44.0.
[Original Issue]
Describe the bug
Using ServerDeploymentConfig.ONE_AT_A_TIME with ServerDeploymentGroupProps results in a type error.
The DeploymentConfig Property expects a type of IServerDeploymentConfig, but the static enums in ServerDeploymentConfig where changed to be typed as IBaseDeploymentConfig
I observed this bug in the latest release of the Java CDK bindings.
Expected Behavior
I expect
ServerDeploymentGroupProps.builder().deploymentConfig(ServerDeploymentConfig.ONE_AT_A_TIME)to not result in a type error as it was working in 2.44.0, but became broken in 2.45.0.Current Behavior
Using
ServerDeploymentGroupProps.builder().deploymentConfig(ServerDeploymentConfig.ONE_AT_A_TIME)in Java results in a type error.Reproduction Steps
Install latest CDK, try to create a ServerDeploymentGroupProps.builder() instance and pass ServerDeploymentConfig.ONE_AT_A_TIME to the deploymentConfig method.
This also impacts LambdaDeploymentGroup.builder(), and I imagine others.
Possible Solution
I think the issue stems from these lines 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaL82-L85 that used to call 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaL126-L131 that had the correct type.
However now 6840d8e#diff-93f73231716deb0056687ee155c13d03ccabe2222fd191a33be9caeb7ad87ebaR36 calls 6840d8e#diff-40567274e0d0eeca9055e6d9bce3a1c5b325045f8e21f14e60f08076eebdd061R118 which has the incorrect type.
Additional Information/Context
No response
CDK CLI Version
2.45.0
Framework Version
No response
Node.js Version
14.20
OS
Amazon Linux 2
Language
Java
Language Version
No response
Other information
No response