Skip to content

Commit 4f09f4c

Browse files
authored
Merge pull request #24904 from arjantijms/8.0
Merge master into 8.0
2 parents df375ad + a4b0b9d commit 4f09f4c

20 files changed

Lines changed: 522 additions & 263 deletions

File tree

appserver/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/ConnectionPool.java

Lines changed: 185 additions & 61 deletions
Large diffs are not rendered by default.

appserver/connectors/connectors-runtime/src/test/java/com/sun/enterprise/resource/pool/ConnectionPoolTest.java

Lines changed: 229 additions & 58 deletions
Large diffs are not rendered by default.

appserver/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<tyrus.version>2.2.0-M1</tyrus.version>
9090

9191
<!-- Jakarta Concurrency -->
92-
<jakarta.concurrent-api.version>3.1.0-RC2</jakarta.concurrent-api.version>
92+
<jakarta.concurrent-api.version>3.1.0</jakarta.concurrent-api.version>
9393
<concurro.version>3.1.0-M3</concurro.version>
9494

9595
<!-- Jakarta Interceptors -->
@@ -98,7 +98,7 @@
9898
<!-- Jakarta Security + Authentication/Authorization -->
9999
<!-- APIs -->
100100
<jakarta.security-api.version>4.0.0-M2</jakarta.security-api.version>
101-
<jakarta.authorization-api.version>3.0.0-M4</jakarta.authorization-api.version>
101+
<jakarta.authorization-api.version>3.0.0</jakarta.authorization-api.version>
102102
<jakarta.authentication-api.version>3.1.0-M1</jakarta.authentication-api.version>
103103
<!-- Implementations -->
104104
<soteria.version>4.0.0-M3</soteria.version>
@@ -763,7 +763,7 @@
763763
<dependency>
764764
<groupId>org.codehaus.plexus</groupId>
765765
<artifactId>plexus-utils</artifactId>
766-
<version>4.0.0</version>
766+
<version>4.0.1</version>
767767
</dependency>
768768
</dependencies>
769769
</plugin>

appserver/tests/application/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<plugin>
153153
<groupId>com.sun.xml.ws</groupId>
154154
<artifactId>jaxws-maven-plugin</artifactId>
155-
<version>3.0.0</version>
155+
<version>4.0.2</version>
156156
<executions>
157157
<execution>
158158
<id>jaxws-generate</id>

appserver/tests/appserv-tests/lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<dependency>
102102
<groupId>org.testng</groupId>
103103
<artifactId>testng</artifactId>
104-
<version>7.9.0</version>
104+
<version>7.10.1</version>
105105
</dependency>
106106
</dependencies>
107107

appserver/tests/tck/cdi/cdi-model/pom.xml

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,14 @@
5353
<artifactId>cdi-tck-lang-model</artifactId>
5454
<version>${cdi.tck-4-0.version}</version>
5555
</dependency>
56-
<dependency>
57-
<groupId>org.jboss.weld</groupId>
58-
<artifactId>weld-lite-extension-translator</artifactId>
59-
<version>${weld.version}</version>
60-
</dependency>
61-
<dependency>
62-
<groupId>org.jboss.weld</groupId>
63-
<artifactId>weld-core-test-common</artifactId>
64-
<version>${weld.version}</version>
65-
</dependency>
66-
<dependency>
67-
<groupId>org.jboss.weld</groupId>
68-
<artifactId>weld-core-impl</artifactId>
69-
<version>${weld.version}</version>
70-
</dependency>
7156
</dependencies>
7257
</dependencyManagement>
7358

7459
<dependencies>
7560
<dependency>
76-
<groupId>org.jboss.weld</groupId>
77-
<artifactId>weld-lite-extension-translator</artifactId>
61+
<groupId>jakarta.enterprise</groupId>
62+
<artifactId>jakarta.enterprise.cdi-api</artifactId>
63+
<scope>provided</scope>
7864
</dependency>
7965

8066
<dependency>
@@ -84,57 +70,19 @@
8470
<scope>test</scope>
8571
</dependency>
8672

