Java is used during the build of crypto-policies only for the purpose of the tests. Instead of using 1.8.0 specifically, the default version (11 in EL9, 17 currently in ELN) should be used. See: https://src.fedoraproject.org/rpms/crypto-policies/pull-request/11