rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class);
return (TreeSelectionListener[]) getListeners(TreeSelectionListener.class);
public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
return false;
if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false;
public boolean isPathSelected(TreePath value0) { return false; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0, index); System.arraycopy(selection, index + 1, temp, index, selection.length -...
public void removeSelectionPath(TreePath value0) { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index = x; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection...
public void removeSelectionPaths(TreePath[] value0) { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
selection = new TreePath[] { path };
selection = new TreePath[] { path };
public void setSelectionPath(TreePath path) { selection = new TreePath[] { path }; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
throw new MissingResourceException("Key not found", getClass().getName(), key);
String className = getClass().getName(); throw new MissingResourceException("Key '" + key + "'not found in Bundle: " + className, className, key);
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } throw new MissingResourceException("Key not found", getClass().getName(), ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java
("Failed to load bundle", localizedName, "");
("Failed to load bundle: " + localizedName, localizedName, "");
private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) { ResourceBundle bundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = c...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/ResourceBundle.java/clean/core/src/classpath/java/java/util/ResourceBundle.java
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 hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000;
public final void clear() { isTimeSet = false; areFieldsSet = false; 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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
hour, minute, seconds, millis, fields[ZONE_OFFSET], fields[DST_OFFSET]
hour, minute, seconds, millis, zoneOffs, 0
public final void clear() { isTimeSet = false; areFieldsSet = false; 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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
for (int i = 0; i < FIELD_COUNT - 2; i++)
for (int i = 0; i < FIELD_COUNT; i++)
public final void clear() { isTimeSet = false; areFieldsSet = false; 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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
public final void clear() { isTimeSet = false; areFieldsSet = false; 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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
public void set(int field, int value) { if (isTimeSet) for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; isTimeSet = false; fields[field] = value; isSet[field] = true; // The five valid date patterns, in order of validity // 1 YEAR + MONTH + DAY_OF_MONTH // 2 YEAR + MONTH + WEEK_OF_MONTH ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Calendar.java/clean/core/src/classpath/java/java/util/Calendar.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Table.background")); table.setSelectionForeground(defaults...
LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); table.setSelectionBackground(UIManager.getColor("Table.selectionBackground"));
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
highlightCellBorder = defaults.getBorder("Table.focusCellHighlightBorder");
highlightCellBorder = UIManager.getBorder("Table.focusCellHighlightBorder");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
rendererPane = new CellRendererPane();
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
int modelCol = col.getModelIndex();
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
TableCellRenderer rend = table.getCellRenderer(r, c); Component comp = table.prepareRenderer(rend, r, c); gfx.translate(x, y); comp.setBounds(new Rectangle(0, 0, width, height)); if (comp instanceof JComponent) { if (table.getSelectionModel().getLeadSelectionIndex() == r && table.getColumnModel().getSelectionModel()....
paintCell( gfx, r, c, bounds, table.getCellRenderer(r, c), table.getModel(), table.getSelectionModel().getLeadSelectionIndex(), table.getColumnModel().getSelectionModel().getLeadSelectionIndex());
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addDirectory in readonly filesystem"); }
public FSEntry addDirectory(String name) throws IOException { final long parentCluster; if (file == null) { parentCluster = 0; } else { parentCluster = file.getStartCluster(); } return addFatDirectory(name, parentCluster); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/AbstractDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/AbstractDirectory.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addFile in readonly filesystem"); }
protected synchronized FatDirEntry addFatFile(String nameExt) throws IOException { if (getFatEntry(nameExt) != null) { throw new IOException("File already exists" + nameExt); } final FatDirEntry newEntry = new FatDirEntry(this, splitName(nameExt), splitExt(nameExt)); int size = entries.size(); for (int i = 0; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/AbstractDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/AbstractDirectory.java
ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { System.getProperties().setProperty("user.dir", "/"); } else { Sy...
new DirCommand().execute(new CommandLine(args), System.in, System.out, System.err);
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2017000443d42345d2722c0e3010c0ee595d8e15/CdCommand.java/clean/fs/src/fs/org/jnode/fs/command/CdCommand.java
emmit(ins.getMnemonic(), ins.getOperands(), getOperandSize(ins));
emit(ins.getMnemonic(), ins.getOperands(), getOperandSize(ins));
private void doAssembly() { for (int i = 0; i < modules.size(); i++) { ((AssemblerModule) modules.get(i)).setNativeStream(nativeStream); } for (Iterator it = instructions.iterator(); it.hasNext();) { Instruction ins = (Instruction) it.next(); //handle prefixes ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82fc0ae80f4a9b2a303cad50a43f7e852298607c/X86Support.java/clean/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Support.java
fireContentsChanged(this, index, index);
fireIntervalAdded(this, index, index);
public void add(int index, Object element) { elements.add(index, element); fireContentsChanged(this, index, index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultListModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListModel.java
fireIntervalAdded(this, elements.size(), elements.size());
fireIntervalAdded(this, s, s);
public void addElement(Object element) { elements.add(element); fireIntervalAdded(this, elements.size(), elements.size()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultListModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListModel.java
fireIntervalRemoved(this, 0, elements.size());
fireIntervalRemoved(this, 0, s - 1); }
public void clear() { elements.clear(); fireIntervalRemoved(this, 0, elements.size()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultListModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListModel.java
if (oldSize < size) { fireIntervalAdded(this, oldSize, size - 1); } else if (oldSize > size) { this.fireIntervalRemoved(this, size, oldSize - 1); }
public void setSize(int size) { elements.setSize(size); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultListModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListModel.java
return accessibleName == null ? getName() : accessibleName;
return accessibleName;
public String getAccessibleName() { return accessibleName == null ? getName() : accessibleName; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (isLightweight())
if (isLightweight() && !e.isConsumed())
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE && !ignoreFocus) processEvent(e);
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
case MouseEvent.MOUSE_WHEEL: return (mouseWheelListener != null || (eventMask & AWTEvent.MOUSE_WHEEL_EVENT_MASK) != 0);
boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentLi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
e.consume();
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass)
protected SoundbankResource(Soundbank soundbank, String name, Class dataClass)
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/SoundbankResource.java/buggy/core/src/classpath/javax/javax/sound/midi/SoundbankResource.java
this.soundBank = soundBank;
this.soundbank = soundbank;
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/SoundbankResource.java/buggy/core/src/classpath/javax/javax/sound/midi/SoundbankResource.java
EventQueue.invokeLater(new Runnable() { public void run() { } });
EventQueue.invokeLater(new Runnable() { public void run() { } });
private static void fireDummyEvent(){ EventQueue.invokeLater(new Runnable() { public void run() { } });}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Frame.java/clean/core/src/classpath/java/java/awt/Frame.java
EventQueue.invokeLater(new Runnable() { public void run() { } });
public void run() { }
EventQueue.invokeLater(new Runnable() { public void run() { } });
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Frame.java/clean/core/src/classpath/java/java/awt/Frame.java
if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show();
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); model.setSelec...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/JTabbedPane.java/buggy/core/src/classpath/javax/javax/swing/JTabbedPane.java
actions.addElement(listener);
listenerList.add (ActionListener.class, listener);
public void addActionListener(ActionListener listener) { actions.addElement(listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
void fireActionPerformed()
protected void fireActionPerformed (ActionEvent event)
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
for (int i=0;i<actions.size();i++)
ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++)
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer"));
listeners [i].actionPerformed (event);
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
actions.removeElement(listener);
listenerList.remove (ActionListener.class, listener);
public void removeActionListener(ActionListener listener) { actions.removeElement(listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // TODO } // firePropertyChange()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultListCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/DefaultListCellRenderer.java
this.vmMethod = vmMethod; }
this.vmMethod = vmMethod; }
public Constructor(VmMethod vmMethod) { this.vmMethod = vmMethod; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
return (this == o); }
return (this == o); }
public boolean equals(Object o) { return (this == o); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClass().asClass()); } exceptionTypes = list; } return ...
if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClass().asClass()); } exceptionTypes = list; } return ...
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClas...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
return vmMethod.getModifiers(); }
return vmMethod.getModifiers(); }
private int getModifiersInternal() { return vmMethod.getModifiers(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
return declClass.getName().hashCode(); }
return declClass.getName().hashCode(); }
public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' ');
StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' ');
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName()); for (int i = 1; i < c.length; i++) { sb.append(',').append(c[i].getName());
sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName()); for (int i = 1; i < c.length; i++) { sb.append(',').append(c[i].getName());
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
} sb.append(')'); c = getExceptionTypes(); if (c.length > 0) { sb.append(" throws ").append(c[0].getName()); for (int i = 1; i < c.length; i++) { sb.append(',').append(c[i].getName());
} sb.append(')'); c = getExceptionTypes(); if (c.length > 0) { sb.append(" throws ").append(c[0].getName()); for (int i = 1; i < c.length; i++) { sb.append(',').append(c[i].getName());
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
} return sb.toString(); }
} return sb.toString(); }
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
horizontalTextPosition = JButton.LEFT;
horizontalTextPosition = JButton.TRAILING;
protected void init(String text, Icon icon) { super.init(text, icon); setModel(new DefaultButtonModel()); // Initializes properties for this menu item, that are different // from Abstract button properties. /* NOTE: According to java specifications paint_border should be set to false, since menu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java
public Dimension getMaximumSize(JComponent c) { // that's what Suns implementation does return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/BasicTextUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
ImageWriterSpi spi = (ImageWriterSpi) provider;
ImageReaderSpi spi = (ImageReaderSpi) provider;
public boolean filter (Object provider) { if (provider instanceof ImageReaderSpi) { ImageWriterSpi spi = (ImageWriterSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i]...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f6cb9e79af09b215e75e83abc60d3939720d4f89/ImageIO.java/buggy/core/src/classpath/javax/javax/imageio/ImageIO.java
public static ServerSocketChannel open() throws IOException {
public static ServerSocketChannel open() throws IOException {
public static ServerSocketChannel open() throws IOException { return SelectorProvider.provider().openServerSocketChannel(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ServerSocketChannel.java/clean/core/src/classpath/java/java/nio/channels/ServerSocketChannel.java
public final int validOps() {
public final int validOps() {
public final int validOps() { return SelectionKey.OP_ACCEPT; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ServerSocketChannel.java/clean/core/src/classpath/java/java/nio/channels/ServerSocketChannel.java
String replacementText)
EntityDeclaration declaration)
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/XMLEventFactoryImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLEventFactoryImpl.java
return new EntityReferenceImpl(location, name, null, null, null, replacementText);
return new EntityReferenceImpl(location, declaration, name);
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/XMLEventFactoryImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLEventFactoryImpl.java
handler.xmlDecl(version, encodingName, docIsStandalone, inputEncoding);
private String parseXMLDecl(boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XmlParser.java/clean/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java
Object getNegotiatedProperty(String propName) throws SaslException;
Object getNegotiatedProperty(String propName);
Object getNegotiatedProperty(String propName) throws SaslException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/SaslClient.java/buggy/core/src/classpath/javax/javax/security/sasl/SaslClient.java
connection.fireRequestEvent(RequestEvent.REQUEST_SENDING, this);
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
LineInputStream in = new LineInputStream(connection.getInputStream());
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
out.write(CRLF.getBytes(US_ASCII));
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
connection.fireRequestEvent(RequestEvent.REQUEST_SENT, this);
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
response = readResponse(in);
while(true) { response = readResponse(connection.getInputStream());
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
else if (sc == 100 && expectingContinue)
else if (sc == 100) { if (expectingContinue)
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
setHeader("Content-Length", Integer.toString(contentLength));
setHeader("Content-Length", Integer.toString(contentLength));
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
else { continue; } } break; }
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
String getNonceCount(String nonce) { int nc = connection.getNonceCount(nonce); String hex = Integer.toHexString(nc); StringBuffer buf = new StringBuffer(); for (int i = 8 - hex.length(); i > 0; i--) { buf.append('0'); } buf.append(hex); return buf.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
void handleSetCookie(String text) { CookieManager cookieManager = connection.getCookieManager(); if (cookieManager == null) { return; } String name = null; String value = null; String comment = null; String domain = connection.getHostName(); String path = this.path; int lsi =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
Properties parseAuthParams(String text) { int len = text.length(); String key = null; StringBuffer buf = new StringBuffer(); Properties ret = new Properties(); boolean inQuote = false; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '"') { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
Response readResponse(LineInputStream in)
Response readResponse(InputStream in)
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
line = in.readLine();
LineInputStream lis = new LineInputStream(in); line = lis.readLine();
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
responseHeaders.parse(in);
responseHeaders.parse(lis);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
int codeClass = code / 100; Response ret = new Response(majorVersion, minorVersion, code, codeClass, message, responseHeaders);
InputStream body = null;
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
boolean notify = (responseBodyReader != null); if (notify) { if (!responseBodyReader.accept(this, ret)) { notify = false; } } readResponseBody(ret, in, notify);
body = createResponseBodyStream(responseHeaders, majorVersion, minorVersion, in);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
Response ret = new Response(majorVersion, minorVersion, code, message, responseHeaders, body);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Request.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/Request.java
map.put((KeyStroke)e.getNewValue(), "doClick");
KeyStroke accelerator = (KeyStroke) e.getNewValue(); if (accelerator != null) map.put(accelerator, "doClick");
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName() == "accelerator") { InputMap map = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (map != null) map.remove((KeyStroke)e.getOldValue()); else map ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
focusedWindowMap.put(menuItem.getAccelerator(), "doClick");
KeyStroke accelerator = menuItem.getAccelerator(); if (accelerator != null) focusedWindowMap.put(accelerator, "doClick");
protected void installKeyboardActions() { InputMap focusedWindowMap = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (focusedWindowMap == null) focusedWindowMap = new ComponentInputMapUIResource(menuItem); focusedWindowMap.put(menuItem.getAccelerator(), "doClick"); Swi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
IfNode(TemplateNode children, TemplateNode next, Expr test)
IfNode(Expr test)
IfNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java
super(children, next);
IfNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java
return new IfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet));
TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new IfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/IfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/IfNode.java
href = systemId;
href = base;
boolean includeResource(String href, String parse, String xpointer, String encoding, String accept, String acceptLanguage) { included = false; try { if (xpointer != null) throw new XMLStreamException("xpointer attribute not yet supported");...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XIncludeFilter.java/clean/core/src/classpath/gnu/gnu/xml/stream/XIncludeFilter.java
href = XMLParser.absolutize(systemId, href);
href = XMLParser.absolutize(base, href);
boolean includeResource(String href, String parse, String xpointer, String encoding, String accept, String acceptLanguage) { included = false; try { if (xpointer != null) throw new XMLStreamException("xpointer attribute not yet supported");...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XIncludeFilter.java/clean/core/src/classpath/gnu/gnu/xml/stream/XIncludeFilter.java
FloatSeqHolder h = new FloatSeqHolder(); h._read(input); return h.value;
float[] value = new float[ input.read_long() ]; input.read_float_array(value, 0, value.length); return value;
public static float[] read(InputStream input) { FloatSeqHolder h = new FloatSeqHolder(); h._read(input); return h.value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/FloatSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/FloatSeqHelper.java
FloatSeqHolder h = new FloatSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_float_array(value, 0, value.length);
public static void write(OutputStream output, float[] value) { FloatSeqHolder h = new FloatSeqHolder(value); h._write(output); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/FloatSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/FloatSeqHelper.java
throw new DomEx(DOMException.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public DomLSParser(short mode, String schemaType) throws DOMException { switch (mode) { case DOMImplementationLS.MODE_ASYNCHRONOUS: async = true; break; case DOMImplementationLS.MODE_SYNCHRONOUS: async = false; break; default: throw new DomEx(DOMException....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private Document doParse(LSInput input) throws DOMException, LSException { // create event sink if (eventSink != null) { throw new LSException(LSException.PARSE_ERR, "parse in progress"); } InputSource source = getInputSource(input); eventSink = (filter == null) ? new SAXEventSink() :...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private Document doParse(LSInput input) throws DOMException, LSException { // create event sink if (eventSink != null) { throw new LSException(LSException.PARSE_ERR, "parse in progress"); } InputSource source = getInputSource(input); eventSink = (filter == null) ? new SAXEventSink() :...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private InputSource getInputSource(LSInput input) throws LSException { InputSource source = null; String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) { source = new InputSource(in); source.setSystemId(systemId); } if (source == null...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private InputSource getInputSource(LSInput input) throws LSException { InputSource source = null; String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) { source = new InputSource(in); source.setSystemId(systemId); } if (source == null...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private InputSource getInputSource(LSInput input) throws LSException { InputSource source = null; String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) { source = new InputSource(in); source.setSystemId(systemId); } if (source == null...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public Object getParameter(String name) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { return coalescing ? Boolean.FALSE : Boolean.TRUE; } else if ("comments".equals(name)) { return ignoreComments ? Boolean.FALSE : Boolean.TRUE; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private XMLReader getXMLReader() throws LSException { if (reader == null) { factory.setNamespaceAware(namespaceAware); factory.setValidating(validating); factory.setXIncludeAware(xIncludeAware); try { SAXParser parser = factory.newSAXParser(); rea...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private XMLReader getXMLReader() throws LSException { if (reader == null) { factory.setNamespaceAware(namespaceAware); factory.setValidating(validating); factory.setXIncludeAware(xIncludeAware); try { SAXParser parser = factory.newSAXParser(); rea...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { coalescing = !((Boolean) value).booleanValue(); } else if ("comments".equals(name)) { ignoreComments = !((Boolean) value).booleanValue(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomLSParser.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/DomLSParser.java
boolean complete = target.prepareImage(e.image, e); if (complete)
if (target.prepareImage(e.image, e))
public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/MediaTracker.java/clean/core/src/classpath/java/java/awt/MediaTracker.java
int flags = target.checkImage(e.image, e); if ((flags & ImageObserver.ABORT) != 0) e.status = ABORTED; else if ((flags & ImageObserver.ERROR) != 0) e.status = ERRORED; else if ((flags & ImageObserver.ALLBITS) != 0) e.status = COMPLETE; }
public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/MediaTracker.java/clean/core/src/classpath/java/java/awt/MediaTracker.java
boolean complete = target.prepareImage(e.image, e); if (complete)
if (target.prepareImage(e.image, e))
public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPL...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/MediaTracker.java/clean/core/src/classpath/java/java/awt/MediaTracker.java
int flags = target.checkImage(e.image, e); if ((flags & ImageObserver.ABORT) != 0) e.status = ABORTED; else if ((flags & ImageObserver.ERROR) != 0) e.status = ERRORED; else if ((flags & ImageObserver.ALLBITS) != 0) e.status = COMPLETE; }
public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPL...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/MediaTracker.java/clean/core/src/classpath/java/java/awt/MediaTracker.java