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 b655fc38..307be486 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 @@ -415,7 +415,7 @@ public class EncodedValue implements Comparable { 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(); }