rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public boolean isMulticastAddress() { | public boolean isMulticastAddress() { | public boolean isMulticastAddress() { return (addr[0] & 0xF0) == 0xE0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Inet4Address.java/buggy/core/src/classpath/java/java/net/Inet4Address.java |
public boolean isSiteLocalAddress() { | public boolean isSiteLocalAddress() { | public boolean isSiteLocalAddress() { // 10.0.0.0/8 if (addr[0] == 0x0A) return true; // XXX: Suns JDK 1.4.1 (on Linux) seems to have a bug here: // it says 172.16.0.0 - 172.255.255.255 are site local addresses // // 172.16.0.0/12 if (addr[0] == 0xAC && (addr[1] & 0xF0) == 0x01) return true; // 192.168.0.0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Inet4Address.java/buggy/core/src/classpath/java/java/net/Inet4Address.java |
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName, null); } | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Inet4Address.java/buggy/core/src/classpath/java/java/net/Inet4Address.java |
if (view == null) return; | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/ViewportLayout.java/buggy/core/src/classpath/javax/javax/swing/ViewportLayout.java | |
else return new Dimension(); | public Dimension minimumLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); return view.getMinimumSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/ViewportLayout.java/buggy/core/src/classpath/javax/javax/swing/ViewportLayout.java | |
else return new Dimension(); | public Dimension preferredLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); return view.getPreferredSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/ViewportLayout.java/buggy/core/src/classpath/javax/javax/swing/ViewportLayout.java | |
return null; | return getPreferredSize(); | public Dimension getPreferredScrollableViewportSize() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java |
return 1; | if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java |
ListUI lui = this.getUI(); if (orientation == SwingConstants.VERTICAL) { if (direction > 0) { Point bottomLeft = new Point(visibleRect.x, visibleRect.y + visibleRect.height); int curIdx = lui.locationToIndex(this, bottomLeft); Rectangle curBounds = lui.getCellBounds(this, curIdx, curIdx); if (curBounds.y + curBounds.h... | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java | |
revalidate(); repaint(); | public void setModel(ListModel m) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java | |
revalidate(); repaint(); | public void setSelectionModel(ListSelectionModel l) { ListSelectionModel old = selectionModel; if (old != null) old.removeListSelectionListener(listListener); selectionModel = l; if (selectionModel != null) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_M... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java | |
private URLEncoder() { } | private URLEncoder() { } | private URLEncoder() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/URLEncoder.java/buggy/core/src/classpath/java/java/net/URLEncoder.java |
return encode(s, "UTF-8"); | return encode(s, System.getProperty("file.encoding", "8859_1")); | public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/URLEncoder.java/buggy/core/src/classpath/java/java/net/URLEncoder.java |
public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/URLEncoder.java/buggy/core/src/classpath/java/java/net/URLEncoder.java | ||
return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.' || c == '*'); | return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.' || c == '*'); | private static boolean isSafe(char c) { return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.' || c == '*'); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/URLEncoder.java/buggy/core/src/classpath/java/java/net/URLEncoder.java |
public abstract void addChangeListener(ChangeListener listener); | void addChangeListener(ChangeListener listener); | public abstract void addChangeListener(ChangeListener listener); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/ColorSelectionModel.java |
public abstract void removeChangeListener(ChangeListener listener); | void removeChangeListener(ChangeListener listener); | public abstract void removeChangeListener(ChangeListener listener); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/ColorSelectionModel.java |
if (isShowing ()) { | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Container.java/buggy/core/src/classpath/java/java/awt/Container.java | |
getToolkit().getSystemEventQueue().postEvent(ce); | ContainerListener[] listeners = getContainerListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].componentAdded(ce); | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Container.java/buggy/core/src/classpath/java/java/awt/Container.java |
repaint(); } | repaint(comp.getX(), comp.getY(), comp.getWidth(), comp.getHeight()); | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/Container.java/buggy/core/src/classpath/java/java/awt/Container.java |
JOptionPane() { this("mess"); } | public JOptionPane() { this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null); } | JOptionPane() { this("mess"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public OptionPaneUI getUI() { return (OptionPaneUI)ui; } | public OptionPaneUI getUI() { return (OptionPaneUI) ui; } | public OptionPaneUI getUI() { return (OptionPaneUI)ui; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
{ return "OptionPaneUI"; } | { return "OptionPaneUI"; } | public String getUIClassID() { return "OptionPaneUI"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
{ return val; } | { return value; } | public Object getValue() { return val; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
protected String paramString() { return "JOptionPane"; | protected String paramString() { return "JOptionPane"; | protected String paramString() { return "JOptionPane"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public void setUI(OptionPaneUI ui) { super.setUI(ui); } | public void setUI(OptionPaneUI ui) { super.setUI(ui); } | public void setUI(OptionPaneUI ui) { super.setUI(ui); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public void setValue(Object v) { val = v; } | public void setValue(Object newValue) { if (value != newValue) { Object old = value; value = newValue; firePropertyChange(VALUE_PROPERTY, old, value); } } | public void setValue(Object v) { val = v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } | public static int showConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JDialog dialog = pane.createDialog(parentComponent, "Select an Option"); dialog.pack(); dialog.show(); return ((Integer) pane.getValue()).intValue(); } | public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, init); } | public static String showInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); } | public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } | public static void showMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message, INFORMATION_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, null); dialog.pack(); dialog.show(); } | public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, init); if (a == null) return -1; return a.intValue(); } | public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) { JOptionPane pane = new JOptionPane(message, messageType, optionType, icon, options, initialValue); JDialog dialog = pane.createDialog(parentCom... | public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } | public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java |
Functional_ORB.setPort(PORT); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java | |
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); NamingContextExt namer = new Ext(new TransientContext()); orb.connect(namer, getDefaultKey()); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java | |
orb.setPort(port); | Functional_ORB.setPort(port); NamingContextExt namer = new Ext(new TransientContext()); orb.connect(namer, getDefaultKey()); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java |
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java | ||
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java | |
public void run() { // wait for invocations from clients orb.run(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java | ||
setPriority(NORM_PRIORITY + 1); | int priority = DEFAULT_PRIORITY; try { String priorityString = System.getProperty("gnu.awt.dispatchthread.priority"); if (priorityString != null) { priority = Integer.parseInt(priorityString); } } catch (NumberFormatException ex) { } setPriority(priority); | EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/EventDispatchThread.java/buggy/core/src/classpath/java/java/awt/EventDispatchThread.java |
public static Signature getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/clean/core/src/classpath/java/java/security/Signature.java | ||
{ state = UNINITIALIZED; | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/clean/core/src/classpath/java/java/security/Signature.java | |
} | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/clean/core/src/classpath/java/java/security/Signature.java | |
{ state = UNINITIALIZED; | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/clean/core/src/classpath/java/java/security/Signature.java | |
} | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/clean/core/src/classpath/java/java/security/Signature.java | |
public InvalidKeyException(String msg) | public InvalidKeyException() | public InvalidKeyException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/InvalidKeyException.java/buggy/core/src/classpath/java/java/security/InvalidKeyException.java |
super(msg); | public InvalidKeyException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/InvalidKeyException.java/buggy/core/src/classpath/java/java/security/InvalidKeyException.java | |
if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long copyLength = Math.min(len-byt... | synchronized(iNode) { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long copy... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); final l... | synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
byte[] dest; if( !( (blockOffset==0)&&(copyLength==blockSize) ) && (blockIndex < blocksAllocated)) dest = iNode.getDataBlock(blockIndex); else dest = new byte[(int)blockSize]; | log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
System.arraycopy( src, (int)(off+bytesWritten), dest, (int)blockOffset, (int)copyLength); if(blockIndex >= blocksAllocated) { try{ iNode.allocateDataBlock(blockIndex); }catch(FileSystemException fe) { throw new IOException("Internal filesystem exception",fe); | final long blockSize = iNode.getExt2FileSystem().getBlockSize(); long blocksAllocated = iNode.getAllocatedBlockCount(); long bytesWritten=0; while( bytesWritten < len ) { long blockIndex = (fileOffset+bytesWritten) / blockSize; long blockOffset = (fileOffset+bytesWritten) % blockSize; long copyLength = Math.min(len-by... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
blocksAllocated++; | iNode.writeDataBlock(blockIndex, dest); bytesWritten += copyLength; | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
iNode.writeDataBlock(blockIndex, dest); | iNode.setSize( fileOffset+len ); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
bytesWritten += copyLength; | iNode.setMtime(System.currentTimeMillis()/1000); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
iNode.setSize( fileOffset+len ); iNode.setMtime(System.currentTimeMillis()/1000); | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java | |
return (v1 << 16) | (v2 << 16) | (v3 << 8) | v4; | return (v1 << 24) | (v2 << 16) | (v3 << 8) | v4; | private final int getu4() { int v1 = bytecode.get() & 0xFF; int v2 = bytecode.get() & 0xFF; int v3 = bytecode.get() & 0xFF; int v4 = bytecode.get() & 0xFF; return (v1 << 16) | (v2 << 16) | (v3 << 8) | v4; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3f111e776299fdb0e4f39aed470d3f945ca2edcb/BytecodeParser.java/clean/core/src/core/org/jnode/vm/bytecode/BytecodeParser.java |
break; | public boolean emit(String mnemonic, List operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case ADC_ISN: ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eb9f15ea41fc430695eb61d296137088f460202a/X86Core.java/clean/builder/src/builder/org/jnode/jnasm/assembler/x86/X86Core.java | |
public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; | public DefaultMutableTreeNode() { | public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; } // DefaultMutableTreeNode() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) | public DefaultTreeModel(TreeNode root) | public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) { setRoot(root); this.asksAllowsChildren = asksAllowsChildren; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeModel.java |
this.asksAllowsChildren = asksAllowsChildren; | public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) { setRoot(root); this.asksAllowsChildren = asksAllowsChildren; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeModel.java | |
public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } | public TreePath getParentPath() { if (path.length <= 1) return null; return new TreePath(this.getPath(), path.length - 1); } | public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } // getParentPath() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
public boolean isDescendant(TreePath path) { | public boolean isDescendant(TreePath path) { | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
while (treepath[index] != this.path[index2]) { | while (treepath[index] != this.path[index2]) | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
} | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java | |
while (treepath[index] == this.path[index2]) { | while (treepath[index] == this.path[index2]) { | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
} | } | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
if (index2 != this.path.length) { | if (index2 != this.path.length) | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
} | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java | |
} | } | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/TreePath.java/buggy/core/src/classpath/javax/javax/swing/tree/TreePath.java |
throws NotImplementedException | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java | |
ActionMapUIResource am = new ActionMapUIResource(); am.put("showSystemMenu", new ShowSystemMenuAction()); BasicLookAndFeel blaf = (BasicLookAndFeel) UIManager.getLookAndFeel(); ActionMap audioActionMap = blaf.getAudioActionMap(); am.setParent(audioActionMap); SwingUtilities.replaceUIActionMap(frame, am); | protected void installKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java | |
throws NotImplementedException | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java | |
SwingUtilities.replaceUIActionMap(frame, null); SwingUtilities.replaceUIInputMap(frame, JComponent.WHEN_IN_FOCUSED_WINDOW, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java | |
public void resizeFrame(JComponent frame, int x, int y, | void resizeFrame(JComponent frame, int x, int y, | public void resizeFrame(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 |
public void beginResizingFrame(JComponent frame, int direction); | void beginResizingFrame(JComponent frame, int direction); | public void beginResizingFrame(JComponent frame, int direction); | 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 endResizingFrame(JComponent frame); | void endResizingFrame(JComponent frame); | public void endResizingFrame(JComponent 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 activateFrame(JInternalFrame vframe); | void activateFrame(JInternalFrame vframe); | public void activateFrame(JInternalFrame vframe); | 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 closeFrame(JInternalFrame frame); | void closeFrame(JInternalFrame frame); | public void closeFrame(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 deactivateFrame(JInternalFrame frame); | void deactivateFrame(JInternalFrame frame); | public void deactivateFrame(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 deiconifyFrame(JInternalFrame frame); | void deiconifyFrame(JInternalFrame frame); | public void deiconifyFrame(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 iconifyFrame(JInternalFrame frame); | void iconifyFrame(JInternalFrame frame); | public void iconifyFrame(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 maximizeFrame(JInternalFrame frame); | void maximizeFrame(JInternalFrame frame); | public void maximizeFrame(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 minimizeFrame(JInternalFrame frame); | void minimizeFrame(JInternalFrame frame); | public void minimizeFrame(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 |
private static int[] make_crc_table() { | private static int[] make_crc_table () { | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/clean/core/src/classpath/java/java/util/zip/CRC32.java |
for (int n = 0; n < 256; n++) { | for (int n = 0; n < 256; n++) { | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/clean/core/src/classpath/java/java/util/zip/CRC32.java |
for (int k = 8; --k >= 0;) { | for (int k = 8; --k >= 0; ) { | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/CRC32.java/clean/core/src/classpath/java/java/util/zip/CRC32.java |
public long getValue (); | long getValue(); | public long getValue (); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Checksum.java/buggy/core/src/classpath/java/java/util/zip/Checksum.java |
public void reset (); | void reset(); | public void reset (); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Checksum.java/buggy/core/src/classpath/java/java/util/zip/Checksum.java |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { | public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c3f5dbfa0a25d4aa474150b31bab02bf4e8c3574/Enum.java/buggy/core/src/classpath/5.0/java/lang/Enum.java |
try { | try { | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c3f5dbfa0a25d4aa474150b31bab02bf4e8c3574/Enum.java/buggy/core/src/classpath/5.0/java/lang/Enum.java |
} catch (NoSuchFieldException exception) { | } catch (NoSuchFieldException exception) { | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c3f5dbfa0a25d4aa474150b31bab02bf4e8c3574/Enum.java/buggy/core/src/classpath/5.0/java/lang/Enum.java |
} catch (IllegalAccessException exception) { | } catch (IllegalAccessException exception) { | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c3f5dbfa0a25d4aa474150b31bab02bf4e8c3574/Enum.java/buggy/core/src/classpath/5.0/java/lang/Enum.java |
if (isAttribute || defaultNS == null) { | if (isAttribute) { if (qName == "xmlns" && namespaceDeclUris) name[0] = NSDECL; else name[0] = ""; } else if (defaultNS == null) { | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/NamespaceSupport.java/clean/core/src/classpath/org/org/xml/sax/helpers/NamespaceSupport.java |
if (uri == null) { | if (uri == null || (!isAttribute && "xmlns".equals (prefix))) { | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/NamespaceSupport.java/clean/core/src/classpath/org/org/xml/sax/helpers/NamespaceSupport.java |
protected void installListeners(JToolBar toolbar) | protected void installListeners() | protected void installListeners(JToolBar toolbar) { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContLis... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/BasicToolBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java |
installListeners(toolBar); | installListeners(); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(toolBar); installKeyboardActions(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/BasicToolBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java |
public EtchedBorderUIResource() { } | public EtchedBorderUIResource() { super(); } | public EtchedBorderUIResource() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/buggy/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { switch (etchType) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java |
} | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java | |
public DataFlavor(String mimeType) throws ClassNotFoundException | public DataFlavor() | public DataFlavor(String mimeType) throws ClassNotFoundException { this(mimeType, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.