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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

604<br />

va.lang.*, 165<br />

importing types into, 161<br />

and name of top-level type, 166<br />

overview, 153<br />

and package membership, 122, 154<br />

and package observability, 160<br />

and scope of an import declaration, 117,<br />

161<br />

term definition and characteristics, 157<br />

compile, 439<br />

compile-time constant<br />

See constants<br />

compile-time error, 439<br />

ambiguous type in new, 425<br />

annotation names non-annotation type, 283<br />

annotation type name same as enclosing<br />

types, 272<br />

annotation type with bad Target, 272<br />

declare an enum type abstract, 176, 250<br />

declaring a finalizer in an enum, 251<br />

disallowed return type in annotation type,<br />

273<br />

enum<br />

constant<br />

to declare abstract method, 176, 250<br />

enum constant with bad Target, 158, 175,<br />

198, 211, 214, 241, 250, 261, 264,<br />

267, 364<br />

enum in new, 424<br />

enum type to contain abstract method, 176,<br />

250<br />

explicitly declaring an enum final, 250<br />

in ?:, 510<br />

in super.Identifier, 441<br />

inaccessible annotation type, 283<br />

inaccessible type in new, 424<br />

instantiating an enum type, 249<br />

interface attempts to override fianl method in<br />

Object’, 125, 263<br />

malformed annotation, 281<br />

malformed type declaration specifier, 44<br />

malnamed element in annotation, 137, 283<br />

method annotated with Override does not in<br />

fact override, 279<br />

modifer repeated in interface declaration,<br />

260<br />

no applicable method, 447<br />

non-integral type in array index, 432<br />

non-override equivalent signature, 273<br />

non-reifiable type in array creation, 289,<br />

431<br />

nonsubstitutable return type, 268<br />

referencing a type parameter of an interface<br />

from its fields or type members, 261<br />

referencing non-constant static field in an<br />

enum, 252<br />

repeated annotations of same type, 281<br />

self reference in an annotation type, 274<br />

subclass of Enum, 184<br />

Target, 278<br />

two override-equivalent methods, 267<br />

void method in conditional expression, 510<br />

wildcards in new, 424<br />

compile-time errors<br />

See binary, compatibility; errors; exceptions<br />

completion, 360<br />

See also control flow, exceptions<br />

abrupt<br />

break statement, 388<br />

continue statement, 390<br />

disallowed for static initializers, 239<br />

during expression evaluation, 413<br />

for statement, 384<br />

labeled statements, 371<br />

reasons for, 360, 413<br />

return statement, 392<br />

synchronized statement, 395<br />

throw statement, 393<br />

try statement, 396<br />

try-catch statement, 398<br />

try-catch-finally statement, 399<br />

normal<br />

during expression evaluation, 413<br />

during statement execution, 360<br />

required for instance initializers, 239<br />

required for static initializers, 239<br />

component(s)<br />

See also arrays, components<br />

type<br />

arrays<br />

in variable arity methods, 447<br />

of reifiable array type, 56<br />

type, arrays, 288<br />

conflicts<br />

memory accesses, 563<br />

name

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

Saved successfully!

Ooh no, something went wrong!