RFR: 8075331 jdb eval java.util.Arrays.asList(array) shows inconsistent behaviour

Staffan Larsen staffan.larsen at oracle.com
Wed Apr 8 11:40:29 UTC 2015


Hi,

When calling varargs methods from JDI, we end up in MethodImpl.handleVarArgs() which has some logic to figure out how to call the varargs method with the parameters given. It depends on InvokeableType.isAssignableTo() to do this. This patch fixes a bug in isAssignableTo() where the implementation would say that an interface type was not assignable to java.lang.Object. With that fix in place, the reproducer from the bug and the new test passes.

Testing: all com/sun/jdi test and nsk.jdi.testlist on all platforms.

bug: https://bugs.openjdk.java.net/browse/JDK-8075331 <https://bugs.openjdk.java.net/browse/JDK-8075331>
webrev: http://cr.openjdk.java.net/~sla/8075331/webrev.00/ <http://cr.openjdk.java.net/~sla/8075331/webrev.00/>

Thanks,
/Staffan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150408/cd034fcf/attachment.html>


More information about the serviceability-dev mailing list