This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new fa38958d9e Java 8 compatibility
fa38958d9e is described below
commit fa38958d9e6b650397a13d30f05859f9a789a18b
Author: remm <[email protected]>
AuthorDate: Fri May 22 20:12:33 2026 +0200
Java 8 compatibility
---
java/org/apache/catalina/realm/MemoryRealm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/realm/MemoryRealm.java
b/java/org/apache/catalina/realm/MemoryRealm.java
index 0766d6b491..58c35c1bd1 100644
--- a/java/org/apache/catalina/realm/MemoryRealm.java
+++ b/java/org/apache/catalina/realm/MemoryRealm.java
@@ -156,7 +156,7 @@ public class MemoryRealm extends RealmBase {
// Accumulate the list of roles for this user
List<String> list = new ArrayList<>();
- if (roles != null && !roles.isBlank()) {
+ if (roles != null && roles.trim().length() > 0) {
roles += ",";
while (true) {
int comma = roles.indexOf(',');
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]