Lines 38-44
Link Here
|
38 |
// All specified tests which does not belong to the class are skipped... |
38 |
// All specified tests which does not belong to the class are skipped... |
39 |
static { |
39 |
static { |
40 |
// TESTS_PREFIX = "testBug95521"; |
40 |
// TESTS_PREFIX = "testBug95521"; |
41 |
// TESTS_NAMES = new String[] { "testBug209936" }; |
41 |
// TESTS_NAMES = new String[] { "testBug331872d" }; |
42 |
// TESTS_NUMBERS = new int[] { 101283 }; |
42 |
// TESTS_NUMBERS = new int[] { 101283 }; |
43 |
// TESTS_RANGE = new int[] { 23, -1 }; |
43 |
// TESTS_RANGE = new int[] { 23, -1 }; |
44 |
} |
44 |
} |
Lines 4220-4223
Link Here
|
4220 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4220 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4221 |
); |
4221 |
); |
4222 |
} |
4222 |
} |
|
|
4223 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=331872 |
4224 |
public void testBug331872() { |
4225 |
Map options = getCompilerOptions(); |
4226 |
options.put(CompilerOptions.OPTION_ReportMissingJavadocTagsMethodTypeParameters, CompilerOptions.DISABLED); |
4227 |
this.runNegativeTest( |
4228 |
true, |
4229 |
new String[] { |
4230 |
"X.java", |
4231 |
"/**\n" + |
4232 |
" * @param <p> the given type parameter\n" + |
4233 |
" */\n" + |
4234 |
"public class X<p> {\n" + |
4235 |
" /**\n" + |
4236 |
" * @param o the given object\n" + |
4237 |
" * @see #foo(p.O[])\n" + |
4238 |
" */\n" + |
4239 |
" public void foo(Object o) {\n" + |
4240 |
" }\n" + |
4241 |
"}" |
4242 |
}, |
4243 |
null, |
4244 |
options, |
4245 |
"----------\n" + |
4246 |
"1. ERROR in X.java (at line 7)\n" + |
4247 |
" * @see #foo(p.O[])\n" + |
4248 |
" ^^^\n" + |
4249 |
"Illegal qualified access from the type parameter p\n" + |
4250 |
"----------\n", |
4251 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4252 |
); |
4253 |
} |
4254 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=331872 |
4255 |
public void testBug331872b() { |
4256 |
Map options = getCompilerOptions(); |
4257 |
options.put(CompilerOptions.OPTION_ReportMissingJavadocTagsMethodTypeParameters, CompilerOptions.DISABLED); |
4258 |
this.runNegativeTest( |
4259 |
true, |
4260 |
new String[] { |
4261 |
"X.java", |
4262 |
"/**\n" + |
4263 |
" * @param <p> the given type parameter\n" + |
4264 |
" */\n" + |
4265 |
"public class X<p> {\n" + |
4266 |
" /**\n" + |
4267 |
" * @param o the given object\n" + |
4268 |
" * @see #foo(O[])\n" + |
4269 |
" */\n" + |
4270 |
" public void foo(Object o) {\n" + |
4271 |
" }\n" + |
4272 |
"}" |
4273 |
}, |
4274 |
null, |
4275 |
options, |
4276 |
"----------\n" + |
4277 |
"1. ERROR in X.java (at line 7)\n" + |
4278 |
" * @see #foo(O[])\n" + |
4279 |
" ^\n" + |
4280 |
"Javadoc: O[] cannot be resolved to a type\n" + |
4281 |
"----------\n", |
4282 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4283 |
); |
4284 |
} |
4285 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=331872 |
4286 |
public void testBug331872c() { |
4287 |
Map options = getCompilerOptions(); |
4288 |
options.put(CompilerOptions.OPTION_ReportMissingJavadocTagsMethodTypeParameters, CompilerOptions.DISABLED); |
4289 |
this.runNegativeTest( |
4290 |
true, |
4291 |
new String[] { |
4292 |
"X.java", |
4293 |
"/**\n" + |
4294 |
" * @param <p> the given type parameter\n" + |
4295 |
" */\n" + |
4296 |
"public class X<p> {\n" + |
4297 |
" /**\n" + |
4298 |
" * @param o the given object\n" + |
4299 |
" * @see #foo(test.O[])\n" + |
4300 |
" */\n" + |
4301 |
" public void foo(Object o) {\n" + |
4302 |
" }\n" + |
4303 |
"}" |
4304 |
}, |
4305 |
null, |
4306 |
options, |
4307 |
"----------\n" + |
4308 |
"1. ERROR in X.java (at line 7)\n" + |
4309 |
" * @see #foo(test.O[])\n" + |
4310 |
" ^^^^^^\n" + |
4311 |
"Javadoc: test[] cannot be resolved to a type\n" + |
4312 |
"----------\n", |
4313 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4314 |
); |
4315 |
} |
4316 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=331872 |
4317 |
public void testBug331872d() { |
4318 |
Map options = getCompilerOptions(); |
4319 |
options.put(CompilerOptions.OPTION_ReportMissingJavadocTagsMethodTypeParameters, CompilerOptions.DISABLED); |
4320 |
this.runNegativeTest( |
4321 |
true, |
4322 |
new String[] { |
4323 |
"X.java", |
4324 |
"/**\n" + |
4325 |
" * @param <p> the given type parameter\n" + |
4326 |
" */\n" + |
4327 |
"public class X<p> {\n" + |
4328 |
" /**\n" + |
4329 |
" * @param o the given object\n" + |
4330 |
" * @see #foo(test.O)\n" + |
4331 |
" */\n" + |
4332 |
" public void foo(Object o) {\n" + |
4333 |
" }\n" + |
4334 |
"}" |
4335 |
}, |
4336 |
null, |
4337 |
options, |
4338 |
"----------\n" + |
4339 |
"1. ERROR in X.java (at line 7)\n" + |
4340 |
" * @see #foo(test.O)\n" + |
4341 |
" ^^^^^^\n" + |
4342 |
"Javadoc: test cannot be resolved to a type\n" + |
4343 |
"----------\n", |
4344 |
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError |
4345 |
); |
4346 |
} |
4223 |
} |
4347 |
} |