rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
System.out.println(" Information Message: " | log.info(" Information Message: " | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java |
System.out.println("IO Exception accessing File " | log.warn("IO Exception accessing File " | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java |
System.out.println("Security Exception for file " | log.warn("Security Exception for file " | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java |
System.out.println("IO Exception accessing File " | log.warn("IO Exception accessing File " | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java |
System.out.println("Security Exception for file " | log.warn("Security Exception for file " | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java |
out.write(buf.length + 1); | writeLength(out, buf.length + 1); | private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); out.write(buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DERWriter.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERWriter.java |
return buf.length; | return buf.length + 1; | private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); out.write(buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DERWriter.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERWriter.java |
public void unregisterKeyboardAction(KeyStroke aKeyStroke) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | ||
if (nextFreePtr == null) { /* This heap is full */ | if (nextFreePtr.EQ(Address.zero())) { /* This heap is full */ | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8a00bd5a8177bb705dca7886529a2237e2ba289/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java |
Address objectPtr = null; | Address objectPtr = Address.zero(); | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8a00bd5a8177bb705dca7886529a2237e2ba289/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java |
nextFreePtr = null; | nextFreePtr = Address.zero(); | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8a00bd5a8177bb705dca7886529a2237e2ba289/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java |
Address firstFreePtr = null; | Address firstFreePtr = Address.zero(); | protected final void defragment() throws UninterruptiblePragma { final Word size = Word.fromIntZeroExtend(getSize()); final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8a00bd5a8177bb705dca7886529a2237e2ba289/VmDefaultHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java |
try { | public static void main(String[] args) { try { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/TestNPE.java/buggy/core/src/test/org/jnode/test/TestNPE.java | |
} catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } | public static void main(String[] args) { try { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/TestNPE.java/buggy/core/src/test/org/jnode/test/TestNPE.java | |
return encoded.array(); | byte[] ret = encoded.array(); if (ret.length > len) { byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; | final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e81465c8dc08fe3c0a055c4bb1c2588e37b39c25/StreamSerializer.java/clean/core/src/classpath/gnu/gnu/xml/transform/StreamSerializer.java |
int len = encoded.limit() - encoded.position(); | final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e81465c8dc08fe3c0a055c4bb1c2588e37b39c25/StreamSerializer.java/clean/core/src/classpath/gnu/gnu/xml/transform/StreamSerializer.java | |
return ftpFile.getSize(); | return ftpFile.size(); | public long getLength() { return ftpFile.getSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7bedbedab739f364e6ba4d4ce6644de8332fbdf9/FTPFSFile.java/clean/fs/src/fs/org/jnode/fs/ftpfs/FTPFSFile.java |
fileSystem.cwd(parent.path()); InputStream in = fileSystem.retrieveFileStream(getName()); int i = in.available(); data = new byte[i]; in.read(data); | fileSystem.chdir(parent.path()); data = fileSystem.get(getName()); | public synchronized void read(long fileOffset, ByteBuffer dest) throws IOException { try { if(data == null){ synchronized(fileSystem) { fileSystem.cwd(parent.path()); //data = fileSystem.get(getName()); InputStream in = fileSy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7bedbedab739f364e6ba4d4ce6644de8332fbdf9/FTPFSFile.java/clean/fs/src/fs/org/jnode/fs/ftpfs/FTPFSFile.java |
private Object get(int index) { Object result = cp[ index]; /* * if (result == null) { System.err.println("Warning: cp[" + index + "] * (tag " + tags[index] + ") returns null"); */ return result; | private final Object get(int index) { return cp[ index]; | private Object get(int index) { Object result = cp[ index]; /* * if (result == null) { System.err.println("Warning: cp[" + index + "] * (tag " + tags[index] + ") returns null"); */ return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmCP.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCP.java |
public int indexOf(Object object) { | public final int indexOf(Object object) { | public int indexOf(Object object) { for (int i = 0; i < used; i++) { final Object o = cp[ i]; if ((o != null) && (o.equals(object))) { return i; } } return -1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmCP.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCP.java |
if (blink.isSelected()) { changes.firePropertyChange(this,"cursorBlink", getStringProperty("cursorBlink"), "Yes"); setProperty("cursorBlink","Yes"); } else { changes.firePropertyChange(this,"cursorBlink", getStringProperty("cursorBlink"), "No"); setProperty("cursorBlink","No"); } | public void applyAttributes() { if (cFull.isSelected()) { changes.firePropertyChange(this,"cursorSize", getStringProperty("cursorSize"), "Full"); setProperty("cursorSize","Full"); } if (cHalf.isSelected()) { changes.fireProper... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/df65a89f3874249d9a0046d2eba72cb4360e1f37/CursorAttributesPanel.java/buggy/tn5250j/src/org/tn5250j/settings/CursorAttributesPanel.java | |
contentPane.add(blinkPanel); | public void initPanel() throws Exception { setLayout(new BorderLayout()); contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); add(contentPane,BorderLayout.NORTH); // define cursor size panel JPanel crp = new JPanel(); crp.setBorder(Borde... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/df65a89f3874249d9a0046d2eba72cb4360e1f37/CursorAttributesPanel.java/buggy/tn5250j/src/org/tn5250j/settings/CursorAttributesPanel.java | |
if (!evt.isShiftDown()) | if (evt.getModifiers() == 0) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
else | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
if (!evt.isShiftDown()) | if (evt.getModifiers() == 0) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
else | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
int target; if (lead == BasicListUI.this.list.getFirstVisibleIndex()) { target = Math.max (0, lead - (BasicListUI.this.list.getLastVisibleIndex() - BasicListUI.this.list.getFirstVisibleIndex() + 1)); } else { target = BasicListUI.this.list.getFirstVisibleIndex(); } if (evt.getModifiers() == 0) BasicListUI.this.list.set... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
int target; if (lead == BasicListUI.this.list.getLastVisibleIndex()) { target = Math.min (max, lead + (BasicListUI.this.list.getLastVisibleIndex() - BasicListUI.this.list.getFirstVisibleIndex() + 1)); } else { target = BasicListUI.this.list.getLastVisibleIndex(); } if (evt.getModifiers() == 0) BasicListUI.this.list.set... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
&& evt.isControlDown()) | && (evt.getModifiers() == InputEvent.CTRL_MASK)) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
== KeyEvent.VK_SLASH) && evt.isControlDown()) | == KeyEvent.VK_SLASH) && (evt.getModifiers() == InputEvent.CTRL_MASK)) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
else if (evt.getKeyCode() == KeyEvent.VK_SPACE && evt.isControlDown()) | else if (evt.getKeyCode() == KeyEvent.VK_SPACE && (evt.getModifiers() == InputEvent.CTRL_MASK)) | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
BasicListUI.this.list.ensureIndexIsVisible (BasicListUI.this.list.getLeadSelectionIndex()); | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.isSelectedIndex(index)) BasicListUI.this.list.removeSelectionInterval(index,index); else BasicListUI.this.list.addSelectionInter... | if (event.isShiftDown()) | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
BasicListUI.this.list.ensureIndexIsVisible (BasicListUI.this.list.getLeadSelectionIndex()); | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
size.width = columns * getColumnWidth(); | { Insets i = getInsets(); size.width = columns * getColumnWidth() + i.left + i.right; } | public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java |
if (clipboard != null) return clipboard; else { | private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/39b6fa6b2c83d98e97f872ed8ae18d9f4803884d/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | |
private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/39b6fa6b2c83d98e97f872ed8ae18d9f4803884d/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | ||
} | private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/39b6fa6b2c83d98e97f872ed8ae18d9f4803884d/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | |
public DefaultDesktopManager() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java | ||
public void activateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } frame.toFront(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java | ||
public void deactivateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) { if (p.getSelectedFrame() == frame) p.setSelectedFrame(null); } else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java | ||
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java | ||
InputStream stream) { super(stream); } | InputStream stream) { super(stream); int max = 0; try { max = stream.available(); } catch ( IOException ioe ) { } monitor = new ProgressMonitor( component, message, null, 0, max ); } | public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); // TODO } // ProgressMonitorInputStream() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
public void close() throws IOException { } | public void close() throws IOException { super.close(); monitor.close(); } | public void close() throws IOException { // TODO } // close() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
public ProgressMonitor getProgressMonitor() { return null; } | public ProgressMonitor getProgressMonitor() { return monitor; } | public ProgressMonitor getProgressMonitor() { return null; // TODO } // getProgressMonitor() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
public int read() throws IOException { return 0; } | public int read() throws IOException { int t = super.read(); monitor.setProgress(++read); checkMonitorCanceled(); return t; } | public int read() throws IOException { return 0; // TODO } // read() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
public synchronized void reset() throws IOException { } | public void reset() throws IOException { super.reset(); checkMonitorCanceled(); } | public synchronized void reset() throws IOException { // TODO } // reset() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
public long skip(long length) throws IOException { return 0; } | public long skip(long length) throws IOException { long t = super.skip(length); assert ( (long) read + t <= (long) Integer.MAX_VALUE ); read += (int) t; monitor.setProgress(read); checkMonitorCanceled(); return t; } | public long skip(long length) throws IOException { return 0; // TODO } // skip() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitorInputStream.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitorInputStream.java |
CurrentArray.addNote(newnote); | getCurrentArray().addNote(newnote); } else if( parentNodeName.equals(XDFNodeName.STRUCTURE) || parentNodeName.equals(XDFNodeName.ROOT) ) { getCurrentStructure().addNote(newnote); | public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { String parentNodeName = getParentNodeName(); // create new object appropriately Note newnote = new Note(); newnote.setAttributes(attrs); // set XML attributes from pass... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d2a8263e52057fcdb96e3b577f3031c53deb05a1/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
bad.minor = Minor.Any; | public static ObjectAlreadyActive extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (ObjectAlreadyActive) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("ObjectAlreadyActive e... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectAlreadyActiveHelper.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHelper.java | |
if (config.getStringProperty("cursorBlink").equals("Yes")) { blinker = new javax.swing.Timer(500,this); blinker.start(); } | public void loadProps() { loadColors(); if (config.isPropertyExists("colSeparator")) { if (getStringProperty("colSeparator").equals("Line")) colSepLine = 0; if (getStringProperty("colSeparator").equals("ShortLine")) colSepLine = 1; if (getStringProperty("colSep... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/df65a89f3874249d9a0046d2eba72cb4360e1f37/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
if (pn.equals("cursorBlink")) { System.out.println(getStringProperty("cursorBlink")); if (pce.getNewValue().equals("Yes")) { if (blinker == null) { blinker = new javax.swing.Timer(500,this); blinker.start(); } } else { if (blinker != null) { blinker.stop(); blinker = null; } } } | public void propertyChange(PropertyChangeEvent pce) { String pn = pce.getPropertyName(); boolean resetAttr = false; if (pn.equals("colorBg")) { colorBg = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorBlue")) { colorBlue = (Color)pce.getNewValue(); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/df65a89f3874249d9a0046d2eba72cb4360e1f37/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
this.button = button; | public SwingButtonPeer(Button button) { SwingToolkit.add(button, this); SwingToolkit.copyAwtProperties(button, this); setText(button.getLabel()); addActionListener(new ActionListenerDelegate(button)); addMouseListener(new MouseListenerDelegate(button)); addMouseMotionListener(new MouseMotionListenerDelegate(butt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingButtonPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingButtonPeer.java | |
} | } | public DefaultDesktopManager() { } // DefaultDesktopManager() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void activateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } frame.toFront(); } // activateFrame() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void beginDraggingFrame(JComponent component) { if (component instanceof JDesktopIcon) pane = ((JDesktopIcon) component).getInternalFrame().getDesktopPane(); else pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void beginResizingFrame(JComponent component, int direction) { pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if (! (pane instanceof JDesktopPane)) currentDragMode = JDesktopPane.LIVE_DRAG_MODE; else currentDragM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void closeFrame(JInternalFrame frame) { Container c = frame.getParent(); frame.doDefaultCloseAction(); if (c != null) { if (frame.isIcon()) c.remove(frame.getDesktopIcon()); else c.remove(frame); c.repaint(); } } // closeFrame() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void deactivateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) { if (p.getSelectedFrame() == frame) p.setSelectedFrame(null); } else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } } // deactivateFrame() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void deiconifyFrame(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); removeIconFor(frame); c.add(frame); frame.setVisible(true); if (! frame.isSelected()) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(fr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void dragFrame(JComponent component, int newX, int newY) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { // FIXME: Do outline drag mode painting. } else { Rectangle b = component.getBounds(); if (component instanceof JDesktopIcon) component.setBounds(newX, newY, b.width, b.he... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endDra... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); } // endRes... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | protected Rectangle getPreviousBounds(JInternalFrame frame) { return frame.getNormalBounds(); } // getPreviousBounds() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
setWasIcon(frame, true); | setWasIcon(frame, Boolean.TRUE); | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void maximizeFrame(JInternalFrame frame) { // Can't maximize from iconified state. // It can only return to maximized state, but that would fall under // deiconify. if (frame.isIcon()) return; frame.setNormalBounds(frame.getBounds()); Container p = frame.getParent(); if (p != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void minimizeFrame(JInternalFrame frame) { Rectangle normalBounds = frame.getNormalBounds(); JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { // Do nothing. } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void openFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c == null) c = frame.getDesktopIcon().getParent(); if (c == null) return; c.remove(frame.getDesktopIcon()); c.add(frame); frame.setVisible(true); } // openFrame() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); } // removeIconFor() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { dragCache.setBounds(newX, newY, newWidth, newHeight); if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { // FIXME: Do outline drag painting. } else setBoundsForFrame(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { frame.setNormalBounds(rect); } // setPreviousBounds() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
protected void setWasIcon(JInternalFrame frame, boolean value) | protected void setWasIcon(JInternalFrame frame, Boolean value) | protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } | frame.setWasIcon(value.booleanValue(), WAS_ICON_ONCE_PROPERTY); } | protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
} | } | protected boolean wasIcon(JInternalFrame frame) { return frame.getWasIcon(); } // wasIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java |
this(null, null, e); | this(null, e); | public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, null, e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); | return new PluginClassLoader(registry, PluginDescriptorModel.this, jarFile, preLoaders); | public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); | return new PluginClassLoader(registry, PluginDescriptorModel.this, jarFile, preLoaders); | public Object run() { return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
public final void resolve() throws PluginException { | public final void resolve(PluginRegistryModel registry) throws PluginException { if ((this.registry != null) && (this.registry != registry)) { throw new SecurityException("Cannot overwrite the registry"); } | public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); | extensions[i].resolve(registry); | public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
requires[i].resolve(); | requires[i].resolve(registry); | public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
runtime.resolve(); | runtime.resolve(registry); | public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
final void startPlugin() throws PluginException { | final void startPlugin(final PluginRegistryModel registry) throws PluginException { | final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
resolve(); | resolve(registry); | final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
reqDescr.startPlugin(); | reqDescr.startPlugin(registry); | final void startPlugin() throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; //BootLog.info("Resolve on plugin " + getId()); try { AccessController.doPrivileged(new Privi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
resolve(); | resolve(registry); | public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
reqDescr.startPlugin(); | reqDescr.startPlugin(registry); | public Object run() throws PluginException { resolve(); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); //BootLog.info("Start dependency " + reqId); final Plugi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < extensions.length; i++) { exte... | protected void unresolve(PluginRegistryModel registry) throws PluginException { if (runtime != null) { runtime.unresolve(registry); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(registry); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(registry); } for (int i = 0... | protected void unresolve() throws PluginException { if (resolved) { if (runtime != null) { runtime.unresolve(); } for (int i = 0; i < requires.length; i++) { requires[i].unresolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].unresolve(); } for (int i = 0; i < exten... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginDescriptorModel.java/buggy/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
public void startSystemPlugins() throws PluginException { | public void startSystemPlugins(List descriptors) throws PluginException { | public void startSystemPlugins() throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescriptors(); //... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/DefaultPluginManager.java/clean/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java |
((PluginRegistryModel) registry).resolveDescriptors(descriptors); | public void startSystemPlugins() throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescriptors(); //... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/DefaultPluginManager.java/clean/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java | |
case LGDT_ISN: emmitLGDT(); break; case LIDT_ISN: emmitLIDT(); break; | public boolean emmit(String mnemonic, List operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case ADC_ISN: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
case AC_ADDR: stream.writeADD(operandSize, getAddress(0).disp, getInt(1)); break; | private final void emmitADD() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeADD(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeADD(getReg(0), getInt(1)); break; case RE_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
case AC_ADDR: stream.writeAND(operandSize, getAddress(0).disp, getInt(1)); break; | private final void emmitAND() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: stream.writeAND(getReg(0), getReg(1)); break; case RC_ADDR: stream.writeAND(getReg(0), getInt(1)); break; case RE_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
} else if (o1 instanceof Address) { Address ind = (Address) o1; if (ind.reg != null && ind.sreg != null) { throw new IllegalArgumentException("Scaled is not supported for call "); } else if (ind.reg != null && ind.sreg == null) { stream.writeCALL(getRegister(ind.getImg()), ind.disp); } else if (ind.reg == null && ind.s... | private final void emmitCALL() { Object o1 = operands.get(0); if (o1 instanceof Register) { stream.writeCALL(getRegister(((Register) o1).name)); } else if (o1 instanceof Identifier) { String id = ((Identifier) o1).name; Label lab = (Label) labels.get(id); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
case A_ADDR: stream.writeINC(operandSize, getAddress(0).disp); break; case S_ADDR: ind = getAddress(0); stream.writeINC(operandSize, getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp); break; | private final void emmitINC() { int addr = getAddressingMode(1); switch (addr) { case R_ADDR: stream.writeINC(getReg(0)); break; case E_ADDR: Address ind = getAddress(0); stream.writeINC(operandSize, getRegister(ind.getI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
case RS_ADDR: ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp); break; case RZ_ADDR: ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.sreg), ind.scale, ind.disp); break; | private final void emmitLEA() { int addr = getAddressingMode(2); switch (addr) { case RE_ADDR: Address ind = getAddress(1); stream.writeLEA(getReg(0), getRegister(ind.getImg()), ind.disp); break; default: reportAddressin... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
stream.writeMOV(operandSize, (GPR) r1, (GPR) r2); | int s1 = r1.getSize(); int s2 = r2.getSize(); if(s1 != s2){ throw new IllegalArgumentException("Incompatible register pair: " + r1 + "," + r2); } stream.writeMOV(s1, (GPR) r1, (GPR) r2); | private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java |
stream.writeMOV(operandSize, getReg(0), getRegister(ind.getImg()), ind.disp); | stream.writeMOV(r.getSize(), r, getRegister(ind.getImg()), ind.disp); break; case RA_ADDR: stream.writeMOV(getReg(0), getAddress(1).disp); | private final void emmitMOV() { int addr = getAddressingMode(2); switch (addr) { case RR_ADDR: X86Register r1 = X86Register.getRegister(((Register) args[0]).name); X86Register r2 = X86Register.getRegister(((Register) args[1]).name); if (r1 instan... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d2350e541cf34c479b65e9547a7762e3e2d855b8/X86Core.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.