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

(-)src/org/eclipse/jdt/core/tests/model/JavadocTextCompletionModelTest.java (-1 / +25 lines)
Lines 1236-1240 Link Here
1236
		"}\n";
1236
		"}\n";
1237
	completeInJavadoc("/Completion/src/javadoc/text/BasicTestTextIns.java", source, true, "#BasicTestTextIns(int, float, Class)");
1237
	completeInJavadoc("/Completion/src/javadoc/text/BasicTestTextIns.java", source, true, "#BasicTestTextIns(int, float, Class)");
1238
	assertSortedResults("");
1238
	assertSortedResults("");
1239
	}
1240
}
1239
}
1240
1241
public void testONLY_086() throws JavaModelException {
1242
	String source =
1243
		"package javadoc.text;\n" + 
1244
		"public abstract class BasicTest extends BasicTestSecondaryClass implements BasicTestSecondaryInterface{\n" + 
1245
		"	/**\n" + 
1246
		"	 * Completion after:\n" + 
1247
		"	 * 	#meth\n" + 
1248
		"	 */\n" + 
1249
		"	BasicTest() {}\n" + 
1250
		"}\n" + 
1251
		"class BasicTestSecondaryClass\n" + 
1252
		"	void method1() {}\n" + 
1253
		"}\n" + 
1254
		"interface BasicTestSecondaryInterface\n" + 
1255
		"	void method2() {}\n" + 
1256
		"}\n";
1257
	completeInJavadoc("/Completion/src/javadoc/text/BasicTestTextIns.java", source, true, "#meth");
1258
	assertSortedResults(
1259
			"method1[JAVADOC_METHOD_REF]{{@link #method1()}, Ljavadoc.text.BasicTestSecondaryClass;, ()V, method1, null, "+this.positions+R_DRICNRNSIT+"}\n" + 
1260
			"method2[JAVADOC_METHOD_REF]{{@link #method2()}, Ljavadoc.text.BasicTestSecondaryInterface;, ()V, method2, null, "+this.positions+R_DRICNRNSIT+"}"
1261
	);
1262
}
1263
}
1264
(-)codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java (-2 / +1 lines)
Lines 7100-7107 Link Here
7100
				}
7100
				}
7101
			}
7101
			}
7102
			
7102
			
7103
			if (notInJavadoc &&
7103
			if (hasPotentialDefaultAbstractMethods &&
7104
					hasPotentialDefaultAbstractMethods &&
7105
					(currentType.isAbstract() ||
7104
					(currentType.isAbstract() ||
7106
							currentType.isTypeVariable() ||
7105
							currentType.isTypeVariable() ||
7107
							currentType.isIntersectionType() ||
7106
							currentType.isIntersectionType() ||

Return to bug 219937