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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java (+2 lines)
Lines 245-254 Link Here
245
		this.tagBits |= TagBits.AnnotationResolved;
245
		this.tagBits |= TagBits.AnnotationResolved;
246
	    this.thrownExceptions = Binding.NO_EXCEPTIONS;
246
	    this.thrownExceptions = Binding.NO_EXCEPTIONS;
247
		if (selector == TypeConstants.VALUES) {
247
		if (selector == TypeConstants.VALUES) {
248
		    this.modifiers = ClassFileConstants.AccFinal | ClassFileConstants.AccPublic | ClassFileConstants.AccStatic;
248
		    this.returnType = declaringEnum.scope.createArrayType(declaringEnum, 1);
249
		    this.returnType = declaringEnum.scope.createArrayType(declaringEnum, 1);
249
		    this.parameters = Binding.NO_PARAMETERS;
250
		    this.parameters = Binding.NO_PARAMETERS;
250
		    this.kind = EnumValues;
251
		    this.kind = EnumValues;
251
		} else if (selector == TypeConstants.VALUEOF) {
252
		} else if (selector == TypeConstants.VALUEOF) {
253
		    this.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic;
252
		    this.returnType = declaringEnum;
254
		    this.returnType = declaringEnum;
253
		    this.parameters = new TypeBinding[]{ declaringEnum.scope.getJavaLangString() };
255
		    this.parameters = new TypeBinding[]{ declaringEnum.scope.getJavaLangString() };
254
		    this.kind = EnumValueOf;
256
		    this.kind = EnumValueOf;

Return to bug 141155