openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1493413 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Date Sat, 15 Jun 2013 20:21:18 GMT
Author: arne
Date: Sat Jun 15 20:21:18 2013
New Revision: 1493413

URL: http://svn.apache.org/r1493413
Log:
OWB-846: treating UnproxiableResolutionException as DeploymentException

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java?rev=1493413&r1=1493412&r2=1493413&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Sat Jun 15 20:21:18 2013
@@ -74,6 +74,7 @@ import javax.enterprise.context.NormalSc
 import javax.enterprise.inject.AmbiguousResolutionException;
 import javax.enterprise.inject.Model;
 import javax.enterprise.inject.Specializes;
+import javax.enterprise.inject.UnproxyableResolutionException;
 import javax.enterprise.inject.UnsatisfiedResolutionException;
 import javax.enterprise.inject.spi.AnnotatedField;
 import javax.enterprise.inject.spi.AnnotatedMethod;
@@ -216,6 +217,11 @@ public class BeansDeployer
         {
             throw new DeploymentException(e);
         }
+        catch (UnproxyableResolutionException e)
+        {
+            // the tck expects a DeploymentException, but it really should be a DefinitionException,
see i.e. https://issues.jboss.org/browse/CDITCK-346
+            throw new DeploymentException(e);
+        }
         catch (WebBeansConfigurationException e)
         {
             throw new DeploymentException(e);



Mime
View raw message