This is an automated email from the ASF dual-hosted git repository. thiagohp pushed a commit to branch javax in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/javax by this push: new 9e4be395f TAP5-2799: Thread lockup when calling Session.getAttribute() 9e4be395f is described below commit 9e4be395f7f6f29f955034fa63e69d6382d1656e Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br> AuthorDate: Wed Nov 27 16:25:20 2024 -0300 TAP5-2799: Thread lockup when calling Session.getAttribute() --- .../java/org/apache/tapestry5/http/internal/services/SessionImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java b/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java index 01047d51b..3ca79481e 100644 --- a/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java +++ b/tapestry-http/src/main/java/org/apache/tapestry5/http/internal/services/SessionImpl.java @@ -1,4 +1,4 @@ -// Copyright 2006-2013 The Apache Software Foundation +// Copyright 2006-2024 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -47,7 +47,7 @@ public class SessionImpl implements Session public Object getAttribute(String name) { - lock.acquireWriteLock(); + lock.acquireReadLock(); return session.getAttribute(name); }