Skip to content

Commit 0fff874

Browse files
committed
Connect/Java: Clarify JDBC examples need Java 21 (JEP 330 => JEP 445)
Previously, the docs stated Java 25 would be required, which isn't true.
1 parent 59b8ea3 commit 0fff874

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

docs/_include/logos.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<!-- markdownlint-disable MD034 -->
22
<!-- markdownlint-disable MD053 -->
33

4+
[CrateDB home]: https://cratedb.com/
45
[CrateDB logo]: https://avatars.githubusercontent.com/u/4048232?s=200&v=4
56
[Hibernate logo]: https://logo.svgcdn.com/devicon/hibernate-original.svg
67
[jOOQ logo]: https://www.jooq.org/img/jooq-logo-black.png
78
[JUnit home]: https://junit.org/
89
[JUnit logo]: https://avatars.githubusercontent.com/u/874086?s=200&v=4
10+
[PostgreSQL home]: https://www.postgresql.org/
911
[PostgreSQL logo]: https://jdbc.postgresql.org/icons/postgreslogo.svg
1012
[Testcontainers for Java]: https://testcontainers.com/guides/getting-started-with-testcontainers-for-java/
1113
[Testcontainers logo]: https://avatars.githubusercontent.com/u/13393021?s=200&v=4

docs/connect/java/cratedb-jdbc.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
:::{include} /_include/logos.md
2+
:::
3+
14
(crate-jdbc)=
25
(cratedb-jdbc)=
36

47
# CrateDB JDBC
58

9+
```{div} .float-right
10+
[![CrateDB logo][CrateDB logo]{height=40px loading=lazy}][CrateDB home]
11+
```
12+
```{div} .clearfix
13+
```
14+
615
:::{include} /_include/links.md
716
:::
817

@@ -16,7 +25,7 @@ Connect to CrateDB using CrateDB JDBC.
1625
:::{div}
1726
The [CrateDB JDBC Driver] is an open-source JDBC driver written in
1827
Pure Java (Type 4), which communicates using the PostgreSQL native
19-
network protocol.
28+
network protocol. CrateDB JDBC needs Java >= 11.
2029
:::
2130

2231
:::{rubric} Synopsis
@@ -67,7 +76,7 @@ of `wget`.
6776
Invoke-WebRequest https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar -OutFile crate-jdbc-standalone-2.7.0.jar
6877
```
6978
:::
70-
Invoke program. Needs Java >= 25 ([JEP 330]).
79+
Invoke program. Needs Java >= 21 ([JEP 445]), alternatively see [](#full-example).
7180
```shell
7281
java -cp crate-jdbc-standalone-2.7.0.jar example.java
7382
```
@@ -135,4 +144,4 @@ dependencies {
135144
:::
136145

137146

138-
[JEP 330]: https://openjdk.org/jeps/330
147+
[JEP 445]: https://openjdk.org/jeps/445

docs/connect/java/postgresql-jdbc.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
:::{include} /_include/logos.md
2+
:::
3+
14
(pgjdbc)=
25
(postgresql-jdbc)=
36

47
# PostgreSQL JDBC
58

9+
```{div} .float-right
10+
[![PostgreSQL logo][PostgreSQL logo]{height=40px loading=lazy}][PostgreSQL home]
11+
```
12+
```{div} .clearfix
13+
```
14+
615
:::{include} /_include/links.md
716
:::
817

@@ -16,7 +25,7 @@ Connect to CrateDB using PostgreSQL JDBC.
1625
:::{div}
1726
The [PostgreSQL JDBC Driver] is an open-source JDBC driver written in
1827
Pure Java (Type 4), which communicates using the PostgreSQL native
19-
network protocol.
28+
network protocol. PostgreSQL JDBC needs Java >= 8.
2029
:::
2130

2231
:::{rubric} Synopsis
@@ -67,7 +76,7 @@ of `wget`.
6776
Invoke-WebRequest https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.8/postgresql-42.7.8.jar -OutFile postgresql-42.7.8.jar
6877
```
6978
:::
70-
Invoke program. Needs Java >= 25 ([JEP 330]).
79+
Invoke program. Needs Java >= 21 ([JEP 445]), alternatively see [](#full-example).
7180
```shell
7281
java -cp postgresql-42.7.8.jar example.java
7382
```
@@ -133,4 +142,4 @@ dependencies {
133142
:::
134143

135144

136-
[JEP 330]: https://openjdk.org/jeps/330
145+
[JEP 445]: https://openjdk.org/jeps/445

0 commit comments

Comments
 (0)