Skip to content

Fixed incorrect description in delegation practice exercise #4935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

alanloi
Copy link
Contributor

@alanloi alanloi commented Jun 28, 2025

Updated the exercise documentation on delegation to correctly refer to the Messenger interface instead of the SmartMessenger class.

Trying to implement the exercise as is will give the following compilation error and lead to user confusion:

Delegation is supported only for interfaces.
This type is final, so it cannot be extended.
This type has a constructor, so it must be initialized here.

@alanloi alanloi requested a review from a team as a code owner June 28, 2025 09:57
@sarahhaggarty sarahhaggarty self-assigned this Jun 30, 2025
@sarahhaggarty sarahhaggarty self-requested a review June 30, 2025 12:40
@sarahhaggarty sarahhaggarty merged commit 73f61ae into JetBrains:master Jun 30, 2025
4 checks passed
@sarahhaggarty
Copy link
Collaborator

Great catch! Thanks for your contribution @alanloi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants