Project

Profile

Help

Bug #6286

closed

$connection?close() throws error

Added by Johan Gheys 12 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2023-12-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
Java

Description

When retesting #6149

<saxon:do action="$connection?close()"/>

we now get the following error message:

Error 
  XPTY0004  There is no unique method named close in the external object of type
  oracle.jdbc.driver.T4CConnection

Changing it to

<saxon:do action="$connection?close_0()"/>

changes the error message in

Error 
   Method access is illegal. Caused by java.lang.IllegalAccessException: Class
  com.saxonica.expr.JavaExtensionFunctionCall can not access a member of class
  oracle.jdbc.driver.PhysicalConnection with modifiers "public synchronized"
Method access is illegal

Files

Main.java (1.76 KB) Main.java Johan Gheys, 2023-12-14 16:03
connection-close-6286.zip (4.75 KB) connection-close-6286.zip Johan Gheys, 2023-12-15 10:36

Please register to edit this issue

Also available in: Atom PDF