8305664: [BACKOUT] (fs) Remove FileSystem support for resolving against a default directory (chdir configuration)

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2023-04-05 20:17:07 +00:00
parent 39f12a88e7
commit 507c49a3ab
15 changed files with 104 additions and 44 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,8 +41,8 @@ import static sun.nio.fs.UnixConstants.*;
*/
class LinuxFileSystem extends UnixFileSystem {
LinuxFileSystem(UnixFileSystemProvider provider) {
super(provider);
LinuxFileSystem(UnixFileSystemProvider provider, String dir) {
super(provider, dir);
}
@Override

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -42,8 +42,8 @@ class LinuxFileSystemProvider extends UnixFileSystemProvider {
}
@Override
LinuxFileSystem newFileSystem() {
return new LinuxFileSystem(this);
LinuxFileSystem newFileSystem(String dir) {
return new LinuxFileSystem(this, dir);
}
@Override