Skip to content

Remove pax-web patching by openhab-util library - #1944

Merged
wborn merged 1 commit into
openhab:mainfrom
holgerfriedrich:pr-remove-utils
Aug 10, 2026
Merged

Remove pax-web patching by openhab-util library#1944
wborn merged 1 commit into
openhab:mainfrom
holgerfriedrich:pr-remove-utils

Conversation

@holgerfriedrich

Copy link
Copy Markdown
Member

This patching step has no longer worked for quite a while.

findResources was removed from pax-web upstream in January 2020 (commit cf6861615, part of the PAXWEB-1190 Http/Whiteboard refactor), replaced by the current findEntries(...) methods - over a year and a half before pax-web 8.0.0 GA even shipped (September 2021). Every pax-web 8.0.x version has no method by that name.

ClassAdapter's method-matching ("findResources".equals(name)) therefore never fires, and ClassPathUtilPatcher has no verification step - it always prints "Finished updating ..." and exits 0 regardless of whether anything was actually patched.

@kaikreuzer Is seems you were right in openhab/openhab-util#1 (comment)

This patching step has no longer worked for quite a while.

`findResources` was removed from pax-web upstream in January 2020 (commit
`cf6861615`, part of the PAXWEB-1190 Http/Whiteboard refactor), replaced by
the current `findEntries(...)` methods - over a year and a half *before*
pax-web `8.0.0` GA even shipped (September 2021). Every pax-web 8.0.x version
has no method by that name.

`ClassAdapter`'s method-matching (`"findResources".equals(name)`) therefore
never fires, and `ClassPathUtilPatcher` has no verification step - it always
prints `"Finished updating ..."` and exits 0 regardless of whether anything
was actually patched.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

@wborn wborn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice to see it's no longer needed!

@wborn
wborn merged commit c7311dc into openhab:main Aug 10, 2026
2 checks passed
@wborn wborn added this to the 5.3 milestone Aug 10, 2026
@holgerfriedrich
holgerfriedrich deleted the pr-remove-utils branch August 10, 2026 04:32
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.

2 participants