History log of /libcore/dalvik/src/main/java/dalvik/system/DexClassLoader.java
Revision Date Author Comments
09bb615ce1da5e2e9a99f0a2ebf46beb6f71a7a9 29-Jun-2011 Jesse Wilson <jessewilson@google.com> Use a clear warning in the DexClassLoader docs.

Cherry-pick of I0cc4bb3ec86b1c3c578c548f6fc646bce9e45745
http://b/4609061

Change-Id: I8ef78c4117f67b1b517d4512b28e73533f64645c
ea52753a0f80fcd70acfe9150ecb854511ff38db 10-Feb-2011 Dan Bornstein <danfuzz@android.com> Refactor DexClassLoader and PathClassLoader.

This resulted in the creation of two new classes: DexPathList contains
most of the common functionality, namely managing the two path lists
(dex/resource files and native library directories) plus all the
salient initialization and lookup code. BaseDexClassLoader provides
the ClassLoader API, mostly by making calls to a contained DexPathList
instance. The two original classes just become trivial subclasses
which take different constructor args and make correspondingly
different super() calls in their respective constructors.

I took the opportunity to remove the ability for PathClassLoader to
take directories on the dex/resource list. This functionality hadn't
ever been used, at least not since well before 1.0.

Change-Id: I92ed300417431d0e0ac4c5ecf2f10d6a9b0691c7
7190be77a29ad8f35b044ec591cb2b449f3ea8a1 09-Feb-2011 Dan Bornstein <danfuzz@android.com> Restore the code for optimized file specification.

This bit got removed due to a copy-paste mishap.

Bug: 3439372
Change-Id: If4653ec77bdc9b629ed4f5ba953be3eef6315b97
6044fd95ef201bbdb11c5364581bc20436233321 15-Jan-2011 Dan Bornstein <danfuzz@android.com> Synch up file opening code in PathClassLoader and DexClassLoader.

The version in PathClassLoader was more correct.

Change-Id: I92a205403d33c13378c7f392b835669cb97f6ac4
92e51d7dedadb3e8a605eb00e455faf1e3446a02 17-Dec-2010 Dan Bornstein <danfuzz@android.com> We always wantDex at this point.

So, there was no longer a need to check for it.

Cleaned up some comments and minor code convention violations while
I was in the territory.

Change-Id: I717fa74bad05cdbf02bd4f6d24108196579c451a
b27ce0cf1efee048fa6e4c20bc6b38e4ebad6930 16-Oct-2010 Dan Bornstein <danfuzz@android.com> Clean up the construction-time arrangements.

There was all sorts of code here that pointlessly pushed the bulk of
the constructor operation off to instance methods, which (a) could
cause confusion when there's bona fide trouble -- that is, it's better
to throw in the constructor -- and (b) didn't really help with
efficiency in any realistic scenario -- that is, while the original
code nominally avoided extra work until first use, in practice first
use occurs immediately after construction (and in the same thread,
even).

Now, all the one-time work happens in the constructor, and we get to
avoid asking "am I set up yet?" before doing anything substantive.

While I was in the territory, I also did a bit of more minor code
hygiene maintenance.

Change-Id: I41225d373e3ab481b6bc3da5b74bde89c4fd895e
7365de1056414750d0a7d1fdd26025fd247f0d04 12-Aug-2010 Jesse Wilson <jessewilson@google.com> Sorting imports.

Change-Id: I8347bc625480a1c37a1ed9976193ddfedeb00bbc
80a7fbab52b96c9fd47c72f8987d1babe2cd001d 22-May-2010 Elliott Hughes <enh@google.com> Remove more localized exception messages.

I also accidentally mixed two unrelated changes in here: replacing "".equals
and equals("") with String.isEmpty, and removing some dead code in
org.apache.harmony.luni.util.Util.

Change-Id: I0aaad43290b083085b3095b624caf096de487223
28a1a648d4d092f70cad727ff7d6121c1944a484 19-Mar-2010 Dan Bornstein <danfuzz@android.com> Remove a superfluous declaration (left over from when DexClassLoader was
duplicated from PathClassLoader).

Change-Id: Iaf3e8a5b23df1a8bbf670bf6d6045fffef6c8fcb
bdcf27bb0da833544676b4b717be8a2521cab429 11-Sep-2009 Elliott Hughes <enh@google.com> Comment out debugging output.

The other two copies of this code have this line commented out, and I assume
it's only active here by accident.
adc854b798c1cfe3bfd4c27d68d5cee38ca617da 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
1c0fed63c71ddb230f3b304aac12caffbedf2f21 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
b7926325a1c1a370c84c81db80372f59af240a53 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
dd828f42a5c83b4270d4fbf6fce2da1878f1e84a 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589