mirror of
https://github.com/corda/corda.git
synced 2025-01-17 18:29:49 +00:00
update vm.pro to protect system classes from obfuscation and preserve java.lang.SystemClassLoader
This commit is contained in:
parent
d97fab6036
commit
f4e1473772
12
vm.pro
12
vm.pro
@ -6,7 +6,7 @@
|
|||||||
public static *** values();
|
public static *** values();
|
||||||
}
|
}
|
||||||
|
|
||||||
# the VM depends on a fixed layout for the following classes:
|
# the VM depends on the fixed layout of the following classes:
|
||||||
|
|
||||||
-keepclassmembers class java.lang.Class { <fields>; }
|
-keepclassmembers class java.lang.Class { <fields>; }
|
||||||
-keepclassmembers class java.lang.ClassLoader { <fields>; }
|
-keepclassmembers class java.lang.ClassLoader { <fields>; }
|
||||||
@ -30,7 +30,15 @@
|
|||||||
-keepclassmembers class java.lang.reflect.Field { <fields>; }
|
-keepclassmembers class java.lang.reflect.Field { <fields>; }
|
||||||
-keepclassmembers class java.lang.reflect.Method { <fields>; }
|
-keepclassmembers class java.lang.reflect.Method { <fields>; }
|
||||||
|
|
||||||
-keepnames public class java.lang.*
|
# ClassLoader.getSystemClassloader() depends on the existence of this class:
|
||||||
|
|
||||||
|
-keep class java.lang.SystemClassLoader
|
||||||
|
|
||||||
|
# the VM references these classes by name, so protect them from obfuscation:
|
||||||
|
|
||||||
|
-keepnames public class java.lang.**
|
||||||
|
|
||||||
|
# musn't obfuscate native method names:
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
-keepclasseswithmembernames class * {
|
||||||
native <methods>;
|
native <methods>;
|
||||||
|
Loading…
Reference in New Issue
Block a user