87-
<dependency>
88-
<groupId>org.jboss.weld</groupId>
89-
<artifactId>weld-core-test-common</artifactId>
90-
<scope>test</scope>
91-
</dependency>
92-
93-
<dependency>
94-
<groupId>org.jboss.weld</groupId>
95-
<artifactId>weld-core-impl</artifactId>
96-
<scope>test</scope>
97-
</dependency>
98-
9973
<dependency>
10074
<groupId>jakarta.enterprise</groupId>
10175
<artifactId>cdi-tck-lang-model</artifactId>
10276
<scope>test</scope>
10377
</dependency>
10478

105-
<dependency>
106-
<groupId>org.jboss.weld.module</groupId>
107-
<artifactId>weld-web</artifactId>
108-
<version>${weld.version}</version>
109-
</dependency>
110-
111-
112-
<dependency>
113-
<groupId>jakarta.enterprise</groupId>
114-
<artifactId>cdi-tck-api</artifactId>
115-
<version>${cdi.tck-4-0.version}</version>
116-
<exclusions>
117-
<exclusion>
118-
<groupId>jakarta.el</groupId>
119-
<artifactId>jakarta.el-api</artifactId>
120-
</exclusion>
121-
</exclusions>
122-
</dependency>
123-
12479
<dependency>
12580
<groupId>junit</groupId>
12681
<artifactId>junit</artifactId>
12782
<version>4.13.2</version>
12883
<scope>test</scope>
12984
</dependency>
13085

131-
<dependency>
132-
<groupId>commons-lang</groupId>
133-
<artifactId>commons-lang</artifactId>
134-
<version>2.6</version>
135-
<scope>test</scope>
136-
</dependency>
137-
13886
<!--
13987
The Arquillian connector that starts GlassFish and deploys archives to it.
14088
-->
@@ -143,7 +91,6 @@
14391
<artifactId>arquillian-glassfish-server-managed</artifactId>
14492
<version>1.4</version>
14593
</dependency>
146-
14794
</dependencies>
14895

14996

@@ -211,6 +158,9 @@
211158
<glassfish.home>${glassfish.root}/glassfish8</glassfish.home>
212159
<glassfish.enableAssertions>:org.jboss.cdi...</glassfish.enableAssertions>
213160
</systemPropertyVariables>
161+
<includes>
162+
<include>CDILangModelTCKRunner.java</include>
163+
</includes>
214164
</configuration>
215165
</plugin>
216166

appserver/tests/tck/cdi/cdi-model/src/test/java/org/glassfish/tck/cdi/lang/model/CDILangModelTCKRunner.java

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation. All rights reserved.
2+
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -15,28 +15,29 @@
1515
*/
1616
package org.glassfish.tck.cdi.lang.model;
1717

18-
import static org.glassfish.tck.cdi.lang.model.LangModelVerifierBuildCompatibleExtension.langModelVerifierBuildCompatibleExtensionPassed;
19-
import static org.jboss.shrinkwrap.api.BeanDiscoveryMode.ALL;
20-
import static org.junit.Assert.assertTrue;
18+
import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension;
2119

2220
import org.jboss.arquillian.container.test.api.Deployment;
2321
import org.jboss.arquillian.junit.Arquillian;
2422
import org.jboss.cdi.lang.model.tck.LangModelVerifier;
2523
import org.jboss.shrinkwrap.api.ShrinkWrap;
24+
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
2625
import org.jboss.shrinkwrap.api.spec.WebArchive;
27-
import org.jboss.shrinkwrap.impl.BeansXml;
2826
import org.junit.Test;
2927
import org.junit.runner.RunWith;
3028

31-
import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension;
32-
import jakarta.enterprise.inject.spi.Extension;
29+
import static java.lang.System.Logger.Level.INFO;
30+
import static org.glassfish.tck.cdi.lang.model.LangModelVerifierBuildCompatibleExtension.langModelVerifierBuildCompatibleExtensionPassed;
31+
import static org.junit.Assert.assertTrue;
3332

