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 009a67493 Revert "TAP5-2799: Thread lockup when calling 
Session.getAttribute()"
009a67493 is described below

commit 009a67493f897829e17e0593f23f7ad0f5876ee4
Author: Thiago H. de Paula Figueiredo <thi...@arsmachina.com.br>
AuthorDate: Wed Nov 27 16:30:43 2024 -0300

    Revert "TAP5-2799: Thread lockup when calling Session.getAttribute()"
    
    This reverts commit 9e4be395f7f6f29f955034fa63e69d6382d1656e.
---
 .../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 3ca79481e..01047d51b 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-2024 The Apache Software Foundation
+// Copyright 2006-2013 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.acquireReadLock();
+        lock.acquireWriteLock();
 
         return session.getAttribute(name);
     }

Reply via email to