I wasn't the first to run into this, but it really is always your fault. According to the response to this bug report at Sun, Collections.copy
is not intended to be used like this, you should use List.appendAll()
instead.
So I fixed my code to look like this and it worked:
List<IGraphEdge> rgSrc = this._rgGetPath();
List<IGraphEdge> rgDst = new ArrayList<IGraphEdge>(rgSrc.size());
rgDst.addAll(rgSrc);
Duh.