Merge pull request #521 from exFalso/extend-proguard

Add Proxy, Executable, InvocationHandler, Enum members to openjdk.pro…
This commit is contained in:
Joel Dice 2017-02-15 17:42:31 -07:00 committed by GitHub
commit f7a651d6ba
2 changed files with 24 additions and 0 deletions

View File

@ -312,3 +312,23 @@
*** match;
*** next;
}
# These classes are accessed via bytecode generated on the fly.
-keepclassmembers class java.lang.reflect.Proxy {
<methods>;
}
-keepclassmembers class java.lang.reflect.InvocationHandler {
<methods>;
}
# Don't strip special enum members.
-keepclassmembers,allowoptimization enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class java.lang.reflect.Executable {
<methods>;
}

4
vm.pro
View File

@ -129,3 +129,7 @@
-keepclassmembers class java.lang.ClassLoader {
public java.lang.Class loadClass(java.lang.String);
}
-keepclassmembers class avian.Classes {
public java.security.ProtectionDomain getProtectionDomain(avian.VMClass);
}