diff options
author | Tor Norbye <tnorbye@google.com> | 2013-10-17 19:11:00 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-17 19:11:00 -0700 |
commit | c040b896d195457b3564bb3e9244258dd06a7ded (patch) | |
tree | a30c22f9e26bc04cca24225093ed7bcac40a2105 | |
parent | 98d18c71cee74e23f2aac3b1c3df5ad81f3a624b (diff) | |
parent | 8cde8cff9fca28dd05bdfd5e1312a4ec5c77a663 (diff) | |
download | sdk-c040b896d195457b3564bb3e9244258dd06a7ded.zip sdk-c040b896d195457b3564bb3e9244258dd06a7ded.tar.gz sdk-c040b896d195457b3564bb3e9244258dd06a7ded.tar.bz2 |
am 8cde8cff: Merge "Fix target parser"
* commit '8cde8cff9fca28dd05bdfd5e1312a4ec5c77a663':
Fix target parser
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/AndroidJarLoader.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/AndroidJarLoader.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/AndroidJarLoader.java index c4eb37f..754cedf 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/AndroidJarLoader.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/AndroidJarLoader.java @@ -251,7 +251,16 @@ public class AndroidJarLoader extends ClassLoader implements IAndroidClassLoader } data = readZipData(zis, (int)entrySize); } - loaded_class = defineAndCacheClass(className, data); + try { + loaded_class = defineAndCacheClass(className, data); + } catch (NoClassDefFoundError error) { + if (error.getMessage().startsWith("java/")) { + // Can't define these; we just need to stop + // iteration here + continue; + } + throw error; + } } for (Class<?> superClass = loaded_class.getSuperclass(); |