### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java,v retrieving revision 1.54 diff -u -r1.54 CompilationUnitTests.java --- src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java 26 Oct 2007 15:17:55 -0000 1.54 +++ src/org/eclipse/jdt/core/tests/model/CompilationUnitTests.java 14 Nov 2007 14:40:47 -0000 @@ -627,6 +627,24 @@ } /* + * Ensure that the annotations for a method parameter are correct. + * (regression test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=209661) + */ +public void testAnnotations24() throws JavaModelException { + createWorkingCopy( + "package p;\n" + + "public class Y {\n" + + " void foo(@MyAnnot int arg1) {\n" + + " }\n" + + "}" + ); + IAnnotation[] annotations = getLocalVariable(this.workingCopy, "arg1", "arg1").getAnnotations(); + assertAnnotationsEqual( + "@MyAnnot\n", + annotations); +} + +/* * Ensures that the categories for a class are correct. */ public void testGetCategories01() throws CoreException {