3433
@RunWith(Arquillian.class)
3534
public class CDILangModelTCKRunner {
3635

36+
private static final System.Logger LOG = System.getLogger(CDILangModelTCKRunner.class.getName());
37+
3738
@Deployment
3839
public static WebArchive deploy() {
39-
WebArchive archive= ShrinkWrap.create(WebArchive.class)
40+
WebArchive archive = ShrinkWrap.create(WebArchive.class)
4041

4142
// The package we are testing
4243
.addPackage(LangModelVerifier.class.getPackage())
@@ -45,17 +46,11 @@ public static WebArchive deploy() {
4546
.addClass(LangModelVerifierBuildCompatibleExtension.class)
4647
.addAsServiceProvider(BuildCompatibleExtension.class, LangModelVerifierBuildCompatibleExtension.class)
4748

48-
// The cleanup extension that vetoes all classes that we're testing, since they are only
49-
// meant for the lang model verifier and shouldn't be processed afterwards.
50-
.addClass(CleanupExtension.class)
51-
.addAsServiceProvider(Extension.class, CleanupExtension.class)
49+
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
5250

53-
.addAsWebInfResource(new BeansXml(ALL), "beans.xml");
54-
55-
System.out.println(archive.toString(true));
51+
LOG.log(INFO, archive.toString(true));
5652

5753
return archive;
58-
5954
}
6055

6156
@Test

appserver/tests/tck/cdi/cdi-model/src/test/java/org/glassfish/tck/cdi/lang/model/CleanupExtension.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

appserver/tests/tck/cdi/cdi-model/src/test/java/org/glassfish/tck/cdi/lang/model/LangModelVerifierBuildCompatibleExtension.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation. All rights reserved.
2+
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -15,23 +15,27 @@
1515
*/
1616
package org.glassfish.tck.cdi.lang.model;
1717

18-
import org.jboss.cdi.lang.model.tck.LangModelVerifier;
19-
2018
import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension;
2119
import jakarta.enterprise.inject.build.compatible.spi.ClassConfig;
20+
import jakarta.enterprise.inject.build.compatible.spi.Discovery;
2221
import jakarta.enterprise.inject.build.compatible.spi.Enhancement;
22+
import jakarta.enterprise.inject.build.compatible.spi.ScannedClasses;
23+
24+
import org.jboss.cdi.lang.model.tck.LangModelVerifier;
2325

2426
public class LangModelVerifierBuildCompatibleExtension implements BuildCompatibleExtension {
2527

26-
public static boolean langModelVerifierBuildCompatibleExtensionCalled;
2728
public static boolean langModelVerifierBuildCompatibleExtensionPassed;
2829

30+
@Discovery
31+
public void discovery(ScannedClasses scannedClasses) {
32+
scannedClasses.add(LangModelVerifier.class.getName());
33+
}
34+
2935
@Enhancement(types = LangModelVerifier.class)
3036
public void configure(ClassConfig classConfig) {
31-
langModelVerifierBuildCompatibleExtensionCalled = true;
3237
LangModelVerifier.verify(classConfig.info());
3338
// If there's an error, the verify() method will throw an exception
3439
langModelVerifierBuildCompatibleExtensionPassed = true;
3540
}
36-
3741
}

appserver/tests/tck/rest/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright (c) 2021, 2022 Contributors to the Eclipse Foundation. All rights reserved.
4+
Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation. All rights reserved.
55
66
This program and the accompanying materials are made available under the
77
terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,7 @@ Usage:
2323
2424
Run full TCK:
2525
26-
mvn clean clean
26+
mvn clean install
2727
2828
2929
Run all tests in test class
@@ -65,7 +65,7 @@ mvn clean install -Dgroups=security
6565
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6666
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6767

68-
<tck.version>3.1.1</tck.version>
68+
<tck.version>3.1.5</tck.version>
6969

7070
<glassfish.version>${project.version}</glassfish.version>
7171
<glassfish.root>${project.build.directory}</glassfish.root>

0 commit comments

Comments
 (0)