File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
prj/coherence-core-components/src/main/java/com/tangosol/coherence/component/util Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
2
/*
3
- * Copyright (c) 2000, 2023 , Oracle and/or its affiliates.
3
+ * Copyright (c) 2000, 2024 , Oracle and/or its affiliates.
4
4
*
5
5
* Licensed under the Universal Permissive License v 1.0 as shown at
6
6
* https://oss.oracle.com/licenses/upl.
@@ -713,6 +713,8 @@ else if (listener != null)
713
713
}
714
714
715
715
// From interface: com.tangosol.net.NamedCache
716
+ @ Override
717
+ @ SuppressWarnings ("resource" )
716
718
public com .tangosol .net .AsyncNamedCache async (com .tangosol .net .AsyncNamedMap .Option [] options )
717
719
{
718
720
SafeAsyncNamedCache cacheAsync = getSafeAsyncNamedCache ();
@@ -721,13 +723,14 @@ public com.tangosol.net.AsyncNamedCache async(com.tangosol.net.AsyncNamedMap.Opt
721
723
ensureLocked ();
722
724
try
723
725
{
726
+ NamedCache cache = getRunningNamedCache ();
724
727
SafeAsyncNamedCache cacheSafe = new SafeAsyncNamedCache ();
725
728
cacheSafe .setCacheName (getCacheName ());
726
729
cacheSafe .setSafeNamedCache (this );
727
730
cacheSafe .setSafeCacheService (getSafeCacheService ());
728
731
cacheSafe .setClassLoader (getClassLoader ());
729
732
cacheSafe .setOptions (options );
730
- cacheSafe .setInternalNamedCache (getInternalNamedCache () .async (options ));
733
+ cacheSafe .setInternalNamedCache (cache .async (options ));
731
734
cacheSafe .setStarted (true );
732
735
setSafeAsyncNamedCache (cacheAsync = cacheSafe );
733
736
}
You can’t perform that action at this time.
0 commit comments