You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I replace the lambda with a simple comparator I get the following:
public class MidiPortList extends ArrayList<MidiPort> {
public void sortByName()
{
sort(new Comparator<T>()
{
@Override
public int compare(T o1, T o2)
{
return o1.productName.compareTo(o2.productName);
}
});
}
}
java.lang.NoSuchMethodError: abc.MidiPortList.sort(Ljava/util/Comparator;)V
at abc.MidiPortList.sortByName
But the ArrayList.sort method should be included in jdk8, or am I missing something here?
When using the java 7 Collections.sort instead it's working fine:
Collections.sort(this, new Comparator<T>()
{
@Override
public int compare(T o1, T o2)
{
return o1.productName.compareTo(o2.productName);
}
});
Oh I just noticed: This is related / duplicate to #555
Please ensure you have given all the following requested information in your report.
Issue details
The following cause causes a
java.lang.NoClassDefFoundError: java.util.function.Function
Reproduction steps/code
See issue
Configuration
Build Tools:
Versions:
Please provide the version of RoboVM, XCode and JDK used
Build Targets:
iOS 14.3
Stacktrace
See issue
The text was updated successfully, but these errors were encountered: