I have used catch block with multiple exceptions , Which is working fine in unobfuscated build, But not catching exception in obfuscated build.
I am using proguard-maven-plugin
try {
...
} catch (ServletException | IOException e){
...
}
Is there any proguard rule i need to add for this?
Because its working fine When i write my code as
try {
...
} catch (ServletException e) {
...
} catch (IOException e) {
...
}
There can be a bug from Proguard. https://sourceforge.net/p/proguard/bugs/607/ Unfortunately no solution was provided. I suggest to avoid multi-catch until it's not fixed if possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With