Menu

#1741 JDBCSQLXML fails to compile with JDK 26+

current-release
open-fixed
None
5
2026-03-22
2025-12-08
No

src/org/hsqldb/jdbc/JDBCSQLXML.java fails to compile with JDK 26 and newer versions, because those releases add a public close() method to SQLXML that is incompatible with the one in JDBCSQLXML.

The JDK change that added the new close() method was https://bugs.openjdk.org/browse/JDK-8369918

This causes errors like:

JDBCSQLXML.java:1162: error: close() in JDBCSQLXML cannot implement close() in SQLXML
  protected synchronized void close() {
                              ^

One possible fix would be to make the close() method in JDBCSQLXML public.

Discussion

  • Fred Toussi

    Fred Toussi - 2026-01-16
    • assigned_to: Fred Toussi
     
  • Fred Toussi

    Fred Toussi - 2026-01-16

    Thanks for reporting. I agree with your suggestion. This will be applied to SVN.

     
  • Fred Toussi

    Fred Toussi - 2026-03-22

    Fix committed to SVN.

     
  • Fred Toussi

    Fred Toussi - 2026-03-22
    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB