Program: 51263
Project: 51263
Buggy source:
public Param createParam(AbstractResource r,AbstractMethod m,final Parameter p){
  Param wadlParam=new Param();
  wadlParam.setName(p.getSourceName());
switch (p.getSource()) {
case QUERY:
    wadlParam.setStyle(ParamStyle.QUERY);
  break;
case MATRIX:
wadlParam.setStyle(ParamStyle.MATRIX);
break;
case PATH:
wadlParam.setStyle(ParamStyle.TEMPLATE);
break;
case HEADER:
wadlParam.setStyle(ParamStyle.HEADER);
break;
default :
break;
}
if (p.hasDefaultValue()) wadlParam.setDefault(p.getDefaultValue());
Class<?> pClass=p.getParameterClass();
if (pClass.isArray()) {
wadlParam.setRepeating(true);
pClass=pClass.getComponentType();
}
if (pClass.equals(int.class) || pClass.equals(Integer.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(boolean.class) || pClass.equals(Boolean.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(long.class) || pClass.equals(Long.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(short.class) || pClass.equals(Short.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(byte.class) || pClass.equals(Byte.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(float.class) || pClass.equals(Float.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(double.class) || pClass.equals(Double.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
return wadlParam;
}

Fixed version (ground truth):
public Param createParam(AbstractResource r,AbstractMethod m,final Parameter p){
  Param wadlParam=new Param();
  wadlParam.setName(p.getSourceName());
  if (p.getAnnotation().annotationType() == FormParam.class) {
    wadlParam.setStyle(ParamStyle.QUERY);
  }
 else {
switch (p.getSource()) {
case QUERY:
      wadlParam.setStyle(ParamStyle.QUERY);
    break;
case MATRIX:
  wadlParam.setStyle(ParamStyle.MATRIX);
break;
case PATH:
wadlParam.setStyle(ParamStyle.TEMPLATE);
break;
case HEADER:
wadlParam.setStyle(ParamStyle.HEADER);
break;
default :
break;
}
}
if (p.hasDefaultValue()) wadlParam.setDefault(p.getDefaultValue());
Class<?> pClass=p.getParameterClass();
if (pClass.isArray()) {
wadlParam.setRepeating(true);
pClass=pClass.getComponentType();
}
if (pClass.equals(int.class) || pClass.equals(Integer.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(boolean.class) || pClass.equals(Boolean.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(long.class) || pClass.equals(Long.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(short.class) || pClass.equals(Short.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(byte.class) || pClass.equals(Byte.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(float.class) || pClass.equals(Float.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else if (pClass.equals(double.class) || pClass.equals(Double.class)) wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
 else wadlParam.setType(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
return wadlParam;
}