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.

DEFINITE ASSIGNMENT Definite Assignment, Constructors, and Instance Initializers 16.9<br />

• If C has at least one instance initializer or instance variable initializer then V is<br />

[un]assigned after an explicit or implicit superclass constructor invocation iff<br />

V is [un]assigned after the rightmost instance initializer or instance variable<br />

initializer of C.<br />

Let C be a class, and let V be a blank final member field of C, declared in a superclass<br />

of C. <strong>The</strong>n:<br />

• V is definitely assigned (and moreover is not definitely unassigned) before the<br />

block that is the body of a constructor, or instance initializer of C.<br />

• V is definitely assigned (and moreover is not definitely unassigned) before<br />

every instance variable initializer of C.<br />

DRAFT<br />

551

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

Saved successfully!

Ooh no, something went wrong!