RFR 8151198: VarHandle factory-specific exceptions
Paul Sandoz
paul.sandoz at oracle.com
Fri Apr 8 12:51:14 UTC 2016
Hi
Please review:
http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8151198-VH-factory-exceptions/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8151198-VH-factory-exceptions/webrev/>
The patch tweaks the specification:
1) noting that factory methods may document additional undeclared exceptions that may be thrown by access methods e.g. IllegalSateException for VarHandles to ByteBuffer for misaligned access.
2) add the throwing of ClassCastException to each method, which i neglected to add when switching from invokeExact to invoke semantics.
Paul.
More information about the core-libs-dev
mailing list