Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedBeanTypesTest not compatible with JDK 21 #476

Closed
arjantijms opened this issue Jul 11, 2023 · 2 comments · Fixed by #477
Closed

ManagedBeanTypesTest not compatible with JDK 21 #476

arjantijms opened this issue Jul 11, 2023 · 2 comments · Fixed by #477

Comments

@arjantijms
Copy link

arjantijms commented Jul 11, 2023

ManagedBeanTypesTest in the CDI TCK Passes on JDK 17, but on JDK 21 (ea30) contains an extra collection, resulting in the assertion error:

Set 

[
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>>, 

interface java.util.SequencedCollection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, 

interface java.util.Collection<org.jboss.cdi.tck.tests.definition.bean.types.Vulture<java.lang.Integer>>, 
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)
@manovotn manovotn transferred this issue from jakartaee/cdi Jul 12, 2023
@manovotn
Copy link
Contributor

I've moved this issue into the TCK repo.

@Ladicek
Copy link
Contributor

Ladicek commented Jul 12, 2023

Yeah, this would be expected with the addition of sequenced collections into the JDK. It would probably be best if the test used dedicated types instead of JDK types, as those are not under the TCK's control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants