Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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 build-tools-internal/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ elasticsearch = 9.2.0
lucene = 10.2.2

bundled_jdk_vendor = openjdk
bundled_jdk = 24.0.2+12@fdc5d0102fe0414db21410ad5834341f
bundled_jdk = 25+36@bd75d5f9689641da8e1daabeccb5528b
# optional dependencies
spatial4j = 0.7
jts = 1.15.0
Expand Down
4 changes: 4 additions & 0 deletions x-pack/plugin/esql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ interface Injected {
}

tasks.named("test").configure {
// prevent empty stacktraces on JDK 25 for intrinsic Math.*Exact invocations
// https://bugs.openjdk.org/browse/JDK-8367990
jvmArgs '-XX:-OmitStackTraceInFastThrow'

def injected = project.objects.newInstance(Injected)
// Define the folder to delete and recreate
def tempDir = file("build/testrun/test/temp/esql")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static org.elasticsearch.xpack.sql.client.UriUtils.appendSegmentToPath;
import static org.elasticsearch.xpack.sql.client.UriUtils.parseURI;
import static org.elasticsearch.xpack.sql.client.UriUtils.removeQuery;
import static org.hamcrest.Matchers.matchesPattern;

public class UriUtilsTests extends ESTestCase {

Expand Down Expand Up @@ -89,9 +90,10 @@ public void testUnsupportedProtocol() throws Exception {
}

public void testMalformedWhiteSpace() throws Exception {
assertEquals(
"Invalid connection configuration: Illegal character in authority at index 7: http:// ",
expectThrows(IllegalArgumentException.class, () -> parseURI(" ", DEFAULT_URI)).getMessage()
assertThat(
expectThrows(IllegalArgumentException.class, () -> parseURI(" ", DEFAULT_URI)).getMessage(),
// Use a lenient regex here since later JDKs trim exception message whitespace
matchesPattern("^Invalid connection configuration: Illegal character in authority at index 7: http:// ?")
);
}

Expand Down