Comments on: Java Puzzle – spot the bad code http://v1.ripper234.com/p/java-puzzle-spot-the-bad-code/ Stuff Ron Gross Finds Interesting Sun, 02 Aug 2015 11:03:35 +0000 hourly 1 https://wordpress.org/?v=4.5.3 By: ripper234 http://v1.ripper234.com/p/java-puzzle-spot-the-bad-code/comment-page-1/#comment-3180 Mon, 31 Jan 2011 16:02:49 +0000 http://v1.ripper234.com/?p=1323#comment-3180 Well, nobody replied yet, so I can reveal the answer – the most serious problem with this code is very simple – it doesn’t catch exceptions properly! It’s hard to see at first because of the business logic and multi-threading, but this code can terminate without logging any exceptions, which makes debugging a bitch.

]]>