From e647588f67b819e04563c330060cbe3a60adc7c8 Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 23 Aug 2019 22:09:19 +0100 Subject: [PATCH] Switch to Apache Harmony's pack200 implementation The built-in pack200 implementation is deprecated. --- asm/pom.xml | 5 +++++ asm/src/main/java/dev/openrs2/asm/classpath/Library.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/asm/pom.xml b/asm/pom.xml index cc78471f99..41d8d25f94 100644 --- a/asm/pom.xml +++ b/asm/pom.xml @@ -25,6 +25,11 @@ openrs2-util ${project.version} + + dev.openrs2 + pack200 + 1.0.0-SNAPSHOT + org.ow2.asm asm diff --git a/asm/src/main/java/dev/openrs2/asm/classpath/Library.java b/asm/src/main/java/dev/openrs2/asm/classpath/Library.java index 9ad95bbda6..e97aec24c2 100644 --- a/asm/src/main/java/dev/openrs2/asm/classpath/Library.java +++ b/asm/src/main/java/dev/openrs2/asm/classpath/Library.java @@ -11,12 +11,12 @@ import java.util.TreeMap; import java.util.jar.JarEntry; import java.util.jar.JarInputStream; import java.util.jar.JarOutputStream; -import java.util.jar.Pack200; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import dev.openrs2.util.io.DeterministicJarOutputStream; import dev.openrs2.util.io.SkipOutputStream; +import org.apache.harmony.pack200.Pack200; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.ClassWriter;