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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java (+18 lines)
Lines 627-632 Link Here
627
}
627
}
628
628
629
/*
629
/*
630
 * Ensure that the annotations for a method parameter are correct.
631
 * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=209661)
632
 */
633
public void testAnnotations24() throws JavaModelException {
634
	createWorkingCopy(
635
		"package p;\n" +
636
		"public class Y {\n" +
637
		"  void foo(@MyAnnot int arg1) {\n" +
638
		"  }\n" +
639
		"}"
640
	);
641
	IAnnotation[] annotations = getLocalVariable(this.workingCopy, "arg1", "arg1").getAnnotations();
642
	assertAnnotationsEqual(
643
		"@MyAnnot\n",
644
		annotations);
645
}
646
647
/*
630
 * Ensures that the categories for a class are correct.
648
 * Ensures that the categories for a class are correct.
631
 */
649
 */
632
public void testGetCategories01() throws CoreException {
650
public void testGetCategories01() throws CoreException {

Return to bug 209661