You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java, construct QueueProcessingFargateService exposes a protected method configureAutoscalingForService. Ostensible, this access allows subtypes to override the behavior of configureAutoscalingForService, as Java developers would expect. For example:
publicclassMyQueueProcessingFargateServiceextendsQueueProcessingFargateService {
publicMyQueueProcessingFargateService(Constructscope, Stringid, QueueProcessingFargateServicePropsprops) { super(scope, id, props); }
@OverrideprotectedvoidconfigureAutoscalingForService(BaseServiceservice) {
// my logic for configuring autoscaling
}
}
However, in this example, the MyQueueProcessingFargateService.configureAutoscalingForService method is never called while the super type's configureAutoscalingForService is.
Expected Behavior
Subtypes may override the behavior of configureAutoscalingForService.
khushail
changed the title
(was-ecs-patterns): Ostensibly Polymorphic configureAutoscalingForService Method Not Working As Expected
(aws-ecs-patterns): Ostensibly Polymorphic configureAutoscalingForService Method Not Working As Expected
Oct 12, 2023
Describe the bug
In Java, construct
QueueProcessingFargateService
exposes aprotected
methodconfigureAutoscalingForService
. Ostensible, this access allows subtypes to override the behavior ofconfigureAutoscalingForService
, as Java developers would expect. For example:However, in this example, the
MyQueueProcessingFargateService.configureAutoscalingForService
method is never called while the super type'sconfigureAutoscalingForService
is.Expected Behavior
Subtypes may override the behavior of
configureAutoscalingForService
.Current Behavior
Overridden method is not called.
Reproduction Steps
See example.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.87.0 (build 9fca790)
Framework Version
2.87.0
Node.js Version
v20.8.0
OS
macOS 14.0
Language
Java
Language Version
openjdk version "17.0.8.1" 2023-08-24
Other information
No response
The text was updated successfully, but these errors were encountered: