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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java (+4 lines)
Lines 1016-1021 Link Here
1016
		}
1016
		}
1017
		if (node instanceof TypeDeclaration){
1017
		if (node instanceof TypeDeclaration){
1018
			TypeDeclaration type = (TypeDeclaration) node;
1018
			TypeDeclaration type = (TypeDeclaration) node;
1019
			if ((type.modifiers & ClassFileConstants.AccEnum) != 0) {
1020
				// do not allow enums to be build as recovery types
1021
				continue;
1022
			}
1019
			if (type.declarationSourceEnd == 0){
1023
			if (type.declarationSourceEnd == 0){
1020
				element = element.add(type, 0);
1024
				element = element.add(type, 0);
1021
				this.lastCheckPoint = type.bodyStart;
1025
				this.lastCheckPoint = type.bodyStart;

Return to bug 340691