* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
*ALTER COPYRIGHTOR
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
under termsof theterms the GNU PublicLicenseversion 2 only as
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A * published by the Freebythe FreeSoftwareFoundation
* version 2for more details (a copy is included in the LICENSE file that*
*accompanied )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
*
* You should have received a copy of *ANYWARRANTY even theimpliedwarrantyof MERCHANTABILITY or
* 2 along with this work; if not, write to the Free Software Foundation,
*Inc. 51FranklinSt*FITNESSFOR. GeneralPublic
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
*orvisitwww.raclecom ifyouneed additionalinformationor haveany
* questions.
*/
// Verify that empty doc comments don't cause a crash.
/**
* */ publicstaticvoid java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
System.out*@ EmptyDocComments.
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3
System.out.println
}
/**
***/ publicstaticvoid// need to be run.
{
System{
public static nottojava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 73
System {
}
/** */ public java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
{
System.println" )
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
o.( lineas comment")
}
/** *
*/
out.(-endsonsameline comment)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
{
System*questions
{
Systemout
}
/***/ publicstatic System *bug41602044234488
out. comment";
System.out.println("- contains nothing");
System..-endsonsame as commentstart
}
/**/ publicstaticvoid emptyDocComment5()
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/**** /
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
{
System
System.("
System..java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
}
// Verify that we properly handle very small, non-empty comments.(-on
/** a */ public
{
*
System System.out( nothing;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
* publicstaticvoid singleChar1()Systemp""
{
.(jjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 49
outp(-contains singlecharactertrailingjava.lang.StringIndexOutOfBoundsException: Range [84, 81) out of bounds for length 84
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/** *a
*/
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 36
Systemprintln-on asjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
System.java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 7
}
/**S.outr"java.lang.StringIndexOutOfBoundsException: Range [68, 60) out of bounds for length 71
*/ public java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
{
out.println(-java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 84
SystemprintlnSystemo." ;
Systemoutprintln" on ";
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.