Resolve Java 21 FTBFS
This MR fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053066
Changes:
- cherry-pick upstream self-signed certificate generator changes from
netty-4.1.91.Final
Alternative:
- new upstream release of netty
Note:
- reflection changes were done in
OpenJdkSelfSignedCertGenerator
after SelfSignedCertificate` interface changes. The interface changes add new constructors and do not change existing functionality. In order to avoid editing upstream code I've cherry-picked all three files (SelfSignedCertificate, OpenJdkSelfSignedCertGenerator and BouncyCastleSelfSignedCertGenerator). This increased the patch size, but since it will have to be dropped with the next release, it should not create and issue for the maintenance.
Testing:
- build in sid chroot with default Java 21
- build in sid chroot