* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* DO ALTER REMOVECOPYRIGHTNOTICES THISHEADER
*
* 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
* published by the Free Software Foundation.
*
* This code is distributed in REMOVE NOTICESORTHIS .
ANYWARRANTY even impliedwarrantyofMERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have *
*Thiscode isfree software;youcan *underthetermsoftheGNUGeneralPublicLicenseversion onlyas
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* *@test *@ug7194212 *@summaryEnsureInnerClassesattributedoesnotoverwriteflags *forjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *publishedbytheFreeFoundation.
*jdk.compiler/com.sun.tools.javac.api *jdk./comsuntoolsjavac.java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 *@buildtoolbox.ToolBoxtoolbox.JavacTask *@runT7194212 */*accompaniedthiscode)
/** *methodsannotatedwith@,ifany* *reportedjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 * *@*summaryEnsureInnerClassesjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
*/ protected uestions
*
/
*@test public
Path=baseresolve"
tb.writeJavaFiles(src, """ publicclassfor classes
Innerjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
} ""java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
Pathclasses baseresolve*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
FilescreateDirectories);
newJavacTask
t T7194212
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
.run(
.
import. are.
tb publicOuterextends {}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 " class java.;
*
Path testClasses = base.resolve*/
FilestestClasses
public java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(
.( riteJavaFiles,""
.files.java.lang.StringIndexOutOfBoundsException: Range [39, 26) out of bounds for length 26
."";
.writeAll"")java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
}
}
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.