[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-110) PojoCache overriding toString or hashCode can trigger stack overflow
Ben Wang (JIRA)
jira-events at jboss.com
Mon Sep 18 00:34:47 EDT 2006
[ http://jira.jboss.com/jira/browse/JBCACHE-110?page=comments#action_12343446 ]
Ben Wang commented on JBCACHE-110:
----------------------------------
Currently, I have used an annotation @Reentrant and the following declaration in jboss-aop.xml:
<!-- This bind the jointpoint to specific in-memory operations. Currently in PojoUtil. -->
<bind pointcut="execution(*
@org.jboss.cache.pojo.annotation.Reentrant->toString())">
<interceptor-ref name="Reentrant"/>
</bind>
<!-- Interceptor to perform Pojo level rollback -->
<interceptor name="Reentrant" class="org.jboss.cache.pojo.interceptors.MethodReentrancyStopperInterceptor"
scope="PER_INSTANCE"/>
The annotation currently applies only to List, Set, and Map impl now.
> PojoCache overriding toString or hashCode can trigger stack overflow
> --------------------------------------------------------------------
>
> Key: JBCACHE-110
> URL: http://jira.jboss.com/jira/browse/JBCACHE-110
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: PojoCache
> Affects Versions: 1.2
> Reporter: Ben Wang
> Assigned To: Ben Wang
> Fix For: 2.0.0
>
> Original Estimate: 2 weeks
> Remaining Estimate: 2 weeks
>
> In TreeCacheAOp, certain over-riding will trigger stack overflow. THis is becuase of the recursive field interecption that results. Solution is to detect the field recusion.
> Kabir has done it in:
> org.jboss.aspects.dbc.DesignByContractAspect
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list