Bug 29516

Summary: SearchEngine regressions in 20030114
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Adam Kiezun CLA 2003-01-15 04:27:50 EST
(these regressions are responsible for failing refactoring tests in 20030107)

package p;
class A{
   A A;
   A A(A A){
	 A:
		for (;;){
		  if (A.A(A)==A)
			 break A;
		}
	  return A;
   };
}
Comment 1 Adam Kiezun CLA 2003-01-15 04:31:30 EST
stupid bugzilla - lost the rest of the report

the rest went like this:

20030107 found (correctly) 3 references to A
20030114 found 4 more (bogus) references (marked as inexact)
Comment 2 Adam Kiezun CLA 2003-01-15 04:38:56 EST
more cases:

package p;
class A{
   boolean A = new A() instanceof A;
   A A(A A){
     A:
        for (;;){
          if (A.A(A)==A)
             break A;
        }
      return A;
   };
}
class AA extends A{
   A A = (A) new A();
   A A(A A){
     A:
        for (;;){
          if (A.A(A)==A)
             break A;
        }
      return A;
   };
}
Comment 3 Adam Kiezun CLA 2003-01-15 04:39:38 EST
(can't believe it - it lost it again!)
20030107 found (correctly) 3 references to A
20030114 found 4 more (bogus) references (marked as inexact)

Comment 4 Adam Kiezun CLA 2003-01-15 04:41:11 EST
package p;
public class A {
	A(A A){}
	A A(A A){
		A= new A(new A(A));
		return A;
	}
}
Comment 5 Adam Kiezun CLA 2003-01-15 04:42:27 EST
(it lost it again! or maybe it's the linux thing)
anyway- here's the last part of the report
20030107 found (correctly) 5 references to A
20030114 found 3 more (bogus) references (marked as inexact)


Comment 6 Adam Kiezun CLA 2003-01-15 04:58:19 EST
comment 3 should be like this
20030107 found (correctly) 10 references to A
20030114 found 8 more (bogus) references (marked as inexact)
Comment 7 Jerome Lanneluc CLA 2003-01-15 07:07:28 EST
Fixed. This will be in today's rebuild.
Comment 8 Jerome Lanneluc CLA 2003-01-15 07:24:02 EST
Added regression test JavaSearchTest.testTypeReference2()
Comment 9 David Audel CLA 2003-02-06 12:07:32 EST
Verified.