File tree Expand file tree Collapse file tree
byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/scaffold Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1842,13 +1842,16 @@ private static boolean isValidIdentifier(String[] identifier) {
18421842 * @return {@code true} if the given identifier is valid.
18431843 */
18441844 private static boolean isValidIdentifier (String identifier ) {
1845- if (KEYWORDS .contains (identifier ) || identifier .length () == 0 || !Character .isUnicodeIdentifierStart (identifier .charAt (0 ))) {
1845+ if (KEYWORDS .contains (identifier )
1846+ || identifier .length () == 0
1847+ || !(Character .isJavaIdentifierStart (identifier .charAt (0 ))
1848+ || Character .isUnicodeIdentifierStart (identifier .charAt (0 )))) {
18461849 return false ;
18471850 } else if (identifier .equals (PackageDescription .PACKAGE_CLASS_NAME )) {
18481851 return true ;
18491852 }
18501853 for (int index = 1 ; index < identifier .length (); index ++) {
1851- if (!Character .isUnicodeIdentifierPart (identifier .charAt (index ))) {
1854+ if (!( Character .isJavaIdentifierPart ( identifier . charAt ( index )) || Character . isUnicodeIdentifierPart (identifier .charAt (index ) ))) {
18521855 return false ;
18531856 }
18541857 }
Original file line number Diff line number Diff line change 988988 <id >surefire-enable-dynamic-attach</id >
989989 <activation >
990990 <activeByDefault >false</activeByDefault >
991- <jdk >[22 ,)</jdk >
991+ <jdk >[21 ,)</jdk >
992992 </activation >
993993 <properties >
994994 <surefire .arguments>-XX:+EnableDynamicAgentLoading</surefire .arguments>
You can’t perform that action at this time.
0 commit comments