6 Replies Latest reply on Sep 3, 2015 8:16 AM by Chris Rankin

    WELD 2.2 branch no longer working with JDK6

    Chris Rankin Novice

      Hi,

       

      I tried upgrading an old JDK6-bound component from WELD 2.1.2.Final to WELD 2.2.15.Final, but the deployment failed with this error:

      Caused by: java.lang.NoClassDefFoundError: java/util/Objects

              at org.jboss.weld.injection.VirtualMethodInjectionPoint.getMethod(VirtualMethodInjectionPoint.java:61)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)

              at org.jboss.weld.util.Beans.callInitializers(Beans.java:399)

              at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:387)

              at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:70)

              at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)

              at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:72)

              at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:121)

       

      It looks like java.util.Objects first appeared with JDK7, which means that WELD >= 2.2.8.Final is now incompatible with JDK6. Was this intentional, please? Because the final comment in WELD-1812 suggests that it isn't. (And besides, dropping support for a JDK version is quite a large change for a minor release).

       

      Cheers,

      Chris