You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2022/06/20 08:01:00 UTC

[jira] [Commented] (MYFACES-4437) CDI 4.0 Compatibility

    [ https://issues.apache.org/jira/browse/MYFACES-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556249#comment-17556249 ] 

Thomas Andraschko commented on MYFACES-4437:
--------------------------------------------

i didnt upgrade the dependency because some other libs still use addAnnotatedType()

> CDI 4.0 Compatibility
> ---------------------
>
>                 Key: MYFACES-4437
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4437
>             Project: MyFaces Core
>          Issue Type: Task
>    Affects Versions: 4.0.0-RC1
>            Reporter: Melloware
>            Assignee: Thomas Andraschko
>            Priority: Major
>             Fix For: 4.0.0-RC1
>
>
> When compiling with CDI 4.0 the build fails with the following errors as it looks like some CDI BeanManager methods are missing.
> {code:xml}
> <dependency>
>     <groupId>jakarta.enterprise</groupId>
>     <artifactId>jakarta.enterprise.cdi-api</artifactId>
>     <version>4.0.1</version>
>     <scope>provided</scope>
> </dependency> {code}
> Compilation errors...
>  
> {code:sh}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project myfaces-impl: Compilation failure: Compilation failure:
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/push/EndpointImpl.java:[79,24] cannot find symbol
> [ERROR]   symbol:   method fireEvent(jakarta.faces.event.WebsocketEvent,jakarta.enterprise.util.AnnotationLiteral<jakarta.faces.event.WebsocketEvent.Opened>)
> [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/push/EndpointImpl.java:[114,24] cannot find symbol
> [ERROR]   symbol:   method fireEvent(jakarta.faces.event.WebsocketEvent,jakarta.enterprise.util.AnnotationLiteral<jakarta.faces.event.WebsocketEvent.Closed>)
> [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/util/AbstractDynamicProducer.java:[124,5] method does not override or implement a method from a supertype
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[48,45] cannot find symbol
> [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
> [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[60,45] cannot find symbol
> [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
> [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
> [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[70,49] cannot find symbol
> [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
> [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)