Skip to content

Commit c2ab21f

Browse files
Remove leading comma from constraint
1 parent 71e30a8 commit c2ab21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ boolean isRestrictedServiceAllowed(Service service, boolean isServiceAdded) {
871871
// See if a regex for accepted uses has been specified and apply
872872
// it to the call stack.
873873
if (!isServiceAdded && !isNullOrBlank(cAcceptedUses)) {
874-
String[] optionAndValue = cAcceptedUses.split(":");
874+
String[] optionAndValue = cAcceptedUses.substring(1).split(":");
875875
if (optionAndValue.length != 2) {
876876
printStackTraceAndExit("Incorrect specification of accepted uses in constraint: " + constraint);
877877
}

0 commit comments

Comments
 (0)