Open kthoms opened 1 month ago
I haven't been able to reproduce when running RemoveTryCatchFailBlocks
, but what stands out is that the only try ... catch
in this Java file is this line:
https://github.com/operaton/operaton/blob/v1.0.0-beta-3/engine/src/test/java/org/operaton/bpm/engine/test/bpmn/mail/EmailSendTaskTest.java#L190
And the only thing special there I can see is the |
syntax for catching two exception classes (catch (MessagingException | IOException e)
).
What the exception here says is that what couldn't be parsed was the Java template code, not the source file itself. So this is either a bug in the recipe or possibly the template engine itself.
What version of OpenRewrite are you using?
I am using rewrite-maven-plugin:5.42.0 /
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a multi module project.
https://github.com/operaton/operaton/tree/v1.0.0-beta-3
Execution is
What is the smallest, simplest way to reproduce the problem?
https://github.com/operaton/operaton/blob/v1.0.0-beta-3/engine/src/test/java/org/operaton/bpm/engine/test/bpmn/mail/EmailSendTaskTest.java
What is the full stack trace of any errors you encountered?