Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4173

Clean up WELD warnings : WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.3.0-beta
    • 2.3.0
    • JSR-372
    • None

    Description

      When running myfaces with WELD 2.0 I see the following warnings:

      WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.view.ViewScopeBeanHolder is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowScopeBeanHolder is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.PushContextFactoryBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowBuilderFactoryBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.config.FacesConfigBeanHolder is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketChannelTokenBuilderBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketSessionBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketViewBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketApplicationBean is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.JsfApplicationArtifactHolder is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.model.FacesDataModelClassBeanHolder is deprecated from CDI 1.1!
      [WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowScopeBeanHolder is deprecated from CDI 1.1

      We should clean this up by using BeforeBeanDiscover.addAnnotatedType(AnnotatedType<?>, String id): https://javaee.github.io/javaee-spec/javadocs/javax/enterprise/inject/spi/BeforeBeanDiscovery.html#addAnnotatedType-javax.enterprise.inject.spi.AnnotatedType-java.lang.String-

      Attachments

        1. MYFACES-4173.patch
          7 kB
          Paul Nicolucci

        Activity

          People

            paul.nicolucci Paul Nicolucci
            paul.nicolucci Paul Nicolucci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: