# CDI TCK 4.1 Results (Java SE 21)
## Compatibility Certification Information
Issue: https://github.com/jakartaee/cdi/issues/789
- [x] Organization Name ("Organization") and, if applicable, URL:
Red Hat, https://www.redhat.com/
- [x] Product Name, Version and download URL (if applicable):
Weld 6.0.0.Beta1, https://weld.cdi-spec.org/download/
- [x] Specification Name, Version and download URL:
Jakarta Contexts Dependency Injection 4.1
- [x] TCK Version, digital SHA-256 fingerprint and download URL:
https://download.eclipse.org/ee4j/cdi/4.1/cdi-tck-4.1.0-dist.zip,
446029ee1ce694d2a9ae8893d16be7afd7e1c0ed8705064b7095af174cf97ea0
- [x] Public URL of TCK Results Summary:
https://github.com/jakartaredhat/cdi-tck/wiki/Jakarta-CDI-4.1-TCK-Weld-Results-17.md
https://github.com/jakartaredhat/cdi-tck/wiki/Jakarta-CDI-4.1-TCK-Weld-Results-21.md
- [x] Any Additional Specification Certification Requirements:
Signature tests passed
- [x] Java runtime used to run the implementation:
OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)
OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
- [x] Summary of the information for the certification environment, operating system, cloud, ...:
Darwin Scotts-Mac-Studio.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Nov 9 00:42:05 PST 2023; root:xnu-8020.240.18.705.10~1/RELEASE_ARM64_T6000 arm64
- [x] By checking this box I acknowledge that the Organization I represent accepts the terms of the [EFTL](https://www.eclipse.org/legal/tck.php).
- [x] By checking this box I attest that all TCK requirements have been met, including any compatibility rules.
## Signature Test
```shell
starksm@Scotts-Mac-Studio artifacts % $JAVA_HOME/bin/java -version
openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode)
starksm@Scotts-Mac-Studio artifacts %
starksm@Scotts-Mac-Studio artifacts % mvn -f sigtest-weld-pom.xml verify
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< jakarta.enterprise:cdi-tck-weld-sigtest >---------------
[INFO] Building CDI TCK Signature Tests 4.1
[INFO] from sigtest-weld-pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ cdi-tck-weld-sigtest ---
[INFO] skip non existing resourceDirectory /private/tmp/cdi-tck-4.1.0/artifacts/src/main/resources
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ cdi-tck-weld-sigtest ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ cdi-tck-weld-sigtest ---
[INFO] skip non existing resourceDirectory /private/tmp/cdi-tck-4.1.0/artifacts/src/test/resources
[INFO]
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ cdi-tck-weld-sigtest ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.2.2:test (default-test) @ cdi-tck-weld-sigtest ---
[INFO] No tests to run.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ cdi-tck-weld-sigtest ---
[INFO] Building jar: /private/tmp/cdi-tck-4.1.0/artifacts/target/cdi-tck-weld-sigtest-4.1.jar
[INFO]
[INFO] --- cyclonedx:2.7.9:makeAggregateBom (default) @ cdi-tck-weld-sigtest ---
[INFO] CycloneDX: Resolving Dependencies
[INFO] CycloneDX: Creating BOM version 1.4 with 12 component(s)
[INFO] CycloneDX: Writing and validating BOM (XML): /private/tmp/cdi-tck-4.1.0/artifacts/target/bom.xml
[INFO] attaching as cdi-tck-weld-sigtest-4.1-cyclonedx.xml
[INFO] CycloneDX: Writing and validating BOM (JSON): /private/tmp/cdi-tck-4.1.0/artifacts/target/bom.json
[WARNING] Unknown keyword additionalItems - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
[INFO] attaching as cdi-tck-weld-sigtest-4.1-cyclonedx.json
[INFO]
[INFO] --- dependency:3.6.1:unpack-dependencies (unpack-dependencies) @ cdi-tck-weld-sigtest ---
[INFO] org.jboss.weld:weld-core-impl:jar:6.0.0.Beta1 already exists in destination.
[INFO] org.jboss.weld:weld-api:jar:6.0.Beta2 already exists in destination.
[INFO] jakarta.enterprise:jakarta.enterprise.cdi-api:jar:4.1.0.Beta1 already exists in destination.
[INFO] jakarta.enterprise:jakarta.enterprise.lang-model:jar:4.1.0.Beta1 already exists in destination.
[INFO] jakarta.inject:jakarta.inject-api:jar:2.0.1 already exists in destination.
[INFO] jakarta.enterprise:jakarta.enterprise.cdi-el-api:jar:4.1.0.Beta1 already exists in destination.
[INFO] org.jboss.weld:weld-spi:jar:6.0.Beta2 already exists in destination.
[INFO] org.jboss.classfilewriter:jboss-classfilewriter:jar:1.3.0.Final already exists in destination.
[INFO] jakarta.annotation:jakarta.annotation-api:jar:2.1.1 already exists in destination.
[INFO] jakarta.el:jakarta.el-api:jar:5.0.1 already exists in destination.
[INFO] jakarta.interceptor:jakarta.interceptor-api:jar:2.2.0-RC1 already exists in destination.
[INFO] org.jboss.logging:jboss-logging:jar:3.5.0.Final already exists in destination.
[INFO]
[INFO] --- sigtest:2.1:check (sigtest) @ cdi-tck-weld-sigtest ---
[INFO] Packages: jakarta.decorator,jakarta.enterprise.**,jakarta.interceptor
Mar 03, 2024 10:59:14 PM com.sun.tdk.signaturetest.SignatureTest parseParameters
INFO: SignatureTest.args: [-FileName, /private/tmp/cdi-tck-4.1.0/artifacts/cdi-tck-core-impl-4.1.0-sigtest-jdk17.sig, -static, -b, -Mode, bin, -ApiVersion, 4.1, -PackageWithoutSubpackages, jakarta.decorator, -Package, jakarta.enterprise, -PackageWithoutSubpackages, jakarta.interceptor, -BootCP, -Classpath, /private/tmp/cdi-tck-4.1.0/artifacts/target/classes:/Users/starksm/.m2/repository/org/jboss/weld/weld-core-impl/6.0.0.Beta1/weld-core-impl-6.0.0.Beta1.jar:/Users/starksm/.m2/repository/org/jboss/weld/weld-api/6.0.Beta2/weld-api-6.0.Beta2.jar:/Users/starksm/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/4.1.0.Beta1/jakarta.enterprise.cdi-api-4.1.0.Beta1.jar:/Users/starksm/.m2/repository/jakarta/enterprise/jakarta.enterprise.lang-model/4.1.0.Beta1/jakarta.enterprise.lang-model-4.1.0.Beta1.jar:/Users/starksm/.m2/repository/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar:/Users/starksm/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-el-api/4.1.0.Beta1/jakarta.enterprise.cdi-el-api-4.1.0.Beta1.jar:/Users/starksm/.m2/repository/org/jboss/weld/weld-spi/6.0.Beta2/weld-spi-6.0.Beta2.jar:/Users/starksm/.m2/repository/org/jboss/classfilewriter/jboss-classfilewriter/1.3.0.Final/jboss-classfilewriter-1.3.0.Final.jar:/Users/starksm/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/starksm/.m2/repository/jakarta/el/jakarta.el-api/5.0.1/jakarta.el-api-5.0.1.jar:/Users/starksm/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/2.2.0-RC1/jakarta.interceptor-api-2.2.0-RC1.jar:/Users/starksm/.m2/repository/org/jboss/logging/jboss-logging/3.5.0.Final/jboss-logging-3.5.0.Final.jar]
[INFO] SignatureTest report
Base version: 4.1.0-SNAPSHOT
Tested version: 4.1
Check mode: bin [throws removed]
Constant checking: on
Warning: The return type java.lang.reflect.Member can't be resolved
Warning: The return type java.lang.reflect.Member can't be resolved
Warning: The return type java.lang.reflect.Member can't be resolved
[INFO] /private/tmp/cdi-tck-4.1.0/artifacts/cdi-sig-report.xml: 0 failures in /private/tmp/cdi-tck-4.1.0/artifacts/cdi-tck-core-impl-4.1.0-sigtest-jdk17.sig
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.264 s
[INFO] Finished at: 2024-03-03T22:59:15-06:00
[INFO] ------------------------------------------------------------------------
starksm@Scotts-Mac-Studio artifacts % cat cdi-sig-report.xml
```
## Lang Model TCK
```shell
starksm@Scotts-Mac-Studio lang-model-tck-runner % mvn test -Dincontainer
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jboss.weld:lang-model-tck-runner:jar:${cdi.tck.version}
[WARNING] 'version' contains an expression but should be a constant. @ line 9, column 14
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 199, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 177, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------< org.jboss.weld:lang-model-tck-runner >----------------
[INFO] Building CDI Lite Language Model TCK Runner ${cdi.tck.version}
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- enforcer:3.4.1:enforce (enforce-jboss-home-is-set) @ lang-model-tck-runner ---
[INFO] Skipping Rule Enforcement.
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ lang-model-tck-runner ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources from src/test/wildfly to target/classes
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ lang-model-tck-runner ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ lang-model-tck-runner ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /private/tmp/cdi-tck-4.1.0/weld/lang-model-tck-runner/src/test/resources
[INFO]
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ lang-model-tck-runner ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- surefire:3.2.2:test (default-test) @ lang-model-tck-runner ---
[WARNING] Parameter 'systemProperties' is deprecated: Use systemPropertyVariables instead.
[INFO] Using auto detected provider org.apache.maven.surefire.junit4.JUnit4Provider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.jboss.weld.lang.model.tck.LangModelTckTest
2024-03-03 23:03:00 INFO threads:52 - JBoss Threads version 2.4.0.Final
2024-03-03 23:03:00 INFO ManagedDeployableContainer:72 - Starting container with: [/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin/java, -D[Standalone], -Xms128m, -Xmx1g, -ea, -ea, -DcdiTckExcludeDummy=true, -Djboss.home.dir=/tmp/wildfly-31.0.1.Final, --add-exports=java.desktop/sun.awt=ALL-UNNAMED, --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED, --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED, --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED, --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.lang.invoke=ALL-UNNAMED, --add-opens=java.base/java.lang.reflect=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.net=ALL-UNNAMED, --add-opens=java.base/java.security=ALL-UNNAMED, --add-opens=java.base/java.util=ALL-UNNAMED, --add-opens=java.base/java.util.concurrent=ALL-UNNAMED, --add-opens=java.management/javax.management=ALL-UNNAMED, --add-opens=java.naming/javax.naming=ALL-UNNAMED, --add-modules=java.se, -Djava.security.manager=allow, -Djboss.home.dir=/tmp/wildfly-31.0.1.Final, -Djboss.server.base.dir=/tmp/wildfly-31.0.1.Final/standalone, -Djboss.server.log.dir=/tmp/wildfly-31.0.1.Final/standalone/log, -Djboss.server.config.dir=/tmp/wildfly-31.0.1.Final/standalone/configuration, -Dorg.jboss.boot.log.file=/tmp/wildfly-31.0.1.Final/standalone/log/server.log, -Dlogging.configuration=file:/tmp/wildfly-31.0.1.Final/standalone/configuration/logging.properties, -jar, /tmp/wildfly-31.0.1.Final/jboss-modules.jar, -mp, /tmp/wildfly-31.0.1.Final/modules, org.jboss.as.standalone, -c=standalone.xml]
2024-03-03 23:03:00 INFO remoting:99 - JBoss Remoting version 5.0.27.Final
2024-03-03 23:03:00 INFO xnio:95 - XNIO version 3.8.9.Final
2024-03-03 23:03:00 INFO nio:58 - XNIO NIO Implementation Version 3.8.9.Final
2024-03-03 23:03:00 INFO security:55 - ELY00001: WildFly Elytron version 2.1.0.Final
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.731 s -- in org.jboss.weld.lang.model.tck.LangModelTckTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.526 s
[INFO] Finished at: 2024-03-03T23:03:04-06:00
[INFO] ------------------------------------------------------------------------
starksm@Scotts-Mac-Studio lang-model-tck-runner %
```
## SE TCK
```shell
starksm@Scotts-Mac-Studio jboss-tck-runner % mvn test -Dincontainer=se
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.jboss.weld:weld-jboss-runner-tck >----------------
...
INFO: WELD-ENV-002001: Weld SE container 58573580-9a2b-4e8d-b543-219aa51c661b shut down
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.01 s -- in TestSuite
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
[INFO]
starksm@Scotts-Mac-Studio jboss-tck-runner %
```
[Full log](se-tck-21.log)
## Core TCK
```shell
starksm@Scotts-Mac-Studio jboss-tck-runner % mvn test -Dincontainer
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.jboss.weld:weld-jboss-runner-tck >----------------
[INFO] Building CDI TCK runner (4.1) for Weld (WildFly) 6.0.0.Beta1
...
[INFO] Tests run: 1318, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 244.9 s -- in TestSuite
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1318, Failures: 0, Errors: 0, Skipped: 0
[INFO]
```
[Full log](core-tck-21.log)