### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: buildnotes_jdt-core.html =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/buildnotes_jdt-core.html,v retrieving revision 1.7696 diff -u -r1.7696 buildnotes_jdt-core.html --- buildnotes_jdt-core.html 6 Dec 2010 16:26:22 -0000 1.7696 +++ buildnotes_jdt-core.html 6 Dec 2010 17:17:19 -0000 @@ -50,7 +50,9 @@
{\n" + + " void foo(p.O[] elems) {\n" + + " }\n" + + " void bar() {\n" + + " foo(new Object[0]);\n" + + " }\n" + + "}\n", + }, + "----------\n" + + "1. ERROR in X.java (at line 2)\n" + + " void foo(p.O[] elems) {\n" + + " ^^^^^\n" + + "Illegal qualified access from the type parameter p\n" + + "----------\n" + + "2. ERROR in X.java (at line 5)\n" + + " foo(new Object[0]);\n" + + " ^^^\n" + + "The method foo(Object[]) is undefined for the type X
\n" + + "----------\n"); +} } Index: src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java,v retrieving revision 1.49 diff -u -r1.49 JavadocTest_1_5.java --- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java 6 Oct 2010 13:57:31 -0000 1.49 +++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java 6 Dec 2010 17:17:19 -0000 @@ -38,7 +38,7 @@ // All specified tests which does not belong to the class are skipped... static { // TESTS_PREFIX = "testBug95521"; -// TESTS_NAMES = new String[] { "testBug209936" }; +// TESTS_NAMES = new String[] { "testBug331872" }; // TESTS_NUMBERS = new int[] { 101283 }; // TESTS_RANGE = new int[] { 23, -1 }; } @@ -4220,4 +4220,35 @@ JavacTestOptions.Excuse.EclipseWarningConfiguredAsError ); } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=331872 + public void testBug331872() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportMissingJavadocTagsMethodTypeParameters, CompilerOptions.DISABLED); + this.runNegativeTest( + true, + new String[] { + "X.java", + "/**\n" + + " * @param
the given type parameter\n" + + " */\n" + + "public class X
{\n" + + " /**\n" + + " * @param o the given object\n" + + " * @see #foo(p.O[])\n" + + " */\n" + + " public void foo(Object o) {\n" + + " }\n" + + "}" + }, + null, + options, + "----------\n" + + "1. ERROR in X.java (at line 7)\n" + + " * @see #foo(p.O[])\n" + + " ^^^\n" + + "Illegal qualified access from the type parameter p\n" + + "----------\n", + JavacTestOptions.Excuse.EclipseWarningConfiguredAsError + ); + } }