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

Incorrect type assumptions in EnvInjectionTest#testResourceBeanTypes under Java SE 12+ #238

Closed
starksm64 opened this issue Jun 6, 2021 · 0 comments
Assignees

Comments

@starksm64
Copy link
Contributor

The org.jboss.cdi.tck.tests.implementation.simple.resource.env.EnvInjectionTest#testResourceBeanTypes is validating the number of types seen in the Bean type with the Greeting annotation. It is expecting a total of four types, which through Java SE 11 would include:
java.lang.Boolean
java.io.Serializable
java.lang.Comparable
java.lang.Object

In Java SE 12 the java.lang.Boolean class includes an additional java.lang.Constable interface, and so this test fails when run under a JVM later than Java SE 11. The test should just compare the expected types to what are seen on the JVM local Boolean.class to avoid JVM version dependencies.

@starksm64 starksm64 self-assigned this Jun 6, 2021
starksm64 added a commit that referenced this issue Jun 7, 2021
…re java.lang type changes

Signed-off-by: Scott M Stark <starksm64@gmail.com>
#238
starksm64 added a commit that referenced this issue Jun 16, 2021
Signed-off-by: Scott M Stark <starksm64@gmail.com>
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

No branches or pull requests

1 participant