From 34d1763887c13f0505570d46dbfbc23699245834 Mon Sep 17 00:00:00 2001 From: Stephan Herrmann Date: Sat, 21 Feb 2015 17:28:18 +0100 Subject: Update jdt.core to f8f573fb4945f47fa2e1f634d0b55fa9e0151f17 (before replacement of ImportRewriteAnalyzer) --- .../tests/compiler/regression/JavadocTest_1_3.java | 22 +++++++++++++++++++++- .../tests/compiler/regression/JavadocTest_1_4.java | 22 +++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) (limited to 'org.eclipse.jdt.core.tests.compiler/src/org/eclipse') 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 {\n" + + "\n" + + " public T foo();\n" + + "}\n" + }, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " public interface X {\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 {\n" + + "\n" + + " public T foo();\n" + + "}\n" + }, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " public interface X {\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; -- cgit v1.2.3