rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (prop == null) return new Object[] {o, o.getClass()};
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
catch (NoSuchMethodException e)
catch (NoSuchMethodException nsme1)
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
} catch(InvocationTargetException ite) { throw new RuntimeException("Method not called: Property or method '" + prop + "' has thrown an exception.", ite); } catch(IllegalAccessException iae) { throw (InternalError) new InternalError("Non-public method was invoked.").initCause(iae); }
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
throws Exception
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
if (method == null) throw new RuntimeException("Invoking null method");
try { Method actionMethod = null;
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
if (arguments == null || arguments.length == 0) return null; Object event = arguments[0];
if(property != null) { Object event = arguments[0];
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
Object val = v[0]; Class propertyType = (Class) v[1];
Object[] args = new Object[] { v[0] };
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
Method actionMethod;
Class[] argTypes = new Class[] { initClass((Class) v[1]) }; while(argTypes[0] != null) {
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
actionMethod = target.getClass().getMethod("set" + capitalize(action), new Class[] {propertyType});
actionMethod = targetClass.getMethod("set" + capitalize(action), argTypes); return actionMethod.invoke(target, args);
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
} argTypes[0] = nextClass(argTypes[0]); } argTypes = new Class[] { initClass((Class) v[1]) }; while(argTypes[0] != null) {
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
actionMethod = target.getClass().getMethod(action, new Class[] {propertyType});
actionMethod = targetClass.getMethod(action, argTypes); return actionMethod.invoke(target, args);
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
catch (NoSuchMethodException e1)
catch (NoSuchMethodException e)
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
if (property == null)
} argTypes[0] = nextClass(argTypes[0]); } throw new RuntimeException("Method not called: Could not find a public method named '" + action + "' in target " + targetClass + " which takes a '" + v[1] + "' argument or a property of this type."); } try
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
actionMethod = target.getClass().getMethod(action, null); return actionMethod.invoke(target, null);
actionMethod = targetClass.getMethod(action, null);
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
else throw e1;
catch(NoSuchMethodException nsme) { if(arguments != null && arguments.length >= 1/* && arguments[0] instanceof EventObject*/) { Class[] targetArgTypes = new Class[] { initClass(arguments[0].getClass()) }; while(targetArgTypes[0] != null) { try { actionMethod = targetClass.getMethod(action, targetArgTypes); ret...
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
return actionMethod.invoke(target, new Object[] {val});
return actionMethod.invoke(target, null); } catch(InvocationTargetException ite) { throw new RuntimeException(ite.getCause()); } catch(IllegalAccessException iae) { throw (InternalError) new InternalError("Non-public method was invoked.").initCause(iae); }
public Object invoke(Object proxy, Method method, Object[] arguments) throws Exception { // Do we actually need the proxy? if (method == null) throw new RuntimeException("Invoking null method"); // Listener methods that weren't specified are ignored. If listenerMethod // is null, then all listen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java
return (super.getName() + " " + super.getScope().getName() + " " + size());
return (super.getName() + " " + super.getScope().getName() + " " + size());
public String toString() { return (super.getName() + " " + super.getScope().getName() + " " + size()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/IdentityScope.java/clean/core/src/classpath/java/java/security/IdentityScope.java
name = NAMES[type];
public Cursor(int type) { if (type < 0 || type >= PREDEFINED_COUNT) throw new IllegalArgumentException ("invalid cursor " + type); this.type = type; // FIXME: lookup and set name? }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6927129f1f7f8acd84e5ca16651e8fe5aa4e194b/Cursor.java/buggy/core/src/classpath/java/java/awt/Cursor.java
if (approveButtonText == null) return getUI().getApproveButtonText(this); else
public String getApproveButtonText() { return approveButtonText; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return getInternalFileView().getDescription(f);
return getFileView().getDescription(f);
public String getDescription(File f) { return getInternalFileView().getDescription(f); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
if (dialogTitle == null) return getUI().getDialogTitle(this); else
public String getDialogTitle() { return dialogTitle; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
if (fv == null) return getUI().getFileView(this); else
public FileView getFileView() { return fv; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return getInternalFileView().getIcon(f);
return getFileView().getIcon(f);
public Icon getIcon(File f) { return getInternalFileView().getIcon(f); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return getInternalFileView().getName(f);
return getFileView().getName(f);
public String getName(File f) { return getInternalFileView().getName(f); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return getInternalFileView().getTypeDescription(f);
return getFileView().getTypeDescription(f);
public String getTypeDescription(File f) { return getInternalFileView().getTypeDescription(f); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
protected PropertyEditorSupport() { this.eventSource = this; this.pSupport = new PropertyChangeSupport(this);
public PropertyEditorSupport() { eventSource = this; pSupport = new PropertyChangeSupport(this);
protected PropertyEditorSupport() { this.eventSource = this; this.pSupport = new PropertyChangeSupport(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void addPropertyChangeListener(PropertyChangeListener l) {
public void addPropertyChangeListener(PropertyChangeListener l) {
public void addPropertyChangeListener(PropertyChangeListener l) { pSupport.addPropertyChangeListener(l); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void firePropertyChange() { pSupport.firePropertyChange(null,null,val); }
public void firePropertyChange() { pSupport.firePropertyChange(null, null, null); }
public void firePropertyChange() { pSupport.firePropertyChange(null,null,val); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public String getAsText() { return val != null ? val.toString() : "null"; }
public String getAsText() { return value != null ? value.toString() : "null"; }
public String getAsText() { return val != null ? val.toString() : "null"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public java.awt.Component getCustomEditor() {
public java.awt.Component getCustomEditor() {
public java.awt.Component getCustomEditor() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public String getJavaInitializationString() {
public String getJavaInitializationString() {
public String getJavaInitializationString() { return "@$#^"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public String[] getTags() {
public String[] getTags() {
public String[] getTags() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public Object getValue() { return val; }
public Object getValue() { return value; }
public Object getValue() { return val; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public boolean isPaintable() {
public boolean isPaintable() {
public boolean isPaintable() { return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void paintValue(java.awt.Graphics g, java.awt.Rectangle r) { }
public void paintValue(java.awt.Graphics g, java.awt.Rectangle r) { }
public void paintValue(java.awt.Graphics g, java.awt.Rectangle r) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void removePropertyChangeListener(PropertyChangeListener l) {
public void removePropertyChangeListener(PropertyChangeListener l) {
public void removePropertyChangeListener(PropertyChangeListener l) { pSupport.removePropertyChangeListener(l); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void setAsText(String s) throws IllegalArgumentException { if(s.equals("null")) {
public void setAsText(String s) throws IllegalArgumentException { if (s.equals("null"))
public void setAsText(String s) throws IllegalArgumentException { if(s.equals("null")) { setValue(null); } else { throw new IllegalArgumentException(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
} else {
else
public void setAsText(String s) throws IllegalArgumentException { if(s.equals("null")) { setValue(null); } else { throw new IllegalArgumentException(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
}
public void setAsText(String s) throws IllegalArgumentException { if(s.equals("null")) { setValue(null); } else { throw new IllegalArgumentException(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public void setValue(Object val) { Object oldVal = val; this.val = val; if(!oldVal.equals(val)) { pSupport.firePropertyChange(null,oldVal,val); } }
public void setValue(Object newValue) { value = newValue; pSupport.firePropertyChange(null, null, null); }
public void setValue(Object val) { Object oldVal = val; this.val = val; if(!oldVal.equals(val)) { pSupport.firePropertyChange(null,oldVal,val); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
public boolean supportsCustomEditor() {
public boolean supportsCustomEditor() {
public boolean supportsCustomEditor() { return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6eea50e4f45fc1e9b76dc95d038701964d726fcd/PropertyEditorSupport.java/clean/core/src/classpath/java/java/beans/PropertyEditorSupport.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); size = defaults.getDimension("ToolBar.separatorSize");
size = UIManager.getDimension("ToolBar.separatorSize");
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); size = defaults.getDimension("ToolBar.separatorSize"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicToolBarSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarSeparatorUI.java
int row = BasicListUI.this.convertYToRow(event.getY()); if (row == -1)
Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1)
public void mousePressed(MouseEvent event) { int row = BasicListUI.this.convertYToRow(event.getY()); if (row == -1) return; BasicListUI.this.list.setSelectedIndex(row); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
BasicListUI.this.list.setSelectedIndex(row);
BasicListUI.this.list.setSelectedIndex(index);
public void mousePressed(MouseEvent event) { int row = BasicListUI.this.convertYToRow(event.getY()); if (row == -1) return; BasicListUI.this.list.setSelectedIndex(row); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
rendererPane = new CellRendererPane();
public BasicListUI() { focusListener = new FocusHandler(); listDataListener = new ListDataHandler(); listSelectionListener = new ListSelectionHandler(); mouseInputListener = new MouseInputHandler(); propertyChangeListener = new PropertyChangeHandler(); updateLayoutStateNeeded = 1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int convertRowToY(int row)
protected int convertRowToY(int row)
int convertRowToY(int row) { int y = 0; for (int i = 0; i < row; ++i) { int h = getRowHeight(i); if (h == -1) return -1; y += h; } return y; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int convertYToRow(int y0)
protected int convertYToRow(int y0)
int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void damageLayout()
private void damageLayout()
void damageLayout() { updateLayoutStateNeeded = 1; list.revalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int lo = Math.min(index1, index2); int hi = Math.max(index1, index2); Rectangle lobounds = new Rectangle(0, convertRowToY(lo), cellWidth, getRowHeight(lo)); Rectangle hibounds = new Rectangle(0, convertRowToY(hi), cellWidth, getRowHeight(hi));
int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Rectangle(loc.x, loc.y, cellWidth, getRowHeight(minIndex));
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int lo = Math.min(index1, index2); int hi = Math.max(index1, index2); Rectangle lobounds = new Rectangle(0, convertRowToY(lo), cellWidth, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
return lobounds.union(hibounds);
for (int i = minIndex + 1; i <= maxIndex; i++) { Point hiLoc = indexToLocation(list, i); Rectangle hibounds = new Rectangle(hiLoc.x, hiLoc.y, cellWidth, getRowHeight(i)); bounds = bounds.union(hibounds); } return bounds;
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int lo = Math.min(index1, index2); int hi = Math.max(index1, index2); Rectangle lobounds = new Rectangle(0, convertRowToY(lo), cellWidth, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
if (list.getModel().getSize() == 0)
int size = list.getModel().getSize(); if (size == 0)
public Dimension getPreferredSize(JComponent c) { if (list.getModel().getSize() == 0) return new Dimension(0, 0); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); return bounds.getSize(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
return bounds.getSize();
Dimension retVal = bounds.getSize(); Component parent = list.getParent(); if ((visibleRows == -1) && (parent instanceof JViewport)) { JViewport viewport = (JViewport) parent; if (layoutOrientation == JList.HORIZONTAL_WRAP) { int h = viewport.getSize().height; int cellsPerCol = h / cellHeight; int w = size / cellsPerCo...
public Dimension getPreferredSize(JComponent c) { if (list.getModel().getSize() == 0) return new Dimension(0, 0); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); return bounds.getSize(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int getRowHeight(int row)
protected int getRowHeight(int row)
int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
return new Point(0, convertRowToY(index));
int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: int visibleRows = list.getVisibleRowCount(); int numberOfCellsPerRow = -1; if (visibleRows <= 0) { Dimension listDim = li...
public Point indexToLocation(JList list, int index) { return new Point(0, convertRowToY(index)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void installDefaults()
protected void installDefaults()
void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void installKeyboardActions()
protected void installKeyboardActions()
void installKeyboardActions() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void installListeners()
protected void installListeners()
void installListeners() { list.addFocusListener(focusListener); list.getModel().addListDataListener(listDataListener); list.addListSelectionListener(listSelectionListener); list.addMouseListener(mouseInputListener); list.addMouseMotionListener(mouseInputListener); list.addPropertyChangeListener(pro...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
list.addComponentListener(componentListener);
void installListeners() { list.addFocusListener(focusListener); list.getModel().addListDataListener(listDataListener); list.addListSelectionListener(listSelectionListener); list.addMouseListener(mouseInputListener); list.addMouseMotionListener(mouseInputListener); list.addPropertyChangeListener(pro...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
return convertYToRow(location.y);
int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: int visibleRows = list.getVisibleRowCount(); int cellsPerRow = -1; int numberOfItems = list.getModel().getSize(); Dimension listDi...
public int locationToIndex(JList list, Point location) { return convertYToRow(location.y); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void maybeUpdateLayoutState()
protected void maybeUpdateLayoutState()
void maybeUpdateLayoutState() { if (updateLayoutStateNeeded != 0) { updateLayoutState(); updateLayoutStateNeeded = 0; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
public void paintBackground(Graphics g, JComponent c)
private void paintBackground(Graphics g, JComponent c)
public void paintBackground(Graphics g, JComponent c) { Dimension size = getPreferredSize(c); Color save = g.getColor(); g.setColor(c.getBackground()); g.fillRect(0, 0, size.width, size.height); g.setColor(save); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead)
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead)
void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
g.translate(bounds.x, bounds.y); comp.setBounds(new Rectangle(0, 0, bounds.width, bounds.height)); comp.paint(g); g.translate(-bounds.x, -bounds.y);
rendererPane.paintComponent(g, comp, list, bounds);
void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void uninstallDefaults()
protected void uninstallDefaults()
void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(null); list.setBackground(null); list.setSelectionForeground(null); list.setSelectionBackground(null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void uninstallKeyboardActions()
protected void uninstallKeyboardActions()
void uninstallKeyboardActions() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void uninstallListeners()
protected void uninstallListeners()
void uninstallListeners() { list.removeFocusListener(focusListener); list.getModel().removeListDataListener(listDataListener); list.removeListSelectionListener(listSelectionListener); list.removeMouseListener(mouseInputListener); list.removeMouseMotionListener(mouseInputListener); list.removeProper...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
void updateLayoutState()
protected void updateLayoutState()
void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer rend = lis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
if (list.getLayoutOrientation() == JList.VERTICAL) cellWidth = Math.max(cellWidth, list.getSize().width);
void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer rend = lis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
else if (p.y + d.height > c.getHeight())
if (p.y + d.height > c.getHeight())
private Point adjustLocation(Point p, Component c, Dimension d) { if (p.x + d.width > c.getWidth()) p.x -= d.width; if (p.x < 0) p.x = 0; if (p.y + d.height < c.getHeight()) p.y += d.height; else if (p.y + d.height > c.getHeight()) p.y -= d.height*2; return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
JLayeredPane pane = ((JRootPane) SwingUtilities. getAncestorOfClass(JRootPane.class, currentComponent)). getLayeredPane();
JLayeredPane pane = null; JRootPane r = ((JRootPane) SwingUtilities. getAncestorOfClass(JRootPane.class, currentComponent)); if (r != null) pane = r.getLayeredPane();
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
SAXParser parser = new SAXParser(); InputSource input = new InputSource(args[0]); parser.parse(input, new org.xml.sax.helpers.DefaultHandler());
boolean validating = false; boolean namespaceAware = false; boolean xIncludeAware = false; boolean expectCallbackClass = false; String callbackClass = null; int pos = 0; while (pos < args.length && (args[pos].startsWith("-") || expectCallbackClass)) { if ("-x".equals(args[pos])) xIncludeAware = true; else if ("-v".equa...
public static void main(String[] args) throws Exception { SAXParser parser = new SAXParser(); InputSource input = new InputSource(args[0]); parser.parse(input, new org.xml.sax.helpers.DefaultHandler()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/SAXParser.java/clean/core/src/classpath/gnu/gnu/xml/stream/SAXParser.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (fore == null || fore instanceof UIResource) comboBox.se...
LookAndFeel.installColorsAndFont(comboBox, "ComboBox.background", "ComboBox.foreground", "ComboBox.font");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
shadow = defaults.getColor("ComboBox.buttonShadow"); darkShadow = defaults.getColor("ComboBox.buttonDarkShadow"); highlight = defaults.getColor("ComboBox.buttonHighlight");
shadow = UIManager.getColor("ComboBox.buttonShadow"); darkShadow = UIManager.getColor("ComboBox.buttonDarkShadow"); highlight = UIManager.getColor("ComboBox.buttonHighlight");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
protected JComponent createContentPane() {
protected Container createContentPane() {
protected JComponent createContentPane() { return new SwingFrameContentPane(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/SwingFramePeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingFramePeer.java
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout());
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout());
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); // p.setVisible(true); System.out.println("Created ContentPane: " + p); return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
System.out.println("Created ContentPane: " + p); return p; }
System.out.println("Created ContentPane: " + p); return p; }
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); // p.setVisible(true); System.out.println("Created ContentPane: " + p); return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
paintBorder(g);
Rectangle clip = g.getClipBounds(); if (clip.x == 0 && clip.y == 0 && clip.width == getWidth() && clip.height == getHeight()) RepaintManager.currentManager(this).markCompletelyClean(this);
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
Rectangle inner = SwingUtilities.calculateInnerArea(this, new Rectangle());
Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache);
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, new Rectangle()); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
Rectangle bounds = children[i].getBounds();
Rectangle bounds = children[i].getBounds(rectCache);
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, new Rectangle()); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
Rectangle clip = oldClip.intersection(bounds); if (clip.isEmpty())
if (!g.hitClip(bounds.x, bounds.y, bounds.width, bounds.height))
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, new Rectangle()); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
g.setClip(clip.x, clip.y, clip.width, clip.height);
g.clipRect(bounds.x, bounds.y, bounds.width, bounds.height);
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, new Rectangle()); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
synchronized (paintLock) {
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. synchronized (paintLock) { Image buffer = rm.getOffsc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
}
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. synchronized (paintLock) { Image buffer = rm.getOffsc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
if (oldX != getX() || oldY != getY()) fireAncestorEvent(this, AncestorEvent.ANCESTOR_MOVED);
public void reshape(int x, int y, int w, int h) { super.reshape(x, y, w, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
repaint();
public void setBackground(Color bg) { super.setBackground(bg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
Border oldBorder = border;
Border oldBorder = getBorder(); if (oldBorder == newBorder) return;
public void setBorder(Border newBorder) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
repaint();
public void setBorder(Border newBorder) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
boolean oldEnabled = isEnabled();
if (enable == isEnabled()) return;
public void setEnabled(boolean enable) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabled", oldEnabled, enable); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
firePropertyChange("enabled", oldEnabled, enable);
firePropertyChange("enabled", !enable, enable); repaint();
public void setEnabled(boolean enable) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabled", oldEnabled, enable); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
revalidate(); repaint();
public void setFont(Font f) { super.setFont(f); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
repaint();
public void setForeground(Color fg) { super.setForeground(fg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
revalidate(); repaint();
protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
if (isVisible() == v) return;
public void setVisible(boolean v) { super.setVisible(v); Container parent = getParent(); if (parent != null) parent.repaint(getX(), getY(), getWidth(), getHeight()); revalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
xform.concatenate(post);
concetenateTransform (post);
public void concatenateTransform(AffineTransform post) { xform.concatenate(post); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java
concatenateTransform(post);
xform.concatenate (post);
public void concetenateTransform(AffineTransform post) { concatenateTransform(post); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java
xform.preConcatenate(pre);
preConcetenateTransform (pre);
public void preConcatenateTransform(AffineTransform pre) { xform.preConcatenate(pre); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java
preConcetenateTransform(pre);
xform.preConcatenate (pre);
public void preConcetenateTransform(AffineTransform pre) { preConcetenateTransform(pre); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java
protected void firePropertyChange(String value0, Object value1, Object value2) {
protected void firePropertyChange(String value0, Object value1, Object value2) {
protected void firePropertyChange(String value0, Object value1, Object value2) { // TODO } // firePropertyChange()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java