From 20ee6604557c940dd155598e7225e5008ea2b544 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 22 May 2012 17:45:13 -0600 Subject: [PATCH] preserve classes needed for Unix filesystem access from ProGuard It seems that there are new classes loaded via reflection or JNI in OpenJDK needed for filesystem access, so we must tell ProGuard to retain them. --- openjdk.pro | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/openjdk.pro b/openjdk.pro index 953b5e205b..5a60ba1260 100644 --- a/openjdk.pro +++ b/openjdk.pro @@ -223,3 +223,21 @@ -keep class sun.util.resources.TimeZoneNames -keep class sun.text.resources.FormatData +# loaded via reflection from DefaultFileSystemProvider: +-keep class sun.nio.fs.LinuxFileSystemProvider +-keep class sun.nio.fs.BsdFileSystemProvider + +# loaded via JNI in UnixNativeDispatcher.c: +-keep class sun.nio.fs.UnixFileAttributes { + ; +} +-keep class sun.nio.fs.UnixFileStoreAttributes { + ; +} +-keep class sun.nio.fs.UnixMountEntry { + ; +} + +-keep class sun.nio.fs.UnixException { + UnixException(int); + }