In quite some codebase you can see comments stating things like:
// Workaround for defect 'xxx', (See bug 1434594 on Sun's bugparade)
So I've got a few questions, but they're all related.
Is it OK to put link to SO questions in a program's comments:
// We're now mapping from the "sorted-on column" to original indices.
//
// There's apparently no easy way to do this in Java, so we're
// re-inventing a wheel.
//
// (see why here, in SO question: http://stackoverflow.com/questions/951848)
Do you do it?
And what are the drawbacks in doing so? (see my first comment for a terrible drawback)