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 bed949ee3 TAP5-2779: trying to avoid an stack overflow error
bed949ee3 is described below
commit bed949ee389443751f2986c8a8336b9b0f25ca14
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sat Nov 9 15:29:49 2024 -0300
TAP5-2779: trying to avoid an stack overflow error
---
.../tapestry5/internal/services/ComponentDependencyRegistryImpl.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentDependencyRegistryImpl.java
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentDependencyRegistryImpl.java
index 6c62350e0..24c0b2a89 100644
---
a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentDependencyRegistryImpl.java
+++
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentDependencyRegistryImpl.java
@@ -201,6 +201,11 @@ public class ComponentDependencyRegistryImpl implements
ComponentDependencyRegis
{
final String className = component.getName();
+
+ if (alreadyProcessed.contains(className)) {
+ return;
+ }
+
final Set<Class<?>> furtherDependencies = new HashSet<>();
Consumer<Class<?>> processClass = furtherDependencies::add;
Consumer<String> processClassName = s -> {