Program: 15892
Project: 15892
Buggy source:
public void render(final Radio item,final Object data,final int index) throws Exception {
  final Radiogroup radiogroup=item.getRadiogroup();
  final int size=radiogroup.getModel().getSize();
  final Template tm=resolveTemplate(radiogroup,item,data,index,size,"String_Node_Str");
  if (tm == null) {
    item.setLabel(Objects.toString(data));
    item.setValue(data);
  }
 else {
    final ForEachStatus iterStatus=new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getCurrent(){
        return data;
      }
      public Integer getEnd(){
        return size;
      }
    }
;
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? (var == null ? EACH_STATUS_VAR : varnm + STATUS_POST_VAR) : itervar;
    Object oldVar=radiogroup.getAttribute(varnm);
    Object oldIter=radiogroup.getAttribute(itervarnm);
    radiogroup.setAttribute(varnm,data);
    radiogroup.setAttribute(itervarnm,iterStatus);
    final Component[] items=filterOutShadows(radiogroup,tm.create(radiogroup,item,null,null));
    radiogroup.setAttribute(varnm,oldVar);
    radiogroup.setAttribute(itervarnm,oldIter);
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Radio nr=(Radio)items[0];
    nr.setAttribute(BinderCtrl.VAR,varnm);
    recordRenderedIndex(radiogroup,items.length);
    nr.setAttribute(AbstractRenderer.IS_TEMPLATE_MODEL_ENABLED_ATTR,true);
    nr.setAttribute(AbstractRenderer.CURRENT_INDEX_RESOLVER_ATTR,new IndirectBinding(){
      public Binder getBinder(){
        return BinderUtil.getBinder(nr,true);
      }
      @SuppressWarnings("String_Node_Str") public void setValue(      BindELContext ctx,      Object value){
        int idx=BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr));
        ListModel<?> listmodel=radiogroup.getModel();
        if (idx >= 0 && idx < listmodel.getSize()) {
          if (listmodel instanceof ListModelArray) {
            ((ListModelArray<Object>)listmodel).set(idx,value);
          }
 else           if (listmodel instanceof ListModelList<?>) {
            ((ListModelList<Object>)listmodel).set(idx,value);
          }
        }
 else {
        }
      }
      public Component getComponent(){
        return nr;
      }
      public Object getValue(      BindELContext ctx){
        return radiogroup.getModel().getElementAt(BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr)));
      }
    }
);
    addItemReference(radiogroup,nr,index,varnm);
    nr.setAttribute(itervarnm,iterStatus);
    nr.setAttribute(TemplateResolver.TEMPLATE_OBJECT,item.removeAttribute(TemplateResolver.TEMPLATE_OBJECT));
    addTemplateTracking(radiogroup,nr,data,index,size);
    if (nr.getValue() == null)     nr.setValue(data);
    item.setAttribute(Attributes.MODEL_RENDERAS,nr);
    item.detach();
  }
}

Fixed version (ground truth):
public void render(final Radio item,final Object data,final int index) throws Exception {
  final Radiogroup radiogroup=item.getRadiogroup();
  final int size=radiogroup.getModel().getSize();
  final Template tm=resolveTemplate(radiogroup,item,data,index,size,"String_Node_Str");
  if (tm == null) {
    item.setLabel(Objects.toString(data));
    item.setValue(data);
  }
 else {
    final ForEachStatus iterStatus=new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getCurrent(){
        return data;
      }
      public Integer getEnd(){
        return size;
      }
    }
;
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? (var == null ? EACH_STATUS_VAR : varnm + STATUS_POST_VAR) : itervar;
    Object oldVar=radiogroup.getAttribute(varnm);
    Object oldIter=radiogroup.getAttribute(itervarnm);
    radiogroup.setAttribute(varnm,data);
    radiogroup.setAttribute(itervarnm,iterStatus);
    final Component[] items=filterOutShadows(radiogroup,tm.create(radiogroup,item,null,null));
    if (oldVar == null) {
      radiogroup.removeAttribute(varnm);
    }
 else {
      radiogroup.setAttribute(varnm,oldVar);
    }
    if (oldIter == null) {
      radiogroup.removeAttribute(itervarnm);
    }
 else {
      radiogroup.setAttribute(itervarnm,oldIter);
    }
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Radio nr=(Radio)items[0];
    nr.setAttribute(BinderCtrl.VAR,varnm);
    recordRenderedIndex(radiogroup,items.length);
    nr.setAttribute(AbstractRenderer.IS_TEMPLATE_MODEL_ENABLED_ATTR,true);
    nr.setAttribute(AbstractRenderer.CURRENT_INDEX_RESOLVER_ATTR,new IndirectBinding(){
      public Binder getBinder(){
        return BinderUtil.getBinder(nr,true);
      }
      @SuppressWarnings("String_Node_Str") public void setValue(      BindELContext ctx,      Object value){
        int idx=BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr));
        ListModel<?> listmodel=radiogroup.getModel();
        if (idx >= 0 && idx < listmodel.getSize()) {
          if (listmodel instanceof ListModelArray) {
            ((ListModelArray<Object>)listmodel).set(idx,value);
          }
 else           if (listmodel instanceof ListModelList<?>) {
            ((ListModelList<Object>)listmodel).set(idx,value);
          }
        }
 else {
        }
      }
      public Component getComponent(){
        return nr;
      }
      public Object getValue(      BindELContext ctx){
        return radiogroup.getModel().getElementAt(BindRadioRenderer.this.getRenderedIndex(radiogroup,radiogroup.getChildren().indexOf(nr)));
      }
    }
);
    addItemReference(radiogroup,nr,index,varnm);
    nr.setAttribute(itervarnm,iterStatus);
    nr.setAttribute(TemplateResolver.TEMPLATE_OBJECT,item.removeAttribute(TemplateResolver.TEMPLATE_OBJECT));
    addTemplateTracking(radiogroup,nr,data,index,size);
    if (nr.getValue() == null)     nr.setValue(data);
    item.setAttribute(Attributes.MODEL_RENDERAS,nr);
    item.detach();
  }
}