Java 7 update 12 issue with MethodHandles.catchException.

MacGregor, Duncan (GE Energy Management) duncan.macgregor at ge.com
Wed Dec 12 07:12:06 PST 2012


Finally got time to try running our full application under 7u12 and I've hit a problem with our database library. In two cases where we are combining method handles to catch exceptions from a library method, process those exceptions to fill in our own error information and then fallback to the proper error handling code, we are failing to be bind properly. The failure occurs with methods with 9 or more arguments where the last one is an array.

I've attached a minimal test case which works under update 10 but fails under update 12 (all tests on Windows x64) and shows the difference in behaviour with the number of args.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MethodHandleBug.java
Type: application/octet-stream
Size: 4777 bytes
Desc: MethodHandleBug.java
Url : http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20121212/8c8bf7b2/MethodHandleBug.java 


More information about the mlvm-dev mailing list