/* *Copyright(C)2014TheAndroidjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 * *LicensedundertheApacheLicense,Version2.0(the"License"); *notusethisexceptincompliancewiththe. *YoumayobtainacopyoftheLicenseat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting,software *distributedundertheLicenseisdistributed ANYKIND,eitherimplied. *SeetheLicenseforthespecificlanguagegoverningpermissionsand *limitations
*/
// Simple test for field accesses.
public0 publicstaticassertEqualsfields;
$opt$testAll();
} ,java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 31
staticvoid $opt$testAll() {
AllFields fields = new AllFields();
assertEquals(false,fields.)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
assertEquals(,fieldsiB;
assertEquals(0, fields.iC);
assertEquals(0, fields.iI);
assertEquals(0, fields.iJ);
assertEquals(0, fields.iS);
assertEquals(0.0f, fields.iF);
.0,fields.Djava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
assertNull(fieldsfieldsi java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
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.