aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/native
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2017-02-17 13:47:44 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2017-02-17 14:56:31 +0000
commit5d2ae52c032203575f145ca409f2b86f1e8c700b (patch)
tree8c3117a69b722790075a10fca1b702e2d89630c1 /src/main/native
parent3b6370ced0de326b34a89db2ce13bcdfa276bbc5 (diff)
Move FileAccessException to the vfs package
It was previously in unix, but also used from non-unix file systems, which means it's not actually unix-specific. This is in preparation for splitting compilation of the unix and windows file systems into separate libraries. That improves layering and reduces compile times - note that Bazel already injects the vfs into its lower layers, which should only rely on the normal vfs APIs, not on anything platform-specific. -- PiperOrigin-RevId: 147829659 MOS_MIGRATED_REVID=147829659
Diffstat (limited to 'src/main/native')
-rw-r--r--src/main/native/unix_jni.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/native/unix_jni.cc b/src/main/native/unix_jni.cc
index 3879ce9653..395dcc16b7 100644
--- a/src/main/native/unix_jni.cc
+++ b/src/main/native/unix_jni.cc
@@ -137,10 +137,12 @@ void PostException(JNIEnv *env, int error_number, const std::string& message) {
exception_classname = "java/io/FileNotFoundException";
break;
case EACCES: // Permission denied
- exception_classname = "com/google/devtools/build/lib/unix/FileAccessException";
+ exception_classname =
+ "com/google/devtools/build/lib/vfs/FileAccessException";
break;
case EPERM: // Operation not permitted
- exception_classname = "com/google/devtools/build/lib/unix/FilePermissionException";
+ exception_classname =
+ "com/google/devtools/build/lib/unix/FilePermissionException";
break;
case EINTR: // Interrupted system call
exception_classname = "java/io/InterruptedIOException";