Skip to content

Commit

Permalink
Fix RI and test
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3260 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Jul 26, 2009
1 parent 5eaedbb commit c7ce014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions impl/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
Expand Up @@ -18,6 +18,7 @@

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -305,6 +306,10 @@ protected boolean checkInjectionPoints()
{
throw new DefinitionException("Cannot inject an InjectionPoint into a non @Dependent scoped bean " + injectionPoint);
}
if (injectionPoint.getType() instanceof TypeVariable<?>)
{
throw new DefinitionException("Cannot declare an injection point with a type variable " + injectionPoint);
}
}
return true;
}
Expand Down

0 comments on commit c7ce014

Please sign in to comment.