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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java (-1 / +3 lines)
Lines 127-133 Link Here
127
						final Expression[] expressions = initializer.expressions;
127
						final Expression[] expressions = initializer.expressions;
128
						if (expressions != null) {
128
						if (expressions != null) {
129
							for (int i =0, max = expressions.length; i < max; i++) {
129
							for (int i =0, max = expressions.length; i < max; i++) {
130
								if (expressions[i].constant == Constant.NotAConstant) {
130
								Expression expression = expressions[i];
131
								if (expression.resolvedType == null) continue; // fault-tolerance
132
								if (expression.constant == Constant.NotAConstant) {
131
									scope.problemReporter().annotationValueMustBeConstant(this.binding.declaringClass, this.name, expressions[i], false);
133
									scope.problemReporter().annotationValueMustBeConstant(this.binding.declaringClass, this.name, expressions[i], false);
132
								}
134
								}
133
							}
135
							}

Return to bug 179477