View | Details | Raw Unified | Return to bug 120816
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (-1 / +49 lines)
Lines 46-52 Link Here
46
//	org.eclipse.jdt.internal.codeassist.SelectionEngine.DEBUG = true;
46
//	org.eclipse.jdt.internal.codeassist.SelectionEngine.DEBUG = true;
47
//	TESTS_PREFIX =  "testBug110336";
47
//	TESTS_PREFIX =  "testBug110336";
48
//	TESTS_NAMES = new String[] { "testBug110336e" };
48
//	TESTS_NAMES = new String[] { "testBug110336e" };
49
//	TESTS_NUMBERS = new int[] { 110291, 110422 };
49
//	TESTS_NUMBERS = new int[] { 120816 };
50
//	TESTS_RANGE = new int[] { 83304, -1 };
50
//	TESTS_RANGE = new int[] { 83304, -1 };
51
	}
51
	}
52
52
Lines 5590-5595 Link Here
5590
}
5590
}
5591
5591
5592
/**
5592
/**
5593
5594
/**
5593
 * @test Bug 119545: [search] Binary java method model elements returned by SearchEngine have unresolved parameter types
5595
 * @test Bug 119545: [search] Binary java method model elements returned by SearchEngine have unresolved parameter types
5594
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=119545"
5596
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=119545"
5595
 */
5597
 */
Lines 5610-5613 Link Here
5610
		""+ getExternalJCLPathString("1.5") + " boolean java.lang.Object.equals(java.lang.Object) EXACT_MATCH"
5612
		""+ getExternalJCLPathString("1.5") + " boolean java.lang.Object.equals(java.lang.Object) EXACT_MATCH"
5611
	);
5613
	);
5612
}
5614
}
5615
5616
/**
5617
 * @test Bug 120816: [search] NullPointerException at ...jdt.internal.compiler.lookup.SourceTypeBinding.getMethods
5618
 * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=120816"
5619
 */
5620
public void testBug120816a() throws CoreException {
5621
	workingCopies = new ICompilationUnit[2];
5622
	workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b120816/Test.java",
5623
		"package b120816;\n" + 
5624
		"public class Test<E> {\n" + 
5625
		"	String foo(E e) { return \"\"; }\n" + 
5626
		"}\n"
5627
	);
5628
	workingCopies[1] = getWorkingCopy("/JavaSearchBugs/src/b120816/Sub.java",
5629
		"package b120816;\n" + 
5630
		"public class Sub extends Test<Exception> {\n" +
5631
		"	String foo(RuntimeException e) { return \"\"; }\n" + 
5632
		"	String foo(Exception e) {\n" + 
5633
		"		return super.foo(e);\n" + 
5634
		"	}\n" + 
5635
		"}\n"
5636
	);
5637
	search("* String (Exception)", METHOD, DECLARATIONS);
5638
	assertSearchResults(
5639
		"src/b120816/Sub.java String b120816.Sub.foo(Exception) [foo] EXACT_MATCH"
5640
	);
5641
}
5642
public void testBug120816b() throws CoreException {
5643
	workingCopies = new ICompilationUnit[1];
5644
	workingCopies[0] = getWorkingCopy("/JavaSearchBugs/src/b120816/Test.java",
5645
		"package b120816;\n" + 
5646
		"public class Test<E> {\n" + 
5647
		"	String foo(E e) { return \"\"; }\n" + 
5648
		"}\n" +
5649
		"class Sub extends Test<Exception> {\n" +
5650
		"	String foo(RuntimeException e) { return \"\"; }\n" + 
5651
		"	String foo(Exception e) {\n" + 
5652
		"		return super.foo(e);\n" + 
5653
		"	}\n" + 
5654
		"}\n"
5655
	);
5656
	search("* String (Exception)", METHOD, DECLARATIONS);
5657
	assertSearchResults(
5658
		"src/b120816/Test.java String b120816.Sub.foo(Exception) [foo] EXACT_MATCH"
5659
	);
5660
}
5613
}
5661
}
(-)buildnotes_jdt-core.html (-1 / +17 lines)
Lines 41-46 Link Here
41
	</td>
41
	</td>
42
  </tr>
42
  </tr>
43
</table>
43
</table>
44
45
<a name="v_632"></a>
46
<p><hr><h1>
47
Eclipse Platform Build Notes<br>
48
Java Development Tooling Core</h1>
49
Eclipse SDK 3.2M5 - ??th January 2006
50
<br>Project org.eclipse.jdt.core v_632
51
(<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/?only_with_tag=v_632">cvs</a>).
52
<h2>
53
What's new in this drop</h2>
54
<ul>
55
</ul>
56
57
<h3>Problem Reports Fixed</h3>
58
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=120816">120816</a>
59
[search] NullPointerException at ...jdt.internal.compiler.lookup.SourceTypeBinding.getMethods
60
44
<a name="v_631"></a>
61
<a name="v_631"></a>
45
<p><hr><h1>
62
<p><hr><h1>
46
Eclipse Platform Build Notes<br>
63
Eclipse Platform Build Notes<br>
Lines 57-63 Link Here
57
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=120902">120902</a>
74
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=120902">120902</a>
58
Member.getJavadocRange() causes AIOOBE
75
Member.getJavadocRange() causes AIOOBE
59
76
60
61
<a name="v_630"></a>
77
<a name="v_630"></a>
62
<p><hr><h1>
78
<p><hr><h1>
63
Eclipse Platform Build Notes<br>
79
Eclipse Platform Build Notes<br>
(-)compiler/org/eclipse/jdt/internal/compiler/lookup/BlockScope.java (-1 / +1 lines)
Lines 499-505 Link Here
499
			if ((mask & Binding.FIELD) != 0 && (binding = findField(typeBinding, nextName, invocationSite, true /*resolve*/)) != null) {
499
			if ((mask & Binding.FIELD) != 0 && (binding = findField(typeBinding, nextName, invocationSite, true /*resolve*/)) != null) {
500
				if (!binding.isValidBinding())
500
				if (!binding.isValidBinding())
501
					return new ProblemFieldBinding(
501
					return new ProblemFieldBinding(
502
						(FieldBinding)binding,
502
						((ProblemFieldBinding)binding).closestMatch,
503
						CharOperation.subarray(compoundName, 0, currentIndex),
503
						CharOperation.subarray(compoundName, 0, currentIndex),
504
						binding.problemId());
504
						binding.problemId());
505
				break; // binding is now a field
505
				break; // binding is now a field
(-)search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java (-1 / +1 lines)
Lines 255-261 Link Here
255
	return level;
255
	return level;
256
}
256
}
257
private boolean matchOverriddenMethod(ReferenceBinding type, MethodBinding method, MethodBinding matchMethod) {
257
private boolean matchOverriddenMethod(ReferenceBinding type, MethodBinding method, MethodBinding matchMethod) {
258
	if (type == null) return false;
258
	if (type == null || this.pattern.selector == null) return false;
259
259
260
	// matches superclass
260
	// matches superclass
261
	if (!type.isInterface() && !CharOperation.equals(type.compoundName, TypeConstants.JAVA_LANG_OBJECT)) {
261
	if (!type.isInterface() && !CharOperation.equals(type.compoundName, TypeConstants.JAVA_LANG_OBJECT)) {

Return to bug 120816