Anonymous | Login | Signup for a new account | 11-24-2024 21:44 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005522 | [Resin] | crash | always | 09-08-13 06:25 | 09-23-13 11:33 | ||||
Reporter | arjan_tijms | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.38 | Product Version | 4.0.36 | ||||
Product Build | |||||||||
Summary | 0005522: Generic producer method doesn't work with CanDI/Resin | ||||||||
Description |
When using a generic producer method with e.g. the following signature: @Produces @Param public <V> ParamValue<V> produce(InjectionPoint injectionPoint) Resin throws an exception with the following text: {resin-port-8080-43} classpath:META-INF/caucho/app-default.xml:55: javax.enterprise.inject.InjectionException: 'public org.omnifaces.cdi.param.ParamValue org.omnifaces.cdi.param.RequestParameterProducer.produce(javax.enterprise.inject.spi.InjectionPoint)' is an invalid @Produces method because it returns a generic type class org.omnifaces.cdi.param.ParamValue<produce_T_0> 53: default="true"/> 54: 55: <resin:if test="${! quercus_disable}"> 56: <servlet-mapping url-pattern="*.php" 57: servlet-name="resin-php" Although the CDI 1.0 spec doesn't require this to work, it's not forbidden either. Weld 1.x/2.x and OpenWebBeans 1.1.x/1.2.x do support this. A snapshot of OpenWebBeans 1.2.1 didn't support this anymore (following CDI 1.1 discussions), but after some further discussion decided that it should indeed be supported. See also https://issues.apache.org/jira/browse/OWB-893 [^] |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |