geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1796575 - /geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
Date Mon, 29 May 2017 06:34:58 GMT
Author: struberg
Date: Mon May 29 06:34:58 2017
New Revision: 1796575

URL: http://svn.apache.org/viewvc?rev=1796575&view=rev
Log:
GERONIMO-6553 fix disposes flag

An Unmanaged instance must only be disposed once

Modified:
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java?rev=1796575&r1=1796574&r2=1796575&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
Mon May 29 06:34:58 2017
@@ -191,6 +191,7 @@ public class Unmanaged<T>
             injectionTarget.dispose(instance);
             creationalContext.release();
 
+            disposed = true;
             return this;
         }
 



Mime
View raw message