View | Details | Raw Unified | Return to bug 196354 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java (-1 / +16 lines)
Lines 119-125 Link Here
119
	static {
119
	static {
120
//		TESTS_NAMES = new String[] {"test0602"};
120
//		TESTS_NAMES = new String[] {"test0602"};
121
//		TESTS_RANGE = new int[] { 670, -1 };
121
//		TESTS_RANGE = new int[] { 670, -1 };
122
//		TESTS_NUMBERS =  new int[] { 680 };
122
//		TESTS_NUMBERS =  new int[] { 681 };
123
	}
123
	}
124
	public static Test suite() {
124
	public static Test suite() {
125
		return buildModelTestSuite(ASTConverterTestAST3_2.class);
125
		return buildModelTestSuite(ASTConverterTestAST3_2.class);
Lines 9339-9342 Link Here
9339
		final List modifiers = typeDeclaration.modifiers();
9339
		final List modifiers = typeDeclaration.modifiers();
9340
		assertEquals("Wrong size", 1, modifiers.size());
9340
		assertEquals("Wrong size", 1, modifiers.size());
9341
	}
9341
	}
9342
	
9343
	/**
9344
	 * http://dev.eclipse.org/bugs/show_bug.cgi?id=196354
9345
	 */
9346
	public void test0681() throws JavaModelException {
9347
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "Sample", "Sample.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
9348
		ASTNode node = runConversion(AST.JLS3, sourceUnit, true);
9349
		assertTrue("Not a compilation unit", node.getNodeType() == ASTNode.COMPILATION_UNIT); //$NON-NLS-1$
9350
		CompilationUnit compilationUnit = (CompilationUnit) node;
9351
		assertProblemsSize(compilationUnit, 0);
9352
		final PackageDeclaration packageDeclaration = compilationUnit.getPackage();
9353
		final IPackageBinding packageBinding = packageDeclaration.resolveBinding();
9354
		assertNotNull("No binding", packageBinding);
9355
		assertEquals("Wrong name", "Sample", packageBinding.getName());
9356
	}
9342
}
9357
}
(-)workspace/Converter/src/Sample/Sample.java (+3 lines)
Added Link Here
1
package Sample;
2
3
class Sample {}

Return to bug 196354