FasterXML / FasterXML/java-classmate

Private methods handled as virtual for inherting classes

未关闭
#36 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
266
派生
47
平均合并
1 小时 42 分钟
30 天内合并 PR
1

描述

I am using classmate-1.3.3 and I faced with an issue when using MemberResolver. The problem is that if a class and its child class have exactly the same private methods then I cannot access to super class' private method. This behavior is fine when these methods are at least package-private, but private methods do not override each other.

For demonstrating the issue I have attached a simple unit test. In `testPrivate()` test `members.getMemberMethods()` should return two functions in my opinion.

[InheritanceTest.txt](https://github.com/FasterXML/java-classmate/files/745691/InheritanceTest.txt)

Best regards,
Balazs

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。