The test failure has been identified due to the "int[2]" being misrecognized as a compound prompt. This caused a cont command to be sent prematurely.
The proposed fix waits for the correct prompt before advancing to the next command. Webrev: http://cr.openjdk.java.net/~gadams/8208473/webrev/ Issue: https://bugs.openjdk.java.net/browse/JDK-8208473 Testing is in progress.