Skip to content

Commit

Permalink
Set JDK 21 as a compiler release switch and version upgrade to 5.0.0-…
Browse files Browse the repository at this point in the history
…SNAPSHOT (#1979)

Set JDK 21 as a compiler release switch
EclipseCI Jenkins jobs JDK switch
CodeQL JDK change
Version upgrade to 5.0.0-SNAPSHOT

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Oct 31, 2023
1 parent 8139584 commit 04deabc
Show file tree
Hide file tree
Showing 159 changed files with 198 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
java-version: 21

- name: Checkout repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
java_version: [ 17, 21 ]
java_version: [ 21 ]

steps:
- name: Start MySQL Database
Expand Down
2 changes: 1 addition & 1 deletion .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ queries:
extraction:
java:
index:
java_version: 11
java_version: 21
maven:
version: 3.6.3
build_command: "mvn -DskipTests -Denforcer.skip clean package -Pstaging"
Expand Down
2 changes: 1 addition & 1 deletion bundles/eclipselink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundles/moxy-standalone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundles/nightly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundles/others/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions bundles/p2site/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2019, 2023 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bundles/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.bundles</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion dbws/eclipselink.dbws.test.oracle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion dbws/org.eclipse.persistence.dbws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs.concepts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite - Concepts</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation.concepts</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs.dbws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite - DBWS</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation.dbws</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs.jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite - JPA Extensions</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation.jpaextensions</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs.moxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite - MOXy</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation.moxy</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/docs.solutions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite - Solutions</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation.solutions</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<description>EclipseLink Documentation for the WebSite</description>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.documentation</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion etc/jenkins/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
}
tools {
maven 'apache-maven-latest'
jdk 'openjdk-jdk17-latest'
jdk 'openjdk-jdk21-latest'
}
stages {
// Initialize build environment
Expand Down
2 changes: 1 addition & 1 deletion etc/jenkins/pr_verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
}
tools {
maven 'apache-maven-latest'
jdk 'openjdk-jdk17-latest'
jdk 'openjdk-jdk21-latest'
}
stages {
// Initialize build environment
Expand Down
2 changes: 1 addition & 1 deletion etc/jenkins/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
}
tools {
maven 'apache-maven-latest'
jdk 'openjdk-jdk17-latest'
jdk 'openjdk-jdk21-latest'
}
stages {

Expand Down
2 changes: 1 addition & 1 deletion foundation/eclipselink.core.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.corba/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private void acquireRequiredLocksInternal(MergeManager mergeManager, UnitOfWorkC
// linked list for quick removal upon
// acquiring all locks
synchronized (this.prevailingQueue) {
mergeManager.setQueueNode(this.prevailingQueue.addLast(mergeManager));
mergeManager.setQueueNode(this.prevailingQueue.addLastElement(mergeManager));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,17 @@ public Object removeLast() {
*
* @param o the contents to be inserted at the beginning of this list.
*/
public LinkedNode addFirst(Object o) {
public void addFirst(Object o) {
addAfter(o, header);
}

/**
* Inserts the given contents at the beginning of this list.
*
* @param o the contents to be inserted at the beginning of this list.
* @return <code>LinkedNode</code> with the specified content.
*/
public LinkedNode addFirstElement(Object o) {
return addAfter(o, header);
}

Expand All @@ -215,7 +225,18 @@ public LinkedNode addFirst(Object o) {
*
* @param o the contents to be inserted at the end of this list.
*/
public LinkedNode addLast(Object o) {
public void addLast(Object o) {
addAfter(o, header.previous);
}

/**
* Appends the given contents to the end of this list. (Identical in
* function to the <code>add</code> method; included only for consistency.)
*
* @param o the contents to be inserted at the end of this list.
* @return <code>LinkedNode</code> with the specified content.
*/
public LinkedNode addLastElement(Object o) {
return addAfter(o, header.previous);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void updateAccess() {
synchronized (referenceCache) {
// If reference node is null, add to start (new cache key).
if (this.referenceNode == null) {
this.referenceNode = referenceCache.addFirst(buildReference(getObject()));
this.referenceNode = referenceCache.addFirstElement(buildReference(getObject()));
} else {
// This is a fast constant time operations because of the linked list usage.
referenceCache.moveFirst(getReferenceCacheNode());
Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.nosql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.oracle.nosql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.oracle.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.oracle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion foundation/org.eclipse.persistence.pgsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 04deabc

Please sign in to comment.