In this example, the SourcePositions.getEndPosition() returns an invalid value. The returned value for statement "if (writer != null);" is equal to errorPosition for some reason - recorded in the endPosMap.