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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedQualifiedTypeReference.java (-14 / +16 lines)
Lines 124-131 Link Here
124
	    	this.resolvedType = (ReferenceBinding) binding;
124
	    	this.resolvedType = (ReferenceBinding) binding;
125
			reportInvalidType(scope);
125
			reportInvalidType(scope);
126
			// be resilient, still attempt resolving arguments
126
			// be resilient, still attempt resolving arguments
127
			if (binding instanceof ProblemReferenceBinding) {
127
			for (int i = 0, max = this.tokens.length; i < max; i++) {
128
			    TypeReference[] args = this.typeArguments[((ProblemReferenceBinding) binding).compoundName.length - 1];
128
			    TypeReference[] args = this.typeArguments[i];
129
			    if (args != null) {
129
			    if (args != null) {
130
					int argLength = args.length;
130
					int argLength = args.length;
131
					for (int j = 0; j < argLength; j++) {
131
					for (int j = 0; j < argLength; j++) {
Lines 149-166 Link Here
149
			if (!(this.resolvedType.isValidBinding())) {
149
			if (!(this.resolvedType.isValidBinding())) {
150
				reportInvalidType(scope);
150
				reportInvalidType(scope);
151
				// be resilient, still attempt resolving arguments
151
				// be resilient, still attempt resolving arguments
152
			    TypeReference[] args = this.typeArguments[i];
152
				for (int j = i; j < max; j++) {
153
			    if (args != null) {
153
				    TypeReference[] args = this.typeArguments[j];
154
					int argLength = args.length;
154
				    if (args != null) {
155
					for (int j = 0; j < argLength; j++) {
155
						int argLength = args.length;
156
					    TypeReference typeArgument = args[j];
156
						for (int k = 0; k < argLength; k++) {
157
					    if (isClassScope) {
157
						    TypeReference typeArgument = args[k];
158
					    	typeArgument.resolveType((ClassScope) scope);
158
						    if (isClassScope) {
159
					    } else {
159
						    	typeArgument.resolveType((ClassScope) scope);
160
					    	typeArgument.resolveType((BlockScope) scope);
160
						    } else {
161
					    }
161
						    	typeArgument.resolveType((BlockScope) scope);
162
					}
162
						    }
163
			    }				
163
						}
164
				    }				
165
				}
164
				return null;
166
				return null;
165
			}
167
			}
166
			ReferenceBinding currentType = (ReferenceBinding) this.resolvedType;
168
			ReferenceBinding currentType = (ReferenceBinding) this.resolvedType;

Return to bug 158548