Community
Participate
Working Groups
package junit.framework; public class A { void t(){} } class B extends A{ public void f(){ } public void second(int y){} public void s(){} public void sd(){} } //class C extends A{ // void f(){} //} //class E extends A{ // private void f(){} // public void second(){} //} //class F extends A{ // protected void f(){ // } //} class G extends A{ public int sd(){return 0;} } source range for G includes 1 line of comment from another class
The fix is located in the checkAnnotion() method of the Parser. But fixing this problem breaks a lot of in the JDOM code and the JDOM tests. JDOM includes the comment preceeding a member even if this comment is not a javadoc comment. So we cannot break this code right now and we have to defer this PR till the actual JDOM implementation is replaced with the new DOM nodes.
Fix released in HEAD. Change in the Parse::checkAnnotation()