rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
protected void installKeyboardActions() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableHeaderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableHeaderUI.java
protected void uninstallKeyboardActions() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTableHeaderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableHeaderUI.java
attribHash.put("fieldList", new XMLAttribute(Collections.synchronizedList(new ArrayList(super.sDefaultDataArraySize)), Constants.LIST_TYPE));
attribHash.put("fieldList", new XMLAttribute(Collections.synchronizedList(new ArrayList(Specification.getInstance().getDefaultDataArraySize())), Constants.LIST_TYPE));
private void init() { classXDFNodeName = "fieldAxis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"fieldList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOr...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/FieldAxis.java/buggy/src/gov/nasa/gsfc/adc/xdf/FieldAxis.java
int nread = read(onebytebuffer, 0, 1);
int nread = read(onebytebuffer, 0, 1);
public int read() throws IOException { int nread = read(onebytebuffer, 0, 1); //read one byte if (nread > 0) return onebytebuffer[0] & 0xff; return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/InflaterInputStream.java/buggy/core/src/classpath/java/java/util/zip/InflaterInputStream.java
public int read() throws IOException { int nread = read(onebytebuffer, 0, 1); //read one byte if (nread > 0) return onebytebuffer[0] & 0xff; return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/InflaterInputStream.java/buggy/core/src/classpath/java/java/util/zip/InflaterInputStream.java
protected AccessibleJComboBox() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
public void addAccessibleSelection(int value0) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
public void clearAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
public void removeAccessibleSelection(int value0) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
public void selectAllAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
if (e.getKeyCode() == KeyEvent.VK_TAB) setPopupVisible(false); else if (keySelectionManager != null) { int i = keySelectionManager.selectionForKey(e.getKeyChar(), getModel()); if (i >= 0) setSelectedIndex(i); else super.processKeyEvent(e); } else super.processKeyEvent(e);
public void processKeyEvent(KeyEvent e) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
if (newSelection != null)
protected void selectedItemChanged() { // Fire ItemEvent to indicated that previously selected item is now // deselected if (selectedItemReminder != null) fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, selectedItemReminder, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
keySelectionManager = aManager;
public void setKeySelectionManager(KeySelectionManager aManager) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
selectedItemReminder = newDataModel.getSelectedItem();
public void setModel(ComboBoxModel newDataModel) { // dataModel is null if it this method is called from inside the constructors. if (dataModel != null) { // Prevents unneccessary updates. if (dataModel == newDataModel) return; // Removes itself (as DataListener) from the to-...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
public void checkAccess(ThreadGroup g)
public void checkAccess(Thread thread)
public void checkAccess(ThreadGroup g) { if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/SecurityManager.java/buggy/core/src/classpath/java/java/lang/SecurityManager.java
if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); }
if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); }
public void checkAccess(ThreadGroup g) { if (g.getParent() != null) checkPermission(new RuntimePermission("modifyThreadGroup")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/SecurityManager.java/buggy/core/src/classpath/java/java/lang/SecurityManager.java
screen.setVT(vt);
public Session5250 (Properties props, String configurationResource, String sessionName, SessionConfig config) { propFileName = config.getConfigurationResource(); sesConfig = config; this.configurationResource = configurationResource; this.sessionName = sess...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5dae090be90e3c47e6b08166695e0bdc8919713c/Session5250.java/buggy/tn5250j/src/org/tn5250j/Session5250.java
return vt.isConnected();
if (vt == null) return false; else return vt.isConnected();
public boolean isConnected() { return vt.isConnected(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5dae090be90e3c47e6b08166695e0bdc8919713c/Session5250.java/buggy/tn5250j/src/org/tn5250j/Session5250.java
throws NotImplementedException
public String getSystemDisplayName(File f) throws NotImplementedException { // FIXME: Implement; return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/UnixFileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/UnixFileSystemView.java
return null;
String name = null; if (f != null) { if (isRoot(f)) name = f.getAbsolutePath(); else { try { String path = f.getCanonicalPath(); name = path.substring(path.lastIndexOf(File.separator) + 1); } catch (IOException e) { name = f.getName(); } } } return name;
public String getSystemDisplayName(File f) throws NotImplementedException { // FIXME: Implement; return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/UnixFileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/UnixFileSystemView.java
return(selectedCheckbox);
return getCurrent ();
getSelectedCheckbox(){ return(selectedCheckbox);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxGroup.java/clean/core/src/classpath/java/java/awt/CheckboxGroup.java
setSelectedCheckbox(selectedCheckbox);
if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true);
setCurrent(Checkbox selectedCheckbox){ setSelectedCheckbox(selectedCheckbox);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxGroup.java/clean/core/src/classpath/java/java/awt/CheckboxGroup.java
if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true);
setCurrent (selectedCheckbox);
setSelectedCheckbox(Checkbox selectedCheckbox){ if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return; this.selectedCheckbox.setState(false); } this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxGroup.java/clean/core/src/classpath/java/java/awt/CheckboxGroup.java
setText(s);
FontMetrics fm = getToolkit().getFontMetrics(list.getFont()); int strWidth = SwingUtilities.computeStringWidth(fm, s); int cbWidth = getSize().width; if (cbWidth != 0 && strWidth > cbWidth) { char[] str = s.toCharArray(); int currWidth = 0; int i = 0; String postStr = "... "; cbWidth -= SwingUtilities.computeStringWi...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (isSelected)
if (isSelected || cellHasFocus)
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java
setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground());
setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground());
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java
setBackground(list.getBackground()); setForeground(list.getForeground());
setBackground(list.getBackground()); setForeground(list.getForeground());
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java
if (cellHasFocus) setBorder(UIManager.getBorder("List.focusCellHighlightBorder")); else setBorder(noFocusBorder);
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); UIDefaults defaults = UIMa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java
if(isRootDirectory(path)) return path;
if(isRootDirectory(path)) return path;
public static final String toCanonicalForm(String path) { if(isRootDirectory(path)) return path; //FDy: ClassPath bug fix for root (from JNode team) /*?? if(path.indexOf('.') < 0 && path.indexOf("..") < 0) return path; */ String tmppath = path.replace('/', separatorChar); StringBuffer...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac2fb396ecf670bdfbe381de2c1ee5d32fcf8d00/PlatformHelper.java/clean/core/src/classpath/gnu/gnu/java/io/PlatformHelper.java
{ new SecureRandom ().nextBytes(buffer);
getDefaultPRNG().nextBytes(buffer);
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
}
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
}
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) {
final VmStackFrame[] getVmStackTrace(Address frame, Address ip, int limit) {
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
final Address frame = argFrame; Address f = frame;
final VmStackFrameEnumerator sfEnum = new VmStackFrameEnumerator(this, frame, ip);
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
while (isValid(f) && (count < limit)) {
while (sfEnum.isValid() && (count < limit)) {
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
f = getPrevious(f);
sfEnum.next();
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!, st.length="); Unsafe.debug(count); Unsafe.debug(" f.magic="); }
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
f = frame;
sfEnum.reset(frame, ip);
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
stack[i] = new VmStackFrame(f, this, ip); ip = stack[i].getReturnAddress().add(-1); f = getPrevious(f);
stack[i] = new VmStackFrame(sfEnum.getMethod(), sfEnum.getProgramCounter()); sfEnum.next();
final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmStackReader.java/clean/core/src/core/org/jnode/vm/VmStackReader.java
public ISO9660FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); try { volume = new ISO9660Volume(getApi()); } catch (IOException e) { throw new FileSystemException(e); } }
public ISO9660FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); try { volume = new ISO9660Volume(getApi()); } catch (IOException e) { throw new FileSystemException(e); } }
public ISO9660FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); //byte[] buff = new byte[ISO9660FileSystem.DefaultLBNSize]; try { volume = new ISO9660Volume(getApi()); } catch (IOException e) { throw new FileSystemException(e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660FileSystem.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660FileSystem.java
}
if (isReadOnly()) { } else { } }
public void flush() throws IOException { //TODO: perhaps nothing todo (always readOnly ?) }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660FileSystem.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660FileSystem.java
public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(volume.getVolumeDescriptor().getRootDirectoryEntry()); }
public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(this, volume.getVolumeDescriptor() .getRootDirectoryEntry()); }
public FSEntry getRootEntry() throws IOException { return new ISO9660Entry(volume.getVolumeDescriptor().getRootDirectoryEntry()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660FileSystem.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660FileSystem.java
return this.volume; }
return this.volume; }
public ISO9660Volume getVolume() { return this.volume; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660FileSystem.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660FileSystem.java
private Raster createCompatibleRaster(Raster raster) {
private Raster createCompatibleRaster(Raster raster, ColorModel model) {
private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { raster.getPixel(x, y, samples); dst_raster.setPixel(x, y, samples);
if(dst_model instanceof DirectColorModel) if(model instanceof ComponentColorModel){ for (int y = 0; y < h; y++) for (int x = 0; x < w; x++) dst_raster.setPixel(x, y, raster.getPixel(x, y, samples)); } else if(model instanceof IndexColorModel){ final IndexColorModel icm = (IndexColorModel) model; for (int y = 0; y < h;...
private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
return dst_raster;
return dst_raster;
private Raster createCompatibleRaster(Raster raster) { //todo fix gif images (index color model?), optimize final ColorModel dst_model = surface.getColorModel(); final int[] samples = new int[4]; final int w = raster.getWidth(); final int h = raster.getHeight(); final Writable...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
final Raster raster = ((BufferedImage) image).getRaster();
final BufferedImage b_image = (BufferedImage) image; final Raster raster = b_image.getRaster();
private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
return createCompatibleRaster(raster);
return createCompatibleRaster(raster, b_image.getColorModel());
private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
final Raster raster = ((RenderedImage) image).getData();
final RenderedImage r_image = (RenderedImage) image; final Raster raster = r_image.getData();
private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
return createCompatibleRaster(raster);
return createCompatibleRaster(raster, r_image.getColorModel());
private Raster getCompatibleRaster(Image image) throws InterruptedException { final ColorModel dstModel = surface.getColorModel(); if (image instanceof BufferedImage) { // We have a direct raster final Raster raster = ((BufferedImage) image).getRaster(); if (dstModel.isCompatibleRaster(raster)) { // Raster ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/558542f2f668a53027929612941782dbdbb712e1/AbstractSurfaceGraphics.java/clean/gui/src/awt/org/jnode/awt/util/AbstractSurfaceGraphics.java
if (p.offset < lastOffset) { throw new VirtualMachineError(
if (p.offset < lastOffset) { throw new InternalError(
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList methods = new ArrayList(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } p = p.next;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/VmAddressMap.java/buggy/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
if (lowerBound < 1) throw new IllegalArgumentException("lowerBound may not be less than 1");
public JobMediaSheetsSupported(int lowerBound, int upperBound) { super(lowerBound, upperBound); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/JobMediaSheetsSupported.java/clean/core/src/classpath/javax/javax/print/attribute/standard/JobMediaSheetsSupported.java
workR.setBounds(r,c,getCol(ePos),getRow(ePos));
workR.setBounds(r,c,c2,r2);
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
if (tArea.contains(x,y)) {
public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
return getPos((numRows - ((((fmHeight * (numRows)) - y) / fmHeight))), (numCols - ((((fmWidth * (numCols)) - x) / fmWidth))) );
public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
}
if (x > tArea.getMaxX()) x = (int)tArea.getMaxX() - 1; if (y > tArea.getMaxY()) y = (int)tArea.getMaxY() - 1; if (x < tArea.getMinX()) x = 0; if (y < tArea.getMinY()) y = 0;
public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
return 0;
int s = fmWidth * numCols; int t = s - x; int u = t / fmWidth; int v = numCols - u; int s0 = y / fmHeight; int s1 = x / fmWidth; return getPos(s0, s1 );
public int getRowColFromPoint (int x, int y) { // is x,y in the drawing area // x is left to right and y is top to bottom if (tArea.contains(x,y)) {// int cols = (numCols - ((((fmWidth * numCols) - x) / fmWidth)));// System.out.println(cols); return getPos((numRows - ((((fmHeig...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
pos -= (numCols + 1);
public void moveCursor (MouseEvent e) { if(!keyboardLocked) { int pos = getRowColFromPoint(e.getX(),e.getY());// System.out.println((getRow(pos)) + "," + (getCol(pos)));// System.out.println(e.getX() + "," + e.getY()+ "," + fmWidth+ "," + fmHeight); if (pos == 0) retur...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
protected synchronized void paintComponent2(Graphics2D g2) {
protected void paintComponent2(Graphics2D g2) {
protected synchronized void paintComponent2(Graphics2D g2) { Rectangle r = g2.getClipBounds(); g2.setColor(colorBg);// System.out.println("PaintComponent " + r); g2.fillRect(r.x,r.y,r.width,r.height); int sPos = getRowColFromPoint(r.x, r.y); // fix me her...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
screen[lc++].drawChar(g2);
if (lc >= 0 && lc < lenScreen) screen[lc++].drawChar(g2);
protected synchronized void paintComponent2(Graphics2D g2) { Rectangle r = g2.getClipBounds(); g2.setColor(colorBg);// System.out.println("PaintComponent " + r); g2.fillRect(r.x,r.y,r.width,r.height); int sPos = getRowColFromPoint(r.x, r.y); // fix me her...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
protected void paintComponent3(Graphics g) {// System.out.println("paint from screen"); Graphics2D g2 = (Graphics2D)g;// Rectangle r = g.getClipBounds(); g2.setColor(colorBg); g2.fillRect(0,0,gui.getWidth(),gui.getHeight()); bi.drawImageBuffer(g2);// g2.drawImage(bi.getImageBuffer(...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
resetError();
setCursorActive(false); simulateMnemonic(getMnemonicValue("[reset]")); setCursorActive(true);
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError();// if (!cursorActive)// setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
setCursorActive(true);
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError();// if (!cursorActive)// setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1);
int pos = getRowColFromPoint(end.x,end.y);
public Point translateEnd(Point end) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1); int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;// System.out.pr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;
int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;
public Point translateEnd(Point end) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1); int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;// System.out.pr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
end.setLocation(x,y);
end.setLocation(x,y);
public Point translateEnd(Point end) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(end.x,end.y) - (numCols + 1); int x = screen[pos].x + fmWidth - 1; int y = screen[pos].y + fmHeight - 1;// System.out.pr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
int pos = getRowColFromPoint(start.x,start.y) - (numCols + 1);
int pos = getRowColFromPoint(start.x,start.y);
public Point translateStart(Point start) { // because getRowColFromPoint returns position offset as 1,1 we need // to translate as offset 0,0 int pos = getRowColFromPoint(start.x,start.y) - (numCols + 1); start.setLocation(screen[pos].x,screen[pos].y); return start; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
public void updateDirty() { Rectangle r = new Rectangle(dirty); // update the image updateImage(r); // update dirty to show that we have already painted that region of the // screen so do not do it again. dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
if (gui.isVisible() && height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height);
if (gui.isVisible()) { if (height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height); } else { }
protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { gg2d = (Graphics2D)gui.getGraphics();// System.out.println("was null"); } if (bi == null || gg2d == null) return; g2d.setClip(x,y,width,height); if (!cursorActive && x ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
pack();
pack();
private void centerMe() { pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width;
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width;
private void centerMe() { pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
private void centerMe() { pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
}
private void centerMe() { pack(); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labelFrom.setText(LangTool.getString("em.labelFrom")); fieldFrom.setColumns...
setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(3); labelDefault.setText(LangTool.getString("em.labelDefault")); labelName.setT...
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
optCancel.setText(LangTool.getString("em.optCancelLabel")); optCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); } });
optCancel.setPreferredSize(new Dimension(100, 27)); optCancel.setText(LangTool.getString("em.optCancelLabel")); optCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); } });
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
labelFileName.setText(LangTool.getString("em.labelFileName")); fieldFileName.setText("tn5250j.txt"); fieldFileName.setColumns(20); optionsPanel.add(optDone, null); optionsPanel.add(optCancel, null); getContentPane().add(mainPanel);
labelFileName.setText(LangTool.getString("em.labelFileName")); fieldFileName.setText("tn5250j.txt"); fieldFileName.setColumns(20);
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
mainPanel.add(configPanel, BorderLayout.CENTER); configPanel.add(labelHost, null); mainPanel.add(optionsPanel, BorderLayout.SOUTH); configPanel.add(fieldHost, null); configPanel.add(labelPort, null); configPanel.add(fieldPort, null); configPanel.add(labelFrom, null); configPanel.add(fieldFrom, null); configPanel.add(l...
gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.insets = new Insets(10, 10, 5, 5); gbc.anchor = GridBagConstraints.WEST; configPanel.add(labelHost, gbc); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(10, 5, 5, 10); gbc.anchor = GridBagConstra...
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
if (loadConfig(null)) {
mainPanel.add(configPanel, BorderLayout.NORTH); optionsPanel.add(optDone); optionsPanel.add(optCancel); mainPanel.add(optionsPanel, BorderLayout.SOUTH);
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
setProperties();
getContentPane().add(mainPanel);
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
if (loadConfig(null)) {
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
centerMe();
setProperties();
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
} centerMe(); }
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
optDone_actionPerformed(e); }
optDone_actionPerformed(e); }
public void actionPerformed(ActionEvent e) { optDone_actionPerformed(e); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
optCancel_actionPerformed(e); }
optCancel_actionPerformed(e); }
public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
SMTPProperties = ConfigureFactory.getInstance().getProperties("smtp", smtpFileName);
SMTPProperties = ConfigureFactory.getInstance().getProperties("smtp", smtpFileName);
private boolean loadConfig(String name) throws Exception { SMTPProperties = ConfigureFactory.getInstance().getProperties("smtp", smtpFileName); if (SMTPProperties.size() > 0) return true; else return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
if (SMTPProperties.size() > 0) return true; else return false; }
if (SMTPProperties.size() > 0) return true; else return false; }
private boolean loadConfig(String name) throws Exception { SMTPProperties = ConfigureFactory.getInstance().getProperties("smtp", smtpFileName); if (SMTPProperties.size() > 0) return true; else return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
this.setVisible(false);
this.setVisible(false);
void optCancel_actionPerformed(ActionEvent e) { this.setVisible(false); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
}
void optCancel_actionPerformed(ActionEvent e) { this.setVisible(false); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText());
SMTPProperties.setProperty("mail.smtp.host", fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port", fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from", fieldFrom.getText()); SMTPProperties.setProperty("mail.smtp.realname", fieldName.getText());
void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
SMTPProperties.setProperty("fileName",fieldFileName.getText());
SMTPProperties.setProperty("fileName", fieldFileName.getText());
void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
for (Enumeration x = SMTPProperties.propertyNames();x.hasMoreElements();) System.out.println(SMTPProperties.get(x.nextElement()));
for (Enumeration x = SMTPProperties.propertyNames(); x.hasMoreElements(); ) System.out.println(SMTPProperties.get(x.nextElement()));
void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
ConfigureFactory.getInstance().saveSettings("smtp", smtpFileName, "------ SMTP Defaults --------"); this.setVisible(false);
ConfigureFactory.getInstance().saveSettings( "smtp", smtpFileName, "------ SMTP Defaults --------"); this.setVisible(false);
void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
}
void optDone_actionPerformed(ActionEvent e) { SMTPProperties.setProperty("mail.smtp.host",fieldHost.getText()); SMTPProperties.setProperty("mail.smtp.port",fieldPort.getText()); SMTPProperties.setProperty("mail.smtp.from",fieldFrom.getText()); // file name SMTPProperties.setProperty("fileNam...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
private void setProperties() { // mail.smtp.host= Fill in the host name or ip address of your SMTP // mail server. // // mail.smtp.port= Fill in the port to use to connect // // mail.smtp.from= This is the e-mail address from. For examp...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
fieldHost.setText(SMTPProperties.getProperty("mail.smtp.host")); fieldPort.setText(SMTPProperties.getProperty("mail.smtp.port")); fieldFrom.setText(SMTPProperties.getProperty("mail.smtp.from"));
fieldHost.setText(SMTPProperties.getProperty("mail.smtp.host")); fieldPort.setText(SMTPProperties.getProperty("mail.smtp.port")); fieldFrom.setText(SMTPProperties.getProperty("mail.smtp.from")); fieldName.setText(SMTPProperties.getProperty("mail.smtp.realname"));
private void setProperties() { // mail.smtp.host= Fill in the host name or ip address of your SMTP // mail server. // // mail.smtp.port= Fill in the port to use to connect // // mail.smtp.from= This is the e-mail address from. For examp...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
fieldFileName.setText(SMTPProperties.getProperty("fileName"));
fieldFileName.setText(SMTPProperties.getProperty("fileName"));
private void setProperties() { // mail.smtp.host= Fill in the host name or ip address of your SMTP // mail server. // // mail.smtp.port= Fill in the port to use to connect // // mail.smtp.from= This is the e-mail address from. For examp...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
}
}
private void setProperties() { // mail.smtp.host= Fill in the host name or ip address of your SMTP // mail server. // // mail.smtp.port= Fill in the port to use to connect // // mail.smtp.from= This is the e-mail address from. For examp...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
bad.minor = Minor.Any;
public static DynAny[] extract(Any any) { try { return ((DynAnySeqHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("DynAnySeq expected"); bad.initCause(cex); throw bad; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DynAnySeqHelper.java/buggy/core/src/classpath/org/org/omg/DynamicAny/DynAnySeqHelper.java
addPropertyChangeListener(new ValuePropertyHandler(dialog));
public JDialog createDialog(Component parentComponent, String title) { Frame toUse = getFrameForComponent(parentComponent); if (toUse == null) toUse = getRootFrame(); JDialog dialog = new JDialog(toUse, title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; dialog.getContentPan...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java