rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
BasicTreeUI.this.tree.repaint(); | public void treeCollapsed(TreeExpansionEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
BasicTreeUI.this.tree.repaint(); | public void treeExpanded(TreeExpansionEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
(DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); | (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); | protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm .getHeight()); | return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } return null; | private Rectangle getCellBounds(int x, int y, Object cell) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm .getHeight()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return new Dimension(200, 900); | return getPreferredSize(c); | public Dimension getMaximumSize(JComponent c) { // FIXME: not implemented return new Dimension(200, 900); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return new Dimension(200, 900); | return getPreferredSize(c); | public Dimension getMinimumSize(JComponent c) { // FIXME: not implemented return new Dimension(200, 900); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
DefaultMutableTreeNode pathForRow = ((DefaultMutableTreeNode) (tree .getModel()).getRoot()); | DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); | public TreePath getPathForRow(JTree tree, int row) { // FIXME: check visibility when expand/collapse is implemented DefaultMutableTreeNode pathForRow = ((DefaultMutableTreeNode) (tree .getModel()).getRoot()); for (int i = 0; i < row; i++) { if (pathForRow != null) pathForRow = pathForRow.getNextNode(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ if (pathForRow != null) pathForRow = pathForRow.getNextNode(); } if (pathForRow == null) return null; return new TreePath(pathForRow.getPath()); } | node = getNextVisibleNode(node); if (node == null) return null; return new TreePath(node.getPath()); } | public TreePath getPathForRow(JTree tree, int row) { // FIXME: check visibility when expand/collapse is implemented DefaultMutableTreeNode pathForRow = ((DefaultMutableTreeNode) (tree .getModel()).getRoot()); for (int i = 0; i < row; i++) { if (pathForRow != null) pathForRow = pathForRow.getNextNode(); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return treeState.getRowCount(); | DefaultMutableTreeNode node = ((DefaultMutableTreeNode) (tree.getModel()) .getRoot()); int count = 0; while (node != null) { count++; node = getNextVisibleNode(node); } return count; | public int getRowCount(JTree tree) { return treeState.getRowCount(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY) | protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY) | protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return false; | TreePath pathForRow = getPathForRow(tree, row); if (pathForRow == null) return true; Object node = pathForRow.getLastPathComponent(); if (node instanceof TreeNode) return ((TreeNode) node).isLeaf(); else return true; | protected boolean isLeaf(int row) { return false; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); | TreePath curr = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(curr); | private void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, leaf, true, false, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
.getTreeCellRendererComponent(tree, leaf, true, false, true, 0, false); rendererPane.paintComponent(g, comp, tree, getCellBounds(x, y, leaf)); | .getTreeCellRendererComponent(tree, leaf, true, false, true, 0, false); rendererPane.paintComponent(g, comp, tree, getCellBounds(x, y, leaf)); | private void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, leaf, true, false, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, leaf, false, false, true, 0, false); | Component c = tree.getCellRenderer().getTreeCellRendererComponent( tree, leaf, false, false, true, 0, false); | private void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, leaf, true, false, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); | TreePath curr = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = tree.isExpanded(curr); | private void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, nonLeaf, true, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
.getTreeCellRendererComponent(tree, nonLeaf, true, false, true, 0, false); rendererPane.paintComponent(g, comp, tree, getCellBounds(x, y, nonLeaf)); | .getTreeCellRendererComponent(tree, nonLeaf, true, expanded, false, 0, false); rendererPane.paintComponent(g, comp, tree, getCellBounds(x, y, nonLeaf)); | private void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, nonLeaf, true, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, nonLeaf, false, false, false, 0, false); | Component c = tree.getCellRenderer().getTreeCellRendererComponent( tree, nonLeaf, false, expanded, false, 0, false); | private void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, nonLeaf, true, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} else | } else | private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
g.drawLine(indentation + halfWidth, descent + halfHeight, indentation + rightChildIndent, descent + halfHeight); | heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); | private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
int y1 = descent - halfHeight; if (y0 != y1) | if (tree.isExpanded(new TreePath(((DefaultMutableTreeNode) curr) .getPath()))) if (y0 != heightOfLine) | private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
g .drawLine(indentation + halfWidth, y0, indentation + halfWidth, y1); | g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); | private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
final Point screen = new Point(location); final Component parent = component.getParent(); if (parent != null) { final Point parentScreen = parent.getLocationOnScreen(); screen.translate(parentScreen.x, parentScreen.y); } return screen; } | return computeLocationOnScreen(component); } | public Point getLocationOnScreen() { final Point screen = new Point(location); final Component parent = component.getParent(); if (parent != null) { final Point parentScreen = parent.getLocationOnScreen(); screen.translate(parentScreen.x, parentScreen.y); } r... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java |
public Image createImage(ImageProducer producer) { return new JNodeImage(producer); | public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { } } return new Er... | public Image createImage(ImageProducer producer) { return new JNodeImage(producer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/366de835b47a9e4d33bcb1512684f2561b1dad5f/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java |
else string = getClass ().getName () + "[" + paramString () + "] on " + source; | public String toString () { String string = null; if (source instanceof Component) string = getClass ().getName () + "[" + paramString () + "] on " + ((Component) source).getName (); else if (source instanceof MenuComponent) string = getClass ().getName () + "[" + paramString () + "] on " ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f9edc08acdeb1f2f4fe82f01243818bd374a3e46/AWTEvent.java/buggy/core/src/classpath/java/java/awt/AWTEvent.java | |
void setEventMask (long mask); | void setEventMask(long mask); | void setEventMask (long mask); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/ComponentPeer.java/buggy/core/src/classpath/java/java/awt/peer/ComponentPeer.java |
private void jbInit() throws Exception { changes = new PropertyChangeSupport(this); Dimension ps = null; // fonts Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); // define fonts panel final JPanel fp = new JPanel(); fp.setLayout(new BorderLayout());... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4aeb43e177d093974bc7ac8bf0617a0a162695fa/SessionAttributes.java/clean/tn5250j/src/org/tn5250j/SessionAttributes.java | ||
public void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException(); this.columns = columns; invalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java | ||
s1.setMacroRunning(false); | public void executeScriptFile(Session session, String scriptFile) throws InterpreterDriver.InterpreterException { try { final Session s1 = session; final String s2 = scriptFile; s1.setMacroRunning(true); Runnable interpretIt = new Runnable() { public v... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4a96f388e2e0e1e6eb69280a457ea7c39e957ed1/JPythonInterpreterDriver.java/buggy/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java | |
s1.setMacroRunning(false); | public void run() { _interpreter = new PythonInterpreter(); _interpreter.set("_session",s1); _interpreter.execfile(s2); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/4a96f388e2e0e1e6eb69280a457ea7c39e957ed1/JPythonInterpreterDriver.java/buggy/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java | |
assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); | assertEquals( "Unable to retrieve localized text for locale: default", s0, "[] value1" ); | public void testLocalization() { String s0 = i18n.getString( null, null, "key1" ); assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); String s1 = i18n.getString( null, new Locale( "en", "US" ), "key2" ); assertEquals( "Unable to retrieve localized t... | 8307 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8307/e16c3226021dee6efdd2011e6666bf163a99b525/DefaultI18NTest.java/clean/src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java |
assertEquals( "Unable to retrieve localized text for locale: en-US", s1, "value2" ); | assertEquals( "Unable to retrieve localized text for locale: en-US", s1, "[en_US] value2" ); | public void testLocalization() { String s0 = i18n.getString( null, null, "key1" ); assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); String s1 = i18n.getString( null, new Locale( "en", "US" ), "key2" ); assertEquals( "Unable to retrieve localized t... | 8307 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8307/e16c3226021dee6efdd2011e6666bf163a99b525/DefaultI18NTest.java/clean/src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java |
assertEquals( "Unable to retrieve localized text for locale: fr-US", s4, "[fr] value3" ); | assertEquals( "Unable to retrieve localized text for locale: fr", s4, "[fr] value3" ); | public void testLocalization() { String s0 = i18n.getString( null, null, "key1" ); assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); String s1 = i18n.getString( null, new Locale( "en", "US" ), "key2" ); assertEquals( "Unable to retrieve localized t... | 8307 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8307/e16c3226021dee6efdd2011e6666bf163a99b525/DefaultI18NTest.java/clean/src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java |
String s5 = i18n.getString( "org.codehaus.plexus.i18n.i18n", null, "key1" ); | String s5 = i18n.getString( "org.codehaus.plexus.i18n.FooBundle", new Locale( "fr", "FR" ), "key3" ); | public void testLocalization() { String s0 = i18n.getString( null, null, "key1" ); assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); String s1 = i18n.getString( null, new Locale( "en", "US" ), "key2" ); assertEquals( "Unable to retrieve localized t... | 8307 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8307/e16c3226021dee6efdd2011e6666bf163a99b525/DefaultI18NTest.java/clean/src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java |
assertEquals( "value1", s5 ); | assertEquals( "Unable to retrieve localized text for locale: fr-FR", s5, "[fr] value3" ); String s6 = i18n.getString( "org.codehaus.plexus.i18n.i18n", null, "key1" ); assertEquals( "Unable to retrieve localized properties for locale: default", "[] value1", s6 ); Locale old = Locale.getDefault(); Locale.setDefault(Lo... | public void testLocalization() { String s0 = i18n.getString( null, null, "key1" ); assertEquals( "Unable to retrieve localized text for locale: default", s0, "value1" ); String s1 = i18n.getString( null, new Locale( "en", "US" ), "key2" ); assertEquals( "Unable to retrieve localized t... | 8307 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8307/e16c3226021dee6efdd2011e6666bf163a99b525/DefaultI18NTest.java/clean/src/test/java/org/codehaus/plexus/i18n/DefaultI18NTest.java |
sew.show(); | sew.setVisible(true); | private void showPopupMenu(MouseEvent me) { JPopupMenu jpm = new JPopupMenu(); JMenuItem menuItem; Action action; final int row = spools.rowAtPoint(me.getPoint()); final int col = spools.convertColumnIndexToModel( spools.columnAtPoint(me.getPoint()));// System.out... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/SpoolExporter.java/clean/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
sew.show(); | sew.setVisible(true); | public void actionPerformed(ActionEvent e) { SpoolExportWizard sew = new SpoolExportWizard(getSpooledFile(row), session); sew.show(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/SpoolExporter.java/clean/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
public NoSuchMethodException() { super(); | public NoSuchMethodException() { | public NoSuchMethodException() { super(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/NoSuchMethodException.java/buggy/core/src/classpath/java/java/lang/NoSuchMethodException.java |
public NoSuchAlgorithmException(String msg) | public NoSuchAlgorithmException() | public NoSuchAlgorithmException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/NoSuchAlgorithmException.java/buggy/core/src/classpath/java/java/security/NoSuchAlgorithmException.java |
super(msg); | public NoSuchAlgorithmException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/NoSuchAlgorithmException.java/buggy/core/src/classpath/java/java/security/NoSuchAlgorithmException.java | |
SecureSet (final Subject subject, final int type, final Collection elements) | SecureSet (final Subject subject, final int type, final Collection inElements) | SecureSet (final Subject subject, final int type, final Collection elements) { this (subject, type); for (Iterator it = elements.iterator(); it.hasNext(); ) { Object o = it.next(); if (type == PRINCIPALS && !(o instanceof Principal)) { throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Subject.java/clean/core/src/classpath/javax/javax/security/auth/Subject.java |
for (Iterator it = elements.iterator(); it.hasNext(); ) | for (Iterator it = inElements.iterator(); it.hasNext(); ) | SecureSet (final Subject subject, final int type, final Collection elements) { this (subject, type); for (Iterator it = elements.iterator(); it.hasNext(); ) { Object o = it.next(); if (type == PRINCIPALS && !(o instanceof Principal)) { throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Subject.java/clean/core/src/classpath/javax/javax/security/auth/Subject.java |
if (!elements.contains (o)) | if (!this.elements.contains (o)) | SecureSet (final Subject subject, final int type, final Collection elements) { this (subject, type); for (Iterator it = elements.iterator(); it.hasNext(); ) { Object o = it.next(); if (type == PRINCIPALS && !(o instanceof Principal)) { throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Subject.java/clean/core/src/classpath/javax/javax/security/auth/Subject.java |
elements.add (o); | this.elements.add (o); | SecureSet (final Subject subject, final int type, final Collection elements) { this (subject, type); for (Iterator it = elements.iterator(); it.hasNext(); ) { Object o = it.next(); if (type == PRINCIPALS && !(o instanceof Principal)) { throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Subject.java/clean/core/src/classpath/javax/javax/security/auth/Subject.java |
return elements.remove (element); | return elements.contains (element); | public synchronized boolean contains (final Object element) { return elements.remove (element); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Subject.java/clean/core/src/classpath/javax/javax/security/auth/Subject.java |
g.setColor(Color.black); | y = y + getShift(); g.setColor(MetalLookAndFeel.getBlack()); | public void paintIcon(Component c, Graphics g, int x, int y) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x, y, x + 9, y); g.drawLine(x, y + 1, x, y + 15); g.drawLine(x, y + 15, x + 12, y + 15); g.drawLine(x + 12, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(new Color(204, 204, 255)); | g.setColor(MetalLookAndFeel.getPrimaryControl()); | public void paintIcon(Component c, Graphics g, int x, int y) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x, y, x + 9, y); g.drawLine(x, y + 1, x, y + 15); g.drawLine(x, y + 15, x + 12, y + 15); g.drawLine(x + 12, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(Color.black); g.drawLine(x, y + 3, x, y + 12); g.drawLine(x, y + 12, x + 15, y + 12); g.drawLine(x + 15, y + 12, x + 15, y + 2); g.drawLine(x + 14, y + 3, x + 9, y + 3); g.drawLine(x + 8, y + 2, x + 1, y + 2); g.setColor(new Color(204, 204, 255)); g.fillRect(x + 2, y + 4, 7, 8); g.fillRect(x + 9, y + 5, 6, ... | y = y + getShift(); g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x, y + 6, x, y + 15); g.drawLine(x, y + 15, x + 15, y + 15); g.drawLine(x + 15, y + 15, x + 15, y + 5); g.drawLine(x + 14, y + 6, x + 9, y + 6); g.drawLine(x + 8, y + 5, x + 1, y + 5); g.setColor(MetalLookAndFeel.getPrimaryControl()); g.fillRect(x ... | public void paintIcon(Component c, Graphics g, int x, int y) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x, y + 3, x, y + 12); g.drawLine(x, y + 12, x + 15, y + 12); g.drawLine(x + 15, y + 12, x + 15, y + 2); g.drawLine(x + 14, y + 3, x + 9, y + 3);... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(new Color(102, 102, 153)); | g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); | public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(new Color(102, 102, 153)); g.fillRect(x + 1, y, 14, 2); g.fillRect(x, y + 1, 2, 14); g.fillRect(x + 1, y + 14, 14, 2); g.fillRect(x + 14, y + 1, 2, 14); g.drawLine(x + 2, y + 5, x + 14, y + 5); g.s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(new Color(204, 204, 255)); | g.setColor(MetalLookAndFeel.getPrimaryControl()); | public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(new Color(102, 102, 153)); g.fillRect(x + 1, y, 14, 2); g.fillRect(x, y + 1, 2, 14); g.fillRect(x + 1, y + 14, 14, 2); g.fillRect(x + 14, y + 1, 2, 14); g.drawLine(x + 2, y + 5, x + 14, y + 5); g.s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(new Color(102, 102, 153)); | g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); | public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(new Color(102, 102, 153)); g.fillRect(x + 1, y, 14, 2); g.fillRect(x, y + 1, 2, 14); g.fillRect(x + 1, y + 14, 14, 2); g.fillRect(x + 14, y + 1, 2, 14); g.drawLine(x + 2, y + 5, x + 14, y + 5); g.s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
g.setColor(Color.white); | g.setColor(MetalLookAndFeel.getWhite()); | public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(new Color(102, 102, 153)); g.fillRect(x + 1, y, 14, 2); g.fillRect(x, y + 1, 2, 14); g.fillRect(x + 1, y + 14, 14, 2); g.fillRect(x + 14, y + 1, 2, 14); g.drawLine(x + 2, y + 5, x + 14, y + 5); g.s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5a5d754b2589a0d1c598cfa61794debb63640f7/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
(obj instanceof SmallAttributeSet) | (obj instanceof AttributeSet) | public boolean equals(Object obj) { return (obj instanceof SmallAttributeSet) && this.isEqual((AttributeSet)obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/StyleContext.java/buggy/core/src/classpath/javax/javax/swing/text/StyleContext.java |
while (getMacroByNumber(++x) != null) {} macros.put("macro" + x + "." + name,keyStrokes); macrosExist = true; | if (macrosExist && getMacroByName(name) != null) { Set macroSet = macros.keySet(); Iterator macroIterator = macroSet.iterator(); String byName = null; String prefix = null; while (macroIterator.hasNext()) { byName = (String)macroIterator.next(); if (byName.endsWith(name)) { prefix = byName.substring(0,byName.index... | public final static void setMacro(String name, String keyStrokes) { int x = 0; while (getMacroByNumber(++x) != null) {} macros.put("macro" + x + "." + name,keyStrokes); macrosExist = true; saveMacros(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/72cd8bcd8293ce09c5a6fcc9aefa5bbd7a099673/Macronizer.java/clean/tn5250j/src/org/tn5250j/tools/Macronizer.java |
this.redoContent = new String(StringContent.this.content, this.start, this.length); | this.redoContent = new String(StringContent.this.content, this.start, this.length); | public void undo() { super.undo(); try { StringContent.this.checkLocation(this.start, this.length); this.redoContent = new String(StringContent.this.content, this.start, this.length); StringContent.this.remove(this.start, this.length); } catch (BadLocationE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
else if ((where + len)>this.count) | else if ((where + len) > this.count) | void checkLocation(int where, int len) throws BadLocationException { if (where < 0) throw new BadLocationException("Invalid location", 1); else if (where > this.count) throw new BadLocationException("Invalid location", this.count); else if ((where + len)>this.count) throw new BadLocationExcep... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
public void getChars(int where, int len, Segment txt) throws BadLocationException | public void getChars(int where, int len, Segment txt) throws BadLocationException | public void getChars(int where, int len, Segment txt) throws BadLocationException { checkLocation(where, len); if (txt != null) { txt.array = this.content; txt.offset = where; txt.count = len; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
if (txt != null) { | public void getChars(int where, int len, Segment txt) throws BadLocationException { checkLocation(where, len); if (txt != null) { txt.array = this.content; txt.offset = where; txt.count = len; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java | |
} | public void getChars(int where, int len, Segment txt) throws BadLocationException { checkLocation(where, len); if (txt != null) { txt.array = this.content; txt.offset = where; txt.count = len; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java | |
Position p = (Position)iter.next(); | Position p = (Position) iter.next(); | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector refPos = new Vector(); Iterator iter = this.positions.iterator(); while(iter.hasNext()) { Position p = (Position)iter.next(); if ((of... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
return new String (this.content, where, len); | return new String(this.content, where, len); | public String getString(int where, int len) throws BadLocationException { checkLocation(where, len); return new String (this.content, where, len); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
System.arraycopy(this.content, where, temp, (where + insert.length), (temp.length - where - insert.length)); | System.arraycopy(this.content, where, temp, (where + insert.length), (temp.length - where - insert.length)); | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
Vector refPos = getPositionsInRange(this.positions, where, temp.length - where); | Vector refPos = getPositionsInRange(this.positions, where, temp.length - where); | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
checkLocation(where, nitems); | checkLocation(where, nitems + 1); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy array. S... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); | RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy array. S... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
System.arraycopy(this.content, where + nitems, temp, where, this.content.length - where - nitems); | System.arraycopy(this.content, where + nitems, temp, where, this.content.length - where - nitems); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy array. S... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
Vector refPos = getPositionsInRange(this.positions, where, this.content.length + nitems - where); | Vector refPos = getPositionsInRange(this.positions, where, this.content.length + nitems - where); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy array. S... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/StringContent.java/buggy/core/src/classpath/javax/javax/swing/text/StringContent.java |
super(); | public CannotRedoException() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/CannotRedoException.java/buggy/core/src/classpath/javax/javax/swing/undo/CannotRedoException.java | |
super(); | public CannotUndoException() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/CannotUndoException.java/buggy/core/src/classpath/javax/javax/swing/undo/CannotUndoException.java | |
public PanelUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/PanelUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/PanelUI.java | ||
public DatagramSocket(SocketAddress address) throws SocketException | protected DatagramSocket(DatagramSocketImpl impl) | public DatagramSocket(SocketAddress address) throws SocketException { // @classpath-bugfix Security String propVal = (String)AccessController.doPrivileged(new GetPropertyAction("impl.prefix")); if (factory != null) { // @classpath-bugfix Use factory impl = factory.createDatagramSocketImpl();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
String propVal = (String)AccessController.doPrivileged(new GetPropertyAction("impl.prefix")); if (factory != null) { impl = factory.createDatagramSocketImpl(); } else if (propVal == null || propVal.equals("")) impl = new PlainDatagramSocketImpl(); else try { impl = (DatagramSocketImpl) Class.forName("java.net." + pro... | if (impl == null) throw new NullPointerException("impl may not be null"); | public DatagramSocket(SocketAddress address) throws SocketException { // @classpath-bugfix Security String propVal = (String)AccessController.doPrivileged(new GetPropertyAction("impl.prefix")); if (factory != null) { // @classpath-bugfix Use factory impl = factory.createDatagramSocketImpl();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
if (address != null) bind(address); | this.impl = impl; this.remoteAddress = null; this.remotePort = -1; | public DatagramSocket(SocketAddress address) throws SocketException { // @classpath-bugfix Security String propVal = (String)AccessController.doPrivileged(new GetPropertyAction("impl.prefix")); if (factory != null) { // @classpath-bugfix Use factory impl = factory.createDatagramSocketImpl();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
} | } | public ViewportLayout() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ViewportLayout.java/buggy/core/src/classpath/javax/javax/swing/ViewportLayout.java |
public AccessibleJWindow() | protected AccessibleJWindow() | public AccessibleJWindow() { super(); // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java |
break; | private void parseConditionalSect(char[] saved) throws Exception { skipWhitespace(); if (tryRead("INCLUDE")) { skipWhitespace(); require('['); // VC: Proper Conditional Section/PE Nesting if (readBuffer != saved) { handler.verror("Illegal Conditional Section/... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/XmlParser.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java | |
XDF.setDefaultDataArraySize(value); | Specification.getInstance().setDefaultDataArraySize(value); | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // The root node is just a "structure" node, // but is always the first one. XDF.setXMLAttributes(attrs); // set XML attributes from passed list CurrentStructure = XDF; // current working structure... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/b3840ff490803a892bb4c65cfb5cf46f6722f00a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
protected synchronized void create(boolean stream) throws IOException { throw new SocketException("Not implemented"); | protected synchronized void create(boolean stream) throws IOException { channel = new SocketChannelImpl(false); VMChannel vmchannel = channel.getVMChannel(); vmchannel.initSocket(stream); channel.configureBlocking(true); impl.getState().setChannelFD(vmchannel.getState()); | protected synchronized void create(boolean stream) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java |
super("bdf"); | public BDFFontProvider() { log.debug("new BDFFontProvider"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/BDFFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/bdf/BDFFontProvider.java | |
{ final BDFFont bdfFont = (BDFFont) font; | { final BDFFont bdfFont = getBDFFont(font); | protected FontMetrics createFontMetrics(Font font) throws IOException { final BDFFont bdfFont = (BDFFont) font; return bdfFont.getFontMetrics(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/BDFFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/bdf/BDFFontProvider.java |
final BDFFont bdfFont = (BDFFont) font; | final BDFFont bdfFont = getBDFFont(font); | protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final BDFFont bdfFont = (BDFFont) font; final TextRenderer renderer = new BDFTextRenderer(bdfFont.getContainer()); log.debug("created TextRenderer for BDF"); return renderer; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/BDFFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/bdf/BDFFontProvider.java |
protected GnuRSAKey(final BigInteger n, final BigInteger e) | protected GnuRSAKey(int defaultFormat, BigInteger n, BigInteger e) | protected GnuRSAKey(final BigInteger n, final BigInteger e) { super(); this.n = n; this.e = e; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAKey.java |
this.defaultFormat = defaultFormat <= 0 ? Registry.RAW_ENCODING_ID : defaultFormat; | protected GnuRSAKey(final BigInteger n, final BigInteger e) { super(); this.n = n; this.e = e; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAKey.java | |
return null; | return KeyPairCodecFactory.getEncodingShortName(defaultFormat); | public String getFormat() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAKey.java |
input.mark(2000); | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | |
String uxId = input.read_string(); input.reset(); | gnuAny exc = new gnuAny(); | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
UserException uex = ObjectCreator.readUserException(uxId, input); | exc.insert_Streamable(new streamReadyHolder(input)); | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
if (uex == null) m_environment.exception(new UserException(uxId)); else m_environment.exception(uex); | UnknownUserException unuex = new UnknownUserException(exc); m_environment.exception(unuex); | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | ||
setBigEndian(ior.Big_Endian); | public void setIor(IOR an_ior) { ior = an_ior; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | |
Socket socket = new Socket(ior.Internet.host, ior.Internet.port); | long pause = PAUSE_INITIAL; if (socket == null) { Open: for (int i = 0; i < PAUSE_STEPS; i++) { try { socket = new Socket(ior.Internet.host, ior.Internet.port); break Open; } catch (BindException ex) { try { System.gc(); Thread.sleep(pause); pause = pause * 2; if (pause > PAUSE_MAX) pause = PAUSE_MAX; } catch (Inte... | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
n = socketInput.read(r, n, r.length - n); | n += socketInput.read(r, n, r.length - n); | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
socketInput.close(); | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | |
catch (IOException ex1) | catch (IOException io_ex) | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java |
ex1.printStackTrace(); | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | |
finally { try { if (socket != null && !socket.isClosed()) { socket.setSoTimeout(Functional_ORB.TANDEM_REQUESTS); SocketRepository.put_socket(key, socket ); } } catch (IOException scx) { InternalError ierr = new InternalError(); ierr.initCause(scx); throw ierr; } } | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | |
public static SystemException readSystemException(InputStream input) | public static SystemException readSystemException(InputStream input, ServiceContext[] contexts) | public static SystemException readSystemException(InputStream input) { String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus status = CompletionStatusHelper.read(input); SystemException exception = ObjectCreator.createSystemException(idl, minor, status); return except... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
CompletionStatus status = CompletionStatusHelper.read(input); | CompletionStatus completed = CompletionStatusHelper.read(input); | public static SystemException readSystemException(InputStream input) { String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus status = CompletionStatusHelper.read(input); SystemException exception = ObjectCreator.createSystemException(idl, minor, status); return except... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
SystemException exception = ObjectCreator.createSystemException(idl, minor, status); | try { exception = (SystemException) createObject(idl, null); exception.minor = minor; exception.completed = completed; } catch (Exception ex) { UNKNOWN u = new UNKNOWN("Unsupported system exception " + idl, minor, completed); u.initCause(ex); throw u; } try { ServiceContext uEx = ServiceContext.find( ServiceContext.... | public static SystemException readSystemException(InputStream input) { String idl = input.read_string(); int minor = input.read_ulong(); CompletionStatus status = CompletionStatusHelper.read(input); SystemException exception = ObjectCreator.createSystemException(idl, minor, status); return except... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
String helper = toHelperName(idl); Class helperClass = Class.forName(helper); | Class helperClass = findHelper(idl); | public static UserException readUserException(String idl, InputStream input) { try { String helper = toHelperName(idl); Class helperClass = Class.forName(helper); Method read = helperClass.getMethod("read", new Class[] { org.omg.CORBA.portable.InputStream.class } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.