diff options
author | Stephan Herrmann | 2015-02-21 16:28:18 +0000 |
---|---|---|
committer | Stephan Herrmann | 2015-02-21 16:28:18 +0000 |
commit | 34d1763887c13f0505570d46dbfbc23699245834 (patch) | |
tree | b69ca4dea833fc57ab1eede4d5b19367c75dc935 /org.eclipse.jdt.core.tests.compiler/src/org/eclipse | |
parent | 4f0840865a51c617fad068ae1ec768b49ddcd5af (diff) | |
download | org.eclipse.objectteams-34d1763887c13f0505570d46dbfbc23699245834.tar.gz org.eclipse.objectteams-34d1763887c13f0505570d46dbfbc23699245834.tar.xz org.eclipse.objectteams-34d1763887c13f0505570d46dbfbc23699245834.zip |
Update jdt.core to f8f573fb4945f47fa2e1f634d0b55fa9e0151f17
(before replacement of ImportRewriteAnalyzer)
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src/org/eclipse')
2 files changed, 42 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java index 395d9eb0d..418411ffd 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2015 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 @@ -3178,6 +3178,26 @@ public class JavadocTest_1_3 extends JavadocTest { "----------\n" ); } + public void testBug101283e() { + runNegativeTest( + new String[] { + "X.java", + "/**\n" + + " * @see #foo()\n" + + " */\n" + + "public interface X<T> {\n" + + "\n" + + " public T foo();\n" + + "}\n" + }, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " public interface X<T> {\n" + + " ^\n" + + "Syntax error, type parameters are only available if source level is 1.5 or greater\n" + + "----------\n" + ); + } // Verify that ProblemReasons.InheritedNameHidesEnclosingName is not reported as Javadoc error public void testBug101283g() { this.reportMissingJavadocTags = CompilerOptions.DISABLED; diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java index 26473152e..b287956c8 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2015 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 @@ -3178,6 +3178,26 @@ public class JavadocTest_1_4 extends JavadocTest { "----------\n" ); } + public void testBug101283e() { + runNegativeTest( + new String[] { + "X.java", + "/**\n" + + " * @see #foo()\n" + + " */\n" + + "public interface X<T> {\n" + + "\n" + + " public T foo();\n" + + "}\n" + }, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " public interface X<T> {\n" + + " ^\n" + + "Syntax error, type parameters are only available if source level is 1.5 or greater\n" + + "----------\n" + ); + } // Verify that ProblemReasons.InheritedNameHidesEnclosingName is not reported as Javadoc error public void testBug101283g() { this.reportMissingJavadocTags = CompilerOptions.DISABLED; |