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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java (-7 / +9 lines)
Lines 280-292 Link Here
280
		if (this.currentPackage != null) {
280
		if (this.currentPackage != null) {
281
			if (this.currentPackage.annotations != null) {
281
			if (this.currentPackage.annotations != null) {
282
				if (CharOperation.equals(this.getMainTypeName(), TypeConstants.PACKAGE_INFO_NAME)) {
282
				if (CharOperation.equals(this.getMainTypeName(), TypeConstants.PACKAGE_INFO_NAME)) {
283
					// resolve annotations
283
                    if (this.types != null) {
284
					final TypeDeclaration syntheticTypeDeclaration = types[0];
284
                        // resolve annotations
285
					syntheticTypeDeclaration.resolve(this.scope);
285
    					final TypeDeclaration syntheticTypeDeclaration = types[0];
286
					resolveAnnotations(syntheticTypeDeclaration.staticInitializerScope, this.currentPackage.annotations, this.scope.fPackage);
286
    					syntheticTypeDeclaration.resolve(this.scope);
287
					// set the synthetic bit
287
    					resolveAnnotations(syntheticTypeDeclaration.staticInitializerScope, this.currentPackage.annotations, this.scope.fPackage);
288
					syntheticTypeDeclaration.binding.modifiers |= AccSynthetic;
288
    					// set the synthetic bit
289
					startingTypeIndex = 1;
289
    					syntheticTypeDeclaration.binding.modifiers |= AccSynthetic;
290
    					startingTypeIndex = 1;
291
                    }
290
				} else {
292
				} else {
291
					scope.problemReporter().invalidFileNameForPackageAnnotations(this.currentPackage.annotations[0]);
293
					scope.problemReporter().invalidFileNameForPackageAnnotations(this.currentPackage.annotations[0]);
292
				}
294
				}

Return to bug 86167