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 />

464<br />

type declaration, For example, if T :> List and T :> List, simply intersecting<br />

the sets ST(List) = {List, Collection, Object} and<br />

ST(List) = {List), Collection, Object} would yield a set {Object},<br />

and we would have lost track of the fact that T can safely be assumed to be a List.<br />

In contrast, intersecting EST(List) = {List, Collection, Object} and<br />

EST(List) = {List, Collection, Object} yields {List, Collection, Object}, which we will<br />

eventually enable us to infer T = List as described below.<br />

<strong>The</strong> erased candidate set for type parameter Tj , EC, is the intersection of all<br />

the sets EST(U) for each U in U1 .. Uk. <strong>The</strong> minimal erased candidate set for Tj is<br />

MEC = { V | V in EC, and for all W ≠ V in EC, it is not the case that W

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

Saved successfully!

Ooh no, something went wrong!