13.3. Specificity of Signatures

If more than one signature declaration is both accessible and applicable to a signature invocation, it is necessary to choose one. The XL programming language follows the Java programming language and chooses the most specific signature. This term is defined in the Java Language Specification for method signatures and based on a pairwise comparison of method declarations: Let m and n be two signature declarations, then m is less specific than n with respect to the arguments of the invocation if and only if one of the following is true:

Now a signature is more specific than another in the sense of the Java programming language if it is not less specific than the other. The determination of the most specific signature proceeds as defined in the Java Language Specification for methods.