Skip to content

Conversation

@nija-at
Copy link
Contributor

@nija-at nija-at commented Nov 2, 2021

It is common in the AWS CDK for non-deprecated interfaces to extend
deprecated interfaces.
Currently, when this occurs and the non-deprecated subclass is
referenced, a warning is generated notifying the deprecation of its
superclass.

Modify the implementation such that the warning is produced only when
a property of the deprecated interface is referenced.

In the case when a deprecated interface with no required properties is
used without any of its properties set, a warning will not be generated.
This should occur rarely and the trade off is acceptable.

fixes #3111


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… is extended

It is common in the AWS CDK for non-deprecated interfaces to extend
deprecated interfaces.
Currently, when this occurs and the non-deprecated subclass is
referenced, a warning is generated notifying the deprecation of its
superclass.

Modify the implementation such that the warning is produced only when
a property of the deprecated interface is referenced.

In the case when a deprecated interface with no required properties is
used without any of its properties set, a warning will not be generated.
This should occur rarely and the trade off is acceptable.

fixes #3111
@nija-at nija-at requested review from a team, njlynch, otaviomacedo and rix0rrr November 2, 2021 12:16
@nija-at nija-at self-assigned this Nov 2, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 2, 2021
@rix0rrr rix0rrr added pr/do-not-merge This PR should not be merged at this time. and removed pr/do-not-merge This PR should not be merged at this time. labels Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(jsii) --add-deprecated-warnings flag should not add warning when a non-deprecated interface extends a deprecated interface

3 participants