Skip to content

Conversation

@ptziegler
Copy link
Contributor

Whenever a new method is added to the IMethodBinding, IPackageBinding or the ITypeBinding, the Designer implementation must be either implemented properly or throw an IllegalArgumentException().

Instead, those methods have been implemented by returning a default value, which brings the risk of diverging from the value of the underlying binding and thus leading to inconsistent behavior.

The affected methods have been adapted to take this expected behavior into consideration and for trivial cases, been correctly implemented.

Affected commits:

Whenever a new method is added to the IMethodBinding, IPackageBinding or
the ITypeBinding, the Designer implementation must be either implemented
properly or throw an IllegalArgumentException().

Instead, those methods have been implemented by returning a default
value, which brings the risk of diverging from the value of the
underlying binding and thus leading to inconsistent behavior.

The affected methods have been adapted to take this expected behavior
into consideration and for trivial cases, been correctly implemented.

Affected commits:
- cf88ae1
- 6912838
- 6648a1c
- a6af2a2
- 9e52223
- 2849290
@ptziegler ptziegler added this to the 1.21.0 milestone Jul 2, 2025
@ptziegler
Copy link
Contributor Author

Extracted into a separate commit due to actual code changes.

@ptziegler ptziegler merged commit 1dd57c4 into eclipse-windowbuilder:master Jul 2, 2025
8 checks passed
@ptziegler ptziegler deleted the fix-core-bindings branch July 2, 2025 20:23
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