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.

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

G. Substituting the type expression U for S will then yield a (non-wildcard) invocation of<br />

H, H[S = U], that is a supertype of G. For example, in the simplest instance, U1<br />

might be S, in which case we have G F = G for some type expression W. Since W is a type expression<br />

(and not a wildcard type argument), it must be the case that W=U,by the non-variance<br />

of parameterized types.<br />

DISCUSSION<br />

✦ Otherwise, if A is of the form G, this<br />

algorithm is applied recursively to the constraint W >> U.<br />

DRAFT<br />

We have A = G

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

Saved successfully!

Ooh no, something went wrong!