Skip to content

Commit 0f463a7

Browse files
committed
8276845: (fs) java/nio/file/spi/SetDefaultProvider.java fails on x86_32
Reviewed-by: alanb
1 parent e01d6d0 commit 0f463a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/jdk/java/nio/file/spi/TestProvider.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.nio.file.attribute.FileAttributeView;
2929
import java.nio.file.attribute.UserPrincipalLookupService;
3030
import java.nio.file.spi.FileSystemProvider;
31+
import java.nio.channels.FileChannel;
3132
import java.nio.channels.SeekableByteChannel;
3233
import java.net.URI;
3334
import java.io.IOException;
@@ -173,6 +174,16 @@ public SeekableByteChannel newByteChannel(Path file,
173174
return defaultProvider.newByteChannel(delegate, options, attrs);
174175
}
175176

177+
@Override
178+
public FileChannel newFileChannel(Path file,
179+
Set<? extends OpenOption> options,
180+
FileAttribute<?>... attrs)
181+
throws IOException
182+
{
183+
Path delegate = theFileSystem.unwrap(file);
184+
return defaultProvider.newFileChannel(delegate, options, attrs);
185+
}
186+
176187
@Override
177188
public boolean isHidden(Path file) throws IOException {
178189
throw new ReadOnlyFileSystemException();

0 commit comments

Comments
 (0)