Module jdk.dynalink

Interface ConversionComparator


public interface ConversionComparator
Optional interface to be implemented by GuardingTypeConverterFactory implementers. Language-specific conversions can cause increased overloaded method resolution ambiguity, as many methods can become applicable because of additional conversions. The static way of selecting the "most specific" method will fail more often, because there will be multiple maximally specific method with unrelated signatures. In these cases, language runtimes can be asked to resolve the ambiguity by expressing preferences for one conversion over the other.
Since:
9