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

JDK 17 Official support #2327

Merged
merged 9 commits into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pipeline {
axis {
// the list of support java versions can be found in the infra repo (ansible/roles/java/defaults/main.yml)
name 'JAVA_VERSION'
values 'openjdk12', 'openjdk13', 'openjdk14', 'openjdk17'
values 'openjdk17', 'openjdk18'
SylvainJuge marked this conversation as resolved.
Show resolved Hide resolved

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

import co.elastic.apm.agent.util.CustomEnvVariables;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnJre;
import org.junit.jupiter.api.condition.JRE;

import javax.annotation.Nullable;

Expand Down Expand Up @@ -131,7 +129,6 @@ void testKubernetesInfo_containerd_cri() {
}

@Test
@DisabledOnJre({JRE.JAVA_15, JRE.JAVA_16}) // https://github.com/elastic/apm-agent-java/issues/1942
void testKubernetesDownwardApi() throws Exception {
String line = "1:name=systemd:/kubepods/besteffort/pode9b90526-f47d-11e8-b2a5-080027b9f4fb/15aa6e53-b09a-40c7-8558-c6c31e36c88a";
String containerId = "15aa6e53-b09a-40c7-8558-c6c31e36c88a";
Expand Down
28 changes: 23 additions & 5 deletions docs/supported-technologies.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ the agent does not capture transactions.
=== Java versions

|===
|Vendor |Supported versions | Notes
|Vendor |Supported versions |Notes

|Oracle JDK
|7u60+, 8u40+, 9, 10, 11
|7u60+, 8u40+, 11, 17
|`--module-path` has not been tested yet

|Open JDK
|7u60+, 8u40+, 9, 10, 11
|OpenJDK
|7u60+, 8u40+, 11, 17
|`--module-path` has not been tested yet

|IBM J9 VM
Expand All @@ -64,7 +64,25 @@ the agent does not capture transactions.
|
|===

NOTE: Early Java 8 versions before update 40 are *not supported* because they have
==== Oracle & OpenJDK LTS

For Oracle and OpenJDK, we provide *first-class* support for Long Term Support (LTS) releases as defined in https://www.oracle.com/java/technologies/java-se-support-roadmap.html[Oracle Java Support Roadmap]

- LTS releases are supported __at least__ until they reach End-Of-Life status defined by the __End of Premier support__.
- Non-LTS releases are supported __at least__ until they reach End-Of-Life.

For Non-LTS releases, we provide a *best-effort* support:

- Most Java versions work without any reported issue : 9, 10, 12, 13, 14 and 16
- Few Java versions might have known issues: only 15 so far
- They aren't as thoroughly and continuously tested for regressions

The usual advice regarding which Java version to use still applies here: using a non-LTS or a version that reached
End of Life is not recommended, especially in production.

==== Early Java 8 and Java 7

Early Java 8 versions before update 40 are *not supported* because they have
several bugs that might result in JVM crashes when a java agent is active,
thus agent *will not start* on those versions.
Similarly, Java 7 versions before update 60 are not supported as they are buggy in regard to invokedynamic.
Expand Down