Lines 264-269
Link Here
|
264 |
return; |
264 |
return; |
265 |
} |
265 |
} |
266 |
|
266 |
|
|
|
267 |
if (receiverType.erasure().id == T_JavaLangEnum) { |
268 |
scope.problemReporter().explicitConstructorCallCannotBeUsedInEnum(this); |
269 |
return; |
270 |
} |
267 |
// qualification should be from the type of the enclosingType |
271 |
// qualification should be from the type of the enclosingType |
268 |
if (qualification != null) { |
272 |
if (qualification != null) { |
269 |
if (accessMode != Super) { |
273 |
if (accessMode != Super) { |
Lines 317-325
Link Here
|
317 |
if (argHasError) { |
321 |
if (argHasError) { |
318 |
return; |
322 |
return; |
319 |
} |
323 |
} |
320 |
} else if (receiverType.erasure().id == T_JavaLangEnum) { |
|
|
321 |
// TODO (philippe) get rid of once well-known binding is available |
322 |
argumentTypes = new TypeBinding[] { scope.getJavaLangString(), BaseTypes.IntBinding }; |
323 |
} |
324 |
} |
324 |
if ((binding = scope.getConstructor(receiverType, argumentTypes, this)).isValidBinding()) { |
325 |
if ((binding = scope.getConstructor(receiverType, argumentTypes, this)).isValidBinding()) { |
325 |
if (isMethodUseDeprecated(binding, scope)) |
326 |
if (isMethodUseDeprecated(binding, scope)) |