0 Replies - 4277 Views - Last Post: 08 June 2012 - 03:38 AM Rate Topic: -----

#1 Programmist  Icon User is offline

  • CTO
  • member icon

Reputation: 252
  • View blog
  • Posts: 1,833
  • Joined: 02-January 06

Found in MyBatis source code

Posted 08 June 2012 - 03:38 AM

try {
        Method m = iface.getMethod(method.getName(), method.getParameterTypes());
        if (declaringInterface != null) {
          throw new BindingException("Ambiguous method mapping.  Two mapper interfaces contain the identical method signature for " + method);
        } else if (m != null) {
          declaringInterface = iface;
        }
} catch (Exception e) {
     // Intentionally ignore.
     // This is using exceptions for flow control,
     // but it's definitely faster.
}

This post has been edited by Programmist: 08 June 2012 - 03:40 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1