Community
Participate
Working Groups
20051115 If I understand right, CompilationUnit.getPosition() returns a character index given line/colunm. The spec says that '0' is returned when e.g. arguments ar invalid or no line number avaiable or out ouf range. But isn't 0 also a valid character index? (for getPosition(1, 0)). How would I tell apart? Why not using -1 as the 'invalid' result as it is more common in Eclipse?
*** This bug has been marked as a duplicate of 116472 ***