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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java (-8 / +170 lines)
Lines 12-17 Link Here
12
12
13
import java.io.File;
13
import java.io.File;
14
import java.io.IOException;
14
import java.io.IOException;
15
import java.util.HashMap;
15
import java.util.Hashtable;
16
import java.util.Hashtable;
16
import java.util.Map;
17
import java.util.Map;
17
18
Lines 38-44 Link Here
38
	static {
39
	static {
39
//		TESTS_NAMES = new String[] { "test127" };
40
//		TESTS_NAMES = new String[] { "test127" };
40
//		TESTS_NUMBERS = new int[] { 15 };
41
//		TESTS_NUMBERS = new int[] { 15 };
41
		TESTS_RANGE = new int[] { 165, 170 };
42
//		TESTS_RANGE = new int[] { 165, 170 };
42
	}
43
	}
43
	public static Test suite() {
44
	public static Test suite() {
44
		Test suite = buildTestSuite(testClass());
45
		Test suite = buildTestSuite(testClass());
Lines 3670-3677 Link Here
3670
			"----------\n" + 
3671
			"----------\n" + 
3671
			"1. WARNING in Y.java (at line 1)\n" + 
3672
			"1. WARNING in Y.java (at line 1)\n" + 
3672
			"	public class Y extends X {\n" + 
3673
			"	public class Y extends X {\n" + 
3673
			"	             ^\n" + 
3674
			"	                       ^\n" + 
3674
			"The constructor X() is deprecated\n" + 
3675
			"The type X is deprecated\n" + 
3675
			"----------\n" + 
3676
			"----------\n" + 
3676
			"2. WARNING in Y.java (at line 2)\n" + 
3677
			"2. WARNING in Y.java (at line 2)\n" + 
3677
			"	void foo(){ super.foo(); }\n" + 
3678
			"	void foo(){ super.foo(); }\n" + 
Lines 3707-3714 Link Here
3707
			"----------\n" + 
3708
			"----------\n" + 
3708
			"1. WARNING in Y.java (at line 1)\n" + 
3709
			"1. WARNING in Y.java (at line 1)\n" + 
3709
			"	public class Y extends X {\n" + 
3710
			"	public class Y extends X {\n" + 
3710
			"	             ^\n" + 
3711
			"	                       ^\n" + 
3711
			"The constructor X() is deprecated\n" + 
3712
			"The type X is deprecated\n" + 
3712
			"----------\n" + 
3713
			"----------\n" + 
3713
			"2. WARNING in Y.java (at line 2)\n" + 
3714
			"2. WARNING in Y.java (at line 2)\n" + 
3714
			"	void foo(){ super.foo(); }\n" + 
3715
			"	void foo(){ super.foo(); }\n" + 
Lines 3922-3929 Link Here
3922
			"----------\n" + 
3923
			"----------\n" + 
3923
			"1. WARNING in Y.java (at line 1)\n" + 
3924
			"1. WARNING in Y.java (at line 1)\n" + 
3924
			"	public class Y extends X {\n" + 
3925
			"	public class Y extends X {\n" + 
3925
			"	             ^\n" + 
3926
			"	                       ^\n" + 
3926
			"The constructor X() is deprecated\n" + 
3927
			"The type X is deprecated\n" + 
3927
			"----------\n" + 
3928
			"----------\n" + 
3928
			"2. ERROR in Y.java (at line 4)\n" + 
3929
			"2. ERROR in Y.java (at line 4)\n" + 
3929
			"	Zork z;\n" + 
3930
			"	Zork z;\n" + 
Lines 4436-4441 Link Here
4436
    }        
4437
    }        
