diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java index 70a929a5a89..bcba8987e98 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java @@ -504,7 +504,7 @@ protected boolean commentParse() { } refreshInlineTagPosition(textEndPosition); setInlineTagStarted(false); - } else if (this.lineStarted && this.textStart != -1 && this.textStart <= textEndPosition && (this.textStart < this.starPosition || this.starPosition == lastStarPosition)) { + } else if (this.lineStarted && this.textStart != -1 && this.textStart <= textEndPosition && (this.textStart < this.starPosition || this.starPosition == lastStarPosition || this.markdown)) { pushText(this.textStart, textEndPosition); } updateDocComment(); diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterJavadocTest.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterJavadocTest.java index ac1af78b689..4db59cac6e7 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterJavadocTest.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterJavadocTest.java @@ -79,7 +79,7 @@ * create one or several CUs and put them in org.eclipse.jdt.core.model.tests/workspace/Converter/src/javadoc/testXXX * folder and add the corresponding test in this class: *
- * public void _testXXX() throws JavaModelException { + * public void testXXX() throws JavaModelException { * verifyComments("testXXX"); * } *@@ -1330,77 +1330,77 @@ public void test000() throws JavaModelException { /** * Check javadoc for invalid syntax */ - public void _test001() throws JavaModelException { + public void test001() throws JavaModelException { verifyComments("test001"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50781" */ - public void _test002() throws JavaModelException { + public void test002() throws JavaModelException { verifyComments("test002"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50784" */ - public void _test003() throws JavaModelException { + public void test003() throws JavaModelException { verifyComments("test003"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50785" */ - public void _test004() throws JavaModelException { + public void test004() throws JavaModelException { verifyComments("test004"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50838" */ - public void _test005() throws JavaModelException { + public void test005() throws JavaModelException { verifyComments("test005"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test006() throws JavaModelException { + public void test006() throws JavaModelException { verifyComments("test006"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test007() throws JavaModelException { + public void test007() throws JavaModelException { verifyComments("test007"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test008() throws JavaModelException { + public void test008() throws JavaModelException { verifyComments("test008"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test009() throws JavaModelException { + public void test009() throws JavaModelException { verifyComments("test009"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50880" */ - public void _test010() throws JavaModelException { + public void test010() throws JavaModelException { verifyComments("test010"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=47396" */ - public void _test011() throws JavaModelException { + public void test011() throws JavaModelException { this.problems = new StringBuilder(); this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.test011", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, true); @@ -1410,14 +1410,14 @@ public void _test011() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50938" */ - public void _test012() throws JavaModelException { + public void test012() throws JavaModelException { verifyComments("test012"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=51104" */ - public void _test013() throws JavaModelException { + public void test013() throws JavaModelException { verifyComments("test013"); } @@ -1425,7 +1425,7 @@ public void _test013() throws JavaModelException { * Verify that text on next line following empty tag element * is well positionned. */ - public void _test014() throws JavaModelException { + public void test014() throws JavaModelException { verifyComments("test014"); } @@ -1433,7 +1433,7 @@ public void _test014() throws JavaModelException { * Verify that we do not report failure when types are written on several lines * in Javadoc comments. */ - public void _test015() throws JavaModelException { + public void test015() throws JavaModelException { verifyComments("test015"); } @@ -1495,38 +1495,38 @@ protected void verifyMapper(String folder, int count, int[] indexes) throws Java * Verify DefaultCommentMapper heuristic to get leading and trailing comments * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=53445" */ - public void _test100() throws JavaModelException { + public void test100() throws JavaModelException { verifyMapper("test100", 16, new int[] {2,7,8,15}); } - public void _test101() throws JavaModelException { + public void test101() throws JavaModelException { verifyMapper("test101", 8, new int[] {1,3,4,7}); } - public void _test102() throws JavaModelException { + public void test102() throws JavaModelException { verifyMapper("test102", 16, new int[] {4,9,10,13}); } - public void _test103() throws JavaModelException { + public void test103() throws JavaModelException { verifyMapper("test103", 8, new int[] {2,4,5,6}); } - public void _test104() throws JavaModelException { + public void test104() throws JavaModelException { verifyMapper("test104", 16, new int[] {2,7,8,15}); } - public void _test105() throws JavaModelException { + public void test105() throws JavaModelException { verifyMapper("test105", 16, new int[] {-1,11,-1,15}); } - public void _test106() throws JavaModelException { + public void test106() throws JavaModelException { verifyMapper("test106", 8, new int[] {-1,5,-1,7}); } - public void _test107() throws JavaModelException { + public void test107() throws JavaModelException { verifyMapper("test107", 16, new int[] {2,7,8,-1}); } - public void _test108() throws JavaModelException { + public void test108() throws JavaModelException { verifyMapper("test108", 8, new int[] {1,3,4,-1}); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=54776" */ - public void _testBug54776() throws JavaModelException { + public void testBug54776() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug54776", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1559,7 +1559,7 @@ public void _testBug54776() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=55221" */ - public void _testBug55221a() throws JavaModelException { + public void testBug55221a() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55221.a", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1596,7 +1596,7 @@ public void _testBug55221a() throws JavaModelException { // verify that second method start includes comment assumeEquals("Method declaration "+method+" does not start at the right position", commentStart, method.getStartPosition()); } - public void _testBug55221b() throws JavaModelException { + public void testBug55221b() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55221.b", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1633,7 +1633,7 @@ public void _testBug55221b() throws JavaModelException { // verify that second method start includes comment assumeEquals("Method declaration "+method+" does not start at the right position", commentStart, method.getStartPosition()); } - public void _testBug55221c() throws JavaModelException { + public void testBug55221c() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55221.c", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1675,7 +1675,7 @@ public void _testBug55221c() throws JavaModelException { assumeEquals("Method declaration "+method+" does not end at the right position",method.getLength(), methodLength); } /** @deprecated using deprecated code */ - public void _testBug55221d() throws JavaModelException { + public void testBug55221d() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55221.d", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1702,7 +1702,7 @@ public void _testBug55221d() throws JavaModelException { int returnLength = compilUnit.getExtendedLength(returnType); assumeEquals("Return type "+returnType+" does not have the right length", returnType.getLength(), returnLength); } - public void _testBug55223a() throws JavaModelException { + public void testBug55223a() throws JavaModelException { // stopOnFailure = false; this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55223", "TestA.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); @@ -1742,7 +1742,7 @@ public void _testBug55223a() throws JavaModelException { } } /** @deprecated using deprecated code */ - public void _testBug55223b() throws JavaModelException { + public void testBug55223b() throws JavaModelException { this.sourceUnit = getCompilationUnit("Converter" , "src", "javadoc.testBug55223", "TestB.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(this.sourceUnit, false); final CompilationUnit compilUnit = (CompilationUnit) result; @@ -1774,14 +1774,14 @@ public void _testBug55223b() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=48489" */ - public void _testBug48489() throws JavaModelException { + public void testBug48489() throws JavaModelException { verifyComments("testBug48489"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50898" */ - public void _testBug50898() throws JavaModelException { + public void testBug50898() throws JavaModelException { ICompilationUnit unit = getCompilationUnit("Converter" , "src", "javadoc.testBug50898", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ this.packageBinding = false; verifyComments(unit); @@ -1790,7 +1790,7 @@ public void _testBug50898() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=51226" */ - public void _testBug51226() throws JavaModelException { + public void testBug51226() throws JavaModelException { ICompilationUnit[] units = getCompilationUnits("Converter" , "src", "javadoc.testBug51226"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ for (int i=0; i
- * public void _testXXX() throws JavaModelException { + * public void testXXX() throws JavaModelException { * verifyComments("testXXX"); * } *@@ -230,6 +224,7 @@ protected void copyDirectory(File sourceDir, File targetDir) throws IOException protected void setUp() throws Exception { super.setUp(); TEST_COUNTERS[0]++; + setCompliancesLevel(); this.failures = new ArrayList(); this.problems = new StringBuilder(); this.workingCopies = null; @@ -285,7 +280,10 @@ public void tearDownSuite() throws Exception { System.out.println(" - "+intFormat.format(TEST_COUNTERS[3])+" tests failed."); } } - + @Override + public ASTNode runConversion(ICompilationUnit unit, boolean resolveBindings) { + return runConversion(AST.JLS23, unit, resolveBindings); + } @Override public ASTNode runConversion(char[] source, String unitName, IJavaProject project) { ASTParser parser = ASTParser.newParser(this.astLevel); @@ -332,7 +330,7 @@ private char getNextChar(char[] source, int idx) { return ch; } /* - * Convert Javadoc source to match Javadoc.toString(). + * Convert Javadoc source to match markdown.toString(). * Store converted comments and their corresponding tags respectively * in comments and allTags fields */ @@ -527,7 +525,7 @@ protected void setSourceComment(char[] source) throws ArrayIndexOutOfBoundsExcep } /* - * Convert Javadoc source to match Javadoc.toString(). + * Convert Javadoc source to match markdown.toString(). * Store converted comments and their corresponding tags respectively * in comments and allTags fields */ @@ -571,7 +569,7 @@ char[] getUnicodeSource(char[] source) { } /* - * Convert Javadoc source to match Javadoc.toString(). + * Convert Javadoc source to match markdown.toString(). * Store converted comments and their corresponding tags respectively * in comments and allTags fields */ @@ -737,17 +735,17 @@ private void verifyPositions(TagElement tagElement, char[] source) { String tagName = tagElement.getTagName(); int tagStart = tagElement.getStartPosition(); if (tagElement.isNested()) { - assumeEquals(this.prefix+"Wrong start position <"+tagStart+"> for "+tagElement, '[', source[tagStart]); - } - if (tagName != null) { - if (tagName.equals("@link")) { - assumeEquals(this.prefix+"Wrong start position <"+tagStart+"> for "+tagElement, ']', source[tagStart+tagElement.getLength()-2]); + if (tagName.equals("@link") && source[tagStart] == '[') { + assumeEquals(this.prefix+"Wrong start position <"+tagStart+"> for "+tagElement, '[', source[tagStart++]); } else { - text= new String(source, tagStart, tagName.length()); - assumeEquals(this.prefix+"Misplaced tag name at <"+tagStart+">: ", tagName, text); - tagStart += tagName.length(); + assumeEquals(this.prefix+"Wrong start position <"+tagStart+"> for "+tagElement, '{', source[tagStart++]); } } + if (tagName != null) { + text= new String(source, tagStart, tagName.length()); + assumeEquals(this.prefix+"Misplaced tag name at <"+tagStart+">: ", tagName, text); + tagStart += tagName.length(); + } // Verify each fragment ASTNode previousFragment = null; Iterator elements = tagElement.fragments().listIterator(); @@ -977,8 +975,10 @@ private void verifyPositions(TagElement tagElement, char[] source) { } } private int getLinkTagStartPosition(String tagName, char[] source, int tagStart) { - while (source[tagStart] == '[' || source[tagStart] == ']') { - tagStart++; // purge non-stored characters + if (tagName != null && tagName.equals("@link")) { + while (source[tagStart] == '[' || source[tagStart] == ']') { + tagStart++; // purge non-stored characters + } } return tagStart; } @@ -1228,6 +1228,14 @@ protected CompilationUnit verifyComments(String fileName, char[] source) { return verifyComments(fileName, source, null); } + private void setCompliancesLevel() { + if (this.currentProject != null) { + this.currentProject.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_23); + this.currentProject.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_23); + this.currentProject.setOption(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.ENABLED); + } + this.astLevel = AST.JLS23; + } protected CompilationUnit verifyComments(String fileName, char[] source, Map options) { // Verify comments either in unicode or not @@ -1246,15 +1254,7 @@ else if (this.unix) { // Create DOM AST nodes hierarchy List unitComments = null; - String sourceLevel = null; - String complianceLevel = null; - if (this.currentProject != null) { - complianceLevel = this.currentProject.getOption(JavaCore.COMPILER_COMPLIANCE, true); - sourceLevel = this.currentProject.getOption(JavaCore.COMPILER_SOURCE, true); - this.currentProject.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_23); - this.currentProject.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_23); - this.currentProject.setOption(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.ENABLED); - } + setCompliancesLevel(); CompilationUnit compilUnit = (CompilationUnit) runConversion(testedSource, fileName, this.currentProject, options); if (this.compilerOption.equals(JavaCore.ERROR)) { assumeEquals(this.prefix+"Unexpected problems", 0, compilUnit.getProblems().length); //$NON-NLS-1$ @@ -1310,10 +1310,6 @@ else if (this.unix) { } */ - if (sourceLevel != null) { - this.currentProject.setOption(JavaCore.COMPILER_COMPLIANCE, complianceLevel); - this.currentProject.setOption(JavaCore.COMPILER_SOURCE, sourceLevel); - } // Return compilation unit for possible further verifications return compilUnit; } @@ -1341,7 +1337,7 @@ public void test000a() throws JavaModelException { /** * Check javadoc for invalid syntax */ - public void _test001() throws JavaModelException { + public void test001() throws JavaModelException { verifyComments("test001"); } @@ -1376,44 +1372,45 @@ public void test005() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test006() throws JavaModelException { + public void test006() throws JavaModelException { verifyComments("test006"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test007() throws JavaModelException { + public void test007() throws JavaModelException { verifyComments("test007"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test008() throws JavaModelException { + public void test008() throws JavaModelException { verifyComments("test008"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50877" */ - public void _test009() throws JavaModelException { + public void test009() throws JavaModelException { verifyComments("test009"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50880" */ - public void _test010() throws JavaModelException { + public void test010() throws JavaModelException { verifyComments("test010"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=47396" */ - public void _test011() throws JavaModelException { + public void test011() throws JavaModelException { this.problems = new StringBuilder(); - this.sourceUnit = getCompilationUnit("Converter_23" , "src", "javadoc.test011", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + this.sourceUnit = getCompilationUnit("Converter_23" , "src", "markdown.test011", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + setCompliancesLevel(); ASTNode result = runConversion(this.sourceUnit, true); assumeNotNull("No compilation unit", result); } @@ -1421,14 +1418,14 @@ public void _test011() throws JavaModelException { /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=50938" */ - public void _test012() throws JavaModelException { + public void test012() throws JavaModelException { verifyComments("test012"); } /** * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=51104" */ - public void _test013() throws JavaModelException { + public void test013() throws JavaModelException { verifyComments("test013"); } @@ -1436,7 +1433,7 @@ public void _test013() throws JavaModelException { * Verify that text on next line following empty tag element * is well positionned. */ - public void _test014() throws JavaModelException { + public void test014() throws JavaModelException { verifyComments("test014"); } @@ -1444,7 +1441,7 @@ public void _test014() throws JavaModelException { * Verify that we do not report failure when types are written on several lines * in Javadoc comments. */ - public void _test015() throws JavaModelException { + public void test015() throws JavaModelException { verifyComments("test015"); } @@ -1452,7 +1449,7 @@ public void _test015() throws JavaModelException { * Verify DefaultCommentMapper heuristic to get leading and trailing comments */ protected void verifyMapper(String folder, int count, int[] indexes) throws JavaModelException { - ICompilationUnit[] units = getCompilationUnits("Converter_23" , "src", "javadoc."+folder); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + ICompilationUnit[] units = getCompilationUnits("Converter_23" , "src", "markdown."+folder); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ for (int i=0; i
- *- */ + /// + /// while (true) + /// { + /// int token = scanner.getNextToken(); + /// if (token == ITerminalSymbols.TokenNameEOF) break; + /// System.out.println(token + " : " + new String(scanner.getCurrentTokenSource())); + /// } + ///
+ ///+ //// void foo() {} } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908a/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908a/Test.java index e56eafbce9e..31669ac479e 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908a/Test.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908a/Test.java @@ -1,15 +1,15 @@ package javadoc.testBug52908a; -import java.util.Vector; +import java.util.List; -/** - * AST node for a parameter within a method reference ({@link Object}). - * These nodes only occur within doc comments ({@link Vector}). - *
- * MethodRefParameter: - * Type [ Identifier ] - *- * - * @see Vector - * @since 3.0 - */ +/// +/// AST node for a parameter within a method reference ([Object]). +/// These nodes only occur within doc comments ([List]). +///
+/// MethodRefParameter: +/// Type [ Identifier ] +///+/// +/// @see List +/// @since 3.0 +//// public class Test {} diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/X.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/X.java index 63150437c97..f378b163f50 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/X.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/X.java @@ -1,47 +1,47 @@ package javadoc.testBug52908unicode; public class X { - /** - * Text element starting with a - * \u007b caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element starting with a + /// \u007b caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x1; - /** - * Text element ending with a \u007d - * caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element ending with a \u007d + /// caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x2; - /** - * Text element starting with a - * \u007d caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element starting with a + /// \u007d caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x3; - /** - * Text element ending with a \u007b - * caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element ending with a \u007b + /// caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x4; - /** - * Text element starting with - * \u007b and ending with \u007d - * caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element starting with + /// \u007b and ending with \u007d + /// caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x6; - /** - * Text element starting with - * \u007d and ending with \u007b - * caused troubles in its position - * if the bug is not fixed - * @see Object - */ + /// + /// Text element starting with + /// \u007d and ending with \u007b + /// caused troubles in its position + /// if the bug is not fixed + /// @see Object + //// Object x7; } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/Y.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/Y.java index 12fd5feb9af..acbfb9eaf91 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/Y.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug52908unicode/Y.java @@ -1,14 +1,14 @@ package javadoc.testBug52908unicode; public class Y { - /** - * while (true) - * \u007b - * int token = scanner.getNextToken(); - * if (token == ITerminalSymbols.TokenNameEOF) break; - * System.out.println(token + " : " + new String(scanner.getCurrentTokenSource())); - * \u007d - *
- *- */ + /// + /// while (true) + /// \u007b + /// int token = scanner.getNextToken(); + /// if (token == ITerminalSymbols.TokenNameEOF) break; + /// System.out.println(token + " : " + new String(scanner.getCurrentTokenSource())); + /// \u007d + ///
+ ///+ //// void foo() {} } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53075/X.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53075/X.java index 49c7974eff5..ef68946a793 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53075/X.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53075/X.java @@ -1,9 +1,9 @@ package javadoc.testBug53075; class X { -/** - * @link aggregates - * [... some more ...] - * @linkplain plain aggregates - */ +/// +/// @link aggregates +/// [... some more ...] +/// @linkplain plain aggregates +//// void foo() {} } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestA.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestA.java index 46099bbee5c..8eac6c060ce 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestA.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestA.java @@ -1,15 +1,15 @@ package javadoc.testBug53276; public interface TestA { - /** - * Return the string specifying the pattern of this ignore. The string - * may include the wildcard characters '*' and '?'. If you wish to - * include either of these characters verbatim (i.e. you do not wish - * them to expand to wildcards), you must escape them with a backslash '\'. - *
- * If you are using string literals in Java to represent the patterns, don't - * forget escape characters are represented by "\\". - * - * @return the pattern represented by this ignore info - */ + /// + /// Return the string specifying the pattern of this ignore. The string + /// may include the wildcard characters '*' and '?'. If you wish to + /// include either of these characters verbatim (i.e. you do not wish + /// them to expand to wildcards), you must escape them with a backslash '\'. + ///
+ /// If you are using string literals in Java to represent the patterns, don't + /// forget escape characters are represented by "\\". + /// + /// @return the pattern represented by this ignore info + //// public String getPattern(); } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestB.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestB.java index b04fb60deee..2b6d0e71755 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestB.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestB.java @@ -1,23 +1,23 @@ package javadoc.testBug53276; -/** - * Handles a "Removed" response from the CVS server. - *
- * Suppose as a result of performing a command the CVS server responds
- * as follows:
- *
- * [...] - * Removed ??? \n - * [...] - *- * Then - * - */ +/// +/// Handles a "Removed" response from the CVS server. +///
+/// Suppose as a result of performing a command the CVS server responds
+/// as follows:
+///
+/// [...] +/// Removed ??? \n +/// [...] +///+/// Then +/// +/// -/** - * It removes the file from both the entries of the parent-folder - * and from the local filesystem. - */ +/// +/// It removes the file from both the entries of the parent-folder +/// and from the local filesystem. +/// public class TestB { } diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestC.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestC.java index fc34792901c..b7e6c7487f4 100644 --- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestC.java +++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53276/TestC.java @@ -1,12 +1,12 @@ package javadoc.testBug53276; public class TestC { - /** - * Returns the progress monitor. It there is no progress monitor the monitor\ - * is set to the
NullProgressMonitor
.
- *
- * @return the progress monitor
- */
+ ///
+ /// Returns the progress monitor. It there is no progress monitor the monitor\
+ /// is set to the NullProgressMonitor
.
+ ///
+ /// @return the progress monitor
+ ///
public Object foo() { return null; }
}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53757/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53757/Test.java
index 5be71b599d5..fc3bf3afed1 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53757/Test.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug53757/Test.java
@@ -1,55 +1,55 @@
package javadoc.testBug53757;
public class Test {
- /**
- * Test all grammar keywords
- * @abstract = 60,
- * @assert = 71,
- * @boolean = 31,
- * @break = 72,
- * @byte = 32,
- * @case = 83,
- * @catch = 86,
- * @char = 33,
- * @class = 81,
- * @continue = 73,
- * @default = 84,
- * @do = 74,
- * @double = 34,
- * @else = 87,
- * @extends = 91,
- * @false = 44,
- * @final = 61,
- * @finally = 88,
- * @float = 35,
- * @for = 75,
- * @if = 76,
- * @implements = 103,
- * @import = 82,
- * @instanceof = 13,
- * @int = 36,
- * @interface = 89,
- * @long = 37,
- * @native = 62,
- * @new = 41,
- * @null = 45,
- * @package = 85,
- * @private = 63,
- * @protected = 64,
- * @public = 65,
- * @short = 38,
- * @static = 57,
- * @strictfp = 66,
- * @super = 42,
- * @switch = 78,
- * @synchronized = 55,
- * @this = 43,
- * @throw = 79,
- * @transient = 67,
- * @true = 46,
- * @try = 80,
- * @void = 39,
- * @volatile = 68,
- * @while = 70,
- */
+ ///
+ /// Test all grammar keywords
+ /// @abstract = 60,
+ /// @assert = 71,
+ /// @boolean = 31,
+ /// @break = 72,
+ /// @byte = 32,
+ /// @case = 83,
+ /// @catch = 86,
+ /// @char = 33,
+ /// @class = 81,
+ /// @continue = 73,
+ /// @default = 84,
+ /// @do = 74,
+ /// @double = 34,
+ /// @else = 87,
+ /// @extends = 91,
+ /// @false = 44,
+ /// @final = 61,
+ /// @finally = 88,
+ /// @float = 35,
+ /// @for = 75,
+ /// @if = 76,
+ /// @implements = 103,
+ /// @import = 82,
+ /// @instanceof = 13,
+ /// @int = 36,
+ /// @interface = 89,
+ /// @long = 37,
+ /// @native = 62,
+ /// @new = 41,
+ /// @null = 45,
+ /// @package = 85,
+ /// @private = 63,
+ /// @protected = 64,
+ /// @public = 65,
+ /// @short = 38,
+ /// @static = 57,
+ /// @strictfp = 66,
+ /// @super = 42,
+ /// @switch = 78,
+ /// @synchronized = 55,
+ /// @this = 43,
+ /// @throw = 79,
+ /// @transient = 67,
+ /// @true = 46,
+ /// @try = 80,
+ /// @void = 39,
+ /// @volatile = 68,
+ /// @while = 70,
+ ///
void foo() {}
}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug54424/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug54424/Test.java
index 2fa14a76d27..8ae30977f4e 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug54424/Test.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug54424/Test.java
@@ -3,23 +3,23 @@
import java.util.ArrayList;
public class Test {
- /**
- * @param
- * @param tho {@link getList(int, long)}
- * @version throwaway
- * @param from 1st param of {@link A#getList(int, long, boolean) me}
- * @see #getList(Object, java.util.AbstractList)
- * @param from 2nd
- * @see #getList(int from, tho long)
- * @see #getList(int from, long tho)
- * @param
- * @return the list
- * @see #getList(..)
- * @param to
- * @throws .IOException
- * @deprecated
- * @throws IOException.
- * @todo it
- */
+ ///
+ /// @param
+ /// @param tho {@link getList(int, long)}
+ /// @version throwaway
+ /// @param from 1st param of {@link A#getList(int, long, boolean) me}
+ /// @see #getList(Object, java.util.AbstractList)
+ /// @param from 2nd
+ /// @see #getList(int from, tho long)
+ /// @see #getList(int from, long tho)
+ /// @param
+ /// @return the list
+ /// @see #getList(..)
+ /// @param to
+ /// @throws .IOException
+ /// @deprecated
+ /// @throws IOException.
+ /// @todo it
+ ///
public ArrayList getList(int from, long to) throws IOException {return null;}
}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/a/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/a/Test.java
index d27c9030d61..ef3fe10d8a7 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/a/Test.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/a/Test.java
@@ -9,10 +9,10 @@ public int bar() {
}
return x;
}
- /**
- * This comment should not be attached to previous method body!
- * @return int
- */
+ ///
+ /// This comment should not be attached to previous method body!
+ /// @return int
+ ///
public int foo() { return 1; }
}
\ No newline at end of file
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/b/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/b/Test.java
index c3d81a62a47..e5ad2828ead 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/b/Test.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/b/Test.java
@@ -8,10 +8,10 @@ public int bar() {
x=2;
}
return x;
- } /**
- * This comment should not be attached to previous method body!
- * @return int
- */
+ } ///
+ /// This comment should not be attached to previous method body!
+ /// @return int
+ ///
public int foo() { return 1; }
}
\ No newline at end of file
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/d/Test.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/d/Test.java
index 63538888420..4b0c63817f7 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/d/Test.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55221/d/Test.java
@@ -1,7 +1,7 @@
package javadoc.testBug55221.d;
public class Test {
- /**
- * Javadoc comment
- */// Line comment
+ ///
+ /// Javadoc comment
+ ///// Line comment
boolean foo() { return false; }
}
\ No newline at end of file
diff --git a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55223/TestB.java b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55223/TestB.java
index 32e13763df3..ee7f9829c6a 100644
--- a/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55223/TestB.java
+++ b/org.eclipse.jdt.core.tests.model/workspace/Converter_23/src/markdown/testBug55223/TestB.java
@@ -1,10 +1,10 @@
package javadoc.testBug55223;
public class TestB {
- /**
- * Returns all of the filter elements of this shortcut as a List of String Pairs.
- *
- * @return all of the filter elements of this shortcut, or null
if not
- * specified
- */
+ ///
+ /// Returns all of the filter elements of this shortcut as a List of String Pairs.
+ ///
+ /// @return all of the filter elements of this shortcut, or null
if not
+ /// specified
+ ///
public /*