logoalt Hacker News

reactordevtoday at 12:49 PM1 replyview on HN

In other words: Footgun #17421 Exhibit A.


Replies

josefxtoday at 3:49 PM

What the blog doesn't mention is how try finally can mess up your control flow.

In Java the following is perfectly valid:

try { throw new IllegalStateException("Critical error"); } finally { return "Move along, nothing to see here"; }

show 1 reply