I have came up with a very similar patch [1] that adds support for a couple more JDK versions (OpenJDK and Oracle present and future versions).
The patch only touches the jks-keystore hook but the same logic would apply to the postinst. 1: https://bugs.launchpad.net/debian/+source/ca-certificates-java/+bug/1449652/+attachment/4386860/+files/jks-keystore.patch -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org