Add profile to build on JDK 14 (#10148)
Motivation: JDK 14 was released and need some special settings to be able to build with. Also there seems to be one regression that we need to workaround for now. Modifications: - Add maven profile for JDK 14 - Update blockhound version to be able to work on JDK 14 - Add workaround for possible JDK 14 regression Result: Be able to build on JDK 14
This commit is contained in:
parent
7e823e3842
commit
fbc6709686
@ -2978,7 +2978,12 @@ public abstract class SSLEngineTest {
|
|||||||
assertTrue(serverSession.getPacketBufferSize() > 0);
|
assertTrue(serverSession.getPacketBufferSize() > 0);
|
||||||
|
|
||||||
assertNotNull(clientSession.getSessionContext());
|
assertNotNull(clientSession.getSessionContext());
|
||||||
assertNotNull(serverSession.getSessionContext());
|
|
||||||
|
// Workaround for possible JDK 14 regression.
|
||||||
|
// See http://mail.openjdk.java.net/pipermail/security-dev/2020-March/021488.html
|
||||||
|
if (PlatformDependent.javaVersion() < 14) {
|
||||||
|
assertNotNull(serverSession.getSessionContext());
|
||||||
|
}
|
||||||
|
|
||||||
Object value = new Object();
|
Object value = new Object();
|
||||||
|
|
||||||
|
41
pom.xml
41
pom.xml
@ -97,6 +97,27 @@
|
|||||||
<testJvm />
|
<testJvm />
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<!-- JDK14 -->
|
||||||
|
<profile>
|
||||||
|
<id>java14</id>
|
||||||
|
<activation>
|
||||||
|
<jdk>14</jdk>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||||
|
<argLine.alpnAgent />
|
||||||
|
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||||
|
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
||||||
|
<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
|
||||||
|
<!-- 1.4.x does not work in Java10+ -->
|
||||||
|
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
||||||
|
<!-- This is the minimum supported by Java12+ -->
|
||||||
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
|
<!-- pax-exam does not work on latest Java12 EA 22 build -->
|
||||||
|
<skipOsgiTestsuite>true</skipOsgiTestsuite>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
<!-- JDK13 -->
|
<!-- JDK13 -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>java13</id>
|
<id>java13</id>
|
||||||
@ -104,14 +125,14 @@
|
|||||||
<jdk>13</jdk>
|
<jdk>13</jdk>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Not use alpn agent as Java11 supports alpn out of the box -->
|
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||||
<argLine.alpnAgent />
|
<argLine.alpnAgent />
|
||||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||||
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
||||||
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
|
<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
|
||||||
<!-- 1.4.x does not work in Java10+ -->
|
<!-- 1.4.x does not work in Java10+ -->
|
||||||
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
||||||
<!-- This is the minimum supported by Java12 -->
|
<!-- This is the minimum supported by Java12+ -->
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
<!-- pax-exam does not work on latest Java12 EA 22 build -->
|
<!-- pax-exam does not work on latest Java12 EA 22 build -->
|
||||||
@ -129,14 +150,14 @@
|
|||||||
<argLine.java9.extras />
|
<argLine.java9.extras />
|
||||||
<!-- Export some stuff which is used during our tests -->
|
<!-- Export some stuff which is used during our tests -->
|
||||||
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
||||||
<!-- Not use alpn agent as Java11 supports alpn out of the box -->
|
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||||
<argLine.alpnAgent />
|
<argLine.alpnAgent />
|
||||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||||
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
||||||
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
|
<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
|
||||||
<!-- 1.4.x does not work in Java10+ -->
|
<!-- 1.4.x does not work in Java10+ -->
|
||||||
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
||||||
<!-- This is the minimum supported by Java12 -->
|
<!-- This is the minimum supported by Java12+ -->
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
<!-- pax-exam does not work on latest Java12 EA 22 build -->
|
<!-- pax-exam does not work on latest Java12 EA 22 build -->
|
||||||
@ -154,11 +175,11 @@
|
|||||||
<argLine.java9.extras />
|
<argLine.java9.extras />
|
||||||
<!-- Export some stuff which is used during our tests -->
|
<!-- Export some stuff which is used during our tests -->
|
||||||
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
<argLine.java9>--illegal-access=deny ${argLine.java9.extras}</argLine.java9>
|
||||||
<!-- Not use alpn agent as Java11 supports alpn out of the box -->
|
<!-- Not use alpn agent as Java11+ supports alpn out of the box -->
|
||||||
<argLine.alpnAgent />
|
<argLine.alpnAgent />
|
||||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||||
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
||||||
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
|
<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
|
||||||
<!-- 1.4.x does not work in Java10+ -->
|
<!-- 1.4.x does not work in Java10+ -->
|
||||||
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
||||||
<!-- pax-exam does not work on latest Java11 build -->
|
<!-- pax-exam does not work on latest Java11 build -->
|
||||||
@ -180,7 +201,7 @@
|
|||||||
<argLine.alpnAgent />
|
<argLine.alpnAgent />
|
||||||
<forbiddenapis.skip>true</forbiddenapis.skip>
|
<forbiddenapis.skip>true</forbiddenapis.skip>
|
||||||
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
|
||||||
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
|
<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
|
||||||
<!-- 1.4.x does not work in Java10+ -->
|
<!-- 1.4.x does not work in Java10+ -->
|
||||||
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
<jboss.marshalling.version>2.0.5.Final</jboss.marshalling.version>
|
||||||
</properties>
|
</properties>
|
||||||
@ -680,7 +701,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.projectreactor.tools</groupId>
|
<groupId>io.projectreactor.tools</groupId>
|
||||||
<artifactId>blockhound</artifactId>
|
<artifactId>blockhound</artifactId>
|
||||||
<version>1.0.2.RELEASE</version>
|
<version>1.0.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
@ -41,6 +41,15 @@
|
|||||||
<argLine.common>-XX:+AllowRedefinitionToAddDeleteMethods</argLine.common>
|
<argLine.common>-XX:+AllowRedefinitionToAddDeleteMethods</argLine.common>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>java14</id>
|
||||||
|
<activation>
|
||||||
|
<jdk>14</jdk>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<argLine.common>-XX:+AllowRedefinitionToAddDeleteMethods</argLine.common>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
Loading…
Reference in New Issue
Block a user