View | Details | Raw Unified | Return to bug 159631
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/dom/BatchASTCreationTests.java (-1 / +1 lines)
Lines 1655-1661 Link Here
1655
	}
1655
	}
1656
	
1656
	
1657
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=159631
1657
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=159631
1658
public void _test073() throws CoreException, IOException {
1658
public void test073() throws CoreException, IOException {
1659
	try {
1659
	try {
1660
		IJavaProject project = createJavaProject("P072", new String[] {}, Util.getJavaClassLibs(), "", "1.5");
1660
		IJavaProject project = createJavaProject("P072", new String[] {}, Util.getJavaClassLibs(), "", "1.5");
1661
		ICompilationUnit compilationUnits[] = new ICompilationUnit[3]; 
1661
		ICompilationUnit compilationUnits[] = new ICompilationUnit[3]; 
(-)compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java (-1 / +4 lines)
Lines 1430-1436 Link Here
1430
	return this.scope.referenceContext.sourceStart;
1430
	return this.scope.referenceContext.sourceStart;
1431
}
1431
}
1432
SimpleLookupTable storedAnnotations(boolean forceInitialize) {
1432
SimpleLookupTable storedAnnotations(boolean forceInitialize) {
1433
	if (forceInitialize && this.storedAnnotations == null) {
1433
	if (forceInitialize && this.storedAnnotations == null && 
1434
			this.scope != null) { 
1435
				// once scope is null, no more attempt to store annotations -
1436
				// as if the scope was present with storeAnnotations set to false
1434
		this.scope.referenceCompilationUnit().compilationResult.hasAnnotations = true;
1437
		this.scope.referenceCompilationUnit().compilationResult.hasAnnotations = true;
1435
		if (!this.scope.environment().globalOptions.storeAnnotations)
1438
		if (!this.scope.environment().globalOptions.storeAnnotations)
1436
			return null; // not supported during this compile
1439
			return null; // not supported during this compile

Return to bug 159631