java: unable to override protected methods #903
Labels
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
needs-triage
This issue or PR still needs to be triaged.
p0
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
What is the problem?
When trying to override a protected jsii method in Java, the following error is printed:
An example would be to try and override the
allocateLogicalId
method in a subclass of@aws-cdk/core.Stack
:Workaround
A workaround (credits @RomainMuller) is to change the override from
protected
topublic
.The text was updated successfully, but these errors were encountered: