Fix bug Nico found randomly

cherry-pick f90e6bf77f
This commit is contained in:
Nico Mexis 2023-09-28 09:04:47 +02:00 committed by Bob Pan
parent 476e64c6e9
commit cc9861bbd4

View File

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