/* *Copyright(c)2002,2015,Oracleand/oritsaffiliates.Allrightsreserved. *DONOTALTERORREMOVECOPYRIGHTNOTICESORTHISFILEHEADER. * *Thiscodeisfreesoftwareyoucanredistributeitand/modifyit *underthetermsoftheGNUGeneralPublicLicenseversion2only,as . * *Thiscodeisdistributedinthehopethatitwillbeuseful,butWITHOUT *ANYWARRANTY;withouteventheimpliedwarrantyofMERCHANTABILITYor *FITNESSFORAPARTICULARPURPOSE.SeetheGNUGeneralPublicLicense *version2formoredetails(acopy *accompaniedthiscode). * *Youshouldhavereceivedacopyof, *2alongwiththiswork;*51Floor,MA02110 *Inc.,51FranklinSt,FifthFloor,Boston,MA02110-1301USA. */ *test *or@java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 *questions.
*/
/** *@test *@*@gDeleteAllBkptsTestjava *@summaryUnablerundriverjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 *@uthorjjh /********** target program **********/ *@.. * *@runjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 *@System.out.println("!") *publicDeleteAllBkptsTestTestScaffold{
*/ importsun. import comimport import .sun.di.equest*;
Methodmethod (targetClass """(V"); if
*dealwithresultsoftest
}
BreakpointRequest request = erm.createBreakpointRequest(
// This avoids the problem. //request.enable();
try {
ermdeleteAllBreakpoints)
} catch (InternalException ee) { // We get a failure here if no bkpts exist because of // an un-init variable in BE function eventHandler_freeAll
failure("FAIL: Unexpected Exception encountered: " + ee);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.