-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Runtime
-
Tags:
-
Upgrade notes:
-
Team:PLATFORM
-
Sprint:nxplatform #18
-
Story Points:2
NXP-27375 introduces new methods on the Framework class:
- Framework#doPrivileged(ThrowableRunnable<E> runnable)
- Framework#doPrivileged(ThrowableSupplier<T, E> supplier)
Issue is that old methods with Runnable and Supplier were removed, and new methods are not compatible with the old ones. This can cause exceptions like
java.lang.NoSuchMethodError: 'java.lang.Object org.nuxeo.runtime.api.Framework.doPrivileged(java.util.function.Supplier)'
For instance, the following was working on 10.10 but do not work anymore on 11.x:
Runnable runnable = ...
Framework.doPrivileged(runnable);
We want to put back previous methods and rename the current ones to doPrivilegedThrowing.