openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1647965 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Date Fri, 26 Dec 2014 12:37:48 GMT
Author: rmannibucau
Date: Fri Dec 26 12:37:48 2014
New Revision: 1647965

URL: http://svn.apache.org/r1647965
Log:
validating Instance as Event is

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

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java?rev=1647965&r1=1647964&r2=1647965&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Fri Dec 26 12:37:48 2014
@@ -142,7 +142,11 @@ public class InjectionResolver
         //Check for raw event type (10.3.2)
         if (type == Event.class)
         {
-            throw new WebBeansConfigurationException("Injection point type : " + injectionPoint
+ " needs to define type argument for javax.enterprise.event.Event");
+            throw new WebBeansConfigurationException("Injection point type : " + injectionPoint
+ " needs to define type argument for " + Event.class.getName());
+        }
+        if (type == Instance.class)
+        {
+            throw new WebBeansConfigurationException("Injection point type : " + injectionPoint
+ " needs to define type argument for " + Instance.class.getName());
         }
 
         // not that happy about this check here and at runtime but few TCKs test Weld behavior
only...



Mime
View raw message