4437
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=94308
4438
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=94308
4438
    public void test142() {
4439
    public void test142() {
4440
    	// WORK look seems that OPTION_ReportInvalidJavadoc now defaults to error,
4441
    	//      be it because of the compiler, or of the test framework
4439
        this.runNegativeTest(
4442
        this.runNegativeTest(
4440
            new String[] {
4443
            new String[] {
4441
                "X.java",
4444
                "X.java",
Lines 4463-4469 Link Here
4463
			"	Zork z;\n" + 
4466
			"	Zork z;\n" + 
4464
			"	^^^^\n" + 
4467
			"	^^^^\n" + 
4465
			"Zork cannot be resolved to a type\n" + 
4468
			"Zork cannot be resolved to a type\n" + 
4466
			"----------\n");
4469
			"----------\n",
4470
			null,
4471
			true,
4472
			null);
4473
    }        
4474
    public void test142b() {
4475
    	Map raiseInvalidJavadocSeverity = 
4476
    		new HashMap(2);
4477
    	raiseInvalidJavadocSeverity.put(
4478
    			CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR);
4479
    	// admittingly, when these are errors, SuppressWarnings is not enough to 
4480
    	// filter them out *but* the deprecation level being WARNING, we get them
4481
    	// out anyway
4482
    	// WORK look semantics
4483
        this.runNegativeTest(
4484
            new String[] {
4485
                "X.java",
4486
				"@SuppressWarnings(\"deprecation\")\n" + 
4487
				"public class X extends p.OldStuff {\n" + 
4488
				"	/**\n" + 
4489
				"	 * @see p.OldStuff#foo()\n" + 
4490
				"	 */\n" + 
4491
				"	@Override\n" + 
4492
				"	public void foo() {\n" + 
4493
				"		super.foo();\n" + 
4494
				"	}\n" + 
4495
				"}\n",
4496
                "p/OldStuff.java",
4497
                "package p;\n" +
4498
                "@Deprecated\n" +
4499
				"public class OldStuff {\n" + 
4500
				"	public void foo() {\n" + 
4501
				"	}	\n" + 
4502
				"  Zork z;\n" +
4503
				"}\n",
4504
            },
4505
			"----------\n" + 
4506
			"1. ERROR in p\\OldStuff.java (at line 6)\n" + 
4507
			"	Zork z;\n" + 
4508
			"	^^^^\n" + 
4509
			"Zork cannot be resolved to a type\n" + 
4510
			"----------\n",
4511
			null,
4512
			true,
4513
			raiseInvalidJavadocSeverity);
4514
    }        
4515
    public void test142c() {
4516
    	Map raiseDeprecationReduceInvalidJavadocSeverity = 
4517
    		new HashMap(2);
4518
    	raiseDeprecationReduceInvalidJavadocSeverity.put(
4519
    			CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ERROR);
4520
    	raiseDeprecationReduceInvalidJavadocSeverity.put(
4521
    			CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.WARNING);
4522
    	// WORK look I (Maxime) do not like this one; I'd rather see OPTION_ReportInvalidJavadoc
4523
    	//      override OPTION_ReportDeprecation; javac seems to have less flexibility than we
4524
    	//      have here
4525
        this.runNegativeTest(
4526
            new String[] {
4527
                "X.java",
4528
				"@SuppressWarnings(\"deprecation\")\n" + 
4529
				"public class X extends p.OldStuff {\n" + 
4530
				"	/**\n" + 
4531
				"	 * @see p.OldStuff#foo()\n" + 
4532
				"	 */\n" + 
4533
				"	@Override\n" + 
4534
				"	public void foo() {\n" + 
4535
				"		super.foo();\n" + 
4536
				"	}\n" + 
4537
				"}\n",
4538
                "p/OldStuff.java",
4539
                "package p;\n" +
4540
                "@Deprecated\n" +
4541
				"public class OldStuff {\n" + 
4542
				"	public void foo() {\n" + 
4543
				"	}	\n" + 
4544
				"  Zork z;\n" +
4545
				"}\n",
4546
            },
4547
			"----------\n" + 
4548
			"1. ERROR in X.java (at line 2)\n" + 
4549
			"	public class X extends p.OldStuff {\n" + 
4550
			"	                       ^^^^^^^^^^\n" + 
4551
			"The type OldStuff is deprecated\n" + 
4552
			"----------\n" + 
4553
			"2. ERROR in X.java (at line 8)\n" + 
4554
			"	super.foo();\n" + 
4555
			"	^^^^^^^^^^^\n" + 
4556
			"The method foo() from the type OldStuff is deprecated\n" + 
4557
			"----------\n" + 
4558
			"----------\n" + 
4559
			"1. ERROR in p\\OldStuff.java (at line 6)\n" + 
4560
			"	Zork z;\n" + 
4561
			"	^^^^\n" + 
4562
			"Zork cannot be resolved to a type\n" + 
4563
			"----------\n",
4564
			null,
4565
			true,
4566
			raiseDeprecationReduceInvalidJavadocSeverity);
4567
    }        
4568
    public void test142d() {
4569
    	Map raiseDeprecationAndInvalidJavadocSeverity = 
4570
    		new HashMap(2);
4571
    	raiseDeprecationAndInvalidJavadocSeverity.put(
4572
    			CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ERROR);
4573
    	raiseDeprecationAndInvalidJavadocSeverity.put(
4574
    			CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR);
4575
    	// WORK look seems that OPTION_ReportInvalidJavadoc now defaults to error,
4576
    	//      be it because of the compiler, or of the test framework
4577
        this.runNegativeTest(
4578
            new String[] {
4579
                "X.java",
4580
				"@SuppressWarnings(\"deprecation\")\n" + 
4581
				"public class X extends p.OldStuff {\n" + 
4582
				"	/**\n" + 
4583
				"	 * @see p.OldStuff#foo()\n" + 
4584
				"	 */\n" + 
4585
				"	@Override\n" + 
4586
				"	public void foo() {\n" + 
4587
				"		super.foo();\n" + 
4588
				"	}\n" + 
4589
				"}\n",
4590
                "p/OldStuff.java",
4591
                "package p;\n" +
4592
                "@Deprecated\n" +
4593
				"public class OldStuff {\n" + 
4594
				"	public void foo() {\n" + 
4595
				"	}	\n" + 
4596
				"  Zork z;\n" +
4597
				"}\n",
4598
            },
4599
			"----------\n" + 
4600
			"1. ERROR in X.java (at line 2)\n" + 
4601
			"	public class X extends p.OldStuff {\n" + 
4602
			"	                       ^^^^^^^^^^\n" + 
4603
			"The type OldStuff is deprecated\n" + 
4604
			"----------\n" + 
4605
			"2. ERROR in X.java (at line 4)\n" + 
4606
			"	* @see p.OldStuff#foo()\n" + 
4607
			"	       ^^^^^^^^^^\n" + 
4608
			"Javadoc: The type OldStuff is deprecated\n" + 
4609
			"----------\n" + 
4610
			"3. ERROR in X.java (at line 4)\n" + 
4611
			"	* @see p.OldStuff#foo()\n" + 
4612
			"	                  ^^^^^\n" + 
4613
			"Javadoc: The method foo() from the type OldStuff is deprecated\n" + 
4614
			"----------\n" + 
4615
			"4. ERROR in X.java (at line 8)\n" + 
4616
			"	super.foo();\n" + 
4617
			"	^^^^^^^^^^^\n" + 
4618
			"The method foo() from the type OldStuff is deprecated\n" + 
4619
			"----------\n" + 
4620
			"----------\n" + 
4621
			"1. ERROR in p\\OldStuff.java (at line 6)\n" + 
4622
			"	Zork z;\n" + 
4623
			"	^^^^\n" + 
4624
			"Zork cannot be resolved to a type\n" + 
4625
			"----------\n",
4626
			null,
4627
			true,
4628
			raiseDeprecationAndInvalidJavadocSeverity);
4467
    }        
4629
    }        
4468
    public void _test143() {
4630
    public void _test143() {
4469
        this.runNegativeTest(
4631
        this.runNegativeTest(
(-)src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java (-15 / +20 lines)
Lines 17-23 Link Here
17
import java.text.MessageFormat;
17
import java.text.MessageFormat;
18
18
19
import junit.framework.Test;
19
import junit.framework.Test;
20
import junit.framework.TestSuite;
21
20
22
import org.eclipse.jdt.core.tests.util.Util;
21
import org.eclipse.jdt.core.tests.util.Util;
23
import org.eclipse.jdt.internal.compiler.batch.Main;
22
import org.eclipse.jdt.internal.compiler.batch.Main;
Lines 29-49 Link Here
29
public BatchCompilerTest(String name) {
28
public BatchCompilerTest(String name) {
30
	super(name);
29
	super(name);
31
}
30
}
31
// Use this static initializer to specify subset for tests.
32
// All specified tests which do not belong to the class are skipped...
33
static {
34
//		TESTS_PREFIX =  "test00"; 
35
			// selects those methods that start with TESTS_PREFIX; must start 
36
			// by test anyway; 
37
//		TESTS_NAMES = new String[] { "testBug82208_SearchAllTypeNames_CLASS" };
38
			// selects those methods that match exactly one of of the listed
39
			// names
40
//		TESTS_NUMBERS = new int[] { 1, 2, 3 };
41
			// selects those methods which name matches 'test<value of i>' for 
42
			// exactly one of the provided integers; leading 0s are not 
43
			// significant (that is, '1' selects 'test001')
44
//		TESTS_RANGE = new int[] { 28, -1 };
45
			// selects those methods which name matches any number of the 
46
			// specified range, applying the rules of TESTS_NUMBERS above;
47
			// specifying an upper range of -1 means 'up to the end of the
48
			// list'
49
}
32
public static Test suite() {
50
public static Test suite() {
33
	if (false) {
51
	return buildTestSuite(testClass(), highestComplianceLevels());
34
		TestSuite suite = new TestSuite();
35
		suite.addTest(new BatchCompilerTest("test032"));
36
		return suite;
37
	}
38
	if (false) {
39
		TestSuite suite = new TestSuite();
40
		for (int i = 23; i < 27; i++) 
41
		  suite.addTest(new BatchCompilerTest("test0" + String.valueOf(i)));
42
		return suite;
43
	}
44
	return setupSuite(testClass());
45
	// TODO find a way to reduce the number of command line tests to one per 
46
	//      test run (aka do not add 1.3, 1.4, 1.5 supplementary level)
47
}
52
}
48
53
49
	/**
54
	/**
(-)src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java (-5 lines)
Lines 197-207 Link Here
197
		"----------\n" + 
197
		"----------\n" + 
198
		"1. WARNING in A.java (at line 1)\n" + 
198
		"1. WARNING in A.java (at line 1)\n" + 
199
		"	public class A extends X.Y {}\n" + 
199
		"	public class A extends X.Y {}\n" + 
200
		"	             ^\n" + 
201
		"The constructor X.Y() is deprecated\n" + 
202
		"----------\n" + 
203
		"2. WARNING in A.java (at line 1)\n" + 
204
		"	public class A extends X.Y {}\n" + 
205
		"	                       ^^^\n" + 
200
		"	                       ^^^\n" + 
206
		"The type X.Y is deprecated\n" + 
201
		"The type X.Y is deprecated\n" + 
207
		"----------\n",// expected output
202
		"----------\n",// expected output
(-)src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java (-21 / +22 lines)
Lines 28-33 Link Here
28
		return buildTestSuite(javadocTestClass());
28
		return buildTestSuite(javadocTestClass());
29
	}
29
	}
30
	static { // Use this static to initialize testNames (String[]) , testRange (int[2]), testNumbers (int[])
30
	static { // Use this static to initialize testNames (String[]) , testRange (int[2]), testNumbers (int[])
31
//		TESTS_NAMES= new String [] {"test061"};
31
	}
32
	}
32
33
33
	protected Map getCompilerOptions() {
34
	protected Map getCompilerOptions() {
Lines 1000-1026 Link Here
1000
					+ "	void foo() {\n"
1001
					+ "	void foo() {\n"
1001
					+ "	}\n"
1002
					+ "	}\n"
1002
					+ "}\n" },
1003
					+ "}\n" },
1003
			"----------\n"
1004
			"----------\n" + 
1004
				+ "1. ERROR in X.java (at line 4)\n"
1005
			"1. WARNING in X.java (at line 4)\n" + 
1005
				+ "	* @see IX#x\n"
1006
			"	* @see IX#x\n" + 
1006
				+ "	          ^\n"
1007
			"	          ^\n" + 
1007
				+ "Javadoc: The field IX.x is deprecated\n"
1008
			"Javadoc: The field IX.x is deprecated\n" + 
1008
				+ "----------\n"
1009
			"----------\n" + 
1009
				+ "2. ERROR in X.java (at line 5)\n"
1010
			"2. WARNING in X.java (at line 5)\n" + 
1010
				+ "	* @see IY\n"
1011
			"	* @see IY\n" + 
1011
				+ "	       ^^\n"
1012
			"	       ^^\n" + 
1012
				+ "Javadoc: The type IY is deprecated\n"
1013
			"Javadoc: The type IY is deprecated\n" + 
1013
				+ "----------\n"
1014
			"----------\n" + 
1014
				+ "3. ERROR in X.java (at line 6)\n"
1015
			"3. WARNING in X.java (at line 6)\n" + 
1015
				+ "	* @see IY#y\n"
1016
			"	* @see IY#y\n" + 
1016
				+ "	       ^^\n"
1017
			"	       ^^\n" + 
1017
				+ "Javadoc: The type IY is deprecated\n"
1018
			"Javadoc: The type IY is deprecated\n" + 
1018
				+ "----------\n"
1019
			"----------\n" + 
1019
				+ "4. ERROR in X.java (at line 6)\n"
1020
			"4. WARNING in X.java (at line 6)\n" + 
1020
				+ "	* @see IY#y\n"
1021
			"	* @see IY#y\n" + 
1021
				+ "	          ^\n"
1022
			"	          ^\n" + 
1022
				+ "Javadoc: The field IY.y is deprecated\n"
1023
			"Javadoc: The field IY.y is deprecated\n" + 
1023
				+ "----------\n");
1024
			"----------\n");
1024
	}
1025
	}
1025
1026
1026
	public void test062() {
1027
	public void test062() {
(-)src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java (-21 / +21 lines)
Lines 115-141 Link Here
115
				"	void foo() {\n" +
115
				"	void foo() {\n" +
116
				"	}\n" +
116
				"	}\n" +
117
				"}\n" },
117
				"}\n" },
118
		"----------\n" + 
118
			"----------\n" + 
119
		"1. ERROR in Z.java (at line 4)\n" + 
119
			"1. WARNING in Z.java (at line 4)\n" + 
120
		"	* @see X#x\n" + 
120
			"	* @see X#x\n" + 
121
		"	         ^\n" + 
121
			"	         ^\n" + 
122
		"Javadoc: The field X.x is deprecated\n" + 
122
			"Javadoc: The field X.x is deprecated\n" + 
123
		"----------\n" + 
123
			"----------\n" + 
124
		"2. ERROR in Z.java (at line 5)\n" + 
124
			"2. WARNING in Z.java (at line 5)\n" + 
125
		"	* @see Y\n" + 
125
			"	* @see Y\n" + 
126
		"	       ^\n" + 
126
			"	       ^\n" + 
127
		"Javadoc: The type Y is deprecated\n" + 
127
			"Javadoc: The type Y is deprecated\n" + 
128
		"----------\n" + 
128
			"----------\n" + 
129
		"3. ERROR in Z.java (at line 6)\n" + 
129
			"3. WARNING in Z.java (at line 6)\n" + 
130
		"	* @see Y#y\n" + 
130
			"	* @see Y#y\n" + 
131
		"	       ^\n" + 
131
			"	       ^\n" + 
132
		"Javadoc: The type Y is deprecated\n" + 
132
			"Javadoc: The type Y is deprecated\n" + 
133
		"----------\n" + 
133
			"----------\n" + 
134
		"4. ERROR in Z.java (at line 6)\n" + 
134
			"4. WARNING in Z.java (at line 6)\n" + 
135
		"	* @see Y#y\n" + 
135
			"	* @see Y#y\n" + 
136
		"	         ^\n" + 
136
			"	         ^\n" + 
137
		"Javadoc: The field Y.y is deprecated\n" + 
137
			"Javadoc: The field Y.y is deprecated\n" + 
138
		"----------\n"
138
			"----------\n"
139
			);
139
			);
140
	}
140
	}
141
141
(-)src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestOptions.java (-32 / +115 lines)
Lines 10-15 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.jdt.core.tests.compiler.regression;
11
package org.eclipse.jdt.core.tests.compiler.regression;
12
12
13
import java.util.HashMap;
13
import java.util.Map;
14
import java.util.Map;
14
import java.util.StringTokenizer;
15
import java.util.StringTokenizer;
15
16
Lines 255-261 Link Here
255
	};
256
	};
256
257
257
	private static String[] resultForInvalidTagsClassOrField = {
258
	private static String[] resultForInvalidTagsClassOrField = {
258
		"1. ERROR in Y.java (at line 3)\n" + 
259
		"1. WARNING in Y.java (at line 3)\n" + 
259
			"	* @see X.X_dep\n" + 
260
			"	* @see X.X_dep\n" + 
260
			"	       ^^^^^^^\n" + 
261
			"	       ^^^^^^^\n" + 
261
			"Javadoc: The type X.X_dep is deprecated\n" + 
262
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 280-291 Link Here
280
			"	         ^^^^^^^^^\n" + 
281
			"	         ^^^^^^^^^\n" + 
281
			"Javadoc: The constructor X(String) is undefined\n" + 
282
			"Javadoc: The constructor X(String) is undefined\n" + 
282
			"----------\n" + 
283
			"----------\n" + 
283
			"6. ERROR in Y.java (at line 8)\n" + 
284
			"6. WARNING in Y.java (at line 8)\n" + 
284
			"	* @see X#X()\n" + 
285
			"	* @see X#X()\n" + 
285
			"	         ^^^\n" + 
286
			"	         ^^^\n" + 
286
			"Javadoc: The constructor X() is deprecated\n" + 
287
			"Javadoc: The constructor X() is deprecated\n" + 
287
			"----------\n" + 
288
			"----------\n" + 
288
			"7. ERROR in Y.java (at line 9)\n" + 
289
			"7. WARNING in Y.java (at line 9)\n" + 
289
			"	* @see X#x_dep\n" + 
290
			"	* @see X#x_dep\n" + 
290
			"	         ^^^^^\n" + 
291
			"	         ^^^^^\n" + 
291
			"Javadoc: The field X.x_dep is deprecated\n" + 
292
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 300-306 Link Here
300
			"	         ^^^^^^^\n" + 
301
			"	         ^^^^^^^\n" + 
301
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
302
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
302
			"----------\n" + 
303
			"----------\n" + 
303
			"10. ERROR in Y.java (at line 12)\n" + 
304
			"10. WARNING in Y.java (at line 12)\n" + 
304
			"	* @see X#foo_dep()\n" + 
305
			"	* @see X#foo_dep()\n" + 
305
			"	         ^^^^^^^^^\n" + 
306
			"	         ^^^^^^^^^\n" + 
306
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
307
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 320-326 Link Here
320
			"	         ^^^^^^^\n" + 
321
			"	         ^^^^^^^\n" + 
321
			"Javadoc: The method unknown() is undefined for the type X\n" + 
322
			"Javadoc: The method unknown() is undefined for the type X\n" + 
322
			"----------\n",
323
			"----------\n",
323
		"14. ERROR in Y.java (at line 19)\n" + 
324
		"14. WARNING in Y.java (at line 19)\n" + 
324
			"	* @see X.X_dep\n" + 
325
			"	* @see X.X_dep\n" + 
325
			"	       ^^^^^^^\n" + 
326
			"	       ^^^^^^^\n" + 
326
			"Javadoc: The type X.X_dep is deprecated\n" + 
327
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 345-356 Link Here
345
			"	         ^^^^^^^^^\n" + 
346
			"	         ^^^^^^^^^\n" + 
346
			"Javadoc: The constructor X(String) is undefined\n" + 
347
			"Javadoc: The constructor X(String) is undefined\n" + 
347
			"----------\n" + 
348
			"----------\n" + 
348
			"19. ERROR in Y.java (at line 24)\n" + 
349
			"19. WARNING in Y.java (at line 24)\n" + 
349
			"	* @see X#X()\n" + 
350
			"	* @see X#X()\n" + 
350
			"	         ^^^\n" + 
351
			"	         ^^^\n" + 
351
			"Javadoc: The constructor X() is deprecated\n" + 
352
			"Javadoc: The constructor X() is deprecated\n" + 
352
			"----------\n" + 
353
			"----------\n" + 
353
			"20. ERROR in Y.java (at line 25)\n" + 
354
			"20. WARNING in Y.java (at line 25)\n" + 
354
			"	* @see X#x_dep\n" + 
355
			"	* @see X#x_dep\n" + 
355
			"	         ^^^^^\n" + 
356
			"	         ^^^^^\n" + 
356
			"Javadoc: The field X.x_dep is deprecated\n" + 
357
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 365-371 Link Here
365
			"	         ^^^^^^^\n" + 
366
			"	         ^^^^^^^\n" + 
366
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
367
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
367
			"----------\n" + 
368
			"----------\n" + 
368
			"23. ERROR in Y.java (at line 28)\n" + 
369
			"23. WARNING in Y.java (at line 28)\n" + 
369
			"	* @see X#foo_dep()\n" + 
370
			"	* @see X#foo_dep()\n" + 
370
			"	         ^^^^^^^^^\n" + 
371
			"	         ^^^^^^^^^\n" + 
371
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
372
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 385-391 Link Here
385
			"	         ^^^^^^^\n" + 
386
			"	         ^^^^^^^\n" + 
386
			"Javadoc: The method unknown() is undefined for the type X\n" + 
387
			"Javadoc: The method unknown() is undefined for the type X\n" + 
387
			"----------\n",
388
			"----------\n",
388
		"27. ERROR in Y.java (at line 35)\n" + 
389
		"27. WARNING in Y.java (at line 35)\n" + 
389
			"	* @see X.X_dep\n" + 
390
			"	* @see X.X_dep\n" + 
390
			"	       ^^^^^^^\n" + 
391
			"	       ^^^^^^^\n" + 
391
			"Javadoc: The type X.X_dep is deprecated\n" + 
392
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 410-421 Link Here
410
			"	         ^^^^^^^^^\n" + 
411
			"	         ^^^^^^^^^\n" + 
411
			"Javadoc: The constructor X(String) is undefined\n" + 
412
			"Javadoc: The constructor X(String) is undefined\n" + 
412
			"----------\n" + 
413
			"----------\n" + 
413
			"32. ERROR in Y.java (at line 40)\n" + 
414
			"32. WARNING in Y.java (at line 40)\n" + 
414
			"	* @see X#X()\n" + 
415
			"	* @see X#X()\n" + 
415
			"	         ^^^\n" + 
416
			"	         ^^^\n" + 
416
			"Javadoc: The constructor X() is deprecated\n" + 
417
			"Javadoc: The constructor X() is deprecated\n" + 
417
			"----------\n" + 
418
			"----------\n" + 
418
			"33. ERROR in Y.java (at line 41)\n" + 
419
			"33. WARNING in Y.java (at line 41)\n" + 
419
			"	* @see X#x_dep\n" + 
420
			"	* @see X#x_dep\n" + 
420
			"	         ^^^^^\n" + 
421
			"	         ^^^^^\n" + 
421
			"Javadoc: The field X.x_dep is deprecated\n" + 
422
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 430-436 Link Here
430
			"	         ^^^^^^^\n" + 
431
			"	         ^^^^^^^\n" + 
431
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
432
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
432
			"----------\n" + 
433
			"----------\n" + 
433
			"36. ERROR in Y.java (at line 44)\n" + 
434
			"36. WARNING in Y.java (at line 44)\n" + 
434
			"	* @see X#foo_dep()\n" + 
435
			"	* @see X#foo_dep()\n" + 
435
			"	         ^^^^^^^^^\n" + 
436
			"	         ^^^^^^^^^\n" + 
436
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
437
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 450-456 Link Here
450
			"	         ^^^^^^^\n" + 
451
			"	         ^^^^^^^\n" + 
451
			"Javadoc: The method unknown() is undefined for the type X\n" + 
452
			"Javadoc: The method unknown() is undefined for the type X\n" + 
452
			"----------\n",
453
			"----------\n",
453
		"40. ERROR in Y.java (at line 51)\n" + 
454
		"40. WARNING in Y.java (at line 51)\n" + 
454
			"	* @see X.X_dep\n" + 
455
			"	* @see X.X_dep\n" + 
455
			"	       ^^^^^^^\n" + 
456
			"	       ^^^^^^^\n" + 
456
			"Javadoc: The type X.X_dep is deprecated\n" + 
457
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 475-486 Link Here
475
			"	         ^^^^^^^^^\n" + 
476
			"	         ^^^^^^^^^\n" + 
476
			"Javadoc: The constructor X(String) is undefined\n" + 
477
			"Javadoc: The constructor X(String) is undefined\n" + 
477
			"----------\n" + 
478
			"----------\n" + 
478
			"45. ERROR in Y.java (at line 56)\n" + 
479
			"45. WARNING in Y.java (at line 56)\n" + 
479
			"	* @see X#X()\n" + 
480
			"	* @see X#X()\n" + 
480
			"	         ^^^\n" + 
481
			"	         ^^^\n" + 
481
			"Javadoc: The constructor X() is deprecated\n" + 
482
			"Javadoc: The constructor X() is deprecated\n" + 
482
			"----------\n" + 
483
			"----------\n" + 
483
			"46. ERROR in Y.java (at line 57)\n" + 
484
			"46. WARNING in Y.java (at line 57)\n" + 
484
			"	* @see X#x_dep\n" + 
485
			"	* @see X#x_dep\n" + 
485
			"	         ^^^^^\n" + 
486
			"	         ^^^^^\n" + 
486
			"Javadoc: The field X.x_dep is deprecated\n" + 
487
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 495-501 Link Here
495
			"	         ^^^^^^^\n" + 
496
			"	         ^^^^^^^\n" + 
496
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
497
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
497
			"----------\n" + 
498
			"----------\n" + 
498
			"49. ERROR in Y.java (at line 60)\n" + 
499
			"49. WARNING in Y.java (at line 60)\n" + 
499
			"	* @see X#foo_dep()\n" + 
500
			"	* @see X#foo_dep()\n" + 
500
			"	         ^^^^^^^^^\n" + 
501
			"	         ^^^^^^^^^\n" + 
501
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
502
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 538-544 Link Here
538
			"	          ^^^^^^^\n" + 
539
			"	          ^^^^^^^\n" + 
539
			"Javadoc: Unknown cannot be resolved to a type\n" + 
540
			"Javadoc: Unknown cannot be resolved to a type\n" + 
540
			"----------\n" + 
541
			"----------\n" + 
541
			"5. ERROR in Y.java (at line 10)\n" + 
542
			"5. WARNING in Y.java (at line 10)\n" + 
542
			"	* @see X.X_dep\n" + 
543
			"	* @see X.X_dep\n" + 
543
			"	       ^^^^^^^\n" + 
544
			"	       ^^^^^^^\n" + 
544
			"Javadoc: The type X.X_dep is deprecated\n" + 
545
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 563-574 Link Here
563
			"	         ^^^^^^^^^\n" + 
564
			"	         ^^^^^^^^^\n" + 
564
			"Javadoc: The constructor X(String) is undefined\n" + 
565
			"Javadoc: The constructor X(String) is undefined\n" + 
565
			"----------\n" + 
566
			"----------\n" + 
566
			"10. ERROR in Y.java (at line 15)\n" + 
567
			"10. WARNING in Y.java (at line 15)\n" + 
567
			"	* @see X#X()\n" + 
568
			"	* @see X#X()\n" + 
568
			"	         ^^^\n" + 
569
			"	         ^^^\n" + 
569
			"Javadoc: The constructor X() is deprecated\n" + 
570
			"Javadoc: The constructor X() is deprecated\n" + 
570
			"----------\n" + 
571
			"----------\n" + 
571
			"11. ERROR in Y.java (at line 16)\n" + 
572
			"11. WARNING in Y.java (at line 16)\n" + 
572
			"	* @see X#x_dep\n" + 
573
			"	* @see X#x_dep\n" + 
573
			"	         ^^^^^\n" + 
574
			"	         ^^^^^\n" + 
574
			"Javadoc: The field X.x_dep is deprecated\n" + 
575
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 583-589 Link Here
583
			"	         ^^^^^^^\n" + 
584
			"	         ^^^^^^^\n" + 
584
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
585
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
585
			"----------\n" + 
586
			"----------\n" + 
586
			"14. ERROR in Y.java (at line 19)\n" + 
587
			"14. WARNING in Y.java (at line 19)\n" + 
587
			"	* @see X#foo_dep()\n" + 
588
			"	* @see X#foo_dep()\n" + 
588
			"	         ^^^^^^^^^\n" + 
589
			"	         ^^^^^^^^^\n" + 
589
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
590
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 623-629 Link Here
623
			"	          ^^^^^^^\n" + 
624
			"	          ^^^^^^^\n" + 
624
			"Javadoc: Unknown cannot be resolved to a type\n" + 
625
			"Javadoc: Unknown cannot be resolved to a type\n" + 
625
			"----------\n" + 
626
			"----------\n" + 
626
			"22. ERROR in Y.java (at line 33)\n" + 
627
			"22. WARNING in Y.java (at line 33)\n" + 
627
			"	* @see X.X_dep\n" + 
628
			"	* @see X.X_dep\n" + 
628
			"	       ^^^^^^^\n" + 
629
			"	       ^^^^^^^\n" + 
629
			"Javadoc: The type X.X_dep is deprecated\n" + 
630
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 648-659 Link Here
648
			"	         ^^^^^^^^^\n" + 
649
			"	         ^^^^^^^^^\n" + 
649
			"Javadoc: The constructor X(String) is undefined\n" + 
650
			"Javadoc: The constructor X(String) is undefined\n" + 
650
			"----------\n" + 
651
			"----------\n" + 
651
			"27. ERROR in Y.java (at line 38)\n" + 
652
			"27. WARNING in Y.java (at line 38)\n" + 
652
			"	* @see X#X()\n" + 
653
			"	* @see X#X()\n" + 
653
			"	         ^^^\n" + 
654
			"	         ^^^\n" + 
654
			"Javadoc: The constructor X() is deprecated\n" + 
655
			"Javadoc: The constructor X() is deprecated\n" + 
655
			"----------\n" + 
656
			"----------\n" + 
656
			"28. ERROR in Y.java (at line 39)\n" + 
657
			"28. WARNING in Y.java (at line 39)\n" + 
657
			"	* @see X#x_dep\n" + 
658
			"	* @see X#x_dep\n" + 
658
			"	         ^^^^^\n" + 
659
			"	         ^^^^^\n" + 
659
			"Javadoc: The field X.x_dep is deprecated\n" + 
660
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 668-674 Link Here
668
			"	         ^^^^^^^\n" + 
669
			"	         ^^^^^^^\n" + 
669
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
670
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
670
			"----------\n" + 
671
			"----------\n" + 
671
			"31. ERROR in Y.java (at line 42)\n" + 
672
			"31. WARNING in Y.java (at line 42)\n" + 
672
			"	* @see X#foo_dep()\n" + 
673
			"	* @see X#foo_dep()\n" + 
673
			"	         ^^^^^^^^^\n" + 
674
			"	         ^^^^^^^^^\n" + 
674
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
675
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 708-714 Link Here
708
			"	          ^^^^^^^\n" + 
709
			"	          ^^^^^^^\n" + 
709
			"Javadoc: Unknown cannot be resolved to a type\n" + 
710
			"Javadoc: Unknown cannot be resolved to a type\n" + 
710
			"----------\n" + 
711
			"----------\n" + 
711
			"39. ERROR in Y.java (at line 56)\n" + 
712
			"39. WARNING in Y.java (at line 56)\n" + 
712
			"	* @see X.X_dep\n" + 
713
			"	* @see X.X_dep\n" + 
713
			"	       ^^^^^^^\n" + 
714
			"	       ^^^^^^^\n" + 
714
			"Javadoc: The type X.X_dep is deprecated\n" + 
715
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 733-744 Link Here
733
			"	         ^^^^^^^^^\n" + 
734
			"	         ^^^^^^^^^\n" + 
734
			"Javadoc: The constructor X(String) is undefined\n" + 
735
			"Javadoc: The constructor X(String) is undefined\n" + 
735
			"----------\n" + 
736
			"----------\n" + 
736
			"44. ERROR in Y.java (at line 61)\n" + 
737
			"44. WARNING in Y.java (at line 61)\n" + 
737
			"	* @see X#X()\n" + 
738
			"	* @see X#X()\n" + 
738
			"	         ^^^\n" + 
739
			"	         ^^^\n" + 
739
			"Javadoc: The constructor X() is deprecated\n" + 
740
			"Javadoc: The constructor X() is deprecated\n" + 
740
			"----------\n" + 
741
			"----------\n" + 
741
			"45. ERROR in Y.java (at line 62)\n" + 
742
			"45. WARNING in Y.java (at line 62)\n" + 
742
			"	* @see X#x_dep\n" + 
743
			"	* @see X#x_dep\n" + 
743
			"	         ^^^^^\n" + 
744
			"	         ^^^^^\n" + 
744
			"Javadoc: The field X.x_dep is deprecated\n" + 
745
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 753-759 Link Here
753
			"	         ^^^^^^^\n" + 
754
			"	         ^^^^^^^\n" + 
754
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
755
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
755
			"----------\n" + 
756
			"----------\n" + 
756
			"48. ERROR in Y.java (at line 65)\n" + 
757
			"48. WARNING in Y.java (at line 65)\n" + 
757
			"	* @see X#foo_dep()\n" + 
758
			"	* @see X#foo_dep()\n" + 
758
			"	         ^^^^^^^^^\n" + 
759
			"	         ^^^^^^^^^\n" + 
759
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
760
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 793-799 Link Here
793
			"	          ^^^^^^^\n" + 
794
			"	          ^^^^^^^\n" + 
794
			"Javadoc: Unknown cannot be resolved to a type\n" + 
795
			"Javadoc: Unknown cannot be resolved to a type\n" + 
795
			"----------\n" + 
796
			"----------\n" + 
796
			"56. ERROR in Y.java (at line 79)\n" + 
797
			"56. WARNING in Y.java (at line 79)\n" + 
797
			"	* @see X.X_dep\n" + 
798
			"	* @see X.X_dep\n" + 
798
			"	       ^^^^^^^\n" + 
799
			"	       ^^^^^^^\n" + 
799
			"Javadoc: The type X.X_dep is deprecated\n" + 
800
			"Javadoc: The type X.X_dep is deprecated\n" + 
Lines 818-829 Link Here
818
			"	         ^^^^^^^^^\n" + 
819
			"	         ^^^^^^^^^\n" + 
819
			"Javadoc: The constructor X(String) is undefined\n" + 
820
			"Javadoc: The constructor X(String) is undefined\n" + 
820
			"----------\n" + 
821
			"----------\n" + 
821
			"61. ERROR in Y.java (at line 84)\n" + 
822
			"61. WARNING in Y.java (at line 84)\n" + 
822
			"	* @see X#X()\n" + 
823
			"	* @see X#X()\n" + 
823
			"	         ^^^\n" + 
824
			"	         ^^^\n" + 
824
			"Javadoc: The constructor X() is deprecated\n" + 
825
			"Javadoc: The constructor X() is deprecated\n" + 
825
			"----------\n" + 
826
			"----------\n" + 
826
			"62. ERROR in Y.java (at line 85)\n" + 
827
			"62. WARNING in Y.java (at line 85)\n" + 
827
			"	* @see X#x_dep\n" + 
828
			"	* @see X#x_dep\n" + 
828
			"	         ^^^^^\n" + 
829
			"	         ^^^^^\n" + 
829
			"Javadoc: The field X.x_dep is deprecated\n" + 
830
			"Javadoc: The field X.x_dep is deprecated\n" + 
Lines 838-844 Link Here
838
			"	         ^^^^^^^\n" + 
839
			"	         ^^^^^^^\n" + 
839
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
840
			"Javadoc: unknown cannot be resolved or is not a field\n" + 
840
			"----------\n" + 
841
			"----------\n" + 
841
			"65. ERROR in Y.java (at line 88)\n" + 
842
			"65. WARNING in Y.java (at line 88)\n" + 
842
			"	* @see X#foo_dep()\n" + 
843
			"	* @see X#foo_dep()\n" + 
843
			"	         ^^^^^^^^^\n" + 
844
			"	         ^^^^^^^^^\n" + 
844
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
845
			"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
Lines 1382-1387 Link Here
1382
		runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY));
1383
		runNegativeTest(InvalidReferencesConstructorJavadocComments, resultForInvalidTagsMethodOrConstructor(PUBLIC_VISIBILITY));
1383
	}
1384
	}
1384
1385
1386
	// Test invalid javadoc "error" + tags "enabled" and visibility "public" - one test to raise the severity
1387
	// Side effect of https://bugs.eclipse.org/bugs/show_bug.cgi?id=76266.
1388
	public void testInvalidTagsClassErrorTagsPublicDeprecatedReferenceError() {
1389
		reportInvalidJavadoc = CompilerOptions.ERROR;
1390
		reportInvalidJavadocTags = CompilerOptions.ENABLED;
1391
		reportInvalidJavadocTagsVisibility = CompilerOptions.PUBLIC;
1392
		Map raiseDeprecationReduceInvalidJavadocSeverity = new HashMap(1);
1393
    	raiseDeprecationReduceInvalidJavadocSeverity.put(
1394
    			CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ERROR);
1395
		runNegativeTest(
1396
				InvalidReferencesClassJavadocComments,
1397
				"----------\n" + 
1398
				"1. ERROR in Y.java (at line 3)\n" + 
1399
				"	* @see X.X_dep\n" + 
1400
				"	       ^^^^^^^\n" + 
1401
				"Javadoc: The type X.X_dep is deprecated\n" + 
1402
				"----------\n" + 
1403
				"2. ERROR in Y.java (at line 4)\n" + 
1404
				"	* @see X.X_priv\n" + 
1405
				"	       ^^^^^^^^\n" + 
1406
				"Javadoc: The type X.X_priv is not visible\n" + 
1407
				"----------\n" + 
1408
				"3. ERROR in Y.java (at line 5)\n" + 
1409
				"	* @see X.Unknown\n" + 
1410
				"	       ^^^^^^^^^\n" + 
1411
				"Javadoc: X.Unknown cannot be resolved to a type\n" + 
1412
				"----------\n" + 
1413
				"4. ERROR in Y.java (at line 6)\n" + 
1414
				"	* @see X#X(int)\n" + 
1415
				"	         ^^^^^^\n" + 
1416
				"Javadoc: The constructor X(int) is not visible\n" + 
1417
				"----------\n" + 
1418
				"5. ERROR in Y.java (at line 7)\n" + 
1419
				"	* @see X#X(String)\n" + 
1420
				"	         ^^^^^^^^^\n" + 
1421
				"Javadoc: The constructor X(String) is undefined\n" + 
1422
				"----------\n" + 
1423
				"6. ERROR in Y.java (at line 8)\n" + 
1424
				"	* @see X#X()\n" + 
1425
				"	         ^^^\n" + 
1426
				"Javadoc: The constructor X() is deprecated\n" + 
1427
				"----------\n" + 
1428
				"7. ERROR in Y.java (at line 9)\n" + 
1429
				"	* @see X#x_dep\n" + 
1430
				"	         ^^^^^\n" + 
1431
				"Javadoc: The field X.x_dep is deprecated\n" + 
1432
				"----------\n" + 
1433
				"8. ERROR in Y.java (at line 10)\n" + 
1434
				"	* @see X#x_priv\n" + 
1435
				"	         ^^^^^^\n" + 
1436
				"Javadoc: The field x_priv is not visible\n" + 
1437
				"----------\n" + 
1438
				"9. ERROR in Y.java (at line 11)\n" + 
1439
				"	* @see X#unknown\n" + 
1440
				"	         ^^^^^^^\n" + 
1441
				"Javadoc: unknown cannot be resolved or is not a field\n" + 
1442
				"----------\n" + 
1443
				"10. ERROR in Y.java (at line 12)\n" + 
1444
				"	* @see X#foo_dep()\n" + 
1445
				"	         ^^^^^^^^^\n" + 
1446
				"Javadoc: The method foo_dep() from the type X is deprecated\n" + 
1447
				"----------\n" + 
1448
				"11. ERROR in Y.java (at line 13)\n" + 
1449
				"	* @see X#foo_priv()\n" + 
1450
				"	         ^^^^^^^^\n" + 
1451
				"Javadoc: The method foo_priv() from the type X is not visible\n" + 
1452
				"----------\n" + 
1453
				"12. ERROR in Y.java (at line 14)\n" + 
1454
				"	* @see X#foo_dep(String)\n" + 
1455
				"	         ^^^^^^^\n" + 
1456
				"Javadoc: The method foo_dep() in the type X is not applicable for the arguments (String)\n" + 
1457
				"----------\n" + 
1458
				"13. ERROR in Y.java (at line 15)\n" + 
1459
				"	* @see X#unknown()\n" + 
1460
				"	         ^^^^^^^\n" + 
1461
				"Javadoc: The method unknown() is undefined for the type X\n" + 
1462
				"----------\n",
1463
				null,
1464
				true,
1465
				raiseDeprecationReduceInvalidJavadocSeverity);
1466
	}
1467
	
1385
	// Test invalid javadoc "error" + tags "enabled" and visibility "protected"
1468
	// Test invalid javadoc "error" + tags "enabled" and visibility "protected"
1386
	public void testInvalidTagsClassErrorTagsProtected() {
1469
	public void testInvalidTagsClassErrorTagsProtected() {
1387
		reportInvalidJavadoc = CompilerOptions.ERROR;
1470
		reportInvalidJavadoc = CompilerOptions.ERROR;

Return to bug 76266