FasterXML / FasterXML/java-classmate

Private methods handled as virtual for inherting classes

Đang mở
#36 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
266
Fork
47
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.