Status: New
Owner: ----

New issue 788 by [email protected]: jpa: Object-methods like finalize become transactional, if the Type is annoptated @Transactional
http://code.google.com/p/google-guice/issues/detail?id=788

Description of the issue:

Steps to reproduce:
1. Annotate a given Type as @Transaction (not on method, but on type level)
2. Once the object gets finalized, the Interceptor kicks in

at com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:70) at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:49) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
        at 
xxx.xxx.xxx.xxx.xxx.xxx$$EnhancerByGuice$$5293155f.finalize(<generated>)
        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
        at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
        at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:190)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to