rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
isModal() { return(modal); } | public boolean isModal() { return modal; } | isModal(){ return(modal);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
isResizable() { return(resizable); } | public boolean isResizable() { return resizable; } | isResizable(){ return(resizable);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
public boolean isUndecorated () | public boolean isUndecorated() | public boolean isUndecorated () { return undecorated; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
paramString() { return ("title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString()); } | protected String paramString() { return "title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString(); } | paramString(){ return ("title+" + title + ",modal=" + modal + ",resizable=" + resizable + "," + super.paramString());} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
setModal(boolean modal) { | public void setModal(boolean modal) { | setModal(boolean modal){ this.modal = modal;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
} | } | setModal(boolean modal){ this.modal = modal;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
setResizable(boolean resizable) { | public synchronized void setResizable(boolean resizable) { | setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
d.setResizable (resizable); | d.setResizable(resizable); } | setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
} | setResizable(boolean resizable){ this.resizable = resizable; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setResizable (resizable); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java | |
public void setUndecorated (boolean undecorated) | public void setUndecorated(boolean undecorated) | public void setUndecorated (boolean undecorated) { if (isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
if (isDisplayable ()) throw new IllegalComponentStateException (); | if (isDisplayable()) throw new IllegalComponentStateException(); | public void setUndecorated (boolean undecorated) { if (isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
show() { | public synchronized void show() { | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
/* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ()) | /* * If show is called in the dispatch thread for a modal dialog it will * block so we must run another thread so the events keep being * dispatched. */ if (EventQueue.isDispatchThread()) | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
eq2 = new EventQueue (); eq.push (eq2); | eq2 = new EventQueue(); eq.push(eq2); | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
wait (); | wait(); | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
eq2.pop (); | eq2.pop(); | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
} | } | show(){ super.show(); if (isModal()) { // If already shown (and blocked) just return if (blocked) return; /* If show is called in the dispatch thread for a modal dialog it will block so we must run another thread so the events keep being dispatched.*/ if (EventQueue.isDispatchThread ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
public Window(Window owner, GraphicsConfiguration gc) | Window() | public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
this (); | visible = false; focusCycleRoot = true; setLayout(new BorderLayout()); | public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
synchronized (getTreeLock()) | addWindowFocusListener (new WindowAdapter () | public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } SecurityManager s = System.getSecurityManager(); if (s != null && ! s.checkTopLevelWindow(this)) warningString = System.getProperty("awt.appletWarning"); if (gc != nul... | public void windowGainedFocus (WindowEvent event) { if (windowFocusOwner != null) { EventQueue eq = Toolkit.getDefaultToolkit ().getSystemEventQueue (); synchronized (eq) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Component currentFocusOwner = manager.getGlobalPermanentFo... | public Window(Window owner, GraphicsConfiguration gc) { this (); synchronized (getTreeLock()) { if (owner == null) throw new IllegalArgumentException ("owner must not be null"); parent = owner; owner.ownedWindows.add(new WeakReference(this)); } // FIXME: make this text visible in the wind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
public abstract void setResizable(boolean resizeable); | void setResizable (boolean resizeable); | public abstract void setResizable(boolean resizeable); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DialogPeer.java/buggy/core/src/classpath/java/java/awt/peer/DialogPeer.java |
public abstract void setTitle(String title); | void setTitle (String title); | public abstract void setTitle(String title); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DialogPeer.java/buggy/core/src/classpath/java/java/awt/peer/DialogPeer.java |
initialFocusOwner.requestFocusInWindow (false); | initialFocusOwner.requestFocusInWindow (); | public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).g... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Window.java/buggy/core/src/classpath/java/java/awt/Window.java |
((ClasspathToolkit) Toolkit.getDefaultToolkit()).wakeNativeQueue(); | protected void pop() throws EmptyStackException { if (prev == null) throw new EmptyStackException(); /* The order is important here, we must get the prev lock first, or deadlock could occur as callers usually get here following prev's next pointer, and thus obtain prev's lock before trying to... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0ec912f89d8c04b4596a0977a98d99f7221f606/EventQueue.java/buggy/core/src/classpath/java/java/awt/EventQueue.java | |
throw new AlreadyBound("Tha object has another name"); | throw new AlreadyBound("The object has another name"); | public void bind(NameComponent name, org.omg.CORBA.Object object) throws AlreadyBound, InvalidName { if (containsKey(name)) { Object x = get(name); // Do not throw an exception if the same object is named by // the same name. if (x.equals(object)) throw new Alr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/NamingMap.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingMap.java |
rebind(name, object); | public void bind(NameComponent name, org.omg.CORBA.Object object) throws AlreadyBound, InvalidName { if (containsKey(name)) { Object x = get(name); // Do not throw an exception if the same object is named by // the same name. if (x.equals(object)) throw new Alr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/NamingMap.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingMap.java | |
public AlreadyBound(String why) | public AlreadyBound() | public AlreadyBound(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/AlreadyBound.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/AlreadyBound.java |
super(why); | public AlreadyBound(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/AlreadyBound.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/AlreadyBound.java | |
return getName(RFC2253); | return getName (RFC2253); | public String getName() { return getName(RFC2253); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/X500Principal.java/buggy/core/src/classpath/javax/javax/security/auth/x500/X500Principal.java |
return ((X500Principal) o).name.equals(name); | if (!(o instanceof X500Principal)) return false; if (size() != ((X500Principal) o).size()) return false; for (int i = 0; i < size(); i++) { Map m = (Map) components.get (i); for (Iterator it2 = m.entrySet().iterator(); it2.hasNext(); ) { Map.Entry e = (Map.Entry) it2.next(); OID oid = (OID) e.getKey(); String v1 = (Str... | public boolean equals(Object o) { return ((X500Principal) o).name.equals(name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/X500Principal.java/buggy/core/src/classpath/javax/javax/security/auth/x500/X500Principal.java |
public X500Principal(String name) | private X500Principal() | public X500Principal(String name) { if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/X500Principal.java/buggy/core/src/classpath/javax/javax/security/auth/x500/X500Principal.java |
if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name); | components = new LinkedList(); currentRdn = new LinkedHashMap(); components.add (currentRdn); | public X500Principal(String name) { if (name == null) throw new NullPointerException(); this.name = new X500DistinguishedName(name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/X500Principal.java/buggy/core/src/classpath/javax/javax/security/auth/x500/X500Principal.java |
public static final CharBuffer wrap(CharSequence seq) | public static final CharBuffer wrap(char[] array, int offset, int length) | public static final CharBuffer wrap(CharSequence seq) { return wrap(seq, 0, seq.length()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/CharBuffer.java/buggy/core/src/classpath/java/java/nio/CharBuffer.java |
return wrap(seq, 0, seq.length()); | return new CharBufferImpl(array, 0, array.length, offset + length, offset, -1, false); | public static final CharBuffer wrap(CharSequence seq) { return wrap(seq, 0, seq.length()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/CharBuffer.java/buggy/core/src/classpath/java/java/nio/CharBuffer.java |
if (singleton == null) singleton = new Provider (); | if (singleton == null) { singleton = (Provider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return new Provider(); } }); } | public static synchronized Provider provider () { if (singleton == null) singleton = new Provider (); return singleton; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4156150c89b1745c22b97bdcf2c0a5135d394e9e/Provider.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java |
lastComponentEntered.dispatchEvent (exited); | tempComponent = lastComponentEntered; lastComponentEntered = null; tempComponent.dispatchEvent(exited); | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/decc5d82ba0a18c6445f683c0d1a3d78fe4b1564/Container.java/buggy/core/src/classpath/java/java/awt/Container.java |
if (!isDispatchThread() || (evt.getID() == WindowEvent.WINDOW_CLOSED) || (evt.getID() == WindowEvent.WINDOW_CLOSING)) ((ClasspathToolkit) Toolkit.getDefaultToolkit()).wakeNativeQueue(); | public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* Check for any events already on the queue with the same source and ID. */ int i = next_o... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0ec912f89d8c04b4596a0977a98d99f7221f606/EventQueue.java/buggy/core/src/classpath/java/java/awt/EventQueue.java | |
public ArrayIndexOutOfBoundsException(String s) | public ArrayIndexOutOfBoundsException() | public ArrayIndexOutOfBoundsException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ArrayIndexOutOfBoundsException.java/buggy/core/src/classpath/java/java/lang/ArrayIndexOutOfBoundsException.java |
super(s); | public ArrayIndexOutOfBoundsException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ArrayIndexOutOfBoundsException.java/buggy/core/src/classpath/java/java/lang/ArrayIndexOutOfBoundsException.java | |
public Set getDefaultFocusTraversalKeys(int id) | public Set getDefaultFocusTraversalKeys (int id) | public Set getDefaultFocusTraversalKeys(int id) { if (id < FORWARD_TRAVERSAL_KEYS || id > DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return defaultFocusKeys[id]; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java |
throw new IllegalArgumentException(); | throw new IllegalArgumentException (); | public Set getDefaultFocusTraversalKeys(int id) { if (id < FORWARD_TRAVERSAL_KEYS || id > DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); return defaultFocusKeys[id]; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java |
public FocusTraversalPolicy getDefaultFocusTraversalPolicy() | public FocusTraversalPolicy getDefaultFocusTraversalPolicy () | public FocusTraversalPolicy getDefaultFocusTraversalPolicy() { if (defaultPolicy == null) defaultPolicy = new DefaultFocusTraversalPolicy(); return defaultPolicy; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java |
defaultPolicy = new DefaultFocusTraversalPolicy(); | defaultPolicy = new DefaultFocusTraversalPolicy (); | public FocusTraversalPolicy getDefaultFocusTraversalPolicy() { if (defaultPolicy == null) defaultPolicy = new DefaultFocusTraversalPolicy(); return defaultPolicy; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java |
public void list(PrintStream out, int indent) | public void list() | public void list(PrintStream out, int indent) { for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/Component.java/buggy/core/src/classpath/java/java/awt/Component.java |
for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString()); | list(System.out, 0); | public void list(PrintStream out, int indent) { for (int i = 0; i < indent; ++i) out.print(' '); out.println(toString()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/Component.java/buggy/core/src/classpath/java/java/awt/Component.java |
public abstract void downFocusCycle(Container cont); | public abstract void downFocusCycle (Container cont); | public abstract void downFocusCycle(Container cont); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java |
public Rectangle intersection(Rectangle r) { | public Rectangle intersection(Rectangle r) { | public Rectangle intersection(Rectangle r) { Rectangle res = new Rectangle(); intersect(this, r, res); return res; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Rectangle.java/buggy/core/src/classpath/java/java/awt/Rectangle.java |
public boolean isEmpty() { | public boolean isEmpty() { | public boolean isEmpty() { return width <= 0 || height <= 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Rectangle.java/buggy/core/src/classpath/java/java/awt/Rectangle.java |
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java | ||
log.finest("Processing " + sfFileName); | if (Configuration.DEBUG) log.fine("Processing " + sfFileName); | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finer("Created .SF file"); | if (Configuration.DEBUG) log.fine("Created .SF file"); | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finest("Processing " + dsaFileName); | if (Configuration.DEBUG) log.fine("Processing " + dsaFileName); | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finer("Created .DSA file"); | if (Configuration.DEBUG) log.fine("Created .DSA file"); | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finer("Renamed signed JAR file"); | if (Configuration.DEBUG) log.fine("Renamed signed JAR file"); | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
if (Configuration.DEBUG) | void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarSigner.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java | |
log.finer("Hash of " + name + " = " + hash); | if (Configuration.DEBUG) log.fine("Hash of " + name + " = " + hash); | void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Has... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java |
log.finest("Name: " + name); log.finest(Main.DIGEST + ": " + sfHash); log.finest(""); | if (Configuration.DEBUG) { log.fine("Name: " + name); log.fine(Main.DIGEST + ": " + sfHash); log.fine(""); } | void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Has... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java |
if (Configuration.DEBUG) | void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); //$NON-NLS-1$ if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); Str... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java | |
public JarOutputStream(OutputStream out, Manifest man) throws IOException | public JarOutputStream(OutputStream out) throws IOException | public JarOutputStream(OutputStream out, Manifest man) throws IOException { super(out); if (man != null) writeManifest(man); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/JarOutputStream.java/buggy/core/src/classpath/java/java/util/jar/JarOutputStream.java |
super(out); if (man != null) writeManifest(man); | this(out, null); | public JarOutputStream(OutputStream out, Manifest man) throws IOException { super(out); if (man != null) writeManifest(man); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/JarOutputStream.java/buggy/core/src/classpath/java/java/util/jar/JarOutputStream.java |
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes ")); | if (Configuration.DEBUG) log.fine("\n" + Util.dumpString(sfBytes, "+++ sfBytes ")); | void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException(Messages.getString("SFHelper.1")); //$NON-NLS-1$ ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.to... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java |
log.finest("+++ signer private key = " + signerKey); | if (Configuration.DEBUG) log.fine("+++ signer private key = " + signerKey); | void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java |
log.finest("\n" + Util.dumpString(signedSFBytes, "+++ signedSFBytes ")); | if (Configuration.DEBUG) log.fine("\n" + Util.dumpString(signedSFBytes, "+++ signedSFBytes ")); | void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java |
try { cert.checkValidity(); } catch (CertificateExpiredException x) { String issuerName = getIssuerName(cert); String subjectName = getSubjectName(cert); Date notAfterDate = getNotAfterDate(cert); System.out.println(Messages.getFormattedString("SFHelper.0", new Object[] { issuerName, subjectName, notAfterDate })); } ca... | void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); //$NON-NLS-1$ log... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/SFHelper.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java | |
final void checkForUnderflow(int length) | final void checkForUnderflow() | final void checkForUnderflow(int length) { if (remaining() < length) throw new BufferUnderflowException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java |
if (remaining() < length) | if (!hasRemaining()) | final void checkForUnderflow(int length) { if (remaining() < length) throw new BufferUnderflowException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java |
final void checkForOverflow(int length) | final void checkForOverflow() | final void checkForOverflow(int length) { if (remaining() < length) throw new BufferOverflowException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java |
if (remaining() < length) | if (!hasRemaining()) | final void checkForOverflow(int length) { if (remaining() < length) throw new BufferOverflowException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java |
"Button.border", BorderUIResource.getEtchedBorderUIResource(), | "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e60a457237548cb2220b3d83b95ea32b1605264/BasicLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java |
public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return getKeyStroke(keyCode, modifiers, false); | public static KeyStroke getKeyStroke(char keyChar) { KeyStroke key; key = new KeyStroke(); key.keyChar = keyChar; return key; | public static KeyStroke getKeyStroke(int keyCode, int modifiers) { return getKeyStroke(keyCode, modifiers, false); } // getKeyStroke() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/KeyStroke.java/buggy/core/src/classpath/javax/javax/swing/KeyStroke.java |
return qName.hashCode(); | if (hashCode == -1) { StringBuffer buf = new StringBuffer(); buf.append('{'); buf.append(namespaceURI); buf.append('}'); buf.append(localPart); hashCode = buf.toString().hashCode(); } return hashCode; | public final int hashCode() { return qName.hashCode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/QName.java/clean/core/src/classpath/javax/javax/xml/namespace/QName.java |
public abstract boolean avoidingGui(); | boolean avoidingGui(); | public abstract boolean avoidingGui(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Visibility.java/buggy/core/src/classpath/java/java/beans/Visibility.java |
public abstract void dontUseGui(); | void dontUseGui(); | public abstract void dontUseGui(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Visibility.java/buggy/core/src/classpath/java/java/beans/Visibility.java |
public abstract boolean needsGui(); | boolean needsGui(); | public abstract boolean needsGui(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Visibility.java/buggy/core/src/classpath/java/java/beans/Visibility.java |
public abstract void okToUseGui(); | void okToUseGui(); | public abstract void okToUseGui(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Visibility.java/buggy/core/src/classpath/java/java/beans/Visibility.java |
this(null, null); | super(null, null); | public JMenuItem() { this(null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void insert(Component component, int index) | public void insert(Action action, int index) | public void insert(Component component, int index) { super.add(component, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/26eda1041fe826afb2ac3110101d0f4a45e956bf/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
super.add(component, index); | JMenuItem item = new JMenuItem(action); this.insert(item, index); | public void insert(Component component, int index) { super.add(component, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/26eda1041fe826afb2ac3110101d0f4a45e956bf/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
accessibleContext = new AccessibleJMenuItem(this); | accessibleContext = new AccessibleJMenuItem(); | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJMenuItem(this); return accessibleContext; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java |
else model.setArmed(false); | public void menuSelectionChanged(boolean changed) { if (changed) model.setArmed(true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java | |
private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java | ||
final FSEntry child = (FSEntry)i.next(); | final FSEntry child = i.next(); | public String[] list(File directory, FilenameFilter filter) throws IOException { final FSEntry entry = getEntry(directory); if (entry == null) { throw new FileNotFoundException(directory.getAbsolutePath()); } if (!entry.isDirectory()) { throw new IOException("Cannot list on non-directories " + directory); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9ff460e33c877c62d34001d7739d8c9b59345f3/FileSystemAPIImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java |
setCurrentTheme(new DefaultMetalTheme()); | setCurrentTheme(new OceanTheme()); | protected void createDefaultTheme() { if (theme == null) setCurrentTheme(new DefaultMetalTheme()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/MetalLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java |
"CheckBoxMenuItem.borderPainted", new Boolean(true), | "CheckBoxMenuItem.borderPainted", Boolean.TRUE, | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/MetalLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java |
"Spinner.border", MetalBorders.getTextFieldBorder(), | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/MetalLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java | |
public DERValue(int tag, Object value) | public DERValue(int tag, int length, Object value, byte[] encoded) | public DERValue(int tag, Object value) { this(tag, 0, value, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERValue.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERValue.java |
this(tag, 0, value, null); | tagClass = tag & 0xC0; this.tag = tag & 0x1F; constructed = (tag & CONSTRUCTED) == CONSTRUCTED; this.length = length; this.value = value; if (encoded != null) this.encoded = (byte[]) encoded.clone(); | public DERValue(int tag, Object value) { this(tag, 0, value, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERValue.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERValue.java |
public synchronized String substring(int beginIndex, int endIndex) | public String substring(int beginIndex) | public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; boolean share_buffer = ((len << 2) >= value.length); if (share_buffer) this.shared = true; return new String(value, beginIndex, len, share_buffer); | return substring(beginIndex, count); | public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
public MenuElement[] getSelectedPath () | public MenuElement[] getSelectedPath() | public MenuElement[] getSelectedPath () { MenuElement[] path = new MenuElement[selection.size ()]; for (int i = 0; i < path.length; i++) path[i] = (MenuElement) selection.get (i); return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuSelectionManager.java/buggy/core/src/classpath/javax/javax/swing/MenuSelectionManager.java |
MenuElement[] path = new MenuElement[selection.size ()]; | MenuElement[] path = new MenuElement[selectedPath.size()]; | public MenuElement[] getSelectedPath () { MenuElement[] path = new MenuElement[selection.size ()]; for (int i = 0; i < path.length; i++) path[i] = (MenuElement) selection.get (i); return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuSelectionManager.java/buggy/core/src/classpath/javax/javax/swing/MenuSelectionManager.java |
path[i] = (MenuElement) selection.get (i); | path[i] = (MenuElement) selectedPath.get(i); | public MenuElement[] getSelectedPath () { MenuElement[] path = new MenuElement[selection.size ()]; for (int i = 0; i < path.length; i++) path[i] = (MenuElement) selection.get (i); return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuSelectionManager.java/buggy/core/src/classpath/javax/javax/swing/MenuSelectionManager.java |
public static long currentTimeMillis() { | public static long currentTimeMillis() { | public static long currentTimeMillis() { return VMSystem.currentTimeMillis(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/System.java/clean/core/src/classpath/java/java/lang/System.java |
public synchronized static void setSecurityManager(SecurityManager sm) | public static synchronized void setSecurityManager(SecurityManager sm) | public synchronized static void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/System.java/clean/core/src/classpath/java/java/lang/System.java |
return new ByteArrayInputStream(new byte[0]); | return new EmptyInputStream(); | static InputStream makeStandardInputStream() { return new ByteArrayInputStream(new byte[0]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff3762f8386676fdb7cddddbd169f23a0d3addcc/VMSystem.java/buggy/core/src/classpath/vm/java/lang/VMSystem.java |
SecurityManager sm = securityManager; | SecurityManager sm = SecurityManager.current; | public void exit(int status) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And wait ti... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java |
exitSequence.interrupt(); | public void exit(int status) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And wait ti... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java | |
SecurityManager sm = securityManager; | SecurityManager sm = SecurityManager.current; | public void load(String filename) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(filename); if (loadLib(filename) == 0) throw new UnsatisfiedLinkError("Could not load library " + filename); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java |
SecurityManager sm = securityManager; | SecurityManager sm = SecurityManager.current; | public void loadLibrary(String libname) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkLink(libname); String filename; ClassLoader cl = VMSecurityManager.currentClassLoader(); if (cl != null) { filename = cl.findLibrary(libname); if (filename... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/Runtime.java/buggy/core/src/classpath/java/java/lang/Runtime.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.