RFR (XS): 8160024 jdb returns invalid argument count if first parameter to Arrays.asList is null

serguei.spitsyn at oracle.com serguei.spitsyn at oracle.com
Tue Nov 1 13:03:16 UTC 2016


On 11/1/16 08:58, serguei.spitsyn at oracle.com wrote:
> Please, review this small fix.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8160024
>
> JDK webrev:
> http://cr.openjdk.java.net/~sspitsyn/webrevs/2016/hotspot/8160024-JDI-eval.jdk1/ 
>
>
> The bug is confidential, so the RFR is sent to the confidential mailing
> lists.

Sorry, I sent it in the open, but bug is confidential.

Thanks,
Serguei

>
>
> Summary:
>
>   The JDI incorrectly evaluates the expression: Arrays.asList(null, "a").
>   The root cause is a special case in the method 
> MethodImpl.handleVarArgs()
>   that has been corrected in order to fix the problem.
>
>   New unit test is included: jdk/test/com/sun/jdi/EvalArraysAsList.sh
>
> Testing:
>   Ran new unit test, Jtreg com/sun/jdi and nsk.jdi.testlist.
>   All tests are passed.
>
> Thanks,
> Serguei
>



More information about the hotspot-runtime-dev mailing list