Community
Participate
Working Groups
I20080516-1333 IMember#getJavadocRange() should end with "*/", not partial line delimiter. Paste this to a workspace with Windows line delimiters: package p; class A{ /** * swsw */ void m(){ } } => IMember#getJavadocRange() on "m()" returns offset=26, length=26. This is "/** {@inheritDoc}*/\r" (the Javadoc and '\r' at the end).
It's even worse: The range always includes 1 character too much, e.g here... /** X */class A {} ... the Javadoc range is "/** X */c".
Just verified that the problem existed in 3.3.2.
I am surprised that this has not been found earlier as I imagine some weird bugs when using ast rewrite.
Created attachment 101061 [details] Proposed fix and regression test
Fix and test released for 3.5M1
Verified for 3.5M1 using I20080805-1307
(In reply to comment #3) > I am surprised that this has not been found earlier as I imagine some weird > bugs when using ast rewrite. Don't know why I didn't reported this earlier. Maybe I didn't recognize because of the line ending. Thus, I thought it's normal. But I paid my penalty today because my code got broken by this fix. ;) http://code.google.com/p/gwt-tooling/source/detail?r=62