Skip to content

Commit b22343e

Browse files
committed
Some fixes to the ProGuard files
1 parent 16dd804 commit b22343e

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

openjdk.pro

+16
Original file line numberDiff line numberDiff line change
@@ -332,3 +332,19 @@
332332
<methods>;
333333
}
334334

335+
# Needed to create temporary file paths, amongst other things.
336+
-keep class sun.security.provider.NativePRNG
337+
-keep class sun.security.provider.SHA
338+
339+
# Character set codecs
340+
-keep class sun.nio.cs.ISO_8859_1
341+
-keep class sun.nio.cs.UTF_8
342+
-keep class sun.nio.cs.UTF_16
343+
-keep class sun.nio.cs.UTF_16BE
344+
-keep class sun.nio.cs.UTF_16LE
345+
-keep class sun.nio.cs.US_ASCII
346+
347+
# Accessed from native code
348+
-keep class java.util.zip.Deflater {
349+
<fields>;
350+
}

vm.pro

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# proguard include file (http://proguard.sourceforge.net)
22

3-
# we call the values method reflectively in Enum.valueOf():
4-
5-
-keepclassmembers public class * extends java.lang.Enum {
6-
public static *** values();
7-
}
3+
# Enums have methods and members that are called reflectively in both Avian and OpenJDK.
4+
-keepclassmembers enum * {
5+
**[] $VALUES;
6+
public *;
7+
public static **[] values();
8+
}
89

910
# the VM depends on the fixed layout of the following classes:
1011

0 commit comments

Comments
 (0)