Program: 30119
Project: 30119
Buggy source:
/** 
 * Convert invocation method to a constant for easier processing.
 */
private static void Init(){
  serviceMethodTypes=new HashMap();
  fullWsdlIllegalMethods=new HashSet();
  noWsdlIllegalMethods=new HashSet();
  try {
    Class noParams[]=new Class[0];
    String createCall="String_Node_Str";
    Class serviceClass=javax.xml.rpc.Service.class;
    Method createCallNoArgs=serviceClass.getDeclaredMethod(createCall,noParams);
    serviceMethodTypes.put(createCallNoArgs,Integer.valueOf(CREATE_CALL_NO_ARGS));
    Method createCallPort=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class});
    serviceMethodTypes.put(createCallPort,Integer.valueOf(CREATE_CALL_PORT));
    Method createCallOperationQName=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class,QName.class});
    serviceMethodTypes.put(createCallOperationQName,Integer.valueOf(CREATE_CALL_OPERATION_QNAME));
    Method createCallOperationString=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class,String.class});
    serviceMethodTypes.put(createCallOperationString,Integer.valueOf(CREATE_CALL_OPERATION_STRING));
    Method getCalls=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{QName.class});
    serviceMethodTypes.put(getCalls,Integer.valueOf(GET_CALLS));
    Method getHandlerRegistry=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getHandlerRegistry,Integer.valueOf(GET_HANDLER_REGISTRY));
    Method getPortContainerManaged=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{Class.class});
    serviceMethodTypes.put(getPortContainerManaged,Integer.valueOf(GET_PORT_CONTAINER_MANAGED));
    Method getPortClientManaged=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{QName.class,Class.class});
    serviceMethodTypes.put(getPortClientManaged,Integer.valueOf(GET_PORT_CLIENT_MANAGED));
    Method getPorts=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getPorts,new Integer(GET_PORTS));
    Method getServiceName=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getServiceName,Integer.valueOf(GET_SERVICE_NAME));
    Method getTypeMappingRegistry=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getTypeMappingRegistry,Integer.valueOf(GET_TYPE_MAPPING_REGISTRY));
    Method getWsdlLocation=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getWsdlLocation,Integer.valueOf(GET_WSDL_LOCATION));
  }
 catch (  NoSuchMethodException nsme) {
  }
  fullWsdlIllegalMethods.add(GET_HANDLER_REGISTRY);
  fullWsdlIllegalMethods.add(GET_TYPE_MAPPING_REGISTRY);
  noWsdlIllegalMethods.add(CREATE_CALL_PORT);
  noWsdlIllegalMethods.add(CREATE_CALL_OPERATION_QNAME);
  noWsdlIllegalMethods.add(CREATE_CALL_OPERATION_STRING);
  noWsdlIllegalMethods.add(GET_CALLS);
  noWsdlIllegalMethods.add(GET_HANDLER_REGISTRY);
  noWsdlIllegalMethods.add(GET_PORT_CONTAINER_MANAGED);
  noWsdlIllegalMethods.add(GET_PORT_CLIENT_MANAGED);
  noWsdlIllegalMethods.add(GET_PORTS);
  noWsdlIllegalMethods.add(GET_SERVICE_NAME);
  noWsdlIllegalMethods.add(GET_TYPE_MAPPING_REGISTRY);
  noWsdlIllegalMethods.add(GET_WSDL_LOCATION);
  noWsdlIllegalMethods.add(new Integer(GENERATED_SERVICE_METHOD));
}

Fixed version (ground truth):
/** 
 * Convert invocation method to a constant for easier processing.
 */
private static void Init(){
  serviceMethodTypes=new HashMap();
  fullWsdlIllegalMethods=new HashSet();
  noWsdlIllegalMethods=new HashSet();
  try {
    Class noParams[]=new Class[0];
    String createCall="String_Node_Str";
    Class serviceClass=javax.xml.rpc.Service.class;
    Method createCallNoArgs=serviceClass.getDeclaredMethod(createCall,noParams);
    serviceMethodTypes.put(createCallNoArgs,Integer.valueOf(CREATE_CALL_NO_ARGS));
    Method createCallPort=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class});
    serviceMethodTypes.put(createCallPort,Integer.valueOf(CREATE_CALL_PORT));
    Method createCallOperationQName=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class,QName.class});
    serviceMethodTypes.put(createCallOperationQName,Integer.valueOf(CREATE_CALL_OPERATION_QNAME));
    Method createCallOperationString=serviceClass.getDeclaredMethod(createCall,new Class[]{QName.class,String.class});
    serviceMethodTypes.put(createCallOperationString,Integer.valueOf(CREATE_CALL_OPERATION_STRING));
    Method getCalls=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{QName.class});
    serviceMethodTypes.put(getCalls,Integer.valueOf(GET_CALLS));
    Method getHandlerRegistry=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getHandlerRegistry,Integer.valueOf(GET_HANDLER_REGISTRY));
    Method getPortContainerManaged=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{Class.class});
    serviceMethodTypes.put(getPortContainerManaged,Integer.valueOf(GET_PORT_CONTAINER_MANAGED));
    Method getPortClientManaged=serviceClass.getDeclaredMethod("String_Node_Str",new Class[]{QName.class,Class.class});
    serviceMethodTypes.put(getPortClientManaged,Integer.valueOf(GET_PORT_CLIENT_MANAGED));
    Method getPorts=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getPorts,Integer.valueOf(GET_PORTS));
    Method getServiceName=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getServiceName,Integer.valueOf(GET_SERVICE_NAME));
    Method getTypeMappingRegistry=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getTypeMappingRegistry,Integer.valueOf(GET_TYPE_MAPPING_REGISTRY));
    Method getWsdlLocation=serviceClass.getDeclaredMethod("String_Node_Str",noParams);
    serviceMethodTypes.put(getWsdlLocation,Integer.valueOf(GET_WSDL_LOCATION));
  }
 catch (  NoSuchMethodException nsme) {
  }
  fullWsdlIllegalMethods.add(GET_HANDLER_REGISTRY);
  fullWsdlIllegalMethods.add(GET_TYPE_MAPPING_REGISTRY);
  noWsdlIllegalMethods.add(CREATE_CALL_PORT);
  noWsdlIllegalMethods.add(CREATE_CALL_OPERATION_QNAME);
  noWsdlIllegalMethods.add(CREATE_CALL_OPERATION_STRING);
  noWsdlIllegalMethods.add(GET_CALLS);
  noWsdlIllegalMethods.add(GET_HANDLER_REGISTRY);
  noWsdlIllegalMethods.add(GET_PORT_CONTAINER_MANAGED);
  noWsdlIllegalMethods.add(GET_PORT_CLIENT_MANAGED);
  noWsdlIllegalMethods.add(GET_PORTS);
  noWsdlIllegalMethods.add(GET_SERVICE_NAME);
  noWsdlIllegalMethods.add(GET_TYPE_MAPPING_REGISTRY);
  noWsdlIllegalMethods.add(GET_WSDL_LOCATION);
  noWsdlIllegalMethods.add(Integer.valueOf(GENERATED_SERVICE_METHOD));
}