Class ResolutionFailure


  • public class ResolutionFailure
    extends Object
    An exception occurring during overload resolution. Some of those are completely normal and prune incompatible overloads. There is a compile-time error if no compile-time declaration is identified though (all potentially applicable methods fail), or if after the CTdecl is selected, its invocation fails (eg a param that was not pertinent to applicability is incompatible with the declared formal).
    • Method Detail

      • getLocation

        public @Nullable JavaNode getLocation()
        Returns the location on which the failure should be reported.
      • getFailedMethod

        public JMethodSig getFailedMethod()
        Returns the method type that was being checked against the call site.
      • getPhase

        public net.sourceforge.pmd.lang.java.types.internal.infer.MethodResolutionPhase getPhase()
        Returns the phase in which the failure occurred. Failures in invocation phase should be compile-time errors.
      • getReason

        public String getReason()
        Returns the reason for the failure.
      • getCallSite

        public PolySite<?> getCallSite()
        Returns the call site for the failure.