rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
System.err.println("[BUG] " + message);
ruby.getRuntime().getErrorStream().println("[BUG] " + message);
public void rb_bug(String message) { System.err.println("[BUG] " + message); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
System.err.println(message);
ruby.getRuntime().getErrorStream().println(message);
public void rb_compile_error(String message) { System.err.println(message); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
System.err.println("[WARN] " + message);
ruby.getRuntime().getErrorStream().println("[WARN] " + message);
public void rb_warn(String message) { System.err.println("[WARN] " + message); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
System.err.println("[WARNING] " + message);
ruby.getRuntime().getErrorStream().println("[WARNING] " + message);
public void rb_warning(String message) { System.err.println("[WARNING] " + message); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
System.err.println(message);
ruby.getRuntime().getErrorStream().println(message);
private void yyerror(String message) { System.err.println(message); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
return value;
return value;
public int intValue() { return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
if (vars.id == rubyId) {
if (vars.id.equals(rubyId)) {
public static boolean isCurrent(Ruby ruby, String rubyId) { RubyVarmap vars = ruby.getDynamicVars(); while (vars != null) { if (vars.id == null) { break; } if (vars.id == rubyId) { return true; } vars = vars.n...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3da4b9af46d8323718ef8ef50a132b8f0f476465/RubyVarmap.java/buggy/org/jruby/runtime/RubyVarmap.java
public static void push(Ruby ruby, String rubyId, RubyObject val) { ruby.setDynamicVars(new RubyVarmap(rubyId, val, ruby.getDynamicVars()));
public static void push(Ruby ruby) { ruby.varMapStack.push(ruby.getDynamicVars()); ruby.setDynamicVars(null);
public static void push(Ruby ruby, String rubyId, RubyObject val) { ruby.setDynamicVars(new RubyVarmap(rubyId, val, ruby.getDynamicVars())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3da4b9af46d8323718ef8ef50a132b8f0f476465/RubyVarmap.java/buggy/org/jruby/runtime/RubyVarmap.java
public RubyIdPointer(int size) { this(new ArrayList(Collections.nCopies(size, null)), 0, true, null);
public RubyIdPointer() { this(new ArrayList(), 0, true, null);
public RubyIdPointer(int size) { this(new ArrayList(Collections.nCopies(size, null)), 0, true, null); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/RubyIdPointer.java/buggy/org/jruby/util/RubyIdPointer.java
public static RubyId newId(Ruby ruby, int value) { return new RubyId(ruby, value);
public static RubyId newId(Ruby ruby) { return newId(ruby, 0);
public static RubyId newId(Ruby ruby, int value) { // todo: add cache. return new RubyId(ruby, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
public RubyPointer(Object autoResizeObject, int size) { this(new ArrayList(Collections.nCopies(size, autoResizeObject)), 0, true, autoResizeObject);
public RubyPointer() { this(new ArrayList(), 0, true, null);
public RubyPointer(Object autoResizeObject, int size) { this(new ArrayList(Collections.nCopies(size, autoResizeObject)), 0, true, autoResizeObject); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/RubyPointer.java/buggy/org/jruby/util/RubyPointer.java
public void inc() { inc(1);
public void inc(int index) { position += index; autoResize(position);
public void inc() { inc(1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/DefaultPointer.java/buggy/org/jruby/util/DefaultPointer.java
if("create".equals(iwc.getParameter(ContentViewer.PARAMETER_ACTION))){
getArticleItemBean().setResourcePath(resourcePath); } if(baseFolderPath!=null){ getArticleItemBean().setBaseFolderLocation(baseFolderPath); } if(isInCreateMode()){
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
getArticleItemBean().setFolderLocation(resourcePath);
WebDAVCategories categoriesUI = (WebDAVCategories)getCategoryEditor(); categoriesUI.reset();
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
getArticleItemBean().load(resourcePath);
getArticleItemBean().load(); WebDAVCategories categoriesUI = (WebDAVCategories)getCategoryEditor(); if(categoriesUI!=null){ categoriesUI.setResourcePath(resourcePath); }
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
WebDAVCategories categoriesUI = (WebDAVCategories)getCategoryEditor(); if(!isInCreateMode()&& categoriesUI!=null){ categoriesUI.setResourcePath(resourcePath); }
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
}
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
String languageChange=(String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID,"getLanguageChange");
String languageChange = getArticleItemBean().getLanguageChange();
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath");
/*String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath");
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
boolean result = ((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "load",articlePath+"/"+languageChange+ArticleItemBean.ARTICLE_SUFFIX)).booleanValue();
boolean result = ((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "load",articlePath+"/"+languageChange+ArticleItemBean.ARTICLE_FILE_SUFFIX)).booleanValue();
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
*/ getArticleItemBean().setLanguageChange(languageChange);
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
/*String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getText(" ")); p.getChild...
private UIComponent getCategoryEditor() { /*String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p....
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
private UIComponent getCategoryEditor() { /*String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); p....
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
String ref = ARTICLE_ITEM_BEAN_ID + ".";
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
UISaveState beanSaveState = new UISaveState(); ValueBinding binding = WFUtil.createValueBinding("#{"+ARTICLE_ITEM_BEAN_ID+"}"); beanSaveState.setId("articleItemBeanSaveState"); beanSaveState.setValueBinding("value",binding); mainContainer.add(beanSaveState);
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
Iterator iter = ICLocaleBusiness.getListOfLocalesJAVA().iterator(); HtmlSelectOneMenu langDropdown = new HtmlSelectOneMenu(); List arrayList = new ArrayList(); while(iter.hasNext()) { Locale locale = (Locale)iter.next(); String keyStr = locale.getLanguage(); String langStr = locale.getDisplayLanguage(); SelectItem ite...
UIComponent langDropdown = getLanguageDropdownMenu();
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
WebDAVCategories categoriesUI = (WebDAVCategories) getCategoryEditor(); if(categoriesUI==null){ categoriesUI=new WebDAVCategories(); categoriesUI.setCategoriesOnParent(true); categoriesUI.setDisplaySaveButton(false); p.getChildren().add(categoriesUI); }
addCategoryEditor(p);
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { ab.storeArti...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
ab.storeArticle(); ArticleItemBean articleItemBean = getArticleItemBean(); String resourcePath = articleItemBean.getArticleResourcePath(); WebDAVCategories categoriesUI = (WebDAVCategories) ab.getCategoryEditor(); if(categoriesUI!=null){ categoriesUI.setResourcePath(resourcePath); categoriesUI.saveCategoriesSettings...
boolean saveSuccessful=false; saveSuccessful = ab.storeArticle(); if(saveSuccessful){ ArticleItemBean articleItemBean = getArticleItemBean(); String fileResourcePath = articleItemBean.getLocalizedArticle().getResourcePath(); WebDAVCategories categoriesUI = (WebDAVCategories) ab.getCategoryEditor(); if(categoriesUI!=nu...
public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { ab.storeArti...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"); String language = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getContentLanguage");
ArticleItemBean bean = getArticleItemBean(); String articlePath = bean.getResourcePath(); String language = bean.getContentLanguage();
public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
System.out.println("Article path"+articlePath); boolean result = ((Boolean)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "load",articlePath+"/"+arg0.getNewValue()+ArticleItemBean.ARTICLE_SUFFIX)).booleanValue(); System.out.println("loading other language "+result); if(result) { WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLanguageCha...
System.out.println("processValueChange: Article path: "+articlePath); String langChange = arg0.getNewValue().toString(); bean.setLanguageChange(langChange); Locale locale = new Locale(langChange); bean.setLocale(locale); System.out.println("processValueChange: changint to other language "+langChange);
public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
public void storeArticle() { String bref = WFPage.CONTENT_BUNDLE + "."; boolean storeOk = getArticleItemBean().storeArticle().booleanValue(); if (!storeOk) { List errorKeys = getArticleItemBean().getErrorKeys(); if (errorKeys != null) { for (Iterator iter = errorKeys.iterator(); iter.hasNext();) { String errorKey = (...
public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true;
public void storeArticle() { String bref = WFPage.CONTENT_BUNDLE + "."; //boolean storeOk = ((Boolean) WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "storeArticle")).booleanValue(); boolean storeOk = getArticleItemBean().storeArticle().booleanValue(); if (!storeOk) { //List errorKeys = (List) WFUtil.getValue(ARTICLE_ITEM_...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved");
catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); } catch(Exception e){ String errorKey = ArticleStoreException.KEY_ERROR_ON_STORE; WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, erro...
public void storeArticle() { String bref = WFPage.CONTENT_BUNDLE + "."; //boolean storeOk = ((Boolean) WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "storeArticle")).booleanValue(); boolean storeOk = getArticleItemBean().storeArticle().booleanValue(); if (!storeOk) { //List errorKeys = (List) WFUtil.getValue(ARTICLE_ITEM_...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
dp.register(clazz, name);
dp.registerDirective(clazz, name);
public void registerDirective(String name, String clazz) throws Exception { DirectiveProvider dp = (DirectiveProvider) _wm.getBroker().getProvider(DirectiveProvider.DIRECTIVE_KEY); dp.register(clazz, name); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/f7ed464a3a29497b08e7621e3decaea2a2be21bf/TestDirectiveParser.java/clean/webmacro/test/unit/org/webmacro/template/TestDirectiveParser.java
Class exceptionClass)
Class exceptionClass, String messageMatchText)
public void assertStringTemplateThrows (String templateText, Class exceptionClass) throws Exception { assertStringTemplateThrows(templateText, exceptionClass, null); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/08b7577b94c440b422ebdda9ccfaa5bd34182047/TemplateTestCase.java/buggy/webmacro/test/unit/org/webmacro/template/TemplateTestCase.java
assertStringTemplateThrows(templateText, exceptionClass, null);
String result = null; Exception caught = null; try { result = executeStringTemplate(templateText); } catch (Exception e) { caught = e; } if (caught == null) { System.err.println("Execution of /" + templateText + "/" + " yielded /" + result + "/, expecting throw " + exceptionClass); assertTrue(false); } else if (!excep...
public void assertStringTemplateThrows (String templateText, Class exceptionClass) throws Exception { assertStringTemplateThrows(templateText, exceptionClass, null); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/08b7577b94c440b422ebdda9ccfaa5bd34182047/TemplateTestCase.java/buggy/webmacro/test/unit/org/webmacro/template/TemplateTestCase.java
String result = null; try { result = executeStringTemplate(templateText); } catch (Exception e) { System.err.println("Execution of /" + templateText + "/" + " threw " + e.getClass() + "(" + e.getMessage() + ")" + ", expecting /" + resultText + "/"); e.printStackTrace(); assertTrue(false); } if (result == null) return;...
assertStringTemplate( templateText, resultText, true);
public void assertStringTemplateEquals (String templateText, String resultText) { String result = null; try { result = executeStringTemplate(templateText); } catch (Exception e) { System.err.println("Execut...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/08b7577b94c440b422ebdda9ccfaa5bd34182047/TemplateTestCase.java/buggy/webmacro/test/unit/org/webmacro/template/TemplateTestCase.java
public MappingMetaData(Properties properties) { this.properties = properties; this.packageName = properties.getProperty("package", "");
public MappingMetaData(String packageName) { this.packageName = packageName; this.properties = new Properties();
public MappingMetaData(Properties properties) { this.properties = properties; this.packageName = properties.getProperty("package", ""); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/b05052e52d5df78c860e248c9008c7e71be70d95/MappingMetaData.java/clean/spring/src/java/org/xbean/spring/context/impl/MappingMetaData.java
info); tabs.addChangeListener(controller);
info);
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); tabs = new JTabbedPane(JTabbedPane.TOP, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/EditorUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
tabs.addChangeListener(controller);
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); tabs = new JTabbedPane(JTabbedPane.TOP, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/EditorUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
void setEdit(boolean b) { edit = b; }
void setEdit(boolean b) { edit = b; finishButton.setEnabled(b); }
void setEdit(boolean b) { edit = b; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/EditorUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
showMessengerDialog("", detail);
Exception e; if (detail == null) e = new Exception(summary); else e = new Exception(detail); MessengerDialog d = new MessengerDialog(SHARED_FRAME, DEFAULT_COMMENT_TITLE, "", e); d.addPropertyChangeListener(manager); d.setModal(true); UIUtilities.centerAndShow(d);
private void showErrorDialog(String title, String summary, String detail) { showMessengerDialog("", detail); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/UserNotifierImpl.java/clean/SRC/org/openmicroscopy/shoola/env/ui/UserNotifierImpl.java
public void submitMessage(String emailAddress)
public void submitMessage(String email)
public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/UserNotifierImpl.java/clean/SRC/org/openmicroscopy/shoola/env/ui/UserNotifierImpl.java
showMessengerDialog(emailAddress, null);
MessengerDialog d = new MessengerDialog(SHARED_FRAME, DEFAULT_COMMENT_TITLE, email); d.addPropertyChangeListener(manager); d.setModal(true); UIUtilities.centerAndShow(d);
public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/UserNotifierImpl.java/clean/SRC/org/openmicroscopy/shoola/env/ui/UserNotifierImpl.java
public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception)
public MessengerDialog(JFrame parent, String title, String emailAddress)
public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2264b41cad5f5a8f753df78c8ae071e93710a6ec/MessengerDialog.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/MessengerDialog.java
this.exception = exception;
public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2264b41cad5f5a8f753df78c8ae071e93710a6ec/MessengerDialog.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/MessengerDialog.java
public List getLoadedFeatures() {
public Set getLoadedFeatures() {
public List getLoadedFeatures() { return loadedFeatures; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/81b5aaa51a9bfd2e89a4bb4b2058749dd3a5eacf/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
_ls.addTarget(new ServletLog(_servletContext, _config));
addLogTarget();
public void initLog(Settings config) { String logFile = config.getSetting("LogFile"); if ((logFile == null || logFile.equals("")) && _config.getBooleanSetting("LogUsingServletLog")) _ls.addTarget(new ServletLog(_servletContext, _config)); else initLog(); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/d114aeb4a4a4082235410b28532704ef224610b6/ServletBroker.java/buggy/webmacro/src/org/webmacro/servlet/ServletBroker.java
public Broker(Properties config, String name) throws InitException
public Broker() throws InitException
public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java
_lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); throw new InitException("No configuration supplied: " + "perhaps some configuration file could not be located?"); } _conf...
this("WebMacro.properties");
public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java
org.openmicroscopy.omero.logic.Utils.setUserAuth();
ome.security.Utils.setUserAuth();
protected void onSetUp() throws Exception { super.onSetUp(); org.openmicroscopy.omero.logic.Utils.setUserAuth(); cd = (ContainerDao) applicationContext.getBean("containerDao"); gd = (GenericDao) applicationContext.getBean("genericDao"); cu = (DaoCleanUpHibernate) applicationContext.getB...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1cb5fafb4558d8c5eb3fc9e15fe17cde2974e737/HibernateProxyCleanupFilterTest.java/clean/components/server/test/ome/server/itests/HibernateProxyCleanupFilterTest.java
ClassData d = new ClassData("org.jaxen.expr.IdentitySet$IdentityWrapp"); assertEquals("org/jaxen/expr/IdentitySet.java", d.getSourceFileName()); ClassData e = new ClassData("org.jaxen.expr.NodeComparator$1"); assertEquals("org/jaxen/expr/NodeComparator.java", e.getSourceFileName());
public void testSourceFileName() { a.setSourceFileName(null); assertEquals("com/example/HelloWorld.java", a.getSourceFileName()); a.setSourceFileName("HelloWorld.java"); assertEquals("com/example/HelloWorld.java", a.getSourceFileName()); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c61ea640346b4696d424218673f964aee47e9919/ClassDataTest.java/buggy/cobertura/test/net/sourceforge/cobertura/coveragedata/ClassDataTest.java
if (firstDollarSign == -1)
if (firstDollarSign == -1 || firstDollarSign == 0)
public String getSourceFileName() { String baseName; if (sourceFileName != null) baseName = sourceFileName; else { int firstDollarSign = getBaseName().indexOf('$'); if (firstDollarSign == -1) baseName = getBaseName() + ".java"; else baseName = getBaseName().substring(0, firstDollarSign) + ".java...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1e6dfb4c1e4f42ee651e2ac9c5f002edb74e4bc6/ClassData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ClassData.java
DataHandler dh = model.annotateDataObjects(nodes);
DataHandler dh = model.annotateDataObjects(view, nodes);
public void annotateDataObjects(Set nodes) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (nodes == null) throw new IllegalArgumentException("No dataObject to annotate"); if (nodes.size() == 1) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java
DataHandler dh = model.classifyImageObjects(images, mode);
DataHandler dh = model.classifyImageObjects(view, images, mode);
public void classifyImages(ImageData[] images, int mode) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (images == null || images.length == 0) throw new IllegalArgumentException("No image to classi...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java
if (nodes.size() > 1)
if (nodes.size() > 1) {
public void execute() { boolean b = false; Browser browser = model.getBrowser(); if (node == null && browser != null) { node = browser.getLastSelectedDisplay(); b = true; } if (node == null) return; if (node.getHierarchyObject() == null...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/AnnotateCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/AnnotateCmd.java
return; }
public void execute() { boolean b = false; Browser browser = model.getBrowser(); if (node == null && browser != null) { node = browser.getLastSelectedDisplay(); b = true; } if (node == null) return; if (node.getHierarchyObject() == null...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/AnnotateCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/AnnotateCmd.java
void scrollToNode(ImageDisplay node)
private void scrollToNode(Rectangle childBounds, ImageDisplay parent, boolean isRoot)
void scrollToNode(ImageDisplay node) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null)); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/39bb6f0c93c9752d3daacd9753b8402e6d393a78/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null));
JScrollPane dskDecorator = parent.getDeskDecorator(); Rectangle viewRect = dskDecorator.getViewport().getViewRect(); if (!viewRect.contains(childBounds)) { JScrollBar vBar = dskDecorator.getVerticalScrollBar(); JScrollBar hBar = dskDecorator.getHorizontalScrollBar(); vBar.setValue(childBounds.y); hBar.setValue(childBou...
void scrollToNode(ImageDisplay node) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null)); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/39bb6f0c93c9752d3daacd9753b8402e6d393a78/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
hash.setRubyClass((RubyClass) recv);
hash.setInternalClass((RubyClass) recv);
public static RubyHash newInstance(IRubyObject recv, IRubyObject[] args) { RubyHash hash = new RubyHash(recv.getRuntime()); hash.setRubyClass((RubyClass) recv); hash.callInit(args); return hash; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyHash.java/clean/org/jruby/RubyHash.java
RubyHash result = newHash(input.getRuby());
RubyHash result = newHash(input.getRuntime());
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuby()); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject(); IRubyObject value = input.unmar...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyHash.java/clean/org/jruby/RubyHash.java
public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true);
public RubyObject(Ruby ruby) { this(ruby, null, false);
public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0044a3b88a0afa22dcced1c8213002b0fb16faf4/RubyObject.java/buggy/src/org/jruby/RubyObject.java
public static Callback getOptSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true, true);
public static Callback getOptSingletonMethod(Class type, String method, Class arg1) { return new ReflectionCallbackMethod(type, method, new Class[] { arg1, RubyObject[].class }, true, true, -1);
public static Callback getOptSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true, true); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java
return new ReflectionCallbackMethod(type, method, true);
return new ReflectionCallbackMethod(type, method, new Class[]{RubyObject[].class}, true, false, -1);
public static Callback getOptMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java
return new ReflectionCallbackMethod(type, method);
return new ReflectionCallbackMethod(type, method, new Class[0], false, false, 0);
public static Callback getMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/CallbackFactory.java/buggy/org/jruby/runtime/CallbackFactory.java
throw new ArgumentError(ruby, "exceed depth limit");
throw new ArgumentError(runtime, "exceed depth limit");
public void dumpObject(IRubyObject value) throws IOException { depth++; if (depth > depthLimit) { throw new ArgumentError(ruby, "exceed depth limit"); } if (! shouldBeRegistered(value)) { writeDirectly(value); } else if (hasUserDefinedMarshaling(value)) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/034747585fcabe56272dd07acab0ab42ce8450d5/MarshalStream.java/buggy/org/jruby/runtime/marshal/MarshalStream.java
switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBoolean.newBoolean(runtime, false); case '"' : return RubyString.unmarshalFrom(this); case 'i' : return RubyFixnum.unmarshalFrom(this); case ':' : return RubySymbol.unmarshalFrom(this); cas...
IRubyObject result; if (type == '@') { result = cache.linkedByIndex(unmarshalInt()); } else if (type == ';') { result = cache.symbolByIndex(unmarshalInt()); } else { result = unmarshalObjectDirectly(type);
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBool...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/034747585fcabe56272dd07acab0ab42ce8450d5/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
cache.register(result); return result;
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBool...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/034747585fcabe56272dd07acab0ab42ce8450d5/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
}
}
public void execute(EvaluationState state, InstructionContext ctx) { LocalAsgnNode iVisited = (LocalAsgnNode)ctx; state.runtime.getCurrentContext().getCurrentScope().setValue(iVisited.getCount(), state.getResult()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/462642d5055a19da1d85d68115d10ae6a85336ca/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
return name;
return nameNode.getName();
public String getName() { return name; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/DefnNode.java/buggy/src/org/jruby/ast/DefnNode.java
public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re;
public static RubyRegexp newRegexp(RubyString str, int options) { return newRegexp(str.getRuntime(), str.getValue(), options);
public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyRegexp.java/buggy/org/jruby/RubyRegexp.java
securitySystem.runAsAdmin(action);
public void changePermissions(final IObject iObject, final Permissions perms) { AdminAction action = new AdminAction(){ public void runAsAdmin() { IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Permissions p = new Permissions(perms); // FIXME ticket:215 copy.g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b561a23852217da2370dc97ce2cd10d0271871d1/AdminImpl.java/clean/components/server/src/ome/logic/AdminImpl.java
public Parameters( Filter filter ) { this.filter = filter; }
public Parameters( ) {}
public Parameters( Filter filter ) { this.filter = filter; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/681f5879faf267b8ebe18043300cc1f3cd8adc94/Parameters.java/buggy/components/common/src/ome/parameters/Parameters.java
public Query(Definitions definitions, Parameters parameters) { this.defs = definitions; this.params = parameters;
private Query() { this.defs = null; this.params = null;
public Query(Definitions definitions, Parameters parameters) { this.defs = definitions; this.params = parameters; checkParameters(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/Query.java/buggy/components/server/src/ome/services/query/Query.java
public Permissions( Permissions p ) { if ( p == null ) { throw new IllegalArgumentException( "Permissions argument cannot be null."); } this.revokeAll(p); }
public Permissions() {}
public Permissions( Permissions p ) { if ( p == null ) { throw new IllegalArgumentException( "Permissions argument cannot be null."); } this.revokeAll(p); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/11e27c50ffc5e1ce04215ccb2ab52f7b902bc719/Permissions.java/buggy/components/common/src/ome/model/internal/Permissions.java
Experimenter userProxy( Long userId );
Experimenter userProxy( String omeName );
Experimenter userProxy( Long userId );
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/681f5879faf267b8ebe18043300cc1f3cd8adc94/LocalAdmin.java/buggy/components/server/src/ome/api/local/LocalAdmin.java
_log.info("shutdown " + this);
final public void destroy() { if (_alive) { _alive = false; _owner.done(); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/WM.java/clean/webmacro/src/org/webmacro/WM.java
_log.info("stopping: " + pr);
synchronized public void shutdown() { Enumeration e = _providers.elements(); _providers = null; while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); pr.destroy(); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java
public Log getLog(String type);
public Log getLog(String type, String description);
public Log getLog(String type);
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/344955998d4bb8df3ce55c28903940bd460aaa6a/WebMacro.java/buggy/webmacro/src/org/webmacro/WebMacro.java
String tools = (String) broker.getValue("config","TemplateTools");
String tools = (String) broker.getValue("config","ContextTools");
public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); registerTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/278b4a35f5c73b37a3381dc75821bfaa4d3aa3d0/WebContext.java/buggy/webmacro/src/org/webmacro/servlet/WebContext.java
assertNotNull("And it should have an id",expData.getId());
assertTrue("And it should have an id",expData.getId()>-1);
public void testGetSomethingThatsAlwaysThere() throws Exception { List l = q.getListByExample(new Experimenter()); assertTrue("Root has to exist.",l.size()>0); // Now let's try to map it. ExperimenterData expData = (ExperimenterData) mapper.map((Experimenter)l.get(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/73a1afa2d25923d96be1e1cc467e96ddaca80e9f/PojosServiceTest.java/buggy/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java
Image img2 = (Image) q.getById(Image.class,img.getId());
Image img2 = (Image) q.getById(Image.class,img.getId().longValue());
public void testNowLetsTryToSaveSomething() throws Exception { // prepare data ImageData imgData = new ImageData(); imgData.setName("My test image"); imgData.setDescription("My test description"); // convert it Image img = (Image) reverse.map(imgData); img...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/73a1afa2d25923d96be1e1cc467e96ddaca80e9f/PojosServiceTest.java/buggy/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java
else if (s == null) return null;
public byte[] encode(String s) { int hash = s.hashCode() % _size; if (hash < 0) hash = -hash; Bucket b = _cache[hash]; synchronized (b) { if (b.string1 == s) return b.bytes1; else if (b.string2 == s) return b.bytes2; else if (b.string3 == s) ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/8f5880751893a7e5dd9da25d036747a39c9b25b5/EncodingCache.java/buggy/webmacro/src/org/webmacro/util/EncodingCache.java
if (i == 0 || (ruby.getScope().getFlags() & RubyScope.SCOPE_MALLOC) == 0) {
if (i == 0 || (ruby.getScope().getFlags() & Scope.SCOPE_MALLOC) == 0) {
public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
ruby.getScope().setFlags(ruby.getScope().getFlags() | RubyScope.SCOPE_MALLOC);
ruby.getScope().setFlags(ruby.getScope().getFlags() | Scope.SCOPE_MALLOC);
public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/ParserHelper.java/clean/org/jruby/parser/ParserHelper.java
File[] jars = new File[6];
File[] jars = new File[7];
private File[] locateBuildJars() throws Exception { File[] jars = new File[6]; jars[0] = new File(mavenPath("ant","ant","1.6.5")); jars[1] = new File(mavenPath("ant","ant-launcher","1.6.5")); jars[2] = new File(mavenPath("xml-apis","xml-apis","1.0.b2")); jars[3] = new File(mavenPath("xerces","xerce...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7ab39e819f6f6e9b55c42fdbb193d6585f8a1a6b/omero.java/buggy/lib/tools/omero.java
jars[6] = new File("lib/tools/bsh-2.0b4.jar");
private File[] locateBuildJars() throws Exception { File[] jars = new File[6]; jars[0] = new File(mavenPath("ant","ant","1.6.5")); jars[1] = new File(mavenPath("ant","ant-launcher","1.6.5")); jars[2] = new File(mavenPath("xml-apis","xml-apis","1.0.b2")); jars[3] = new File(mavenPath("xerces","xerce...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7ab39e819f6f6e9b55c42fdbb193d6585f8a1a6b/omero.java/buggy/lib/tools/omero.java
if (tokadd_escape() < 0)
if (tokadd_escape(term) < 0)
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby_sourceline; NODE list = null; newtok(); regx_end: while ((c = nextc()) != -1) { if (c == term...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
ruby.rubyScope.setLocalVars(1, val);
ruby.rubyScope.setLocalVars(1, (RubyObject)val);
void rb_backref_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(1, val); } else { special_local_set('~', val); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
ruby.rubyScope.setLocalVars(0, val);
ruby.rubyScope.setLocalVars(0, (RubyObject)val);
void rb_lastline_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(0, val); } else { special_local_set('_', val); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
ruby.rubyScope.setLocalVars(cnt, val);
ruby.rubyScope.setLocalVars(cnt, (RubyObject)val);
private void special_local_set(char c, VALUE val) { top_local_init(); int cnt = local_cnt(c); top_local_setup(); ruby.rubyScope.setLocalVars(cnt, val); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
private int tokadd_escape() {
private int tokadd_escape(int term /* FIX 1.6.5*/) {
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
return tokadd_escape();
return tokadd_escape(term); /* FIX 1.6.5*/
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
return tokadd_escape();
return tokadd_escape(term); /* FIX 1.6.5*/
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
return tokadd_escape();
return tokadd_escape(term); /* FIX 1.6.5*/
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
tokadd('\\');
if (c != term) { /* FIX 1.6.5*/ tokadd('\\'); } /* FIX 1.6.5*/
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
case tAREF:
/*case tAREF:
private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
case tCOLON3:
case tCOLON3: FIX 1.6.5*/
private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
if (c == -1 || c == 10) {
if (c == -1/* || c == 10 1.6.5 fix*/) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = command_start; command_start = false; retry:for(;;) { switch (c = nextc()) { case '\0': /* NUL */ case '\004': /* ^D */ case '\032': /* ^Z */ case -1: /* end of...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
public RubyFixnum(Ruby ruby, long value) { super(ruby, ruby.getClasses().getFixnumClass()); this.value = value;
public RubyFixnum(Ruby ruby) { this(ruby, 0);
public RubyFixnum(Ruby ruby, long value) { super(ruby, ruby.getClasses().getFixnumClass()); this.value = value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/043fa4419ad506aa6f8843684eb8114b226fe4b5/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java