Author: jbalunas(a)redhat.com
Date: 2008-07-07 14:46:28 -0400 (Mon, 07 Jul 2008)
New Revision: 47
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/model/JmsComponentModel.java
Log:
Fixed a compile time error by casting to the specified return type - the same way that it
is done in the AbstractComponentModel.
webbeans-impl/src/main/java/org/jboss/webbeans/model/JmsComponentModel.java:[43,21] type
parameters of <T>java.lang.Class<? extends T> cannot be determined; no unique
maximal instance exists for type variable T with upper bounds
T,java.lang.Object,java.lang.Object
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/model/JmsComponentModel.java
===================================================================
---
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/model/JmsComponentModel.java 2008-07-06
18:46:14 UTC (rev 46)
+++
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/model/JmsComponentModel.java 2008-07-07
18:46:28 UTC (rev 47)
@@ -27,10 +27,11 @@
private String jndiName;
private ComponentConstructor<T> constructor;
+ @SuppressWarnings("unchecked")
public JmsComponentModel(AnnotatedItem xmlAnnotatedItem, ContainerImpl container)
{
AnnotatedItem annotatedItem = new MutableAnnotatedItem(null, new
HashMap<Class<? extends Annotation>, Annotation>());
- type = initType(xmlAnnotatedItem);
+ type = (Class<? extends T>)initType(xmlAnnotatedItem);
bindingTypes = initBindingTypes(annotatedItem, xmlAnnotatedItem);
scopeType = new DependentBinding();
checkBindingTypesAllowed(bindingTypes, type);
Show replies by date