Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Starting in JDK 26+, `java.sql.Blob` and `java.sql.Clob` both implement `close()`. This change causes MariaDbClob to fail to compile with the following error:
```
src/main/java/org/mariadb/jdbc/MariaDbClob.java:14: error: types Clob and Blob are incompatible;
public class MariaDbClob extends MariaDbBlob implements Clob, NClob, Serializable {
^
class MariaDbClob inherits unrelated defaults for close() from types Clob and Blob
```
The JDK change was https://bugs.openjdk.org/browse/JDK-8369918