Skip to content

Commit 052dbde

Browse files
committed
Empty class names are not valid
1 parent 213764a commit 052dbde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/ClassNameSupport.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ private static boolean isValidWrappingArrayElementType(String name, int startInd
181181
}
182182

183183
private static boolean isValidFullyQualifiedClassName(String name, int startIndex, int endIndex, char packageSeparator) {
184+
if (name.isEmpty()) {
185+
return false;
186+
}
184187
int lastPackageSeparatorIndex = -1;
185188
for (int i = startIndex; i < endIndex; ++i) {
186189
char current = name.charAt(i);

0 commit comments

Comments
 (0)