Skip to content
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

Proper exception in PreferencesService#setDefaultLookupOrder() #464 #465

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

HeikoKlare
Copy link
Contributor

PreferencesService#setDefaultLookupOrder(String, String, String[]) has recently been changed to now throwing a NullPointerException instead of an IllegalArgumentException in case of any of its order arguments being null. This is incompatible with the API documentation in IPreferencesService.
This change restores the existing behavior of throwing an IllegalArgumentException in the mentioned case.

Fixes #464

Copy link

github-actions bot commented Jan 4, 2024

Test Results

   24 files  ±0     24 suites  ±0   11m 2s ⏱️ -22s
2 150 tests ±0  2 105 ✅ ±0  45 💤 ±0  0 ❌ ±0 
2 194 runs  ±0  2 149 ✅ ±0  45 💤 ±0  0 ❌ ±0 

Results for commit f89e521. ± Comparison against base commit d52b39e.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review January 4, 2024 09:23
Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Thank you @HeikoKlare for fixing this regression. The change looks good and reasonable.
I just have one tiny nit-pick.

…e-equinox#464

PreferencesService#setDefaultLookupOrder(String, String, String[]) has
recently been changed to now throwing a NullPointerException instead of
an IllegalArgumentException in case of any of its order arguments being
null. This is incompatible with the API documentation in
IPreferencesService.
This change restores the existing behavior of throwing an
IllegalArgumentException in the mentioned case.

Fixes eclipse-equinox#464
@iloveeclipse iloveeclipse merged commit de625e7 into eclipse-equinox:master Jan 4, 2024
23 of 24 checks passed
@iloveeclipse
Copy link
Member

Thanks Heiko!

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.

PreferenceService#setDefaultLookupOrder() throws wrong exception
3 participants