Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 24385 Details for
Bug 101283
[1.5][javadoc] Javadoc validation raises missing implementation in compiler
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Added tests in JavadocTest_1_? classes
v01-compiler.txt (text/plain), 21.69 KB, created by
Frederic Fusier
on 2005-07-06 12:00:32 EDT
(
hide
)
Description:
Added tests in JavadocTest_1_? classes
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2005-07-06 12:00:32 EDT
Size:
21.69 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java,v >retrieving revision 1.10 >diff -u -r1.10 JavadocTest_1_3.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java 17 May 2005 17:18:12 -0000 1.10 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java 6 Jul 2005 14:28:15 -0000 >@@ -38,7 +38,7 @@ > // TESTS_NAMES = new String[] { > // "testBug70892conform1", "testBug70892conform2" > // }; >-// TESTS_NUMBERS = new int[] { 21 }; >+// TESTS_NUMBERS = new int[] { 101283 }; > // TESTS_RANGE = new int[] { 21, 50 }; > } > public static Test suite() { >@@ -2801,4 +2801,212 @@ > "----------\n" > ); > } >+ >+ /** >+ * Bug 101283: [1.5][javadoc] Javadoc validation raises missing implementation in compiler >+ * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=101283" >+ */ >+ public void testBug101283a() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283b() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: T cannot be resolved to a type\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: F cannot be resolved to a type\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283c() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283d() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: T cannot be resolved to a type\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: F cannot be resolved to a type\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ // Verify that ProblemReasons.InheritedNameHidesEnclosingName is not reported as Javadoc error >+ public void testBug101283g() { >+ reportMissingJavadocTags = CompilerOptions.DISABLED; >+ runNegativeTest( >+ new String[] { >+ "test/X.java", >+ "package test;\n" + >+ "public class X {\n" + >+ " int foo() { return 0; }\n" + >+ " class XX extends X2 {\n" + >+ " int bar() {\n" + >+ " return foo();\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class X2 {\n" + >+ " int foo() {\n" + >+ " return 0;\n" + >+ " }\n" + >+ "}\n", >+ "test/Y.java", >+ "package test;\n" + >+ "public class Y {\n" + >+ " int foo;\n" + >+ " class YY extends Y2 {\n" + >+ " /**\n" + >+ " * @see #foo\n" + >+ " */\n" + >+ " int bar() {\n" + >+ " return foo;\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class Y2 {\n" + >+ " int foo;\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in test\\X.java (at line 6)\r\n" + >+ " return foo();\r\n" + >+ " ^^^\n" + >+ "The method foo is defined in an inherited type and an enclosing scope\n" + >+ "----------\n" + >+ "----------\n" + >+ "1. ERROR in test\\Y.java (at line 9)\r\n" + >+ " return foo;\r\n" + >+ " ^^^\n" + >+ "The field foo is defined in an inherited type and an enclosing scope \n" + >+ "----------\n" >+ ); >+ } > } >Index: src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java,v >retrieving revision 1.13 >diff -u -r1.13 JavadocTest_1_4.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java 17 May 2005 17:18:12 -0000 1.13 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java 6 Jul 2005 14:28:17 -0000 >@@ -39,7 +39,7 @@ > // TESTS_NAMES = new String[] { > // "testBug70892conform1", "testBug70892conform2" > // }; >-// TESTS_NUMBERS = new int[] { 83804 }; >+// TESTS_NUMBERS = new int[] { 101283 }; > // TESTS_RANGE = new int[] { 21, 50 }; > } > public static Test suite() { >@@ -2802,4 +2802,200 @@ > "----------\n" > ); > } >+ >+ /** >+ * Bug 101283: [1.5][javadoc] Javadoc validation raises missing implementation in compiler >+ * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=101283" >+ */ >+ public void testBug101283a() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283b() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: T cannot be resolved to a type\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: F cannot be resolved to a type\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283c() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^^^\n" + >+ "Javadoc: Invalid param tag name\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283d() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 1)\n" + >+ " public class X<T, F> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: T cannot be resolved to a type\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: F cannot be resolved to a type\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^^^^\n" + >+ "Syntax error, type parameters are only available if source level is 5.0\n" + >+ "----------\n" >+ ); >+ } >+ // Verify that ProblemReasons.InheritedNameHidesEnclosingName is not reported as Javadoc error >+ public void testBug101283g() { >+ reportMissingJavadocTags = CompilerOptions.DISABLED; >+ runConformTest( >+ new String[] { >+ "test/X.java", >+ "package test;\n" + >+ "public class X {\n" + >+ " int foo() { return 0; }\n" + >+ " class XX extends X2 {\n" + >+ " int bar() {\n" + >+ " return foo();\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class X2 {\n" + >+ " int foo() {\n" + >+ " return 0;\n" + >+ " }\n" + >+ "}\n", >+ "test/Y.java", >+ "package test;\n" + >+ "public class Y {\n" + >+ " int foo;\n" + >+ " class YY extends Y2 {\n" + >+ " /**\n" + >+ " * @see #foo\n" + >+ " */\n" + >+ " int bar() {\n" + >+ " return foo;\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class Y2 {\n" + >+ " int foo;\n" + >+ "}\n" >+ } >+ ); >+ } > } >Index: src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java,v >retrieving revision 1.16.2.1 >diff -u -r1.16.2.1 JavadocTest_1_5.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java 5 Jul 2005 10:20:45 -0000 1.16.2.1 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_5.java 6 Jul 2005 14:28:18 -0000 >@@ -37,7 +37,7 @@ > static { > // TESTS_PREFIX = "testBug95521"; > // TESTS_NAMES = new String[] { "testBug83127a" }; >-// TESTS_NUMBERS = new int[] { 83804 }; >+// TESTS_NUMBERS = new int[] { 101283 }; > // TESTS_RANGE = new int[] { 23, -1 }; > } > public static Test suite() { >@@ -1878,4 +1878,255 @@ > } > ); > } >+ >+ /** >+ * Bug 101283: [1.5][javadoc] Javadoc validation raises missing implementation in compiler >+ * @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=101283" >+ */ >+ public void testBug101283a() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^\n" + >+ "Javadoc: Parameter T is not declared\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^\n" + >+ "Javadoc: Parameter F is not declared\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter L\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter R\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283b() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " static class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: Invalid reference\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: Invalid reference\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter L\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " static class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter R\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283c() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @param <T> \n" + >+ " * @param <F>\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " * @param <T> \n" + >+ " ^\n" + >+ "Javadoc: Parameter T is not declared\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 5)\n" + >+ " * @param <F>\n" + >+ " ^\n" + >+ "Javadoc: Parameter F is not declared\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter L\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter R\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283d() { >+ runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T, F> {\n" + >+ "\n" + >+ " /**\n" + >+ " * @see T Variable \n" + >+ " * @see F Variable\n" + >+ " */\n" + >+ " class Entry<L, R> {\n" + >+ " // empty\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " * @see T Variable \n" + >+ " ^\n" + >+ "Javadoc: Invalid reference\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 5)\n" + >+ " * @see F Variable\n" + >+ " ^\n" + >+ "Javadoc: Invalid reference\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter L\n" + >+ "----------\n" + >+ "4. ERROR in X.java (at line 7)\n" + >+ " class Entry<L, R> {\n" + >+ " ^\n" + >+ "Javadoc: Missing tag for parameter R\n" + >+ "----------\n" >+ ); >+ } >+ // Verify duplicate test case: bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=102735 >+ public void testBug101283e() { >+ reportMissingJavadocTags = CompilerOptions.DISABLED; >+ runNegativeTest( >+ new String[] { >+ "Test.java", >+ "public interface Test<V, R extends Component<?>, C extends\n" + >+ "Test<V, R, C>> extends Control<SelectModel<V>, C>\n" + >+ "{\n" + >+ " public interface ValueRepresentationStrategy<VV, RR extends Component<?>> extends ComponentFactory<VV, RR>\n" + >+ " {\n" + >+ " /**This value must be equal to the ID of the component returned by the {@link\n" + >+ " ComponentFactory#createComponent(V)} method.*/\n" + >+ " public String getID(final VV value);\n" + >+ " }\n" + >+ "}\n" + >+ "class Component<T> {}\n" + >+ "interface Control<U, V> {}\n" + >+ "class SelectModel<V> {}\n" + >+ "interface ComponentFactory <U, V> {\n" + >+ " public void createComponent(V v);\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in Test.java (at line 7)\n" + >+ " ComponentFactory#createComponent(V)} method.*/\n" + >+ " ^\n" + >+ "Javadoc: Cannot make a static reference to the non-static type variable V\n" + >+ "----------\n" >+ ); >+ } >+ public void testBug101283f() { >+ reportMissingJavadocTags = CompilerOptions.DISABLED; >+ runConformTest( >+ new String[] { >+ "Test.java", >+ "public interface Test<V, R extends Component<?>, C extends\n" + >+ "Test<V, R, C>> extends Control<SelectModel<V>, C>\n" + >+ "{\n" + >+ " public interface ValueRepresentationStrategy<VV, RR extends Component<?>> extends ComponentFactory<VV, RR>\n" + >+ " {\n" + >+ " /**This value must be equal to the ID of the component returned by the {@link\n" + >+ " ComponentFactory#createComponent(Object)} method.*/\n" + >+ " public String getID(final VV value);\n" + >+ " }\n" + >+ "}\n" + >+ "class Component<T> {}\n" + >+ "interface Control<U, V> {}\n" + >+ "class SelectModel<V> {}\n" + >+ "interface ComponentFactory <U, V> {\n" + >+ " public void createComponent(V v);\n" + >+ "}\n" >+ } >+ ); >+ } >+ // Verify that ProblemReasons.InheritedNameHidesEnclosingName is not reported as Javadoc error >+ public void testBug101283g() { >+ reportMissingJavadocTags = CompilerOptions.DISABLED; >+ runConformTest( >+ new String[] { >+ "test/X.java", >+ "package test;\n" + >+ "public class X {\n" + >+ " int foo() { return 0; }\n" + >+ " class XX extends X2 {\n" + >+ " int bar() {\n" + >+ " return foo();\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class X2 {\n" + >+ " int foo() {\n" + >+ " return 0;\n" + >+ " }\n" + >+ "}\n", >+ "test/Y.java", >+ "package test;\n" + >+ "public class Y {\n" + >+ " int foo;\n" + >+ " class YY extends Y2 {\n" + >+ " /**\n" + >+ " * @see #foo\n" + >+ " */\n" + >+ " int bar() {\n" + >+ " return foo;\n" + >+ " }\n" + >+ " }\n" + >+ "}\n" + >+ "class Y2 {\n" + >+ " int foo;\n" + >+ "}\n" >+ } >+ ); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101283
:
23791
|
24384
| 24385