So, we have a project that uses "dynamic" tables. Basically, for reasons lost in mist of time, every time a user logs on, they create a table to do transaction on the user's records. At some point, they delete those tables. They had used hibernate to map those table into Java. Now, since the table name changes, they had customized the Hibernate persister to change the table name of the sql
Trouble was we upgraded hibernate now, and the cusomization broke. So, I spend almost 2 days digging through hibernate code, and come up with a solution that works with upgraded hibernate. I also reduced the number of lines of code by 2
I remember a time when we had a bug in our code - it was thread related and for a few weeks it ping-ponged to different developers. After it came to me, I had to put almost 3 weeks fixing it. The major pain was - it was not easily reproducible (thread issues - you know )
The actual fix was adding one line.
It was around 18 months ago and only good thing is - it never broke again (at least that scenario was never reproduced again)
Fortunately where I work, we don't count productivity in terms of LOC