nice trick question, the answer is zero
and even if you had machine code instead of easy-to-decompile bytecode it could still be patched
---
RT @matthew_d_green
What percentage of Java software can’t be patched because the companies that developed it have lost the source code?
https://twitter.com/matthew_d_green/status/1470504921086758930