Skip to content

Commit

Permalink
Use standard "exception parameter" terminology (#902)
Browse files Browse the repository at this point in the history
Co-authored-by: Werner Dietl <[email protected]>
  • Loading branch information
Ao-senXiong and wmdietl authored Sep 7, 2024
1 parent f2131cf commit 01d2916
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/manual/advanced-features.tex
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@
locations.
Variables defaulted to top include local variables, resource variables in the
try-with-resources construct, variables in \<for> statements, and \<catch>
arguments (known as exception parameters in the Java Language Specification).
try-with-resources construct, and variables in \<for> statements.
Exception parameters default to the top type because they might catch an
exception thrown anywhere in the program.
\item
Exception parameters in catch clauses default to the top type because they
might catch an exception thrown anywhere in the program.
An alternate design for exception parameters would be to default exception
parameters some other type T (instead of the top type); then the Checker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type.invalid.super.wildcard=bounds must have the same annotations.%nextends boun
cast.unsafe=cast from "%s" to "%s" cannot be statically verified
invariant.cast.unsafe=cannot cast from "%s" to "%s"
cast.unsafe.constructor.invocation=constructor invocation cast from "%s" to "%s" cannot be statically verified
exception.parameter.invalid=invalid type in catch argument.%nfound : %s%nrequired: %s
exception.parameter.invalid=invalid type in exception parameter.%nfound : %s%nrequired: %s
throw.type.invalid=invalid type thrown.%nfound : %s%nrequired: %s
expression.unparsable.type.invalid=Expression invalid in dependent type annotation: %s
explicit.annotation.ignored=The qualifier %s is ignored in favor of %s. Either delete %s or change it to %s.
Expand Down

0 comments on commit 01d2916

Please sign in to comment.