Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19789

[Weld] - CombinedHierarchyTest fails on JDK 21 in Relaxed construction mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • CDI / Weld
    • None
    • Hide
      1. Use JDK21
      2. Clone weld-core
      3. Switch to 5.1.3.Final tag
      4. export JBOSS_HOME=/path/to/eap/or/wildfly
      5. run "mvn clean verify -Dincontainer -Dorg.jboss.weld.construction.relaxed=true -Dtest=ManagedBeanTypesTest -Dsurefire.failIfNoSpecifiedTests=false"
      Show
      Use JDK21 Clone weld-core Switch to 5.1.3.Final tag export JBOSS_HOME=/path/to/eap/or/wildfly run "mvn clean verify -Dincontainer -Dorg.jboss.weld.construction.relaxed=true -Dtest=ManagedBeanTypesTest -Dsurefire.failIfNoSpecifiedTests=false"
    • ---
    • ---

      Weld version used: 5.1.3.Final

      Weld testing on JDK 21 introduced by https://github.com/weld/core/pull/2913 

      Unfortunately the PR only solves the issue for "Strict" construction mode, similar issue can still be seen on "Relaxed".

      Error message:

      Set [interface java.util.Collection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, class org.jboss.cdi.tck.tests.definition.bean.types.Flock, interface java.util.SequencedCollection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, java.util.List<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, class java.lang.Object, interface java.lang.Iterable<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>] (6) does not match array [class java.lang.Object, class org.jboss.cdi.tck.tests.definition.bean.types.Flock, java.util.List<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, java.util.Collection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, java.lang.Iterable<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>] (5)

              Unassigned Unassigned
              ogerzica@redhat.com Ondrej Gerzicak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: