Skip to content

Fix GH-12854: 8.3 - as final trait-used method does not correctly report visibility in Reflection #12857

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

Closed
wants to merge 2 commits into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Dec 3, 2023

The message Private methods cannot be final as they are never overridden by other classes could be improved further here to clarify it comes from traits, but not sure what to put instead...

@SakiTakamachi
Copy link
Member

SakiTakamachi commented Dec 3, 2023

I haven't tried this branch yet, but how about the following cases?
https://3v4l.org/nJn5V#v8.3.0

@nielsdos
Copy link
Member Author

nielsdos commented Dec 3, 2023

@SakiTakamachi Good idea to also add tests for the other way around, added a test now.

@SakiTakamachi
Copy link
Member

SakiTakamachi commented Dec 3, 2023

I see, I understand it can't change visibility and make it final at the same time.
Thank you!


I finally got to try it local now. The warning is being output properly.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me. 🙂

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

Successfully merging this pull request may close these issues.

8.3 - as final trait-used method does not correctly report visibility in Reflection
3 participants