RFR: 8307145: windowsaccessbridge.dll is missing 4 critical methods in its C API

Alexey Ivanov aivanov at openjdk.org
Thu Jun 15 15:08:01 UTC 2023


On Wed, 3 May 2023 13:12:51 GMT, Nikita Provotorov <duke at openjdk.org> wrote:

> > These don't seem to be part of the public API, so this is probably deliberate and not a bug.
> > https://docs.oracle.com/javase/accessbridge/2.0.2/api.htm#jab-api-specification
> 
> @prrace should non-public API methods be removed from .DEF then?

I think it's the best solution. These four functions are not part of the public API to AccessBridge, they're missing from [`AccessBridgeCalls.c`](https://github.com/openjdk/jdk/blob/master/src/jdk.accessibility/windows/native/bridge/AccessBridgeCalls.c) and [`AccessBridgeCalls.h`](https://github.com/openjdk/jdk/blob/master/src/jdk.accessibility/windows/native/include/bridge/AccessBridgeCalls.h).

They should not be exported. If the functions aren't loaded by its name, which is implemented in `AccessBridgeCalls.c`, or otherwise linked to from other modules (`.exe` or `.dll`), they don't need to be exported. These functions are part of the `WinAccessBridge` class, none of them cannot be called directly.

Did you try removing them from the `.def` file? Does anything break?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13734#issuecomment-1593248335



More information about the client-libs-dev mailing list