<< §3.1.(h) Declared exceptions | ↑ Table of Contents ↑ | §3.1.(j) Inferred callout >> |
§3.1.(i) Shorthand definition
A callout binding whose method designators specify full method signatures does not require an existing role method. If no role method is found matching the expected method of such a callout binding, a new method is implicitly generated. The new method is static iff the bound base method is static, and it declares the same exceptions as the bound base method.
A shorthand callout may optionally declare a visibility modifier, otherwise the generated method inherits the visibility modifier of the bound base method. No further modifiers are set. If a callout overrides an inherited method or callout, it must not reduce the visibility of the inherited method/callout.
<< §3.1.(h) Declared exceptions | ↑ Table of Contents ↑ | §3.1.(j) Inferred callout >> |