This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/master by this push:
new d42450ee6 Revert "TAP5-2799: Thread lockup when calling
Session.getAttribute()"
d42450ee6 is described below
commit d42450ee603dad2dc3b0e60f66b82341dac25d8c
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Wed Nov 27 16:31:10 2024 -0300
Revert "TAP5-2799: Thread lockup when calling Session.getAttribute()"
This reverts commit 9a08e0afc63c3af59e2cd706cd1864d3689f57c2.
---
.../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 d1ae14bc7..bc938e97e 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);
}