Skip to content

Commit

Permalink
Fix #4604 "java.lang.ClassCastException: class org.orbeon.private.apa…
Browse files Browse the repository at this point in the history
…che.http.client.utils.URIUtils$UriFlag not an enum"

- also upgraded Proguard
  • Loading branch information
Erik Bruchez committed Jul 17, 2020
1 parent f8d2a83 commit 6f7903c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions build.xml
Expand Up @@ -44,8 +44,8 @@

<taskdef resource="proguard/ant/task.properties">
<classpath>
<pathelement location="lib_ant/proguard-6.1.1.jar"/>
<pathelement location="lib_ant/proguard-annotations-6.1.1.jar"/>
<pathelement location="lib_ant/proguard-6.2.2.jar"/>
<pathelement location="lib_ant/proguard-annotations-6.2.2.jar"/>
</classpath>
</taskdef>

Expand Down Expand Up @@ -183,6 +183,22 @@
-keep public class org.apache.commons.logging.impl.Jdk14Logger {
public *;
}
<!-- https://github.com/orbeon/orbeon-forms/issues/4604 -->
-keep public enum org.apache.http.client.utils.URIUtils$** {
**[] $VALUES;
public *;
}

<!-- https://www.guardsquare.com/en/products/proguard/manual/examples#serializable -->
-keepnames class * implements java.io.Serializable

-keepclassmembers class * implements java.io.Serializable {
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
</proguard>
<jarjar jarfile="build/lib/orbeon-embedding.jar">
<zipfileset src="${temp.jar}"/>
Expand Down Expand Up @@ -236,6 +252,22 @@
-keep public class org.apache.commons.logging.impl.Jdk14Logger {
public *;
}
<!-- https://github.com/orbeon/orbeon-forms/issues/4604 -->
-keep public enum org.apache.http.client.utils.URIUtils$** {
**[] $VALUES;
public *;
}

<!-- https://www.guardsquare.com/en/products/proguard/manual/examples#serializable -->
-keepnames class * implements java.io.Serializable

-keepclassmembers class * implements java.io.Serializable {
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
</proguard>
<jarjar jarfile="build/lib/orbeon-proxy-portlet.jar">
<zipfileset src="${temp.jar}"/>
Expand Down
Binary file not shown.
Binary file removed lib_ant/proguard-annotations-6.1.1.jar
Binary file not shown.
Binary file added lib_ant/proguard-annotations-6.2.2.jar
Binary file not shown.

0 comments on commit 6f7903c

Please sign in to comment.