diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-05-28 14:39:03 +0200 |
---|---|---|
committer | Mikael Peltier <mikaelpeltier@google.com> | 2015-06-05 09:13:37 +0000 |
commit | 59f50017709af1cfa1bcc6d3bd5e409f9436ede2 (patch) | |
tree | 10f49ca7a08a17f4f119642ccd65e7fb298e257b /sched/src/com/android/sched | |
parent | 921976d63c203e129f74b022a1fc13cddb5f8a3d (diff) | |
download | toolchain_jack-59f50017709af1cfa1bcc6d3bd5e409f9436ede2.tar.gz toolchain_jack-59f50017709af1cfa1bcc6d3bd5e409f9436ede2.tar.bz2 toolchain_jack-59f50017709af1cfa1bcc6d3bd5e409f9436ede2.zip |
Fix bugs when using incremental with --output-jack
- When --output-jack is used, incremental folder contains all dex files
and jayces files of imported libraries, thus Jack must remove imported
libraries and import only incremental folder when --output-jack is used
to avoid type conflict. It seems more performant than using collision policy.
- Since ReadWriteZipFS and VFStoVSTWrapper is used incremental support with
--output-jack was broken because input jack library has the location of
incremental folder and output jack library has the location of the target
jack file. Thus comparing location to avoid to copy dex file from a library
to the same library does not work. I clean library usages to always used
ReadWriteZipFS when it is required and to be able to properly skip dex copy
when source and target library are the same library.
Bug: 21600202
Change-Id: I0c5e899e12033f608d43cae9baecc1227ea158c9
(cherry picked from commit f524ed6445145988a8a7c4fc6ff5573c3cc882cd)
Diffstat (limited to 'sched/src/com/android/sched')
-rw-r--r-- | sched/src/com/android/sched/vfs/ReadWriteZipFS.java | 2 | ||||
-rw-r--r-- | sched/src/com/android/sched/vfs/VFSToVFSWrapper.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sched/src/com/android/sched/vfs/ReadWriteZipFS.java b/sched/src/com/android/sched/vfs/ReadWriteZipFS.java index 228e7f29..56159c78 100644 --- a/sched/src/com/android/sched/vfs/ReadWriteZipFS.java +++ b/sched/src/com/android/sched/vfs/ReadWriteZipFS.java @@ -175,7 +175,7 @@ public class ReadWriteZipFS extends BaseVFS<BaseVDir, BaseVFile> implements VFS @Override long getLastModified(@Nonnull BaseVFile file) { - throw new UnsupportedOperationException(); + return vfs.getLastModified(file); } @Override diff --git a/sched/src/com/android/sched/vfs/VFSToVFSWrapper.java b/sched/src/com/android/sched/vfs/VFSToVFSWrapper.java index b0a61f10..b54050dd 100644 --- a/sched/src/com/android/sched/vfs/VFSToVFSWrapper.java +++ b/sched/src/com/android/sched/vfs/VFSToVFSWrapper.java @@ -226,7 +226,7 @@ public class VFSToVFSWrapper extends BaseVFS<BaseVDir, BaseVFile> implements VFS @Override long getLastModified(@Nonnull BaseVFile file) { - throw new UnsupportedOperationException(); + return workVFS.getLastModified(file); } @Override |