rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return 0; | if (orientation == SwingConstants.HORIZONTAL) return visible.width; else if (orientation == SwingConstants.VERTICAL) return visible.height; else throw new IllegalArgumentException("orientation must be either " + "javax.swing.SwingConstants.VERTICAL " + "or " + "javax.swing.SwingConstants.HORIZONTAL" ); | public int getScrollableBlockIncrement(Rectangle visible, int orientation, int direction) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java |
return 0; | if (orientation == SwingConstants.HORIZONTAL) return visible.width / 10; else if (orientation == SwingConstants.VERTICAL) return visible.height / 10; else throw new IllegalArgumentException("orientation must be either " + "javax.swing.SwingConstants.VERTICAL " + "or " + "javax.swing.SwingConstants.HORIZONTAL" ); | public int getScrollableUnitIncrement(Rectangle visible, int orientation, int direction) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java |
caretBlinkTimer.update(); | public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } | public void setEditable(boolean newValue) { if (editable == newValue) return; boolean oldValue = editable; editable = newValue; firePropertyChange("editable", oldValue, newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | |
if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTORY + f1; if (f2.charAt(0) != File.separatorChar) f2 = CURRENT_DIRECTORY + f2; | if (f2.equals(ALL_FILES)) return false; try { f1 = new File(f1).getCanonicalPath(); f2 = new File(f2).getCanonicalPath(); } catch (IOException ioe) { return false; } | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
if (f2.charAt(f2.length() - 1) == File.separatorChar) { if (! f1.equals(f2.substring(0, f2.length() - 1))) return false; } else if (!f1.equals(f2)) | if (!f1.equals(f2)) | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
if (readPerm && ! fp.readPerm) | if (fp.readPerm && ! readPerm) | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
if (writePerm && ! fp.writePerm) | if (fp.writePerm && ! writePerm) | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
if (executePerm && ! fp.executePerm) | if (fp.executePerm && ! executePerm) | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
if (deletePerm && ! fp.deletePerm) | if (fp.deletePerm && ! deletePerm) | public boolean implies(Permission p) { if (! (p instanceof FilePermission)) return false; String f1 = getName(); if (f1.equals(ALL_FILES)) return true; FilePermission fp = (FilePermission) p; String f2 = fp.getName(); if (f1.charAt(0) != File.separatorChar) f1 = CURRENT_DIRECTOR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/FilePermission.java/buggy/core/src/classpath/5.0/java/io/FilePermission.java |
c.setOpaque(true); | public void installUI(JComponent c) { c.setOpaque(true); c.setBackground(UIManager.getColor("control")); super.installUI(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicRootPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicRootPaneUI.java | |
editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor instanceof DefaultTreeCellEditor) tree.removeTreeSelectionListener((DefaultTreeCellEditor) cellEditor); ce... | cancelEditing(tree); | public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { newVal = ((JTextField) getCellEditor().getCellEditorValue()).getText(); completeEditing(false, false, true); if (cell... | stopEditing(tree); | public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { Rectangle bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLoc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.cancelEditing(); | tree.stopEditing(); | public void actionPerformed(ActionEvent e) { TreePath lead = tree.getLeadSelectionPath(); if (e.getActionCommand().equals("selectPreviousChangeLead") || e.getActionCommand().equals("selectPreviousExtendSelection") || e.getActionCommand().equals("selectPrevious") || e.getActio... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.cancelEditing(); | tree.stopEditing(); | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (isEditing(tree)) completeEditing(false, true, false); | completeEditing(false, false, false); finish(); | public void cancelEditing(JTree tree) { if (isEditing(tree)) completeEditing(false, true, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.requestFocusInWindow(false); | protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (editingComponent != null && editingPath != null && isEditing(tree) && node.equals(editingPath.getLastPathComponent())) { rendererPane.paintComponent(g, editingComponent.getParent(), null, bounds); } else { | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, | Component c = dtcr.getTreeCellRendererComponent(tree, node, selected, | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
row, tree.hasFocus()); | row, tree.hasFocus()); | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } | maxHeight = 0; validCachedPreferredSize = false; | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) | if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); | Object value = editingPath.getLastPathComponent(); | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
editingComponent = ed.getTreeCellEditorComponent(tree, val, true, | editingComponent = ed.getTreeCellEditorComponent(tree, value, true, | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); validCachedPreferredSize = false; | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); | tree.removeAll(); Component container = editingComponent.getParent(); container.setBounds(bounds); tree.add(container); editingComponent.requestFocus(); | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
completeEditing(true, false, false); | { completeEditing(false, false, true); finish(); } | public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
updateCurrentVisiblePath(); | protected void updateCachedPreferredSize() { int maxWidth = 0; boolean isLeaf = false; if (currentVisiblePath != null) { Object[] path = currentVisiblePath.getPath(); for (int i = 0; i < path.length; i++) { TreePath curr = new TreePath(getPathToRoot(path[i], 0)); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void openFrame(JInternalFrame frame); | void openFrame(JInternalFrame frame); | public void openFrame(JInternalFrame frame); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DesktopManager.java |
public void setBoundsForFrame(JComponent frame, int x, int y, | void setBoundsForFrame(JComponent frame, int x, int y, | public void setBoundsForFrame(JComponent frame, int x, int y, int width, int height); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DesktopManager.java |
updateSelection(); | updateSelection(e.isControlDown()); | public void mouseDragged(MouseEvent e) { curr = new Point(e.getX(), e.getY()); updateSelection(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
updateSelection(); | updateSelection(e.isControlDown()); | public void mousePressed(MouseEvent e) { begin = new Point(e.getX(), e.getY()); curr = new Point(e.getX(), e.getY()); updateSelection(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
private void updateSelection() | private void updateSelection(boolean controlPressed) | private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSele... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
} | private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSele... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
table.addMouseMotionListener(mouseInputListener); | protected void installListeners() { table.addFocusListener(focusListener); table.addKeyListener(keyListener); table.addMouseListener(mouseInputListener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
table.removeMouseMotionListener(mouseInputListener); | protected void uninstallListeners() { table.removeFocusListener(focusListener); table.removeKeyListener(keyListener); table.removeMouseListener(mouseInputListener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
protected static String toIDL(String cn) | public static String toIDL(String cn) | protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
cn = cn.substring(JAVA_PREFIX.length()); | cn = OMG_PREFIX + cn.substring(JAVA_PREFIX.length()).replace('.', '/'); else if (cn.startsWith(CLASSPATH_PREFIX)) cn = OMG_PREFIX + cn.substring(CLASSPATH_PREFIX.length()).replace('.', '/'); | protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; | return "IDL:" + cn + ":1.0"; | protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
public Ext2FSEntryIterator(INode iNode)throws IOException { Ext2File directoryFile = new Ext2File(iNode); data = new byte[(int)directoryFile.getLength()]; directoryFile.read(0, data, 0, (int)directoryFile.getLength()); index = 0; } | public Ext2FSEntryIterator(INode iNode) throws IOException { Ext2File directoryFile = new Ext2File(iNode); data = new byte[(int) directoryFile.getLength()]; directoryFile.read(0, data, 0, (int) directoryFile.getLength()); index = 0; } | public Ext2FSEntryIterator(INode iNode)throws IOException { //read itself as a file Ext2File directoryFile = new Ext2File(iNode); //read the whole directory data = new byte[(int)directoryFile.getLength()]; directoryFile.read(0, data, 0, (int)directoryFile.getLength()); index = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
Ext2DirectoryRecord dr=null; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); }catch(Exception e){ fs.handleFSError(e); return false; } current = dr; return ... | Ext2DirectoryRecord dr = null; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try { do { if (index >= iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index += dr.getRecLen(); } while (dr.getINodeNr() == 0); } catch (Exception e) { fs.handleFSError(e); return false; } curren... | public boolean hasNext() { Ext2DirectoryRecord dr=null; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ do { if(index>=iNode.getSize()) return false; dr = new Ext2DirectoryRecord(fs, data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); //inode nr=0 m... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
if(current == null) { if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem()).getINode(dr.getINodeNr()), dr.getName(), dr.getType(), fs, Ext2Directory.this... | if (current == null) { if (!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); current = null; try { return new Ext2Entry(((Ext2FileSystem) getFileSystem()) .getINode(dr.getINodeNr()), dr.getName(), dr.getType(), fs, Ext2Directory.... | public FSEntry next() { if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); current = null; try{ return new Ext2Entry( ((Ext2FileSy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
if(current == null) { if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; } | if (current == null) { if (!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; } | protected Ext2DirectoryRecord nextDirectoryRecord() { if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; return dr; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
super((Ext2FileSystem) entry.getFileSystem()); this.iNode = entry.getINode(); Ext2FileSystem fs = (Ext2FileSystem) entry.getFileSystem(); this.entry = entry; log.setLevel(Level.DEBUG); boolean readOnly; if((iNode.getFlags() & Ext2Constants.EXT2_INDEX_FL)== 1) readOnly = true; else readOnly = fs.isReadOnly(); setRights(... | super((Ext2FileSystem) entry.getFileSystem()); this.iNode = entry.getINode(); Ext2FileSystem fs = (Ext2FileSystem) entry.getFileSystem(); this.entry = entry; log.setLevel(Level.DEBUG); boolean readOnly; if ((iNode.getFlags() & Ext2Constants.EXT2_INDEX_FL) == 1) readOnly = true; else readOnly = fs.isReadOnly(); setRight... | public Ext2Directory(Ext2Entry entry) throws IOException { super((Ext2FileSystem) entry.getFileSystem()); this.iNode = entry.getINode(); Ext2FileSystem fs = (Ext2FileSystem) entry.getFileSystem(); this.entry = entry; log.setLevel(Level.DEBUG); boolean readOnly; if((iNode.getFlags() & Ext2Constants.EXT2_INDEX_... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); iNode.incLocked(); } synchronized(iNode) { try{ Ex... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem) getFileSystem()).getINode(iNodeNr); | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if(rec!=null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecLen(); rec.truncateRecor... | iNode.incLocked(); } synchronized (iNode) { try { Ext2File dir = new Ext2File(iNode); Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec = null; while (iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); ... | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ dr = new Ext2DirectoryRecord(fs, iNodeNr, fileType, lin... | protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if (!canWrite()) throw new IOException( "Filesystem or directory is mounted read-only!"); | protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
iNode.update(); INode linkedINode = fs.getINode(iNodeNr); linkedINode.setLinksCount( linkedINode.getLinksCount()+1 ); return new Ext2Entry(linkedINode, linkName, fileType, fs, this); }catch(FileSystemException fse) { throw new IOException(fse); } } | Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try { dr = new Ext2DirectoryRecord(fs, iNodeNr, fileType, linkName); addDirectoryRecord(dr); iNode.update(); INode linkedINode = fs.getINode(iNodeNr); linkedINode.setLinksCount(linkedINode.getLinksCount() + 1); return new Ext2Entry(lin... | protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); | if (!canWrite()) throw new IOException( "Filesystem or directory is mounted read-only!"); | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
INode newINode; Ext2DirectoryRecord dr; Ext2Entry newEntry; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int)iNode.getGroup(), Ext2Constants.EXT2_S_IFDIR, rights, 0, 0... | INode newINode; Ext2DirectoryRecord dr; Ext2Entry newEntry; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try { int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int) iNode.getGroup(), Ext2Constants.EXT2_S_IFDIR, rights, 0... | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
addDirectoryRecord(dr); newINode.setLinksCount( newINode.getLinksCount()+1 ); | dr = new Ext2DirectoryRecord(fs, newINode.getINodeNr(), Ext2Constants.EXT2_FT_DIR, name); | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
newEntry = new Ext2Entry(newINode, name, Ext2Constants.EXT2_FT_DIR, fs, this); Ext2Directory newDir = new Ext2Directory(newEntry); Ext2DirectoryRecord drThis = new Ext2DirectoryRecord( fs, newINode.getINodeNr(), Ext2Constants.EXT2_FT_DIR, "." ); newINode.setLinksCount( 2 ); newDir.addDirectoryRecord( drThis ); long... | addDirectoryRecord(dr); newINode.setLinksCount(newINode.getLinksCount() + 1); newEntry = new Ext2Entry(newINode, name, Ext2Constants.EXT2_FT_DIR, fs, this); Ext2Directory newDir = new Ext2Directory(newEntry); Ext2DirectoryRecord drThis = new Ext2DirectoryRecord(fs, newINode .getINodeNr(), Ext2Constants.EXT2_FT_DIR,... | public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); | if (!canWrite()) throw new IOException( "Filesystem or directory is mounted read-only!"); | public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
INode newINode; Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int)iNode.getGroup(), Ext2Constants.EXT2_S_IFREG, rights, 0, 0); dr = new Ext2Dir... | INode newINode; Ext2DirectoryRecord dr; Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); try { int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int) iNode.getGroup(), Ext2Constants.EXT2_S_IFREG, rights, 0, 0); | public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
addDirectoryRecord(dr); newINode.setLinksCount( newINode.getLinksCount()+1 ); | dr = new Ext2DirectoryRecord(fs, newINode.getINodeNr(), Ext2Constants.EXT2_FT_REG_FILE, name); | public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
}catch(FileSystemException fse) { throw new IOException(fse); } return new Ext2Entry(newINode, name, Ext2Constants.EXT2_FT_REG_FILE, fs, this); } | addDirectoryRecord(dr); newINode.setLinksCount(newINode.getLinksCount() + 1); } catch (FileSystemException ex) { final IOException ioe = new IOException(); ioe.initCause(ex); throw ioe; } return new Ext2Entry(newINode, name, Ext2Constants.EXT2_FT_REG_FILE, fs, this); } | public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
return iNode; } | return iNode; } | private INode getINode() { return iNode; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
Ext2FSEntryIterator it = new Ext2FSEntryIterator(iNode); ArrayList entries = new ArrayList(); while(it.hasNext()) { FSEntry entry = it.next(); log.debug("readEntries: entry="+FSUtils.toString(entry, false)); entries.add(entry); } FSEntryTable table = new FSEntryTable((AbstractFileSystem) getFileSystem(), entries); r... | Ext2FSEntryIterator it = new Ext2FSEntryIterator(iNode); ArrayList entries = new ArrayList(); while (it.hasNext()) { FSEntry entry = it.next(); log.debug("readEntries: entry=" + FSUtils.toString(entry, false)); entries.add(entry); } FSEntryTable table = new FSEntryTable( (AbstractFileSystem) getFileSystem(), entries)... | protected FSEntryTable readEntries() throws IOException { Ext2FSEntryIterator it = new Ext2FSEntryIterator(iNode); ArrayList entries = new ArrayList(); while(it.hasNext()) { FSEntry entry = it.next(); log.debug("readEntries: entry="+FSUtils.toString(entry, false)); entries.add(entry); } FSEntryTable ta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
return (int)(index / iNode.getExt2FileSystem().getBlockSize()); } | return (int) (index / iNode.getExt2FileSystem().getBlockSize()); } | int translateToBlock(long index) { return (int)(index / iNode.getExt2FileSystem().getBlockSize()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
return (int)(index % iNode.getExt2FileSystem().getBlockSize()); } | return (int) (index % iNode.getExt2FileSystem().getBlockSize()); } | int translateToOffset(long index) { return (int)(index % iNode.getExt2FileSystem().getBlockSize()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
} | } | protected void writeEntries(FSEntryTable table) throws IOException { //nothing to do because createFileEntry and createDirectoryEntry do the job } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
c.setLayout(new ViewportLayout()); | public void installUI(JComponent c) { super.installUI(c); c.setLayout(new ViewportLayout()); installListeners(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/BasicViewportUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicViewportUI.java | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("Menu.background")); menuItem.setBorder(defaults.getBorder("Menu.border")); menuItem.setFont(defaults.getFont("Menu.font")); menuItem.setForeground(defaults.getColor("Menu.foreground")); menuItem.setMargin(defaults.getIn... | LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.getFont("Menu.acceleratorFont"); acceleratorForeground = UIManager.getColor("Menu.acceler... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("Menu.background")); menuItem.setBorder(defaults.getBorder("Menu.border")); menuItem.setFont(defaults.getFont("Menu.font")); menuItem.setForeground(defaults.getColor("M... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java |
this(bits * 4, nArray(bits, 4), | this(bits, nArray(bits / 4, 4), | public ColorModel(int bits) { this(bits * 4, // total bits, sRGB, four channels nArray(bits, 4), // bits for each channel ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB true, // has alpha false, // not premultiplied TRANSLUCENT, Buffers.smallestAppropriateTransferType(bits * 4)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/ColorModel.java/clean/core/src/classpath/java/java/awt/image/ColorModel.java |
final Word headerSizeW = Word.fromIntZeroExtend(headerSize); Word offset = Word.fromIntZeroExtend(headerSize); | final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; | protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmBootHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmBootHeap.java |
offset = offset.add(objSize).add(headerSizeW); | offset = offset.add(objSize).add(headerSize); | protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmBootHeap.java/clean/core/src/core/org/jnode/vm/memmgr/def/VmBootHeap.java |
if (parent != null && !parent.isDisplayable()) | if (parent != null && ! parent.isDisplayable()) | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
while(e.hasNext()) | while (e.hasNext()) | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
Window w = (Window)(((Reference) e.next()).get()); | Window w = (Window) (((Reference) e.next()).get()); | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
validate(); super.show(); toFront(); | } KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); manager.setGlobalFocusedWindow(this); | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.setGlobalFocusedWindow (this); if (!shown) | if (! shown) | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
FocusTraversalPolicy policy = getFocusTraversalPolicy (); | FocusTraversalPolicy policy = getFocusTraversalPolicy(); | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
initialFocusOwner = policy.getInitialComponent (this); | initialFocusOwner = policy.getInitialComponent(this); | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
initialFocusOwner.requestFocusInWindow (); | initialFocusOwner.requestFocusInWindow(); | public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
return parentPeer.prepareImage(img, width, height, ob); | res = parentPeer.prepareImage(img, width, height, ob); } else { res = Toolkit.getDefaultToolkit().prepareImage(img, width, height, ob); } return res; | public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); return parentPeer.prepareImage(img, width, height, ob); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/SwingComponentPeer.java/buggy/core/src/classpath/gnu/gnu/java/awt/peer/swing/SwingComponentPeer.java |
.getColor("Tree.textBackground")); | .getColor("Tree.nonSelectionBackground")); | public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeCellRenderer.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); setVerticalAlignment(TOP); setEnabled(true); setFont(getFont()); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeCellRenderer.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java | |
super.setBackground((tree.getParent()).getBackground()); | super.setBackground(getBackgroundNonSelectionColor()); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeCellRenderer.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
c.setOpaque(true); | protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); c.setBorder(defaults.getBorder("Label.border")... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
if (b.isOpaque()) { g.setColor(b.getBackground()); g.fillRect(vr.x, vr.y, vr.width, vr.height); } | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
} | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
return null; | return c.getPreferredSize(); | public Dimension getMaximumSize(JComponent c) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f6cb9e79af09b215e75e83abc60d3939720d4f89/BasicMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java |
throws NotImplementedException | protected void installKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java | |
InputMap keyMap = getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); SwingUtilities.replaceUIInputMap(sp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(sp, map); | protected void installKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java | |
throws NotImplementedException | protected void uninstallKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java | |
SwingUtilities.replaceUIActionMap(sp, null); SwingUtilities.replaceUIInputMap(sp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); | protected void uninstallKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java | |
if (name == null) { name = ctx.getNodeName(); } | Node getCell(final int index) { int i = 0; for (Node ctx = getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { String name = ctx.getLocalName(); if (!"td".equalsIgnoreCase(name) && !"th".equalsIgnoreCase(name)) { continue; } if ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/DomHTMLTableRowElement.java/clean/core/src/classpath/gnu/gnu/xml/dom/html2/DomHTMLTableRowElement.java | |
((ClasspathToolkit)Toolkit.getDefaultToolkit()).registerImageIOSpis(this); | Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ClasspathToolkit) ((ClasspathToolkit)toolkit).registerImageIOSpis(this); | private IIORegistry() { super(defaultCategories.iterator()); // XXX: Register built-in Spis here. ((ClasspathToolkit)Toolkit.getDefaultToolkit()).registerImageIOSpis(this); registerApplicationClasspathSpis(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/IIORegistry.java/clean/core/src/classpath/javax/javax/imageio/spi/IIORegistry.java |
} | protected GridBagLayoutInfo GetLayoutInfo (Container parent, int sizeflag) { if (sizeflag != MINSIZE && sizeflag != PREFERREDSIZE) throw new IllegalArgumentException(); Dimension parentDim = parent.getSize (); Insets parentInsets = parent.getInsets (); parentDim.width -= parentInsets.l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/GridBagLayout.java/clean/core/src/classpath/java/java/awt/GridBagLayout.java | |
public PolicyListHolder(Policy[] initialValue) | public PolicyListHolder() | public PolicyListHolder(Policy[] initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/PolicyListHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/PolicyListHolder.java |
value = initialValue; | public PolicyListHolder(Policy[] initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/PolicyListHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/PolicyListHolder.java | |
CharsetProvider[] providers = providers(); | CharsetProvider[] providers = providers2(); | public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); CharsetProvider[] providers = providers(); for (int j = 0; j < providers.length; j++) { for (Iterator i = providers[j].charsets(); i.hasNext(); ) { Charset cs = (Charset) i.ne... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java |
CharsetProvider[] providers = providers(); | CharsetProvider[] providers = providers2(); | private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java |
encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { | encoding = SystemProperties.getProperty("file.encoding"); } catch(SecurityException e) { | public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java |
} catch(IllegalArgumentException e) { | } catch(IllegalArgumentException e) { | public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java |
} catch(UnsupportedCharsetException e) { } catch(IllegalCharsetNameException e) { } catch(IllegalArgumentException e) { | public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java | |
catch(UnsupportedCharsetException e) { } catch(IllegalCharsetNameException e) { } catch(IllegalArgumentException e) { } | public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java | |
String useIconv = SystemProperties.getProperty ("gnu.classpath.nio.charset.provider.iconv"); if (useIconv != null) return IconvProvider.provider(); | private static CharsetProvider provider() { return Provider.provider(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6066416148eff935434f0a48d2acaa258d4d2a37/Charset.java/buggy/core/src/classpath/java/java/nio/charset/Charset.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.