[foreign-memaccess] RFR 8234581: Cleanup use of exceptions in the memory access API

Brian Burkhalter brian.burkhalter at oracle.com
Thu Nov 21 16:34:25 UTC 2019


And sometimes, e.g., java.nio, java.nio.channels, an unchecked exception which happens throughout the package is specified in the package documentation, e.g.,  java.nio and java.nio.channels, instead of being written up everywhere:
"Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package will cause a NullPointerException <https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/NullPointerException.html> to be thrown."

Brian

> On Nov 21, 2019, at 8:27 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
> 
> Chris has observed (offline) that in the JDK we typically do not add unchecked exceptions to the 'throws' clause (but only add @throws taglets to the javadoc).



More information about the panama-dev mailing list