Open nitram84 opened 3 years ago
I can confirm this happens to me too with some commercial code (that I cannot share here to IP reasons). Using CFR 0.152 that's included with Recaf. The class having this issue is just a Java 7 class. But it runs fine in all Javas from 12 to 16, so I don't think there's any bug in the class itself.
CFR adds this comment:
/*
* Loose catch block
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
But then Recaf also complains:
(Sadly, Recaf doesn't support copy text for their error log.)
But then Recaf also complains:
This is JavaParser's error output telling you what part of the code its failing to parse into an AST from the input text. That's part of an interactive menu which lets you click on the items to jump to the described error.
Using the demo code provided here:
The unreachable block is illegally formatted, hence the error.
CFR version
CFR 0.151-SNAPSHOT (5d12bbb) and CFR 0.150, so this is not a regression of recent changes
Compiler
openjdk8, openjdk11
Description
Decompiling the provided example produces illegal java code and has behaviour changes. This is probably another failing finally example.
Example
This example can be used for the cfr test suite.