Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 46-53
Link Here
|
46 |
// All specified tests which do not belong to the class are skipped... |
46 |
// All specified tests which do not belong to the class are skipped... |
47 |
static { |
47 |
static { |
48 |
// TESTS_NAMES = new String[] { "test293" }; |
48 |
// TESTS_NAMES = new String[] { "test293" }; |
49 |
// TESTS_NUMBERS = new int[] { 290, 291 }; |
49 |
// TESTS_NUMBERS = new int[] { 294 }; |
50 |
// TESTS_RANGE = new int[] { 249, -1 }; |
50 |
// TESTS_RANGE = new int[] { 294, -1 }; |
51 |
} |
51 |
} |
52 |
|
52 |
|
53 |
String reportMissingJavadocComments = null; |
53 |
String reportMissingJavadocComments = null; |
Lines 9711-9714
Link Here
|
9711 |
"The field X.QUERY is not visible\n" + |
9711 |
"The field X.QUERY is not visible\n" + |
9712 |
"----------\n"); |
9712 |
"----------\n"); |
9713 |
} |
9713 |
} |
|
|
9714 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=179566 |
9715 |
public void test294() { |
9716 |
Map customOptions = getCompilerOptions(); |
9717 |
customOptions.put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR); |
9718 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.ERROR); |
9719 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.ERROR); |
9720 |
customOptions.put(CompilerOptions.OPTION_SuppressOptionalErrors, CompilerOptions.ENABLED); |
9721 |
String testFiles [] = new String[] { |
9722 |
"A.java", |
9723 |
"/** */\n" + |
9724 |
"public class A {\n" + |
9725 |
" @SuppressWarnings(\"javadoc\")\n" + |
9726 |
" public int foo(int i) { return 0; }\n" + |
9727 |
"}\n" |
9728 |
}; |
9729 |
runConformTest( |
9730 |
testFiles, |
9731 |
null, |
9732 |
null, |
9733 |
true, |
9734 |
null, |
9735 |
customOptions, |
9736 |
null); |
9737 |
} |
9738 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=179566 |
9739 |
public void test295() { |
9740 |
Map customOptions = getCompilerOptions(); |
9741 |
customOptions.put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR); |
9742 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.ERROR); |
9743 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.ERROR); |
9744 |
customOptions.put(CompilerOptions.OPTION_SuppressOptionalErrors, CompilerOptions.ENABLED); |
9745 |
String testFiles [] = new String[] { |
9746 |
"A.java", |
9747 |
"/** */\n" + |
9748 |
"public class A {\n" + |
9749 |
" /**\n" + |
9750 |
" * @param j the given param/\n" + |
9751 |
" */\n" + |
9752 |
" @SuppressWarnings(\"javadoc\")\n" + |
9753 |
" public int foo(int i) { return 0; }\n" + |
9754 |
"}\n" |
9755 |
}; |
9756 |
runConformTest( |
9757 |
testFiles, |
9758 |
null, |
9759 |
null, |
9760 |
true, |
9761 |
null, |
9762 |
customOptions, |
9763 |
null); |
9764 |
} |
9765 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=179566 |
9766 |
public void test296() { |
9767 |
Map customOptions = getCompilerOptions(); |
9768 |
customOptions.put(CompilerOptions.OPTION_ReportInvalidJavadoc, CompilerOptions.ERROR); |
9769 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocTags, CompilerOptions.ERROR); |
9770 |
customOptions.put(CompilerOptions.OPTION_ReportMissingJavadocComments, CompilerOptions.ERROR); |
9771 |
customOptions.put(CompilerOptions.OPTION_SuppressOptionalErrors, CompilerOptions.ENABLED); |
9772 |
String testFiles [] = new String[] { |
9773 |
"A.java", |
9774 |
"/** */\n" + |
9775 |
"public class A {\n" + |
9776 |
" /**\n" + |
9777 |
" * @param i/\n" + |
9778 |
" */\n" + |
9779 |
" @SuppressWarnings(\"javadoc\")\n" + |
9780 |
" public int foo(int i) { return 0; }\n" + |
9781 |
"}\n" |
9782 |
}; |
9783 |
runConformTest( |
9784 |
testFiles, |
9785 |
null, |
9786 |
null, |
9787 |
true, |
9788 |
null, |
9789 |
customOptions, |
9790 |
null); |
9791 |
} |
9714 |
} |
9792 |
} |