openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r772423 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java
Date Wed, 06 May 2009 21:01:01 GMT
Author: gerdogdu
Date: Wed May  6 21:01:01 2009
New Revision: 772423

URL: http://svn.apache.org/viewvc?rev=772423&view=rev
Log:
Java Bug for T

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java?rev=772423&r1=772422&r2=772423&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/ChildActivityManager.java
Wed May  6 21:01:01 2009
@@ -242,7 +242,7 @@
         try
         {
             
-            obj =  super.getInstanceToInject(injectionPoint, context); //X ugly <T>
due to javac bug 6302954
+            obj = (T) super.getInstanceToInject(injectionPoint, context); //X ugly <T>
due to javac bug 6302954
             
         }catch(UnsatisfiedDependencyException e1)
         {            
@@ -252,7 +252,7 @@
         
         if (obj == null) 
         {
-            obj = getParent().getInstanceToInject(injectionPoint, context); //X ugly <T>
due to javac bug 6302954
+            obj = (T)getParent().getInstanceToInject(injectionPoint, context); //X ugly <T>
due to javac bug 6302954
         }
         return obj;
     }
@@ -348,4 +348,4 @@
         return set;
     }
 
- }
\ No newline at end of file
+ }



Mime
View raw message