From cc9861bbd4e350ba0f2705faec527b29f477c18f Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Thu, 28 Sep 2023 09:04:47 +0200 Subject: [PATCH] Fix bug Nico found randomly cherry-pick f90e6bf77f097c6145801c17757f8e7d58d207e4 --- .../java/com/googlecode/d2j/dex/writer/ev/EncodedValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }