[PATCH] Change in core[libreoffice-3-6]: rhbz#836827: SQLFeatureNotSupportedException only in Java 6

Stephan Bergmann (via Code Review) gerrit at gerrit.libreoffice.org
Mon Sep 24 01:56:39 PDT 2012


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/690

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/90/690/1

rhbz#836827: SQLFeatureNotSupportedException only in Java 6

...so if the patched hsqldb.jar is compiled with Java 7, it creates instances of
SQLFeatureNotSupportedException, and when at LO runtime a Java 5 gcj is used,
loading the relevant hsqldb.jar classes will fail with a NoClassDefFoundError
caused by a ClassNotFoundException.

Adding java.sql.Driver.getParentLogger in Java 7 was an incompatible change, but
it appears that the java.sql framework is prepared to handle old implementations
(for which the JVM will throw AbstractMethodError), so it appears that it works
to fake that AbstractMethodError here.

Change-Id: Id1fddc9cbdd8c88cd68fb5877ec59fe8d61e1562
(cherry picked from commit 93a0d9eee0f4dced348b040961f44f977e9504a7)
---
M hsqldb/patches/jdbc-4.1.patch
1 file changed, 10 insertions(+), 4 deletions(-)


--
To view, visit https://gerrit.libreoffice.org/690
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1fddc9cbdd8c88cd68fb5877ec59fe8d61e1562
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-3-6
Gerrit-Owner: Stephan Bergmann <sbergman at redhat.com>



More information about the LibreOffice mailing list