Bug 167071 - Backport of Java instrumentation support
Summary: Backport of Java instrumentation support
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-18 00:31 UTC by prrvchr
Modified: 2025-06-18 00:31 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prrvchr 2025-06-18 00:31:00 UTC
Description:
Thanks to Java instrumentation support, it is now possible to deploy and operate Java SPI services within a LibreOffice extension.

This allows an extension to implement its own factory and easily operate it via its own javax.sql.rowset.spi service.

see: https://download.java.net/java/early_access/jdk26/docs/api/java.sql.rowset/javax/sql/rowset/spi/package-summary.html

> Standard classes and interfaces that a third-party provider must use to implement a synchronization provider.

In short, this will allow the jdbcDriverOOo extension to offer much more powerful JDBC services.

This is why I am insisting on backporting Java instrumentation support to LibreOffice 25.2.

tdf#165774: https://bugs.documentfoundation.org/show_bug.cgi?id=165774
pr#183280: https://gerrit.libreoffice.org/c/core/+/183280

Steps to Reproduce:
Unable to use Java SPI services in a LibreOffice extension written in Java 9 or higher with LibreOffice lower than 25.8.

Actual Results:
Unable to use Java SPI services in a LibreOffice extension written in Java 9 or higher with LibreOffice lower than 25.8.

Expected Results:
Be able to use Java SPI services in a LibreOffice extension written in Java 9 or higher with LibreOffice lower than 25.8.


Reproducible: Always


User Profile Reset: No

Additional Info:
The changes made to support Java instrumentation do not change the way Java works in LibreOffice.
Only extensions with corresponding xcu configuration files can use this new feature (ie: the jdbcDriverOOo extension)