christianPa / full-hibernate-plugin-for-struts2

Automatically exported from code.google.com/p/full-hibernate-plugin-for-struts2
0 stars 0 forks source link

Stack overflow in injectHibernateCoreSessionByAnnotation method #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. creating singleton class ('RegistryContext') with static instance field
('private static RegistryContext instance;').

What is the expected output? What do you see instead?
injectHibernateCoreSessionByAnnotation recursion with stack overflow.

What version of the product are you using? On what operating system?
2.1.2 GA

Please provide any additional information below.
Overflow occurs because of the first field in my 'RegistryContext' 
singleton object is a singleton instance reference i.e. reference to 
itself.
You mentioned in 'issue 4'-reply that you would use an 'injection cash' in 
version 2.1 and in sources of 'SessionTransactionInjectorInterceptor' 
class I've found an 'injectionCacheMap' field, but it is never used in 
forward code.

Original issue reported on code.google.com by Andrew.G...@gmail.com on 17 Jan 2010 at 9:36

GoogleCodeExporter commented 8 years ago
Fixed with 2.1.3

Original comment by jyoshiriro on 18 Jan 2010 at 8:22