[
https://issues.apache.org/jira/browse/TOMEE-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015145#comment-14015145
]
hanasaki jiji commented on TOMEE-1235:
--------------------------------------
Build completes with success as does all unit tests if the return is cast to
(T)
However, there are many stacktraces in the build output and NPE's that on the
surface look like they should not be ignored.
change
{code}
public T createNewPojo(final CreationalContext<T> creationalContext) {
return
super.newInstance(CreationalContextImpl.class.cast(creationalContext));
}
{code}
to
{code}
public T createNewPojo(final CreationalContext<T> creationalContext) {
return (T)
super.newInstance(CreationalContextImpl.class.cast(creationalContext));
}
{code}
> tomee 1.6.0.2 build fails : org/apache/openejb/cdi/CdiEjbBean.java:[397,37]
> incompatible types: java.lang.Object cannot be converted to T
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TOMEE-1235
> URL: https://issues.apache.org/jira/browse/TOMEE-1235
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.6.0.2
> Environment: debian linux 64 bit, jdk 8, netbeans 8,
> Reporter: hanasaki jiji
> Priority: Blocker
>
> from mvn clean build of Apache OpenEJB
> org/apache/openejb/cdi/CdiEjbBean.java:[397,37] incompatible types:
> java.lang.Object cannot be converted to T
--
This message was sent by Atlassian JIRA
(v6.2#6252)