rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException( "Handler for protocol " + protocol + " not found"); }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException("Handler for protocol " + protocol + " not found"); }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException( "Handler for protocol " + protocol + " not found"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
return handler.sameFile(this, other); }
return handler.sameFile(this, other); }
public boolean sameFile(URL other) { return handler.sameFile(this, other); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
protected void set( String protocol, String host, int port, String file, String ref) { this.handler = getURLStreamHandler(protocol); this.protocol = protocol.toLowerCase(); this.authority = null; this.port = port; this.host = host; this.file = file; this.ref = ref; hashCode = hashCode(); }
protected void set(String protocol, String host, int port, String file, String ref) { this.handler = getURLStreamHandler(protocol); this.protocol = protocol.toLowerCase(); this.authority = null; this.port = port; this.host = host; this.file = file; this.ref = ref; hashCode = hashCode(); }
protected void set( String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should // be aware of this. ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set");
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set");
public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set"); // Throw an exception if an extant security mgr precludes // setting the factory. SecurityManager s = System.getSecurityManager(); if (s != null)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
SecurityManager s = System.getSecurityManager(); if (s != null) s.checkSetFactory(); factory = fac; }
SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkSetFactory(); } factory = fac; }
public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set"); // Throw an exception if an extant security mgr precludes // setting the factory. SecurityManager s = System.getSecurityManager(); if (s != null)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
return handler.toExternalForm(this); }
return handler.toExternalForm(this); }
public String toExternalForm() { // Identical to toString(). return handler.toExternalForm(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
return handler.toExternalForm(this); }
return handler.toExternalForm(this); }
public String toString() { // Identical to toExternalForm(). return handler.toExternalForm(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
oos.defaultWriteObject(); }
oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/buggy/core/src/classpath/java/java/net/URL.java
SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
public static String getProperty(String key) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return properties.getProperty(key); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/System.java/buggy/core/src/classpath/java/java/lang/System.java
return properties.getProperty(key);
return SystemProperties.getProperty(key);
public static String getProperty(String key) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return properties.getProperty(key); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/System.java/buggy/core/src/classpath/java/java/lang/System.java
public MalformedURLException(String message)
public MalformedURLException()
public MalformedURLException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95f9230428577bee0a0c3d3e666d2ce703b8671b/MalformedURLException.java/buggy/core/src/classpath/java/java/net/MalformedURLException.java
super(message);
public MalformedURLException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95f9230428577bee0a0c3d3e666d2ce703b8671b/MalformedURLException.java/buggy/core/src/classpath/java/java/net/MalformedURLException.java
if (key.equals(e.key))
if (e.key.equals(key))
public synchronized V get(Object key) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (key.equals(e.key)) return e.value; e = e.next; } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Hashtable.java/buggy/core/src/classpath/5.0/java/util/Hashtable.java
public StringTokenizer(String str, String delim) { this(str, delim, false);
public StringTokenizer(String str) { this(str, " \t\n\r\f", false);
public StringTokenizer(String str, String delim) { this(str, delim, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
public boolean hasMoreTokens() { if (!retDelims) {
public boolean hasMoreTokens() { if (! retDelims) {
public boolean hasMoreTokens() { if (!retDelims) { while (pos < len && delim.indexOf(str.charAt(pos)) >= 0) pos++; } return pos < len; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); r...
public String nextToken(String delim) throws NoSuchElementException { this.delim = delim; return nextToken();
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
protected void initVkMap() {
protected void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap) {
protected void initVkMap() { vkMap[0] = KeyEvent.VK_UNDEFINED; vkMap[1] = KeyEvent.VK_ESCAPE; vkMap[2] = KeyEvent.VK_AMPERSAND; vkMap[3] = KeyEvent.VK_E; // TODO : remap to vkMap[4] = KeyEvent.VK_QUOTEDBL; vkMap[5] = KeyEvent.VK_QUOTE; vkMap[6] = KeyEvent.VK_OPEN_BRACKET; vkMap[7] = KeyEvent.VK_MINUS; vkMap[...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/57843b9b284ea62b4a1db76be6395f975acfd0fc/KeyboardInterpreter_FR.java/buggy/core/src/driver/org/jnode/driver/input/l10n/KeyboardInterpreter_FR.java
vkMap[84] = KeyEvent.VK_PRINTSCREEN;
protected void initVkMap() { vkMap[0] = KeyEvent.VK_UNDEFINED; vkMap[1] = KeyEvent.VK_ESCAPE; vkMap[2] = KeyEvent.VK_AMPERSAND; vkMap[3] = KeyEvent.VK_E; // TODO : remap to vkMap[4] = KeyEvent.VK_QUOTEDBL; vkMap[5] = KeyEvent.VK_QUOTE; vkMap[6] = KeyEvent.VK_OPEN_BRACKET; vkMap[7] = KeyEvent.VK_MINUS; vkMap[...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/57843b9b284ea62b4a1db76be6395f975acfd0fc/KeyboardInterpreter_FR.java/buggy/core/src/driver/org/jnode/driver/input/l10n/KeyboardInterpreter_FR.java
lastFlags = flags;
lastFlags = getFlags();
protected char interpretExtendedScanCode(int scancode, int vk, boolean released) throws UnsupportedKeyException, DeadKeyException { boolean deadKey = false;// System.err.print("vk = "+vk); switch(vk) { case KeyEvent.VK_DEAD_CIRCUMFLEX: lastDeadVK = KeyEvent.VK_DEAD_CIRCUMFLEX; lastFlags = flags; deadKey ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/57843b9b284ea62b4a1db76be6395f975acfd0fc/KeyboardInterpreter_FR.java/buggy/core/src/driver/org/jnode/driver/input/l10n/KeyboardInterpreter_FR.java
initVkMap();
initVkMap(vkMap, lcharMap, ucharMap, altGrCharMap);
public KeyboardInterpreter() { vkMap = new int[256]; lcharMap = new char[256]; ucharMap = new char[256]; altGrCharMap = new char[256]; initVkMap(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/57843b9b284ea62b4a1db76be6395f975acfd0fc/KeyboardInterpreter.java/buggy/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java
protected abstract void initVkMap();
protected abstract void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap);
protected abstract void initVkMap();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/57843b9b284ea62b4a1db76be6395f975acfd0fc/KeyboardInterpreter.java/buggy/core/src/driver/org/jnode/driver/input/KeyboardInterpreter.java
ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - lastNativeQueueAccess > humanLatencyThreshold)) { tk.iterateNativeQueue(this, false); lastNativeQueueAccess = curr; }
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l...
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
if (isDispatchThread()) {
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l...
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
tk.iterateNativeQueue(this, true); lastNativeQueueAccess = System.currentTimeMillis(); } else { try {
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l...
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
catch (InterruptedException ie) { } } }
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l...
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 static KeyboardFocusManager getCurrentKeyboardFocusManager()
public static KeyboardFocusManager getCurrentKeyboardFocusManager ()
public static KeyboardFocusManager getCurrentKeyboardFocusManager() { // XXX Need a way to divide this into contexts. return current; }
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
return current;
ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); return (KeyboardFocusManager) currentKeyboardFocusManagers.get (currentGroup);
public static KeyboardFocusManager getCurrentKeyboardFocusManager() { // XXX Need a way to divide this into contexts. return current; }
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 abstract boolean dispatchEvent(AWTEvent e);
public abstract boolean dispatchEvent (AWTEvent e);
public abstract boolean dispatchEvent(AWTEvent e);
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 AccessibleContext getAccessibleContext() {// if (accessibleContext == null)// accessibleContext = new AccessibleBoxFiller(); return accessibleContext; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Box.java/clean/core/src/classpath/javax/javax/swing/Box.java
if (accessibleContext == null) accessibleContext = new AccessibleBox();
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Box.java/clean/core/src/classpath/javax/javax/swing/Box.java
if (way != X_AXIS && way != Y_AXIS && way != LINE_AXIS && way != PAGE_AXIS) throw new AWTError("Invalid axis");
public BoxLayout(Container container, int way) { int width = 0; int height = 0; this.container = container; this.way = way; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/BoxLayout.java/buggy/core/src/classpath/javax/javax/swing/BoxLayout.java
public NoSuchAlgorithmException(String msg)
public NoSuchAlgorithmException()
public NoSuchAlgorithmException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/NoSuchAlgorithmException.java/buggy/core/src/classpath/java/java/security/NoSuchAlgorithmException.java
super(msg);
public NoSuchAlgorithmException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/NoSuchAlgorithmException.java/buggy/core/src/classpath/java/java/security/NoSuchAlgorithmException.java
public NoSuchProviderException(String msg)
public NoSuchProviderException()
public NoSuchProviderException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/NoSuchProviderException.java/buggy/core/src/classpath/java/java/security/NoSuchProviderException.java
super(msg);
public NoSuchProviderException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/NoSuchProviderException.java/buggy/core/src/classpath/java/java/security/NoSuchProviderException.java
secureRandomSpi = new gnu.java.security.provider.SHA1PRNG();
secureRandomSpi = new Sha160RandomSpi(); algorithm = "Sha160";
public SecureRandom() { Provider[] p = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/321ca9787201345560a6d7a6717b1d12e5e7241f/SecureRandom.java/buggy/core/src/classpath/java/java/security/SecureRandom.java
private Naming() {}
private Naming() { }
private Naming() {}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException {
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException {
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
private static String getName(URL url) throws MalformedURLException
private static String getName(URL url) throws MalformedURLException
private static String getName(URL url) throws MalformedURLException { String filename = url.getFile(); if (filename.length() == 0) throw new MalformedURLException("No path specified: " + url); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) {
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == - 1) {
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
else {
else {
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static String[] list(String name) throws RemoteException, MalformedURLException {
public static String[] list(String name) throws RemoteException, MalformedURLException {
public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException {
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException {
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
private static URL parseURL(String name) throws MalformedURLException
private static URL parseURL(String name) throws MalformedURLException
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
return new URL("http", (host == null ? "localhost" : host), (port == -1 ? 1099 : port), uri.getPath() + (query == null ? "" : query));
return new URL("http", (host == null ? "localhost" : host), (port == - 1 ? 1099 : port), uri.getPath() + (query == null ? "" : query));
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
throw new MalformedURLException("The URL syntax was invalid: " + e.getMessage());
throw new MalformedURLException("The URL syntax was invalid: " + e.getMessage());
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException {
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException {
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException {
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException {
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
}
}
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/Naming.java/buggy/core/src/classpath/java/java/rmi/Naming.java
public static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT));
public static Registry getRegistry() throws RemoteException { return (getRegistry("localhost", Registry.REGISTRY_PORT));
public static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/LocateRegistry.java/buggy/core/src/classpath/java/java/rmi/registry/LocateRegistry.java
jComponent.getContentPane().setLayout(new SwingContainerLayout(this));
jComponent.getContentPane().setLayout(new SwingContainerLayout(dialog, this));
public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e039399541bcd400efa417d2882bc8f20184d6d5/SwingDialogPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingDialogPeer.java
getTitle() { return(title); }
public String getTitle() { return title; }
getTitle(){ return(title);}
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 SwingContainerLayout(SwingContainerPeer containerPeer) {
public SwingContainerLayout(Container awtContainer, SwingContainerPeer containerPeer) { this.awtContainer = awtContainer;
public SwingContainerLayout(SwingContainerPeer containerPeer) { this.containerPeer = containerPeer; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e039399541bcd400efa417d2882bc8f20184d6d5/SwingContainerLayout.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingContainerLayout.java
setBackground(table.getSelectionBackground()); setForeground(table.getSelectionForeground());
super.setBackground(table.getSelectionBackground()); super.setForeground(table.getSelectionForeground());
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
setBackground(table.getBackground()); setForeground(table.getForeground());
if (background != null) super.setBackground(background); else super.setBackground(table.getBackground()); if (foreground != null) super.setForeground(foreground); else super.setForeground(table.getForeground());
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
setBackground(table.getBackground());
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
Color back = getBackground(); setOpaque(back != null && back.equals(table.getBackground()));
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
background = c;
public void setBackground(Color c) { super.setBackground(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
foreground = c;
public void setForeground(Color c) { super.setForeground(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
background = null; foreground = null;
public void updateUI() { super.updateUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultTableCellRenderer.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
changeSupport.firePropertyChange(propertyName, oldValue, newValue);
changeSupport.firePropertyChange(propertyName, new Boolean(oldValue), new Boolean(newValue));
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
{ return super.getText(); }
{ return super.getText(); }
public String getText() { return super.getText(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
public JTextField(int a) { }
public JTextField() { this(null, null, 0); }
public JTextField(int a) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java
public static Border createEmptyBorder (int top, int left, int bottom, int right)
public static Border createEmptyBorder ()
public static Border createEmptyBorder (int top, int left, int bottom, int right) { return new EmptyBorder (top, left, bottom, right); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/BorderFactory.java/buggy/core/src/classpath/javax/javax/swing/BorderFactory.java
return new EmptyBorder (top, left, bottom, right);
return new EmptyBorder (0, 0, 0, 0);
public static Border createEmptyBorder (int top, int left, int bottom, int right) { return new EmptyBorder (top, left, bottom, right); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/BorderFactory.java/buggy/core/src/classpath/javax/javax/swing/BorderFactory.java
throw new BAD_OPERATION("Binding type expected");
BAD_OPERATION bad = new BAD_OPERATION("Binding type expected"); bad.initCause(ex); throw bad;
public static BindingType extract(Any any) { try { return ((BindingTypeHolder) any.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding type expected"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/BindingTypeHelper.java/buggy/core/src/classpath/org/org/omg/CosNaming/BindingTypeHelper.java
public boolean equals(Object obj)
private static boolean equals(BigInteger x, BigInteger y)
public boolean equals(Object obj) { if (! (obj instanceof BigInteger)) return false; return equals(this, (BigInteger) obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (! (obj instanceof BigInteger))
if (x.words == null && y.words == null) return x.ival == y.ival; if (x.words == null || y.words == null || x.ival != y.ival)
public boolean equals(Object obj) { if (! (obj instanceof BigInteger)) return false; return equals(this, (BigInteger) obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return equals(this, (BigInteger) obj);
for (int i = x.ival; --i >= 0; ) { if (x.words[i] != y.words[i]) return false; } return true;
public boolean equals(Object obj) { if (! (obj instanceof BigInteger)) return false; return equals(this, (BigInteger) obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
public abstract byte[] getEncoded(int format);
public byte[] getEncoded() { return getEncoded(defaultFormat); }
public abstract byte[] getEncoded(int format);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/DSSKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKey.java
throw new IllegalArgumentException("Wrong key type");
throw new InvalidParameterException("Wrong key type");
public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new IllegalArgumentException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSPr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/DSSKeyPairPKCS8Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.java
public StringBuilder append(String str)
public StringBuilder append(Object obj)
public StringBuilder append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/StringBuilder.java/buggy/core/src/classpath/5.0/java/lang/StringBuilder.java
if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this;
return append(obj == null ? "null" : obj.toString());
public StringBuilder append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/StringBuilder.java/buggy/core/src/classpath/5.0/java/lang/StringBuilder.java
public String toString(int radix)
public String toString()
public String toString(int radix) { if (words == null) return Integer.toString(ival, radix); if (ival <= 2) return Long.toString(longValue(), radix); int buf_size = ival * (MPN.chars_per_word(radix) + 1); StringBuffer buffer = new StringBuffer(buf_size); format(radix, buffer); return buff...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (words == null) return Integer.toString(ival, radix); if (ival <= 2) return Long.toString(longValue(), radix); int buf_size = ival * (MPN.chars_per_word(radix) + 1); StringBuffer buffer = new StringBuffer(buf_size); format(radix, buffer); return buffer.toString();
return toString(10);
public String toString(int radix) { if (words == null) return Integer.toString(ival, radix); if (ival <= 2) return Long.toString(longValue(), radix); int buf_size = ival * (MPN.chars_per_word(radix) + 1); StringBuffer buffer = new StringBuffer(buf_size); format(radix, buffer); return buff...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (protocol != null && protocol.length() > 0)
if (protocol.length() > 0)
protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; file = url.getFile(); ref = url.getRef(); // Guess a reasonable size for the str...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLStreamHandler.java/clean/core/src/classpath/java/java/net/URLStreamHandler.java
public int lastIndexOf(int ch, int fromIndex)
public int lastIndexOf(int ch)
public int lastIndexOf(int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1;
return lastIndexOf(ch, count - 1);
public int lastIndexOf(int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
throws IOException, NotImplementedException
throws IOException
public static String guessContentTypeFromStream(InputStream is) throws IOException, NotImplementedException { // See /etc/gnome-vfs-mime-magic or /etc/mime-magic for a reasonable // idea of how to handle this. return "application/octet-stream"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/URLConnection.java/clean/core/src/classpath/java/java/net/URLConnection.java
String result = VMURLConnection.guessContentTypeFromStream(is); if (result == null)
public static String guessContentTypeFromStream(InputStream is) throws IOException, NotImplementedException { // See /etc/gnome-vfs-mime-magic or /etc/mime-magic for a reasonable // idea of how to handle this. return "application/octet-stream"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/URLConnection.java/clean/core/src/classpath/java/java/net/URLConnection.java
return result;
public static String guessContentTypeFromStream(InputStream is) throws IOException, NotImplementedException { // See /etc/gnome-vfs-mime-magic or /etc/mime-magic for a reasonable // idea of how to handle this. return "application/octet-stream"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/URLConnection.java/clean/core/src/classpath/java/java/net/URLConnection.java
public IllegalStateException(String s)
public IllegalStateException()
public IllegalStateException(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/IllegalStateException.java/buggy/core/src/classpath/java/java/lang/IllegalStateException.java
super(s);
public IllegalStateException(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/IllegalStateException.java/buggy/core/src/classpath/java/java/lang/IllegalStateException.java
public UnknownServiceException(String message)
public UnknownServiceException()
public UnknownServiceException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95f9230428577bee0a0c3d3e666d2ce703b8671b/UnknownServiceException.java/buggy/core/src/classpath/java/java/net/UnknownServiceException.java
super(message);
public UnknownServiceException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95f9230428577bee0a0c3d3e666d2ce703b8671b/UnknownServiceException.java/buggy/core/src/classpath/java/java/net/UnknownServiceException.java
if (oneBasedHour && value == 12) value = 0; if (oneBasedHourOfDay && value == 24) value = 0;
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/20002e10b15f0b6d4dcc01a9b59f8f854f0731b1/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
public long getTime() { refresh_millis(); return millis;
public long getTime() { return time;
public long getTime() { refresh_millis(); return millis; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/buggy/core/src/classpath/java/java/util/Date.java
hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode();
hashcodeCache = language.hashCode() ^ country.hashCode() ^ variant.hashCode();
public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if (defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
public SimpleDateFormat(String pattern, Locale locale)
public SimpleDateFormat()
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/20002e10b15f0b6d4dcc01a9b59f8f854f0731b1/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
this.pattern = pattern;
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/20002e10b15f0b6d4dcc01a9b59f8f854f0731b1/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java
public Point(int x, int y)
public Point()
public Point(int x, int y) { this.x = x; this.y = y; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Point.java/clean/core/src/classpath/java/java/awt/Point.java
this.x = x; this.y = y;
public Point(int x, int y) { this.x = x; this.y = y; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/Point.java/clean/core/src/classpath/java/java/awt/Point.java
debug(ioe);
logger.log (Component.X509, "", ioe);
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { debug(ioe); throw ioe; } catch (Exception e) { debug(e); Certific...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug(e);
logger.log (Component.X509, "", e);
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { debug(ioe); throw ioe; } catch (Exception e) { debug(e); Certific...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java