rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
public Map getEntries() {
|
public Map getEntries() {
|
public Map getEntries() { return entries; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/buggy/core/src/classpath/java/java/util/jar/Manifest.java
|
public final void update(byte[]data, int off, int len) throws SignatureException
|
public final void update(byte b) throws SignatureException
|
public final void update(byte[]data, int off, int len) throws SignatureException { if (state != UNINITIALIZED) engineUpdate(data, off, len); else throw new SignatureException(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/698ac538b7482b0e4aac918befb43b8376e364e3/Signature.java/buggy/core/src/classpath/java/java/security/Signature.java
|
engineUpdate(data, off, len);
|
engineUpdate(b);
|
public final void update(byte[]data, int off, int len) throws SignatureException { if (state != UNINITIALIZED) engineUpdate(data, off, len); else throw new SignatureException(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/698ac538b7482b0e4aac918befb43b8376e364e3/Signature.java/buggy/core/src/classpath/java/java/security/Signature.java
|
public void actionPerformed(ActionEvent e) { if (frame.isClosable()) { try { frame.setClosed(true); } catch (PropertyVetoException pve) { } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
||
public void actionPerformed(ActionEvent e) { if (frame.isIconifiable() && ! frame.isIcon()) { try { frame.setIcon(true); } catch (PropertyVetoException pve) { } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
||
public void actionPerformed(ActionEvent e) { try { if (frame.isMaximizable() && ! frame.isMaximum()) frame.setMaximum(true); else if (frame.isMaximum()) frame.setMaximum(false); } catch (PropertyVetoException pve) { } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
||
public void actionPerformed(ActionEvent e) { if (frame.isMaximum()) { try { frame.setMaximum(false); } catch (PropertyVetoException pve) { } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
||
public void removeLayoutComponent(Component c) { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
||
String[] macrosList = macros.getMacroList();
|
String[] macrosList = Macronizer.getMacroList();
|
public static void loadMacros(Session session, Macronizer macros, JMenu menu) { final Session ses = session; Vector mv = new Vector(); Action action; menu.addSeparator(); String[] macrosList = macros.getMacroList(); for (int x = 0; x < macrosList.length; x++) { mv.add(macrosList[x]); } Collections.sort(mv); for (int x = 0; x < mv.size(); x++) { action = new AbstractAction((String)mv.get(x)) { public void actionPerformed(ActionEvent e) { ses.executeMeMacro(e); } }; menu.add(action); } scriptDir("scripts",menu,session); String conPath = ""; String conPath2 = ""; try { conPath = new File("scripts").getCanonicalPath(); conPath2 = new File(GlobalConfigure.instance().getProperty( "emulator.settingsDirectory") + "scripts").getCanonicalPath(); } catch (IOException ioe ) { } // lets not load the menu again if they point to the same place if (!conPath.equals(conPath2)) scriptDir(GlobalConfigure.instance().getProperty( "emulator.settingsDirectory") + "scripts",menu,session); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a214bcb897ee9098f3737a95f7be3c969f3651cb/LoadMacroMenu.java/clean/tn5250j/src/org/tn5250j/tools/LoadMacroMenu.java
|
{ return null; }
|
{ return StyleConstants.getComponent(getElement().getAttributes()); }
|
protected Component createComponent() { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java
|
{ return 0; }
|
{ return 0; }
|
public float getAlignment(int axis) { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java
|
{ return null; }
|
{ return null; }
|
public final Component getComponent() { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java
|
{ return 0; }
|
{ return 0; }
|
public float getMaximumSpan(int axis) { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java
|
int width = container.getWidth() - insets.left - insets.right - 1; int height = container.getHeight() - insets.top - insets.bottom - 1;
|
int width = container.getWidth() - insets.left - insets.right; int height = container.getHeight() - insets.top - insets.bottom;
|
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); int[] hSpans = new int[children.length]; int[] hOffsets = new int[children.length]; int[] vSpans = new int[children.length]; int[] vOffsets = new int[children.length]; Insets insets = container.getInsets(); int width = container.getWidth() - insets.left - insets.right - 1; int height = container.getHeight() - insets.top - insets.bottom - 1; if (isHorizontalIn(container)) { SizeRequirements.calculateTiledPositions(width, null, hSizeReqs, hOffsets, hSpans); SizeRequirements.calculateAlignedPositions(height, null, vSizeReqs, vOffsets, vSpans); } else { SizeRequirements.calculateTiledPositions(height, null, vSizeReqs, vOffsets, vSpans); SizeRequirements.calculateAlignedPositions(width, null, hSizeReqs, hOffsets, hSpans); } // Set positions and widths of child components. for (int i = 0; i < children.length; i++) { Component child = children[i]; child.setBounds(hOffsets[i] + insets.left, vOffsets[i] + insets.top, hSpans[i], vSpans[i]); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BoxLayout.java/buggy/core/src/classpath/javax/javax/swing/BoxLayout.java
|
return new Dimension(hReq.preferred, vReq.preferred);
|
Insets insets = container.getInsets(); return new Dimension(hReq.preferred + insets.left + insets.right, vReq.preferred + insets.top + insets.bottom);
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSizeRequirements(hSizeReqs, vSizeReqs); SizeRequirements hReq; SizeRequirements vReq; if (isHorizontalIn(container)) { hReq = SizeRequirements.getTiledSizeRequirements(hSizeReqs); vReq = SizeRequirements.getAlignedSizeRequirements(vSizeReqs); } else { hReq = SizeRequirements.getAlignedSizeRequirements(hSizeReqs); vReq = SizeRequirements.getTiledSizeRequirements(vSizeReqs); } return new Dimension(hReq.preferred, vReq.preferred); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BoxLayout.java/buggy/core/src/classpath/javax/javax/swing/BoxLayout.java
|
this.index0 = index0; this.index1 = index1;
|
this.index0 = Math.min(index0, index1); this.index1 = Math.max(index0, index1);
|
public ListDataEvent(Object source, int type, int index0, int index1) { super(source); this.type = type; this.index0 = index0; this.index1 = index1; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ListDataEvent.java/buggy/core/src/classpath/javax/javax/swing/event/ListDataEvent.java
|
SessionAttributes sa = new SessionAttributes(propFileName,
|
SessionAttributes sa = null; if (me == null) sa = new SessionAttributes(propFileName, defaultProps, new JFrame()); else sa = new SessionAttributes(propFileName,
|
private void doAttributes() { SessionAttributes sa = new SessionAttributes(propFileName, defaultProps, (Frame)me.getParentView((Session)this)); sa.addPropertyChangeListener(screen); sa.addPropertyChangeListener(this); sa.showIt(); defaultProps = sa.getProperties(); sa.removePropertyChangeListener(screen); sa.removePropertyChangeListener(this); getFocusForMe(); sa = null; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java
|
kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage());
|
kc = new KeyConfigure(parent,macrosList,vt.getCodePage());
|
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java
|
kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage());
|
kc = new KeyConfigure(parent,null,vt.getCodePage());
|
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage()); }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java
|
me.getParentView((Session)this),
|
parent,
|
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.getInstance(); CollationKey key = null; Set set = new TreeSet(); for (int x =0;x < 256; x++) { char c = vt.ebcdic2uni(x); char ac = vt.getASCIIChar(x); if (!Character.isISOControl(ac)) { sb.setLength(0); if (Integer.toHexString(ac).length() == 1){ sb.append("0x0" + Integer.toHexString(ac).toUpperCase()); } else { sb.append("0x" + Integer.toHexString(ac).toUpperCase()); } sb.append(" - " + c); key = collator.getCollationKey(sb.toString()); set.add(key); } } Iterator iterator = set.iterator(); while (iterator.hasNext()) { CollationKey keyc = (CollationKey)iterator.next(); listModel.addElement(keyc.getSourceString()); } //Create the list and put it in a scroll pane JList hm = new JList(listModel); hm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); hm.setSelectedIndex(0); JScrollPane listScrollPane = new JScrollPane(hm); listScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); listScrollPane.setSize(40,100); srp.add(listScrollPane,BorderLayout.CENTER); Object[] message = new Object[1]; message[0] = srp; String[] options = {LangTool.getString("hm.optInsert"), LangTool.getString("hm.optCancel")}; int result = 0; result = JOptionPane.showOptionDialog( me.getParentView((Session)this), // the parent that the dialog blocks message, // the dialog message array LangTool.getString("hm.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.INFORMATION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Insert character String k = ""; k += ((String)hm.getSelectedValue()).charAt(7); screen.sendKeys(k); break; case 1: // Cancel// System.out.println("Cancel"); break; default: break; } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java
|
if (tree.getLeadSelectionPath() == null || (tree.getLeadSelectionPath().getLastPathComponent()).equals(val))
|
if (hasFocus)
|
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); setText(val.toString()); this.selected = selected; this.hasFocus = hasFocus; setHorizontalAlignment(LEFT); setOpaque(false); setVerticalAlignment(TOP); setEnabled(true); super.setFont(UIManager.getLookAndFeelDefaults().getFont("Tree.font")); if (selected) { super.setBackground(getBackgroundSelectionColor()); setForeground(getTextSelectionColor()); if (tree.getLeadSelectionPath() == null || (tree.getLeadSelectionPath().getLastPathComponent()).equals(val)) setBorderSelectionColor(UIManager.getLookAndFeelDefaults(). getColor("Tree.selectionBorderColor")); else setBorderSelectionColor(null); } else { super.setBackground(getBackgroundNonSelectionColor()); setForeground(getTextNonSelectionColor()); setBorderSelectionColor(null); } return this; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java
|
MenuBar() {
|
public MenuBar() {
|
MenuBar(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
throw new HeadlessException (); }
|
throw new HeadlessException(); }
|
MenuBar(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
add(Menu menu) {
|
public synchronized Menu add(Menu menu) {
|
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
menu.parent.remove (menu);
|
menu.parent.remove(menu);
|
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
{
|
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
|
}
|
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
|
return(menu); }
|
return menu; }
|
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { menu.addNotify(); } return(menu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
countMenus() { return menus.size () + (getHelpMenu () == null ? 0 : 1); }
|
public int countMenus() { return menus.size() + (getHelpMenu() == null ? 0 : 1); }
|
countMenus(){ return menus.size () + (getHelpMenu () == null ? 0 : 1);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
deleteShortcut(MenuShortcut shortcut) {
|
public void deleteShortcut(MenuShortcut shortcut) {
|
deleteShortcut(MenuShortcut shortcut){ MenuItem it; // This is a slow implementation, but it probably doesn't matter. while ((it = getShortcutMenuItem (shortcut)) != null) it.deleteShortcut ();}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
it.deleteShortcut (); }
|
it.deleteShortcut(); }
|
deleteShortcut(MenuShortcut shortcut){ MenuItem it; // This is a slow implementation, but it probably doesn't matter. while ((it = getShortcutMenuItem (shortcut)) != null) it.deleteShortcut ();}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
{ /* Create the context if this is the first request */
|
{
|
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTMenuBar(); return accessibleContext;}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
}
|
}
|
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTMenuBar(); return accessibleContext;}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
getHelpMenu() { return(helpMenu); }
|
public Menu getHelpMenu() { return helpMenu; }
|
getHelpMenu(){ return(helpMenu);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
getMenu(int index) { return((Menu)menus.elementAt(index)); }
|
public Menu getMenu(int index) { return (Menu) menus.elementAt(index); }
|
getMenu(int index){ return((Menu)menus.elementAt(index));}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
getMenuCount() { return countMenus (); }
|
public int getMenuCount() { return countMenus(); }
|
getMenuCount(){ return countMenus ();}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
getShortcutMenuItem(MenuShortcut shortcut) {
|
public MenuItem getShortcutMenuItem(MenuShortcut shortcut) {
|
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
Menu menu = (Menu)e.nextElement();
|
Menu menu = (Menu) e.nextElement();
|
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
if ((s != null) && (s.equals(shortcut))) return(menu);
|
if ((s != null) && s.equals(shortcut)) return menu;
|
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
return(null); }
|
return null; }
|
getShortcutMenuItem(MenuShortcut shortcut){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); MenuShortcut s = menu.getShortcut(); if ((s != null) && (s.equals(shortcut))) return(menu); } return(null);}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
setHelpMenu(Menu menu) {
|
public synchronized void setHelpMenu(Menu menu) {
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
helpMenu.removeNotify ();
|
helpMenu.removeNotify();
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
menu.parent.remove (menu);
|
menu.parent.remove(menu);
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null)
|
MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null)
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
peer.addHelpMenu (menu);
|
myPeer.addHelpMenu(menu); }
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
}
|
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
|
shortcuts() {
|
public synchronized Enumeration shortcuts() {
|
shortcuts(){ Vector shortcuts = new Vector(); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); if (menu.getShortcut() != null) shortcuts.addElement(menu.getShortcut()); } return(shortcuts.elements());}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
return(shortcuts.elements()); }
|
return shortcuts.elements(); }
|
shortcuts(){ Vector shortcuts = new Vector(); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu menu = (Menu)e.nextElement(); if (menu.getShortcut() != null) shortcuts.addElement(menu.getShortcut()); } return(shortcuts.elements());}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
|
final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.add(f); } } return list;
|
if (jnodeType != null) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.add(f); } } return list; } else { return new ArrayList(0); }
|
private static List getInstanceFields(VmType jnodeType) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (!f.isStatic()) { list.add(f); } } return list; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c8da417da2869c47f7a3de7d071f1cd14a2e6a0e/FieldInfo.java/clean/builder/src/builder/org/jnode/build/FieldInfo.java
|
final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(f); } } return list;
|
if (jnodeType != null) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(f); } } return list; } else { return new ArrayList(0); }
|
private static List getStaticFields(VmType jnodeType) { final int all = jnodeType.getNoDeclaredFields(); final ArrayList list = new ArrayList(all); for (int i = 0; i < all; i++) { final VmField f = jnodeType.getDeclaredField(i); if (f.isStatic()) { list.add(f); } } return list; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c8da417da2869c47f7a3de7d071f1cd14a2e6a0e/FieldInfo.java/clean/builder/src/builder/org/jnode/build/FieldInfo.java
|
protected insideTimerAction() { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
|
||
public void actionPerformed(ActionEvent event) { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
|
||
protected outsideTimerAction() { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
|
||
protected stillInsideTimerAction() { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
|
||
/* my $notesObj = $LAST_NOTES_OBJECT; # if (ref($notesObj) eq 'XDF::Array') { # for (@NOTE_LOCATOR_ORDER) { $notesObj->addAxisIdToLocatorOrder($_); } # } */
|
public void action (SaxDocumentHandler handler) { // set the locatorOrder in the Notes object/* my $notesObj = $LAST_NOTES_OBJECT;# if (ref($notesObj) eq 'XDF::Array') {# for (@NOTE_LOCATOR_ORDER) { $notesObj->addAxisIdToLocatorOrder($_); }# }*/ // reset the location order NoteLocatorOrder = new ArrayList (); }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
||
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
||
List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1);
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
|
Iterator iter = strValueList.iterator(); while (iter.hasNext())
|
String valueListId = (String) CurrentValueListParameter.get("valueListId"); if (valueListId != null) { if (ValueListObj.containsKey(valueListId)) Log.warnln("More than one valueList node with valueListId=\""+valueListId+"\", using latest node." ); ValueListObj.put(valueListId, strValueList); } String valueListIdRef = (String) CurrentValueListParameter.get("valueListIdRef"); if (valueListIdRef != null) { if (ValueListObj.containsKey(valueListIdRef)) { ArrayList refValueListObj = (ArrayList) ValueListObj.get(valueListIdRef); strValueList = (ArrayList) refValueListObj.clone(); /* */ } else { Log.warnln("Error: Reader got an valueList with ValueListIdRef=\""+valueListIdRef+"\" but no previous valueList has that id! Ignoring add valueList request."); return; } } if( parentNodeName.equals(XDFNodeName.AXIS) )
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
String valueString = (String) iter.next();
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
|
Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue);
|
List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1);
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext())
|
Iterator iter = strValueList.iterator(); while (iter.hasNext())
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj);
|
String valueString = (String) iter.next(); Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); }
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
}
|
} else if( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); Value newvalue = new Value(valueString); LastParameterObject.addValue(newvalue); Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST+", aborting read."); System.exit(-1); }
|
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // our string that we will parse String valueListString = new String (buf, offset, len); String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // reconsitute information stored in CurrentValueListParameter table String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName");// NOT currently complete. Adds values ONLY to axes. Need one for parameter too. // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter // and snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } CurrentValueListParameter.put("isDelimitedCase", "true"); // notify that we did the list }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
ArrayList values = getValueListNodeValues();
|
ArrayList values = null; String valueListIdRef = (String) CurrentValueListParameter.get("valueListIdRef"); if (valueListIdRef != null) { if (ValueListObj.containsKey(valueListIdRef)) {
|
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE?? }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
ArrayList refValueListObj = (ArrayList) ValueListObj.get(valueListIdRef); values = (ArrayList) refValueListObj.clone(); } else { Log.warnln("Error: Reader got an valueList with ValueListIdRef=\""+valueListIdRef+"\" but no previous valueList has that id! Ignoring add valueList request."); return; } } else { values = getValueListNodeValues(); } String valueListId = (String) CurrentValueListParameter.get("valueListId"); if (valueListId != null) { if (ValueListObj.containsKey(valueListId)) Log.warnln("More than one valueList node with valueListId=\""+valueListId+"\", using latest node." ); ValueListObj.put(valueListId, values); }
|
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE?? }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
|
} else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) )
|
} else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) )
|
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE?? }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */
|
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDelimitedCase")).equals("true") ) return; // we already did the list, leave here // 1. grab parent node name String parentNodeName = (String) CurrentValueListParameter.get("parentNodeName"); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(); // 3. Populate correct parent node w/ values if(values.size() > 0 ) { // needed safety? ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) {/* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup);*/ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.warnln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); return; // bail } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } }// Need to do something wi/ ValueObjList HERE?? }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
|
String parentNodeName = getParentNodeName();
|
String parentNodeName = getParentNodeName(XDFNodeName.VALUEGROUP);
|
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter.clear(); // 2. populate ValueListparameters from attribute list CurrentValueListParameter = attribListToHashtable(attrs); // 3. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("parentNodeName", parentNodeName); // 4. set this parameter to false to indicate the future is not // yet determined for this :) CurrentValueListParameter.put("isDelimitedCase", "false"); return (Object) null; }
|
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7aa5df243b85269468ebd5580fb23fb9462935b8/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
|
algOid = new OID(params.getAlgorithm());
|
algName = params.getAlgorithm (); algOid = getOid (algName);
|
public EncryptedPrivateKeyInfo(AlgorithmParameters params, byte[] encryptedData) throws IllegalArgumentException, NoSuchAlgorithmException { if (encryptedData.length == 0) { throw new IllegalArgumentException("0-length encryptedData"); } this.params = params; algOid = new OID(params.getAlgorithm()); this.encryptedData = (byte[]) encryptedData.clone(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/EncryptedPrivateKeyInfo.java/clean/core/src/classpath/javax/javax/crypto/EncryptedPrivateKeyInfo.java
|
algId.add(DERReader.read(params.getEncoded()));
|
algId.add (DERReader.read (params.getEncoded())); } else { algId.add (new DERValue (DER.NULL, null));
|
private void encode() throws IOException { List algId = new ArrayList(2); algId.add(new DERValue(DER.OBJECT_IDENTIFIER, algOid)); getAlgParameters(); if (params != null) { algId.add(DERReader.read(params.getEncoded())); } List epki = new ArrayList(2); epki.add(new DERValue(DER.CONSTRUCTED|DER.SEQUENCE, algId)); epki.add(new DERValue(DER.OCTET_STRING, encryptedData)); encoded = new DERValue(DER.CONSTRUCTED|DER.SEQUENCE, epki).getEncoded(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/EncryptedPrivateKeyInfo.java/clean/core/src/classpath/javax/javax/crypto/EncryptedPrivateKeyInfo.java
|
public AlgorithmParameters getAlgParameters() { if (params == null && encodedParams != null) { try { params = AlgorithmParameters.getInstance(getAlgName()); params.init(encodedParams); } catch (NoSuchAlgorithmException ignore) { } catch (IOException ignore) { } } return params; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/EncryptedPrivateKeyInfo.java/clean/core/src/classpath/javax/javax/crypto/EncryptedPrivateKeyInfo.java
|
||
public final void init(byte[]params) throws IOException
|
public final void init(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
|
public final void init(byte[]params) throws IOException { paramSpi.engineInit(params); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c65f6a6914005749230b8f31c6890448761cd6f4/AlgorithmParameters.java/buggy/core/src/classpath/java/java/security/AlgorithmParameters.java
|
paramSpi.engineInit(params);
|
paramSpi.engineInit(paramSpec);
|
public final void init(byte[]params) throws IOException { paramSpi.engineInit(params); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c65f6a6914005749230b8f31c6890448761cd6f4/AlgorithmParameters.java/buggy/core/src/classpath/java/java/security/AlgorithmParameters.java
|
GPR regs[] = { X86Register.EAX, X86Register.EBX, X86Register.ECX, X86Register.EDX, X86Register.ESI }; for (GPR reg1 : regs) { os.writeIDIV_EAX(reg1); } if (true) { return; }
|
private final static void testCode32(X86Assembler os) throws UnresolvedObjectRefException { final Label label = new Label("label"); os.writeADD(X86Register.EDX, X86Register.EAX); os.setObjectRef(label); os.writeNOP(); os.writeLOOP(label); os.writeTEST_AL(0xff); os.writeTEST(X86Register.EBX, 0xABCD1234); os.writeCMPXCHG_EAX(X86Register.EDX, 4, X86Register.ECX, false); os.writeLEA(X86Register.ESI, X86Register.ESI, X86Register.EBX, 8, 4); os.writeCMPXCHG_EAX(X86Register.EDX, 4, X86Register.ECX, true); os.writeJMP(label, 2, false); os.writeCALL(label, 4, false); os.writeTEST(X86Register.ECX, X86Register.EBX); os.writeCMOVcc(X86Constants.JLE, X86Register.EAX, X86Register.EBX); os.writeCMOVcc(X86Constants.JE, X86Register.EAX, X86Register.EBX, 5); os.writeADD(BITS32, X86Register.EAX, 28, 11); os.writeCALL(X86Register.EAX, 28); os.writeCMP(X86Register.EAX, X86Register.ECX, 4); os.writeCMP(X86Register.EAX, 4, X86Register.ECX); os.writePrefix(X86Constants.FS_PREFIX); os.writeCMP_MEM(X86Register.ESP, 24); os.writeMOV_Const(BITS32, X86Register.ESP, 4, 24); os.writeSBB(X86Register.EDX, 5); os.writeSBB(X86Register.EDX, 305); final Label jt = new Label("Jumptable"); os.writeSHL(X86Register.ECX, 2); os.writeJMP(jt, X86Register.ECX); os.setObjectRef(jt); os.write32(0x1234ABCD); os.write32(0xFFEEDDCC); os.writeJMP(X86Register.EDX, 15); os.writeADD(X86Register.EDX, X86Register.EBX, 5); os.writeSUB(X86Register.EDX, 3); os.writeINC(BITS32, X86Register.EBX, 67); // INC [reg+67] os.writeCMP_Const(BITS32, X86Register.ECX, 0xF, 0x12); os.writeCMP_Const(BITS32, X86Register.ECX, 0x4, 0x1234); os.writeMOV_Const(BITS32, X86Register.EDI, X86Register.EAX, 4, 0x09, 0x1234); os.writeSETCC(X86Register.EDX, X86Constants.JA); os.writeADD(BITS32, X86Register.EAX, 28, 11); os.writeADD(BITS32, X86Register.EAX, 28, 255); os.writeSUB(X86Register.EAX, 11); os.writeSUB(X86Register.EAX, 255); os.writeSUB(BITS32, X86Register.EAX, 28, 11); os.writeSUB(BITS32, X86Register.EAX, 28, 255); os.writeTEST(BITS32, X86Register.EDI, 0x40, 0xFFFFFFFF); os.writeFLD32(X86Register.EAX, X86Register.ESI, 4, 15); os.writeFLD64(X86Register.EAX, X86Register.ESI, 8, 15); os.writeCALL(X86Register.EAX, X86Register.EDX, 1, 0); os.writeCALL(X86Register.EAX); os.writeCALL(X86Register.ESI); os.writeXCHG(X86Register.EAX, X86Register.EDX); os.writeXCHG(X86Register.ESI, X86Register.EAX); os.writeXCHG(X86Register.ECX, X86Register.EBX); os.writeXCHG(X86Register.EAX, 13, X86Register.EDX); os.writeXCHG(X86Register.ECX, 13, X86Register.EBX); os.writeMOV(X86Constants.BITS8, X86Register.ECX, X86Register.EBX, 1, 4, X86Register.ESI); os.writeMOV(X86Constants.BITS8, X86Register.EDX, X86Register.ECX, X86Register.EBX, 1, 4); os.writeMOVSX(X86Register.EDX, X86Register.EDX, X86Constants.BITS8); os.writeSAR(BITS32, X86Register.EBP, 16, 16); os.writeSAR(BITS32, X86Register.EBP, 16, 24); os.writeMOVZX(X86Register.EBX, X86Register.EBX, X86Constants.BITS16); os.writeAND(X86Register.EBX, 0x0000FFFF); // SSE tests os.writeArithSSEDOp(X86Operation.SSE_ADD, X86Register.XMM0, X86Register.XMM1); os.writeArithSSEDOp(X86Operation.SSE_ADD, X86Register.XMM0, X86Register.EBX, 5); os.writeArithSSEDOp(X86Operation.SSE_SUB, X86Register.XMM1, X86Register.XMM2); os.writeArithSSEDOp(X86Operation.SSE_SUB, X86Register.XMM1, X86Register.EBX, 5); os.writeArithSSEDOp(X86Operation.SSE_MUL, X86Register.XMM2, X86Register.XMM3); os.writeArithSSEDOp(X86Operation.SSE_MUL, X86Register.XMM2, X86Register.EBX, 5); os.writeArithSSEDOp(X86Operation.SSE_DIV, X86Register.XMM3, X86Register.XMM4); os.writeArithSSEDOp(X86Operation.SSE_DIV, X86Register.XMM3, X86Register.EBX, 5); os.writeArithSSESOp(X86Operation.SSE_ADD, X86Register.XMM0, X86Register.XMM1); os.writeArithSSESOp(X86Operation.SSE_ADD, X86Register.XMM0, X86Register.EBX, 5); os.writeArithSSESOp(X86Operation.SSE_SUB, X86Register.XMM1, X86Register.XMM2); os.writeArithSSESOp(X86Operation.SSE_SUB, X86Register.XMM1, X86Register.EBX, 5); os.writeArithSSESOp(X86Operation.SSE_MUL, X86Register.XMM2, X86Register.XMM3); os.writeArithSSESOp(X86Operation.SSE_MUL, X86Register.XMM2, X86Register.EBX, 5); os.writeArithSSESOp(X86Operation.SSE_DIV, X86Register.XMM3, X86Register.XMM4); os.writeArithSSESOp(X86Operation.SSE_DIV, X86Register.XMM3, X86Register.EBX, 5); os.writeMOVSD(X86Register.XMM0, X86Register.XMM1); os.writeMOVSD(X86Register.XMM0, X86Register.ESP, 0); os.writeMOVSD(X86Register.ESP, 0, X86Register.XMM1); os.writeMOVSS(X86Register.XMM0, X86Register.XMM1); os.writeMOVSS(X86Register.XMM0, X86Register.ESP, 0); os.writeMOVSS(X86Register.ESP, 0, X86Register.XMM1); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86StreamTest.java/clean/core/src/test/org/jnode/test/X86StreamTest.java
|
|
for (int i = 0; i < FIELD_COUNT; i++) {
|
int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, fields[ZONE_OFFSET], fields[DST_OFFSET] }; fields = tempFields; for (int i = 0; i < FIELD_COUNT - 2; i++)
|
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
|
fields[i] = 0; }
|
isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
|
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
|
case YEAR: case MONTH: case DATE:
|
case MONTH: isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case DAY_OF_MONTH: isSet[YEAR] = true; isSet[MONTH] = true; isSet[WEEK_OF_MONTH] = true; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case WEEK_OF_MONTH: isSet[YEAR] = true; isSet[MONTH] = true; isSet[DAY_OF_WEEK] = true; isSet[DAY_OF_MONTH] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false;
|
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR: case MONTH: case DATE: isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; break; case AM_PM: isSet[HOUR_OF_DAY] = false; break; case HOUR_OF_DAY: isSet[AM_PM] = false; isSet[HOUR] = false; break; case HOUR: isSet[HOUR_OF_DAY] = false; break; case DST_OFFSET: explicitDSTOffset = true; } // May have crossed over a DST boundary. if (! explicitDSTOffset && (field != DST_OFFSET && field != ZONE_OFFSET)) isSet[DST_OFFSET] = false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
|
isSet[AM_PM] = true;
|
public void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR: case MONTH: case DATE: isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; break; case AM_PM: isSet[HOUR_OF_DAY] = false; break; case HOUR_OF_DAY: isSet[AM_PM] = false; isSet[HOUR] = false; break; case HOUR: isSet[HOUR_OF_DAY] = false; break; case DST_OFFSET: explicitDSTOffset = true; } // May have crossed over a DST boundary. if (! explicitDSTOffset && (field != DST_OFFSET && field != ZONE_OFFSET)) isSet[DST_OFFSET] = false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
|
|
JLabel c = (JLabel) e.getSource(); c.revalidate(); c.repaint();
|
public void propertyChange(PropertyChangeEvent e) { JLabel c = (JLabel) e.getSource(); c.revalidate(); c.repaint(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java
|
|
super.swapComponents (curr, targ);
|
if (curr == 0) super.swapComponents(curr, targ); else while (curr > 0) super.swapComponents (curr, --curr);
|
public void setPosition(Component c, int position) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = Math.min(top + position, bot-1); int curr = -1; Component[] comps = getComponents(); for (int i = top; i < bot; ++i) { if (comps[i] == c) { curr = i; break; } } if (curr == -1) // should have found it throw new IllegalArgumentException(); super.swapComponents (curr, targ); revalidate(); repaint(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java
|
return add_value(null, null, a_flags);
|
return add_value(null, new gnuAny(), a_flags);
|
public NamedValue add(int a_flags) { return add_value(null, null, a_flags); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuNVList.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuNVList.java
|
return add_value(a_name, null, a_flags);
|
return add_value(a_name, new gnuAny(), a_flags);
|
public NamedValue add_item(String a_name, int a_flags) { return add_value(a_name, null, a_flags); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuNVList.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuNVList.java
|
public InvalidDriverException(String s) { super(s);
|
public InvalidDriverException() { super();
|
public InvalidDriverException(String s) { super(s); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/InvalidDriverException.java/buggy/core/src/driver/org/jnode/driver/InvalidDriverException.java
|
reportHeader(out);
|
reportHeader(out, "Class", "Target", "Merge status");
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
int diffClasspathBugfix = 0;
|
int diffClasspathBugfix = 0;
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
reportMissing(out, vmFile.getReportName(), "vm", 0);
|
reportMissing(out, vmFile.getReportName(), "vm", new Flags());
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) {
|
Flags rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc.asInt() & ~FLAGS_MASK) {
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
.getTarget(), diffFileName, rc & FLAGS_MASK);
|
.getTarget(), diffFileName, rc.mask(FLAGS_MASK));
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((rc & FLAG_VM_SPECIFIC) != 0) {
|
if (rc.isSet(FLAG_VM_SPECIFIC)) {
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) {
|
if (rc.isSet(FLAG_CLASSPATH_BUGFIX)) {
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((rc & FLAG_NATIVE) != 0) {
|
if (rc.isSet(FLAG_NATIVE)) {
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((rc & FLAG_JNODE) != 0) {
|
if (rc.isSet(FLAG_JNODE)) {
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
reportClasspathBugs(outBugs, vmFile.getReportName(), vmFile .getTarget(), rc);
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
|
+ " local classpath bugfixes<br/>");
|
+ " local <a href=\"classpath-bugfix.html\">classpath bugfixes</a><br/>");
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
reportFooter(outBugs); outBugs.flush(); outBugs.close();
|
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map<String, SourceFile> vmFiles = vmDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> classpathFiles = classpathDirs .scanJavaFiles(getProject()); final Map<String, SourceFile> vmSpecificFiles = vmSpecificDirs .scanJavaFiles(getProject()); final TreeSet<String> allFiles = new TreeSet<String>(); final Map<String, String> packageDiffs = new TreeMap<String, String>(); allFiles.addAll(vmFiles.keySet()); allFiles.addAll(classpathFiles.keySet()); try { destDir.mkdirs(); final File outFile = new File(destDir, "classpath-compare.html"); final PrintWriter out = new PrintWriter(new FileWriter(outFile)); reportHeader(out); int missingInCp = 0; int missingInVm = 0; int needsMerge = 0; int diffVmSpecific = 0; int diffClasspathBugfix = 0; int diffNative = 0; int diffJNode = 0; int vmSpecific = 0; for (String name : allFiles) { SourceFile cpFile = classpathFiles.get(name); final SourceFile vmFile = vmFiles.get(name); final SourceFile vmSpecificFile = vmSpecificFiles .get(name); if (vmSpecificFile != null) { // File is found as vm specific source reportVmSpecific(out, vmSpecificFile.getReportName(), "vm-specific"); vmSpecific++; } else if (vmFile == null) { // file is not found as vmspecific source, nor as vm source if (!cpFile.isIgnoreMissing()) { reportMissing(out, cpFile.getReportName(), "classpath", getFlags(cpFile)); missingInCp++; } } else if (cpFile == null) { // File is not found in classpath sources reportMissing(out, vmFile.getReportName(), "vm", 0); missingInVm++; } else { // We have both the classpath version and the vm version. cpFile = cpFile.getBestFileForTarget(vmFile.getTarget()); final String diffFileName = vmFile.getReportName() + ".diff"; int rc = runDiff(vmFile, cpFile, diffFileName, packageDiffs); switch (rc & ~FLAGS_MASK) { case NO_CHANGE: break; case NEEDS_MERGE: reportNeedsMerge(out, vmFile.getReportName(), vmFile .getTarget(), diffFileName, rc & FLAGS_MASK); needsMerge++; break; default: throw new RuntimeException("Invalid rc " + rc); } if ((rc & FLAG_VM_SPECIFIC) != 0) { diffVmSpecific++; } if ((rc & FLAG_CLASSPATH_BUGFIX) != 0) { diffClasspathBugfix++; } if ((rc & FLAG_NATIVE) != 0) { diffNative++; } if ((rc & FLAG_JNODE) != 0) { diffJNode++; } // Let's compare them } } // Package diffs for (Map.Entry<String, String> entry : packageDiffs.entrySet()) { final String pkg = entry.getKey(); final String diff = entry.getValue(); final String diffFileName = pkg + ".pkgdiff"; processPackageDiff(diffFileName, pkg, diff); reportPackageDiff(out, pkg, diffFileName, getFlags(diff)); } out.println("</table><p/>"); // Summary out.println("<a name='summary'/><h2>Summary</h2>"); if (missingInCp > 0) { out.println("Found " + missingInCp + " files missing in classpath</br>"); log("Found " + missingInCp + " files missing in classpath"); } if (missingInVm > 0) { out.println("Found " + missingInVm + " files missing in vm<br/>"); log("Found " + missingInVm + " files missing in vm"); } if (needsMerge > 0) { out.println("Found " + needsMerge + " files that needs merging<br/>"); log("Found " + needsMerge + " files that needs merging"); } if (diffVmSpecific > 0) { out.println("Found " + diffVmSpecific + " VM specific differences<br/>"); log("Found " + diffVmSpecific + " VM specific differences"); } if (vmSpecific > 0) { out.println("Found " + vmSpecific + " VM specific files<br/>"); log("Found " + vmSpecific + " VM specific files"); } if (diffClasspathBugfix > 0) { out.println("Found " + diffClasspathBugfix + " local classpath bugfixes<br/>"); log("Found " + diffClasspathBugfix + " local classpath bugfixes"); } if (diffNative > 0) { out.println("Found " + diffNative + " changes with native in it<br/>"); log("Found " + diffNative + " changes with native in it"); } if (diffJNode > 0) { out.println("Found " + diffJNode + " changes with JNode in it<br/>"); log("Found " + diffJNode + " changes with JNode in it"); } reportFooter(out); out.flush(); out.close(); } catch (IOException ex) { throw new BuildException(ex); } catch (InterruptedException ex) { throw new BuildException(ex); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
|
protected int getFlags(String code) { int flags = 0; if (code.indexOf("native") >= 0) { flags |= FLAG_NATIVE; } if (code.toLowerCase().indexOf("jnode") >= 0) { flags |= FLAG_JNODE; } if (code.indexOf(vmSpecificTag) >= 0) { flags |= FLAG_VM_SPECIFIC; } if (code.indexOf(classpathBugfixTag) >= 0) { flags |= FLAG_CLASSPATH_BUGFIX; }
|
protected Flags getFlags(String code) { final Flags flags = new Flags(); getFlags(code, flags);
|
protected int getFlags(String code) { int flags = 0; if (code.indexOf("native") >= 0) { flags |= FLAG_NATIVE; } if (code.toLowerCase().indexOf("jnode") >= 0) { flags |= FLAG_JNODE; } if (code.indexOf(vmSpecificTag) >= 0) { flags |= FLAG_VM_SPECIFIC; } if (code.indexOf(classpathBugfixTag) >= 0) { flags |= FLAG_CLASSPATH_BUGFIX; } return flags; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
protected void reportFlags(PrintWriter out, int flags) {
|
protected void reportFlags(PrintWriter out, Flags flags) {
|
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((flags & FLAG_TARGET_DIFF) != 0) {
|
if (flags.isSet(FLAG_TARGET_DIFF)) {
|
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
if ((flags & FLAG_VM_SPECIFIC) != 0) {
|
if (flags.isSet(FLAG_VM_SPECIFIC)) {
|
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.