(jsii) --add-deprecated-warnings
flag should not add warning when a non-deprecated class inherits a deprecated class
#3102
Labels
🐛 Bug Report
It is acceptable for a non-deprecated class to inherit a deprecated class.
The
--strip-deprecated
flag correctly handles this, by not exporting the deprecated class and treating it as a private member.However, the
--add-deprecated-warnings
flag does not account for this. It produces a warning when the non-deprecated subclass is used.Example:
https://github.com/aws/aws-cdk/blob/c4ba858278bffe1a987ea8200c313f17f7f1cbe9/packages/%40aws-cdk/core/lib/bundling.ts#L251
BundlingDockerImage
here is deprecated.The text was updated successfully, but these errors were encountered: