Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28093

[Weld] - CombinedHierarchyTest fails on JDK 21

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • CDI / Weld
    • None
    • False
    • None
    • False
    • 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.2.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:

      Relaxed:

      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)

      Strict:

      Set [interface java.lang.Iterable<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.Collection<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>>, interface java.util.SequencedCollection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, class java.lang.Object] (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: