The @pi4j@foojay.social community just released the latest version 4.0.1. It fixes an issue with more than 4 GPIOs enabled at the same time and other miscellaneous fixes.
Details are here: https://github.com/Pi4J/pi4j/releases/tag/4.0.1
Have fun with your #Java on #RaspberryPi projects!