Skip to content

OperationMonitor.setOperationAware, Connection.abort and Connection.setNetworkTimeout fail with a SecurityException on Java 24+ #890

Description

@mrotteveel

Tests initializing OperationMonitor, or otherwise involving the security manager fail with "java.lang.SecurityException: checking permissions is not supported".

These tests are:

  • FbDatabaseOperationTest. closeOfExecuteNotifiesExecuteEnd()
  • FbDatabaseOperationTest. closeOfFetchNotifiesFetchEnd()
  • FbDatabaseOperationTest. closedExecuteDisallowsCancellation()
  • FbDatabaseOperationTest. closedFetchDisallowsCancellation()
  • FbDatabaseOperationTest. executionError
  • FbDatabaseOperationTest. signalExecuteNotifiesExecuteStart()
  • FbDatabaseOperationTest. signalFetchNotifiesFetchStart()
  • FbDatabaseOperationTest. unclosedExecuteAllowsCancellation()
  • FbDatabaseOperationTest. unclosedFetchAllowsCancellation()
  • OperationMonitorTest. endOperationNotifiesOnRegisteredInstance()
  • OperationMonitorTest. executionError
  • OperationMonitorTest. notificationDuringSimpleSelect()
  • OperationMonitorTest. startOperationNotifiesOnRegisteredInstance()
  • OperationMonitorTest. synchronousCancellationDuringExecute()
  • OperationMonitorTest. synchronousCancellationDuringFetch()
  • V11StatementTest. testAsyncFetchRows_allowCancel()
  • V12StatementTest. testAsyncFetchRows_allowCancel()
  • V13StatementTest. testAsyncFetchRows_allowCancel()
  • V15StatementTest. testAsyncFetchRows_allowCancel()
  • V16StatementTest. testAsyncFetchRows_allowCancel()
  • FBConnectionTest. abortClosesConnectionImmediately()
  • FBConnectionTest. abortClosesStatementsAndResultSets()
  • FBConnectionTest. setNetworkTimeout_getAndSetSeries(ExecutorService)
  • FBConnectionTest. setNetworkTimeout_invalidExecutor()
  • FBConnectionTest. setNetworkTimeout_invalidTimeout(ExecutorService)
  • FBConnectionTest. setNetworkTimeout_isUsed(ExecutorService)

This is something that needs to be fixed in the main code, or possibly in the tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions