8000 Ignore methods that are guaranteed to be inaccessible by ptziegler · Pull Request #1056 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Ignore methods that are guaranteed to be inaccessible#1056

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:cleanup-invoke-method
May 2, 2025
Merged

Ignore methods that are guaranteed to be inaccessible#1056
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:cleanup-invoke-method

Conversation

@ptziegler
Copy link
Contributor

The getMethods() should skip all methods that can't be made accessible in order edge-cases where methods are overridden by private subclasses and would thus hide the (possibly) public declaration in its parent class.

Furthermore, the invokeMethod() should also check whether the method can be invoked and fail early.

Contributes to
#1027

@ptziegler ptziegler added this to the 1.20.0 milestone May 2, 2025
The getMethods() should skip all methods that can't be made accessible
in order edge-cases where methods are overridden by private subclasses
and would thus hide the (possibly) public declaration in its parent
class.

Furthermore, the invokeMethod() should also check whether the method can
be invoked and fail early.

Contributes to
eclipse-windowbuilder#1027
@ptziegler ptziegler force-pushed the cleanup-invoke-method branch from 8670204 to 37258bd Compare May 2, 2025 20:17
@ptziegler ptziegler merged commit 6f50f43 into eclipse-windowbuilder:master May 2, 2025
5 checks passed
@ptziegler ptziegler deleted the cleanup-invoke-method branch May 2, 2025 20:55
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.

1 participant

0