mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
fix ProGuarded openjdk-src build
This makes a simple "hello, world!" app work, at least. Further changes may be needed for more sophisticated apps.
This commit is contained in:
parent
616c08fee9
commit
1120d8f91d
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
-keep class java.lang.System {
|
-keep class java.lang.System {
|
||||||
private static void initializeSystemClass();
|
private static void initializeSystemClass();
|
||||||
|
public static void setProperties(java.util.Properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
-keep class java.lang.ClassLoader {
|
-keep class java.lang.ClassLoader {
|
||||||
@ -33,6 +34,11 @@
|
|||||||
|
|
||||||
-keep class java.util.Properties {
|
-keep class java.util.Properties {
|
||||||
public java.lang.Object setProperty(java.lang.String, java.lang.String);
|
public java.lang.Object setProperty(java.lang.String, java.lang.String);
|
||||||
|
public java.lang.String getProperty(java.lang.String);
|
||||||
|
}
|
||||||
|
|
||||||
|
-keep class java.util.Hashtable {
|
||||||
|
public java.lang.Object remove(java.lang.Object);
|
||||||
}
|
}
|
||||||
|
|
||||||
-keep class avian.OpenJDK {
|
-keep class avian.OpenJDK {
|
||||||
|
@ -1777,10 +1777,14 @@ intercept(Thread* t, object c, const char* name, const char* spec,
|
|||||||
|
|
||||||
set(t, runtimeData, MethodRuntimeDataNative, native);
|
set(t, runtimeData, MethodRuntimeDataNative, native);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "unable to find %s%s in %s\n",
|
// If we can't find the method, just ignore it, since ProGuard may
|
||||||
name, spec, &byteArrayBody(t, className(t, c), 0));
|
// have stripped it out as unused. Otherwise, the code below can
|
||||||
|
// be uncommented for debugging purposes.
|
||||||
|
|
||||||
abort(t);
|
// fprintf(stderr, "unable to find %s%s in %s\n",
|
||||||
|
// name, spec, &byteArrayBody(t, className(t, c), 0));
|
||||||
|
|
||||||
|
// abort(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user