diff --git a/dex-writer/src/main/java/com/googlecode/d2j/dex/writer/ev/EncodedValue.java b/dex-writer/src/main/java/com/googlecode/d2j/dex/writer/ev/EncodedValue.java index e5d3e3fdc..d3bbcd854 100644 --- a/dex-writer/src/main/java/com/googlecode/d2j/dex/writer/ev/EncodedValue.java +++ b/dex-writer/src/main/java/com/googlecode/d2j/dex/writer/ev/EncodedValue.java @@ -428,7 +428,7 @@ public int compareTo(EncodedValue o) { case VALUE_METHOD_HANDLE: case VALUE_METHOD_TYPE: if (value instanceof Comparable) { - return ((Comparable) value).compareTo(value); + return ((Comparable) value).compareTo(o.value); } else { throw new RuntimeException(); }