From 2868413b51960ff7fcc689f4a43d8f8d1bf90a14 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 27 Jan 2010 13:44:02 -0700 Subject: [PATCH] preserve exception classes from obfuscation in vm.pro We preserve from obfuscation by ProGuard any class of exception thrown from either the VM or native class library code. --- vm.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vm.pro b/vm.pro index 3ba4620c0e..98d92c15b2 100644 --- a/vm.pro +++ b/vm.pro @@ -32,10 +32,12 @@ # the VM may throw instances of the following: -keep public class avian.IncompatibleContinuationException +-keep public class java.lang.Exception -keep public class java.lang.RuntimeException -keep public class java.lang.IllegalStateException -keep public class java.lang.IllegalArgumentException -keep public class java.lang.IllegalMonitorStateException +-keep public class java.lang.IllegalThreadStateException -keep public class java.lang.ArrayIndexOutOfBoundsException -keep public class java.lang.ArrayStoreException -keep public class java.lang.NegativeArraySizeException @@ -51,6 +53,8 @@ -keep public class java.lang.OutOfMemoryError -keep public class java.lang.reflect.InvocationTargetException -keep public class java.io.IOException +-keep public class java.io.FileNotFoundException +-keep public class java.net.SocketException # ClassLoader.getSystemClassloader() depends on the existence of this class: