Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java33
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java58
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForClass.java25
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java11
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForField.java11
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java20
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java116
7 files changed, 206 insertions, 68 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
index 3e3ee9115f..875c58e72b 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
@@ -10575,4 +10575,37 @@ public void testBug376429b() {
"Return type for the method is missing\n" +
"----------\n");
}
+
+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=371832
+//Unused imports should be reported even if other errors are suppressed.
+public void testBug371832() throws Exception {
+ Map customOptions = getCompilerOptions();
+ customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.ERROR);
+ customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.ERROR);
+ customOptions.put(CompilerOptions.OPTION_SuppressOptionalErrors, CompilerOptions.ENABLED);
+ customOptions.put(CompilerOptions.OPTION_ReportMissingSerialVersion, CompilerOptions.ERROR);
+ String testFiles [] = new String[] {
+ "A.java",
+ "import java.util.List;\n"+
+ "@SuppressWarnings(\"serial\")\n" +
+ "public class A implements java.io.Serializable {\n" +
+ " void foo() { \n" +
+ " }\n"+
+ "}\n"
+ };
+ String expectedErrorString =
+ "----------\n" +
+ "1. ERROR in A.java (at line 1)\n" +
+ " import java.util.List;\n" +
+ " ^^^^^^^^^^^^^^\n" +
+ "The import java.util.List is never used\n" +
+ "----------\n";
+ runNegativeTest(
+ true,
+ testFiles,
+ null,
+ customOptions,
+ expectedErrorString,
+ JavacTestOptions.Excuse.EclipseWarningConfiguredAsError);
+}
}
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java
index 75f02e81c6..899041f4a3 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -4916,13 +4916,23 @@ public void testBug103304b() {
"Javadoc: Invalid member type qualification\n" +
"----------\n" +
"----------\n" +
- "1. ERROR in boden\\TestInvalid3.java (at line 5)\n" +
+ "1. ERROR in boden\\TestInvalid3.java (at line 2)\n"+
+ " import boden.IAFAState.ValidationException;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
+ "The import boden.IAFAState.ValidationException is never used\n"+
+ "----------\n"+
+ "2. ERROR in boden\\TestInvalid3.java (at line 5)\n" +
" * @see IAFAState.ValidationException#IAFA.State.ValidationException(String, IAFAState)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid member type qualification\n" +
"----------\n" +
"----------\n" +
- "1. ERROR in boden\\TestInvalid4.java (at line 5)\n" +
+ "1. ERROR in boden\\TestInvalid4.java (at line 2)\n"+
+ " import boden.IAFAState.ValidationException;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
+ "The import boden.IAFAState.ValidationException is never used\n"+
+ "----------\n"+
+ "2. ERROR in boden\\TestInvalid4.java (at line 5)\n" +
" * @see IAFAState.ValidationException#IAFAState .ValidationException(String, IAFAState)\n" +
" ^^^^^^^^^\n" +
"Javadoc: IAFAState cannot be resolved or is not a field\n" +
@@ -4934,13 +4944,23 @@ public void testBug103304b() {
//boden\TestInvalid3.java:6: warning - Tag @see: can't find IAFA.State.ValidationException(String, IAFAState) in boden.IAFAState.ValidationException
//boden\TestInvalid4.java:6: warning - Tag @see: can't find IAFAState in boden.IAFAState.ValidationException
"----------\n" +
- "1. ERROR in boden\\TestInvalid3.java (at line 5)\n" +
+ "1. ERROR in boden\\TestInvalid3.java (at line 2)\n"+
+ " import boden.IAFAState.ValidationException;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
+ "The import boden.IAFAState.ValidationException is never used\n"+
+ "----------\n"+
+ "2. ERROR in boden\\TestInvalid3.java (at line 5)\n" +
" * @see IAFAState.ValidationException#IAFA.State.ValidationException(String, IAFAState)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid member type qualification\n" +
"----------\n" +
"----------\n" +
- "1. ERROR in boden\\TestInvalid4.java (at line 5)\n" +
+ "1. ERROR in boden\\TestInvalid4.java (at line 2)\n"+
+ " import boden.IAFAState.ValidationException;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
+ "The import boden.IAFAState.ValidationException is never used\n"+
+ "----------\n"+
+ "2. ERROR in boden\\TestInvalid4.java (at line 5)\n" +
" * @see IAFAState.ValidationException#IAFAState .ValidationException(String, IAFAState)\n" +
" ^^^^^^^^^\n" +
"Javadoc: IAFAState cannot be resolved or is not a field\n" +
@@ -6966,7 +6986,12 @@ public void testBug176027h_public() {
"Javadoc: Invalid member type qualification\n" +
"----------\n" +
"----------\n" +
- "1. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
+ "1. ERROR in pkg3\\Invalid3.java (at line 2)\n" +
+ " import mainpkg.Outer.*;\n"+
+ " ^^^^^^^^^^^^^\n"+
+ "The import mainpkg.Outer is never used\n" +
+ "----------\n" +
+ "2. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
" * {@link MostInner} -- error/warning \n" +
" ^^^^^^^^^\n" +
"Javadoc: MostInner cannot be resolved to a type\n" +
@@ -6975,7 +7000,12 @@ public void testBug176027h_public() {
String error50 = new String (
//pkg3\Invalid3.java:12: warning - Tag @link: reference not found: MostInner
"----------\n" +
- "1. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
+ "1. ERROR in pkg3\\Invalid3.java (at line 2)\n" +
+ " import mainpkg.Outer.*;\n"+
+ " ^^^^^^^^^^^^^\n"+
+ "The import mainpkg.Outer is never used\n" +
+ "----------\n" +
+ "2. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
" * {@link MostInner} -- error/warning \n" +
" ^^^^^^^^^\n" +
"Javadoc: MostInner cannot be resolved to a type\n" +
@@ -7070,7 +7100,12 @@ public void testBug176027h_private() {
"Javadoc: Invalid member type qualification\n" +
"----------\n" +
"----------\n" +
- "1. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
+ "1. ERROR in pkg3\\Invalid3.java (at line 2)\n" +
+ " import mainpkg.Outer.*;\n"+
+ " ^^^^^^^^^^^^^\n"+
+ "The import mainpkg.Outer is never used\n" +
+ "----------\n" +
+ "2. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
" * {@link MostInner} -- error/warning \n" +
" ^^^^^^^^^\n" +
"Javadoc: MostInner cannot be resolved to a type\n" +
@@ -7079,7 +7114,12 @@ public void testBug176027h_private() {
String error50 = new String(
//pkg3\Invalid3.java:12: warning - Tag @link: reference not found: MostInner
"----------\n" +
- "1. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
+ "1. ERROR in pkg3\\Invalid3.java (at line 2)\n" +
+ " import mainpkg.Outer.*;\n"+
+ " ^^^^^^^^^^^^^\n"+
+ "The import mainpkg.Outer is never used\n" +
+ "----------\n" +
+ "2. ERROR in pkg3\\Invalid3.java (at line 6)\n" +
" * {@link MostInner} -- error/warning \n" +
" ^^^^^^^^^\n" +
"Javadoc: MostInner cannot be resolved to a type\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForClass.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForClass.java
index 917fc28282..13375e6e70 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForClass.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForClass.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -950,12 +950,17 @@ public class JavadocTestForClass extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 6)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 6)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 7)\n" +
+ "3. ERROR in test\\X.java (at line 7)\n" +
" * @see test.copy.VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type test.copy.VisibilityPackage is not visible\n" +
@@ -1018,7 +1023,12 @@ public class JavadocTestForClass extends JavadocTest {
"}\n",
},
"----------\n" +
- "1. ERROR in X.java (at line 6)\n" +
+ "1. WARNING in X.java (at line 2)\n"+
+ " import java.util.Map.Entry;\n"+
+ " ^^^^^^^^^^^^^^^^^^^\n"+
+ "The import java.util.Map.Entry is never used\n"+
+ "----------\n"+
+ "2. ERROR in X.java (at line 6)\n" +
" * <li> {@link Entry} </li>\n" +
" ^^^^^\n" +
"Javadoc: Invalid member type qualification\n" +
@@ -1090,7 +1100,12 @@ public class JavadocTestForClass extends JavadocTest {
"}\n",
},
"----------\n" +
- "1. ERROR in X.java (at line 6)\n" +
+ "1. WARNING in X.java (at line 2)\n"+
+ " import java.util.Map.Entry;\n"+
+ " ^^^^^^^^^^^^^^^^^^^\n"+
+ "The import java.util.Map.Entry is never used\n"+
+ "----------\n"+
+ "2. ERROR in X.java (at line 6)\n" +
" * <li> {@link Entry} </li>\n" +
" ^^^^^\n" +
"Javadoc: Invalid member type qualification\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java
index 8dfdbfde21..bfd127cb1d 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -903,12 +903,17 @@ public class JavadocTestForConstructor extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see test.copy.VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type test.copy.VisibilityPackage is not visible\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForField.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForField.java
index 1694201eb4..54e65ab3f0 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForField.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForField.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -977,12 +977,17 @@ public class JavadocTestForField extends JavadocTest {
+ " public int x;\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see test.copy.VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type test.copy.VisibilityPackage is not visible\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java
index 4fb36c2af4..d6b993b092 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -910,12 +910,17 @@ public class JavadocTestForInterface extends JavadocTest {
+ " public void foo();\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\IX.java (at line 6)\n" +
+ "1. WARNING in test\\IX.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\IX.java (at line 6)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\IX.java (at line 7)\n" +
+ "3. ERROR in test\\IX.java (at line 7)\n" +
" * @see test.copy.VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type test.copy.VisibilityPackage is not visible\n" +
@@ -2198,12 +2203,17 @@ public class JavadocTestForInterface extends JavadocTest {
+ " public void foo();\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\IX.java (at line 7)\n" +
+ "1. WARNING in test\\IX.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\IX.java (at line 7)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\IX.java (at line 8)\n" +
+ "3. ERROR in test\\IX.java (at line 8)\n" +
" * @see test.copy.VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type test.copy.VisibilityPackage is not visible\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java
index c616f73836..9d00e0d3c3 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -1037,12 +1037,17 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in X.java (at line 5)\n" +
+ "1. WARNING in X.java (at line 1)\n"+
+ " import java.util.Hashtable;\n"+
+ " ^^^^^^^^^^^^^^^^^^^\n"+
+ "The import java.util.Hashtable is never used\n"+
+ "----------\n"+
+ "2. ERROR in X.java (at line 5)\n" +
" * @param Hashtable\n" +
" ^^^^^^^^^\n" +
"Javadoc: Parameter Hashtable is not declared\n" +
"----------\n" +
- "2. ERROR in X.java (at line 7)\n" +
+ "3. ERROR in X.java (at line 7)\n" +
" public void p_foo(int x) {\n" +
" ^\n" +
"Javadoc: Missing tag for parameter x\n" +
@@ -2341,47 +2346,52 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see VisibilityPackage#unknown Invalid ref: non visible class (non existent field)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see VisibilityPackage#vf_private Invalid ref: non visible class (non existent field)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "3. ERROR in test\\X.java (at line 9)\n" +
+ "4. ERROR in test\\X.java (at line 9)\n" +
" * @see VisibilityPackage#vf_public Invalid ref: non visible class (visible field)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "4. ERROR in test\\X.java (at line 10)\n" +
+ "5. ERROR in test\\X.java (at line 10)\n" +
" * @see VisibilityPackage.VpPrivate#unknown Invalid ref: non visible class and non visible inner class (non existent field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "5. ERROR in test\\X.java (at line 11)\n" +
+ "6. ERROR in test\\X.java (at line 11)\n" +
" * @see VisibilityPackage.VpPrivate#vf_private Invalid ref: non visible class and non visible inner class (non visible field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "6. ERROR in test\\X.java (at line 12)\n" +
+ "7. ERROR in test\\X.java (at line 12)\n" +
" * @see VisibilityPackage.VpPrivate#vf_public Invalid ref: non visible class and non visible inner class (visible field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "7. ERROR in test\\X.java (at line 13)\n" +
+ "8. ERROR in test\\X.java (at line 13)\n" +
" * @see VisibilityPackage.VpPublic#unknown Invalid ref: non visible class and visible inner class (non existent field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "8. ERROR in test\\X.java (at line 14)\n" +
+ "9. ERROR in test\\X.java (at line 14)\n" +
" * @see VisibilityPackage.VpPublic#vf_private Invalid ref: non visible class and visible inner class (non visible field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "9. ERROR in test\\X.java (at line 15)\n" +
+ "10. ERROR in test\\X.java (at line 15)\n" +
" * @see VisibilityPackage.VpPublic#vf_public Invalid ref: non visible class and visible inner class (visible field)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
@@ -3782,22 +3792,27 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 7)\n" +
+ "1. WARNING in test\\deep\\qualified\\name\\p\\X.java (at line 2)\n"+
+ " import java.util.Vector;\n"+
+ " ^^^^^^^^^^^^^^^^\n"+
+ "The import java.util.Vector is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 7)\n" +
" * @see test.deep.qualified.name.p.X#smr_foo(boolean,int i,byte,short s,char,long l,float,double d) Invalid reference: mixed argument declaration\n" +
" ^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "2. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 8)\n" +
+ "3. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 8)\n" +
" * @see test.deep.qualified.name.p.X#smr_foo(String,String y,int) Invalid reference: mixed argument declaration\n" +
" ^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "3. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 9)\n" +
+ "4. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 9)\n" +
" * @see test.deep.qualified.name.p.X#smr_foo(Hashtable,Vector,boolean b) Invalid reference: mixed argument declaration\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "4. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 10)\n" +
+ "5. ERROR in test\\deep\\qualified\\name\\p\\X.java (at line 10)\n" +
" * @see test.deep.qualified.name.p.X#smr_foo(Hashtable,Vector,boolean b) Invalid reference: mixed argument declaration\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
@@ -4213,77 +4228,82 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.*;\n"+
+ " ^^^^^^^^^\n"+
+ "The import test.copy is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see VisibilityPackage#unknown() Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see VisibilityPackage#vm_private() Invalid ref: non visible class (non visible method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "3. ERROR in test\\X.java (at line 9)\n" +
+ "4. ERROR in test\\X.java (at line 9)\n" +
" * @see VisibilityPackage#vm_private(boolean) Invalid ref: non visible class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "4. ERROR in test\\X.java (at line 10)\n" +
+ "5. ERROR in test\\X.java (at line 10)\n" +
" * @see VisibilityPackage#vm_public() Invalid ref: non visible class (visible method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "5. ERROR in test\\X.java (at line 11)\n" +
+ "6. ERROR in test\\X.java (at line 11)\n" +
" * @see VisibilityPackage#vm_public(long,long,long,int) Invalid ref: non visible class (visible method)\n" +
" ^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "6. ERROR in test\\X.java (at line 12)\n" +
+ "7. ERROR in test\\X.java (at line 12)\n" +
" * @see VisibilityPackage.VpPrivate#unknown() Invalid ref: non visible class and non visible inner class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "7. ERROR in test\\X.java (at line 13)\n" +
+ "8. ERROR in test\\X.java (at line 13)\n" +
" * @see VisibilityPackage.VpPrivate#vm_private() Invalid ref: non visible class and non visible inner class (non visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "8. ERROR in test\\X.java (at line 14)\n" +
+ "9. ERROR in test\\X.java (at line 14)\n" +
" * @see VisibilityPackage.VpPrivate#vm_private(boolean, String) Invalid ref: non visible class and non visible inner class (non applicable method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "9. ERROR in test\\X.java (at line 15)\n" +
+ "10. ERROR in test\\X.java (at line 15)\n" +
" * @see VisibilityPackage.VpPrivate#vm_public() Invalid ref: non visible class and non visible inner class (visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "10. ERROR in test\\X.java (at line 16)\n" +
+ "11. ERROR in test\\X.java (at line 16)\n" +
" * @see VisibilityPackage.VpPrivate#vm_public(Object, float) Invalid ref: non visible class and non visible inner class (non applicable visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "11. ERROR in test\\X.java (at line 17)\n" +
+ "12. ERROR in test\\X.java (at line 17)\n" +
" * @see VisibilityPackage.VpPublic#unknown() Invalid ref: non visible class and visible inner class (non existent method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "12. ERROR in test\\X.java (at line 18)\n" +
+ "13. ERROR in test\\X.java (at line 18)\n" +
" * @see VisibilityPackage.VpPublic#vm_private() Invalid ref: non visible class and visible inner class (non visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "13. ERROR in test\\X.java (at line 19)\n" +
+ "14. ERROR in test\\X.java (at line 19)\n" +
" * @see VisibilityPackage.VpPublic#vm_private(boolean, String) Invalid ref: non visible class and visible inner class (non applicable method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "14. ERROR in test\\X.java (at line 20)\n" +
+ "15. ERROR in test\\X.java (at line 20)\n" +
" * @see VisibilityPackage.VpPublic#vm_public() Invalid ref: non visible class and visible inner class (visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
"----------\n" +
- "15. ERROR in test\\X.java (at line 21)\n" +
+ "16. ERROR in test\\X.java (at line 21)\n" +
" * @see VisibilityPackage.VpPublic#vm_public(Object, float) Invalid ref: non visible class and visible inner class (non applicable visible method)\n" +
" ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
"Javadoc: The type VisibilityPackage is not visible\n" +
@@ -4678,32 +4698,37 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.VisibilityPublic;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^\n"+
+ "The import test.copy.VisibilityPublic is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see VisibilityPublic#vm_private(\"boolean\") Invalid ref: invalid argument declaration\n" +
" ^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see VisibilityPublic#vm_public(long, \"int) Invalid ref: invalid argument definition\n" +
" ^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "3. ERROR in test\\X.java (at line 9)\n" +
+ "4. ERROR in test\\X.java (at line 9)\n" +
" * @see VisibilityPublic.VpPrivate#vm_private(double d()) Invalid ref: invalid argument declaration\n" +
" ^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "4. ERROR in test\\X.java (at line 10)\n" +
+ "5. ERROR in test\\X.java (at line 10)\n" +
" * @see VisibilityPublic.VpPrivate#vm_public(\") Invalid ref: invalid argument declaration\n" +
" ^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "5. ERROR in test\\X.java (at line 11)\n" +
+ "6. ERROR in test\\X.java (at line 11)\n" +
" * @see VisibilityPublic.VpPublic#vm_private(d()) Invalid ref: invalid argument declaration\n" +
" ^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "6. ERROR in test\\X.java (at line 12)\n" +
+ "7. ERROR in test\\X.java (at line 12)\n" +
" * @see VisibilityPublic.VpPublic#vm_public(205) Invalid ref: invalid argument declaration\n" +
" ^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
@@ -4875,32 +4900,37 @@ public class JavadocTestForMethod extends JavadocTest {
+ " }\n"
+ "}\n" },
"----------\n" +
- "1. ERROR in test\\X.java (at line 7)\n" +
+ "1. WARNING in test\\X.java (at line 2)\n"+
+ " import test.copy.VisibilityPublic;\n"+
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^\n"+
+ "The import test.copy.VisibilityPublic is never used\n"+
+ "----------\n"+
+ "2. ERROR in test\\X.java (at line 7)\n" +
" * @see test.copy.VisibilityPublic#vm_private(\"\") Invalid ref: invalid argument declaration\n" +
" ^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "2. ERROR in test\\X.java (at line 8)\n" +
+ "3. ERROR in test\\X.java (at line 8)\n" +
" * @see test.copy.VisibilityPublic#vm_public(\"\"\") Invalid ref: invalid argument definition\n" +
" ^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "3. ERROR in test\\X.java (at line 9)\n" +
+ "4. ERROR in test\\X.java (at line 9)\n" +
" * @see test.copy.VisibilityPublic.VpPrivate#vm_private(String d()) Invalid ref: invalid argument declaration\n" +
" ^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "4. ERROR in test\\X.java (at line 10)\n" +
+ "5. ERROR in test\\X.java (at line 10)\n" +
" * @see test.copy.VisibilityPublic.VpPrivate#vm_public([) Invalid ref: invalid argument declaration\n" +
" ^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "5. ERROR in test\\X.java (at line 11)\n" +
+ "6. ERROR in test\\X.java (at line 11)\n" +
" * @see test.copy.VisibilityPublic.VpPublic#vm_private([]) Invalid ref: invalid argument declaration\n" +
" ^^\n" +
"Javadoc: Invalid parameters declaration\n" +
"----------\n" +
- "6. ERROR in test\\X.java (at line 12)\n" +
+ "7. ERROR in test\\X.java (at line 12)\n" +
" * @see test.copy.VisibilityPublic.VpPublic#vm_public(char[], int[],]) Invalid ref: invalid argument declaration\n" +
" ^^^^^^^^^^^^^^^^\n" +
"Javadoc: Invalid parameters declaration\n" +

Back to the top