plugin itself packs jna-4.5.1.jar and jna-platform-4.5.1.jar via waffle
Due to classloading the plugins sees the newer jna-5.3.1.jar from Jenkins but the old jna-platform-4.5.1.jar which leads to this error.
Possible solutions:
- plugin first classloading
- add explicit dependency to jna and jna-platform (seems waffle itself doesn't need code adjustments, so this might work)
- wait for waffle to release new version (current head also uses 5.3.1 of jna, but this is not yet released)
- Jenkins core also packs jna-platform (though it seems it doesn't need it)
work around was to roll back to - What's new in 2.180 (2019-06-09)