### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java,v retrieving revision 1.126 diff -u -r1.126 ASTConverterTestAST3_2.java --- src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java 4 Jul 2007 15:02:08 -0000 1.126 +++ src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java 16 Jul 2007 19:00:10 -0000 @@ -119,7 +119,7 @@ static { // TESTS_NAMES = new String[] {"test0602"}; // TESTS_RANGE = new int[] { 670, -1 }; -// TESTS_NUMBERS = new int[] { 679 }; +// TESTS_NUMBERS = new int[] { 680 }; } public static Test suite() { return buildModelTestSuite(ASTConverterTestAST3_2.class); @@ -9322,4 +9322,22 @@ workingCopy.discardWorkingCopy(); } } + + /** + * http://dev.eclipse.org/bugs/show_bug.cgi?id=196249 + */ + public void test0680() throws JavaModelException { + IJavaProject javaProject = getJavaProject("Converter"); + final String option = javaProject.getOption(JavaCore.COMPILER_DOC_COMMENT_SUPPORT, true); + System.out.println(option); + ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "", "SAMPLE_UTF8.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + ASTNode result = runConversion(AST.JLS3, sourceUnit, true); + ASTNode node = getASTNode((CompilationUnit) result, 0); + assertEquals("Wrong number of problems", 0, ((CompilationUnit) result).getProblems().length); //$NON-NLS-1$ + assertNotNull(node); + assertTrue("Not a type declaration", node.getNodeType() == ASTNode.TYPE_DECLARATION); //$NON-NLS-1$ + TypeDeclaration typeDeclaration = (TypeDeclaration) node; + final List modifiers = typeDeclaration.modifiers(); + assertEquals("Wrong size", 1, modifiers.size()); + } } Index: workspace/Converter/src/SAMPLE_UTF8.java =================================================================== RCS file: workspace/Converter/src/SAMPLE_UTF8.java diff -N workspace/Converter/src/SAMPLE_UTF8.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Converter/src/SAMPLE_UTF8.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,11 @@ +/** + * + */ +public class SAMPLE_UTF8 { + /** + * @param nDataCount\uff1a\uff10 + */ + public static void main(String[] args) { + } + +}