src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java
Print this page
*** 42,54 ****
import java.nio.channels.WritableByteChannel;
import java.security.AccessController;
import java.util.ArrayList;
import java.util.List;
import sun.misc.Cleaner;
- import sun.misc.JavaIOFileDescriptorAccess;
- import sun.misc.SharedSecrets;
import sun.security.action.GetPropertyAction;
public class FileChannelImpl
extends FileChannel
{
--- 42,55 ----
import java.nio.channels.WritableByteChannel;
import java.security.AccessController;
import java.util.ArrayList;
import java.util.List;
+ import jdk.internal.misc.JavaIOFileDescriptorAccess;
+ import jdk.internal.misc.JavaNioAccess;
+ import jdk.internal.misc.SharedSecrets;
import sun.misc.Cleaner;
import sun.security.action.GetPropertyAction;
public class FileChannelImpl
extends FileChannel
{
*** 973,984 ****
/**
* Invoked by sun.management.ManagementFactoryHelper to create the management
* interface for mapped buffers.
*/
! public static sun.misc.JavaNioAccess.BufferPool getMappedBufferPool() {
! return new sun.misc.JavaNioAccess.BufferPool() {
@Override
public String getName() {
return "mapped";
}
@Override
--- 974,985 ----
/**
* Invoked by sun.management.ManagementFactoryHelper to create the management
* interface for mapped buffers.
*/
! public static JavaNioAccess.BufferPool getMappedBufferPool() {
! return new JavaNioAccess.BufferPool() {
@Override
public String getName() {
return "mapped";
}
@Override