10.12.2012 Views

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

15.12.2 Compile-Time Step 2: Determine Method Signature EXPRESSIONS<br />

446<br />

15.12.2.3 Phase 2: Identify Matching Arity Methods Applicable by Method<br />

Invocation Conversion<br />

Let m be a potentially applicable method (§15.12.2.1), let e1, ..., en be the<br />

actual argument expressions of the method invocation and let Ai be the type of<br />

ei, 1 ≤i≤n. <strong>The</strong>n:<br />

• If m is a generic method, then let F1 ... Fn be the types of the formal parameters<br />

of m, and let R1 ... Rp p ≥ 1 , be the formal type parameters of m, and<br />

let Bl be the declared bound of Rl, 1 ≤l ≤ p.<br />

<strong>The</strong>n:<br />

◆ If the method invocation does not provide explicit type arguments then let<br />

U1 ... Up be the actual type arguments inferred (§15.12.2.7) for this invocation<br />

of m, using a set of initial constraints consisting of the constraints Ai

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!