View | Details | Raw Unified | Return to bug 185306 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/JavaSearchTests.java (-12 / +7 lines)
Lines 1931-1938 Link Here
1931
	resultCollector.toString();
1931
	resultCollector.toString();
1932
}
1932
}
1933
/**
1933
/**
1934
 * Test that we find potential matches in binaries even if we can't resolve the entire
1934
 * Test that we find matches in binaries even if we can't resolve the entire class file.
1935
 * class file.
1936
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
1935
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
1937
 */
1936
 */
1938
public void testPotentialMatchInBinary1() throws CoreException {
1937
public void testPotentialMatchInBinary1() throws CoreException {
Lines 1956-1964 Link Here
1956
			getJavaSearchScope(), 
1955
			getJavaSearchScope(), 
1957
			this.resultCollector);
1956
			this.resultCollector);
1958
		assertSearchResults(
1957
		assertSearchResults(
1959
			"AbortCompilation.jar AbortCompilation.MissingFieldType.field [No source] POTENTIAL_MATCH\n" + 
1958
			"AbortCompilation.jar AbortCompilation.MissingFieldType.field [No source] EXACT_MATCH\n" + 
1960
			"AbortCompilation.jar AbortCompilation.MissingFieldType.missing [No source] POTENTIAL_MATCH\n" + 
1959
			"AbortCompilation.jar AbortCompilation.MissingFieldType.otherField [No source] EXACT_MATCH",
1961
			"AbortCompilation.jar AbortCompilation.MissingFieldType.otherField [No source] POTENTIAL_MATCH",
1962
			this.resultCollector);
1960
			this.resultCollector);
1963
	} finally {
1961
	} finally {
1964
		// reset classpath
1962
		// reset classpath
Lines 1966-1973 Link Here
1966
	}
1964
	}
1967
}	
1965
}	
1968
/**
1966
/**
1969
 * Test that we find potential matches in binaries even if we can't resolve the entire
1967
 * Test that we find matches in binaries even if we can't resolve the entire class file.
1970
 * class file.
1971
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
1968
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
1972
 */
1969
 */
1973
public void testPotentialMatchInBinary2() throws CoreException {
1970
public void testPotentialMatchInBinary2() throws CoreException {
Lines 1991-1999 Link Here
1991
			getJavaSearchScope(), 
1988
			getJavaSearchScope(), 
1992
			this.resultCollector);
1989
			this.resultCollector);
1993
		assertSearchResults(
1990
		assertSearchResults(
1994
			"AbortCompilation.jar void AbortCompilation.MissingArgumentType.foo() [No source] POTENTIAL_MATCH\n" + 
1991
			"AbortCompilation.jar void AbortCompilation.MissingArgumentType.foo() [No source] EXACT_MATCH\n" + 
1995
			"AbortCompilation.jar void AbortCompilation.MissingArgumentType.foo(java.util.EventListener) [No source] POTENTIAL_MATCH\n" + 
1992
			"AbortCompilation.jar void AbortCompilation.MissingArgumentType.foo2() [No source] EXACT_MATCH",
1996
			"AbortCompilation.jar void AbortCompilation.MissingArgumentType.foo2() [No source] POTENTIAL_MATCH",
1997
			this.resultCollector);
1993
			this.resultCollector);
1998
	} finally {
1994
	} finally {
1999
		// reset classpath
1995
		// reset classpath
Lines 2001-2008 Link Here
2001
	}
1997
	}
2002
}	
1998
}	
2003
/**
1999
/**
2004
 * Test that we find potential matches in binaries even if we can't resolve the entire
2000
 * Test that we find potential matches in binaries even if we can't resolve the entire class file.
2005
 * class file.
2006
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
2001
 * (Regression test for 1G4IN3E: ITPJCORE:WINNT - AbortCompilation using J9 to search for class declaration) 
2007
 */
2002
 */
2008
public void testPotentialMatchInBinary3() throws CoreException {
2003
public void testPotentialMatchInBinary3() throws CoreException {

Return to bug 185306