rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public DebugGraphics(Graphics graphics) {
public DebugGraphics() {
public DebugGraphics(Graphics graphics) { // TODO } // DebugGraphics()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DebugGraphics.java/buggy/core/src/classpath/javax/javax/swing/DebugGraphics.java
userInfo = unquote(rawUserInfo); host = unquote(rawHost);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthority =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/dac4405f626adce58eaf18d8f108c8e3a6ab37e7/URI.java/buggy/core/src/classpath/java/java/net/URI.java
public DOMResult() { }
public DOMResult() { this(null, null, null); }
public DOMResult() { } // DOMResult()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DOMResult.java/buggy/core/src/classpath/javax/javax/xml/transform/dom/DOMResult.java
public String getSystemId() { return systemId; }
public String getSystemId() { return systemId; }
public String getSystemId() { return systemId; } // getSystemId()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DOMResult.java/buggy/core/src/classpath/javax/javax/xml/transform/dom/DOMResult.java
public void setSystemId(String systemID) { this.systemId = systemID; }
public void setSystemId(String systemId) { this.systemId = systemId; }
public void setSystemId(String systemID) { this.systemId = systemID; } // systemID()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/DOMResult.java/buggy/core/src/classpath/javax/javax/xml/transform/dom/DOMResult.java
updateUI();
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java
static void fillMetalPattern(Graphics g, int x, int y, int w, int h,
static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h,
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java
int xOff = 0; for (int mY = y; mY < (y + h); mY++)
if (g instanceof Graphics2D) fillMetalPattern2D((Graphics2D) g, x, y, w, h, light, dark); else
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java
if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark);
int xOff = 0; for (int mY = y; mY < (y + h); mY++) { if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark);
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java
for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY);
for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY); } xOff++; if (xOff > 3) xOff = 0;
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java
xOff++; if (xOff > 3) xOff = 0; }
}
static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java
protected Component addSingletonComponent(Component oldComponent, Component newComponent) {
protected Component addSingletonComponent(Component oldComponent, Component newComponent) {
protected Component addSingletonComponent(Component oldComponent, Component newComponent) { return null; // TODO } // addSingletonComponent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ScrollPaneLayout.java/clean/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java
tree.setRootVisible(true);
public void installUI(JComponent c) { prepareForUIInstall(); super.installUI(c); tree = (JTree) c; installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); tree.s...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, 0, tree, treeModel, root); if (hasControlIcons()) paintControlIcons(g, 0, 0, 0, 0, tree, treeModel, root); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
Rectangle clip = g.getClipBounds();
Rectangle clip = tree.getVisibleRect();
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); TreePath path = new TreePath(getPathToRoot(node, 0)); Icon icon = getCurrent...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e607bce31cfb856ba77722e6c4f9f876b63f1cf8/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
sb.append(offset >= 0 ? '+' : '-');
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
offset = Math.abs(offset) / (1000 * 60); int hours = offset / 60; int minutes = offset % 60;
offset = offset / (1000 * 60); int hours = Math.abs(offset) / 60; int minutes = Math.abs(offset) % 60;
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
sb.append((char) ('0' + hours / 10)).append((char) ('0' + hours % 10));
if (minutes != 0 || hours != 0) { sb.append(offset >= 0 ? '+' : '-'); sb.append((char) ('0' + hours / 10)); sb.append((char) ('0' + hours % 10));
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
sb.append((char) ('0' + minutes / 10)).append((char) ('0' + minutes % 10));
sb.append((char) ('0' + minutes / 10)); sb.append((char) ('0' + minutes % 10)); }
private String getDefaultDisplayName(boolean dst) { int offset = getRawOffset(); if (dst && this instanceof SimpleTimeZone) { // ugly, but this is a design failure of the API: // getDisplayName takes a dst parameter even though // TimeZone knows nothing about daylight saving offsets. offset += ((Simpl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
private void addColorToQueue(Color c)
void addColorToQueue(Color c)
private void addColorToQueue(Color c) { if (--start == -1) start = numRows * numCols - 1; colors[start] = c; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/DefaultSwatchChooserPanel.java/clean/core/src/classpath/javax/javax/swing/colorchooser/DefaultSwatchChooserPanel.java
Thread[] result = new Thread[threadsCount()]; Enumeration e = threads.elements(); for (int n = 0; e.hasMoreElements(); n++) result[n] = (Thread) e.nextElement(); return result;
return (Thread[])threads.toArray(new Thread[threads.size()]);
public Thread[] threads() { Thread[] result = new Thread[threadsCount()]; Enumeration e = threads.elements(); for (int n = 0; e.hasMoreElements(); n++) result[n] = (Thread) e.nextElement(); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/83455c7dc249023259234cd2d1dcff06672d1369/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java
int native_fd)
VMChannel channel)
public SinkChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
this.native_fd = native_fd;
vmch = channel;
public SinkChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
vmch.close();
protected final void implCloseSelectableChannel() throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
vmch.setBlocking(blocking);
protected final void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
return vmch.write(dst);
public final int write (ByteBuffer dst) throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
int native_fd)
VMChannel channel)
public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
this.native_fd = native_fd;
vmch = channel;
public SourceChannelImpl (SelectorProvider selectorProvider, int native_fd) { super (selectorProvider); this.native_fd = native_fd; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
vmch.close();
protected final void implCloseSelectableChannel() throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
vmch.setBlocking(blocking);
protected void implConfigureBlocking (boolean blocking) throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
throw new Error ("Not implemented");
return vmch.read(src);
public final int read (ByteBuffer src) throws IOException { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
VMPipe.init (this, provider);
VMChannel[] pipe = VMPipe.pipe(); sink = new SinkChannelImpl(provider, pipe[0]); source = new SourceChannelImpl(provider, pipe[1]);
public PipeImpl (SelectorProvider provider) throws IOException { super(); VMPipe.init (this, provider); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b178c65c33dbad8dc1c9e11c353aa40d71b61453/PipeImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/PipeImpl.java
public boolean implies(Permission perm) { PermissionCollection pc = getPermissions(); if (pc == null) return (false); return (pc.implies(perm));
public boolean implies(Permission permission) { if (staticBinding) return (perms == null ? false : perms.implies(permission)); return Policy.getCurrentPolicy().implies(this, permission);
public boolean implies(Permission perm) { PermissionCollection pc = getPermissions(); if (pc == null) return (false); return (pc.implies(perm)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
public String toString() {
public String toString() {
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep);
StringBuffer sb = new StringBuffer("ProtectionDomain (").append(linesep);
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
sb.append("CodeSource:null" + linesep);
sb.append("CodeSource:null"); else sb.append(code_source); sb.append(linesep); if (classloader == null) sb.append("ClassLoader:null"); else sb.append(classloader); sb.append(linesep); sb.append("Principals:"); if (principals != null && principals.length > 0) { sb.append("["); Principal pal; for (int i = 0; i < princi...
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
sb.append(code_source + linesep);
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
sb.append(linesep + ")" + linesep);
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
return sb.toString();
return sb.append(linesep).append(")").append(linesep).toString();
public String toString() { String linesep = System.getProperty("line.separator"); StringBuffer sb = new StringBuffer(""); sb.append("ProtectionDomain (" + linesep); if (code_source == null) sb.append("CodeSource:null" + linesep); else sb.append(code_source + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/clean/core/src/classpath/java/java/security/ProtectionDomain.java
socket.bound = true;
protected final void implAccept(Socket socket) throws IOException { if (isClosed()) throw new SocketException("ServerSocket is closed"); // The Sun spec says that if we have an associated channel and // it is in non-blocking mode, we throw an IllegalBlockingModeException. // However, in our implemen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java
tabPane.setOpaque(true);
tabPane.setOpaque(false);
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(tru...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) {
protected Charset (String canonicalName, String[] aliases) { checkName (canonicalName); if (aliases != null) {
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
checkName(aliases[i]);
checkName (aliases[i]);
protected Charset(String canonicalName, String[] aliases) { checkName(canonicalName); if (aliases != null) { int n = aliases.length; for (int i = 0; i < n; ++i) checkName(aliases[i]); } this.canonicalName = canonicalName; this.aliases = aliases; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final Set aliases() { if (aliases == null) {
public final Set aliases () { if (aliases == null)
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
}
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n);
HashSet aliasSet = new HashSet (n);
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
aliasSet.add(aliases[i]); return Collections.unmodifiableSet(aliasSet);
aliasSet.add (aliases[i]); return Collections.unmodifiableSet (aliasSet);
public final Set aliases() { if (aliases == null) { return Collections.EMPTY_SET; } // should we cache the aliasSet instead? int n = aliases.length; if (n == 0) { return Collections.EMPTY_SET; } HashSet aliasSet = new HashSet(n); for (int i = 0; i < n; ++i) aliasSet.add(aliases[i]); return Collections.u...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER);
public static SortedMap availableCharsets () { TreeMap charsets = new TreeMap (String.CASE_INSENSITIVE_ORDER);
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs);
for (Iterator i = provider ().charsets (); i.hasNext (); ) { Charset cs = (Charset) i.next (); charsets.put (cs.name (), cs);
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
return Collections.unmodifiableSortedMap(charsets);
return Collections.unmodifiableSortedMap (charsets);
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (Iterator i = provider().charsets(); i.hasNext();) { Charset cs = (Charset) i.next(); charsets.put(cs.name(), cs); } return Collections.unmodifiableSortedMap(charsets); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public boolean canEncode() {
public boolean canEncode () {
public boolean canEncode() { return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
private static Charset charsetForName(String charsetName) { checkName(charsetName); return provider().charsetForName(charsetName);
private static Charset charsetForName (String charsetName) { checkName (charsetName); return provider ().charsetForName (charsetName);
private static Charset charsetForName(String charsetName) { checkName(charsetName); return provider().charsetForName(charsetName); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
private static void checkName(String name) { int n = name.length();
private static void checkName (String name) { int n = name.length ();
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
throw new IllegalCharsetNameException(name);
throw new IllegalCharsetNameException (name);
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name);
char ch = name.charAt (0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException (name);
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
for (int i = 1; i < n; ++i) { ch = name.charAt(i); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9') || ch == '-' || ch == '.' || ch == ':' || ch == '_')) throw new IllegalCharsetNameException(name);
for (int i = 1; i < n; ++i) { ch = name.charAt (i); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9') || ch == '-' || ch == '.' || ch == ':' || ch == '_')) throw new IllegalCharsetNameException (name);
private static void checkName(String name) { int n = name.length(); if (n == 0) throw new IllegalCharsetNameException(name); char ch = name.charAt(0); if (!(('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') || ('0' <= ch && ch <= '9'))) throw new IllegalCharsetNameException(name); for (int i = 1; i < n; ++...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final int compareTo(Object ob) { return canonicalName.compareToIgnoreCase(((Charset) ob).canonicalName);
public final int compareTo (Object ob) { return canonicalName.compareToIgnoreCase (((Charset) ob).canonicalName);
public final int compareTo(Object ob) { return canonicalName.compareToIgnoreCase(((Charset) ob).canonicalName); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public abstract boolean contains(Charset cs);
public abstract boolean contains (Charset cs);
public abstract boolean contains(Charset cs);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder);
public final CharBuffer decode (ByteBuffer bb) { try { synchronized (Charset.class) { if (cachedDecoder == null) { cachedDecoder = newDecoder () .onMalformedInput (CodingErrorAction.REPLACE) .onUnmappableCharacter (CodingErrorAction.REPLACE); } return cachedDecoder.decode (bb); }
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
decoder.reset(); return decoder.decode(bb); } catch (CharacterCodingException e) { throw new AssertionError(e);
catch (CharacterCodingException e) { throw new AssertionError (e);
public CharBuffer decode(ByteBuffer bb) { try { CharsetDecoder decoder = (CharsetDecoder) cachedDecoder.get(); if (decoder == null) { decoder = newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedDecoder.set(decoder); } decoder.reset(); retu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public String displayName() {
public String displayName () {
public String displayName() { return canonicalName; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder);
public final ByteBuffer encode (CharBuffer cb) { try { synchronized (Charset.class) { if (cachedEncoder == null) { cachedEncoder = newEncoder () .onMalformedInput (CodingErrorAction.REPLACE) .onUnmappableCharacter (CodingErrorAction.REPLACE);
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
return encoder.encode(cb); } catch (CharacterCodingException e) { throw new AssertionError(e);
return cachedEncoder.encode (cb); } } catch (CharacterCodingException e) { throw new AssertionError (e);
public final ByteBuffer encode(CharBuffer cb) { try { CharsetEncoder encoder = (CharsetEncoder) cachedEncoder.get(); if (encoder == null) { encoder = newEncoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE); cachedEncoder.set(encoder); } return encoder.en...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final boolean equals(Object ob) {
public final boolean equals (Object ob) {
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName);
return canonicalName.equalsIgnoreCase (((Charset) ob).canonicalName);
public final boolean equals(Object ob) { if (ob instanceof Charset) return canonicalName.equalsIgnoreCase(((Charset) ob).canonicalName); else return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName);
public static Charset forName (String charsetName) { Charset cs = charsetForName (charsetName);
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
throw new UnsupportedCharsetException(charsetName);
throw new UnsupportedCharsetException (charsetName);
public static Charset forName(String charsetName) { Charset cs = charsetForName(charsetName); if (cs == null) throw new UnsupportedCharsetException(charsetName); return cs; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final int hashCode() { return canonicalName.hashCode();
public final int hashCode () { return canonicalName.hashCode ();
public final int hashCode() { return canonicalName.hashCode(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final boolean isRegistered(String name) { return !name.startsWith("x-") && !name.startsWith("X-");
public final boolean isRegistered () { return (!canonicalName.startsWith ("x-") && !canonicalName.startsWith ("X-"));
public final boolean isRegistered(String name) { return !name.startsWith("x-") && !name.startsWith("X-"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public static boolean isSupported(String charsetName) { return charsetForName(charsetName) != null;
public static boolean isSupported (String charsetName) { return charsetForName (charsetName) != null;
public static boolean isSupported(String charsetName) { return charsetForName(charsetName) != null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final String name() {
public final String name () {
public final String name() { return canonicalName; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public abstract CharsetDecoder newDecoder();
public abstract CharsetDecoder newDecoder ();
public abstract CharsetDecoder newDecoder();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public abstract CharsetEncoder newEncoder();
public abstract CharsetEncoder newEncoder ();
public abstract CharsetEncoder newEncoder();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
private static final CharsetProvider provider() { return (CharsetProvider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Provider.provider(); }});
private static final CharsetProvider provider () { return Provider.provider ();
private static final CharsetProvider provider() { return (CharsetProvider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Provider.provider(); }}); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
public final String toString() {
public final String toString () {
public final String toString() { return canonicalName; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Charset.java/clean/core/src/classpath/java/java/nio/charset/Charset.java
super (charsetName);
super (); this.charsetName = charsetName;
public IllegalCharsetNameException (String charsetName) { super (charsetName); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/IllegalCharsetNameException.java/buggy/core/src/classpath/java/java/nio/charset/IllegalCharsetNameException.java
super (charsetName);
super (); this.charsetName = charsetName;
public UnsupportedCharsetException (String charsetName) { super (charsetName); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/UnsupportedCharsetException.java/buggy/core/src/classpath/java/java/nio/charset/UnsupportedCharsetException.java
if (stingy && (numRepeats >= min)) {
if ((stingy && (numRepeats >= min)) || alwaysEmpty) {
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenRepeated.java/clean/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
while (--posIndex >= min) {
int indexCount = posIndex - min; if (indexCount <= 0) { indexCount = 1; } while (indexCount-- > 0) { --posIndex;
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenRepeated.java/clean/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
mymatch.empty = (mymatch.index == origin);
boolean match(CharIndexed input, REMatch mymatch) { // number of times we've matched so far int numRepeats = 0; // Possible positions for the next repeat to match at REMatch newMatch = mymatch; REMatch last = null; REMatch current; // Add the '0-repeats' index // positions.elementAt(z) == position [] in input aft...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenRepeated.java/clean/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
empty = other.empty;
void assignFrom(REMatch other) { start = other.start; end = other.end; index = other.index; // need to deep clone? next = other.next; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/REMatch.java/buggy/core/src/classpath/gnu/gnu/regexp/REMatch.java
switch (c) {
switch (c) {
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
("Modifier '!' is not yet supported by Classpath", i+base_offset);
("Modifier '!' is not yet supported by Classpath", i + base_offset);
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
+ "(<,;=&)", i+base_offset);
+ "(<,;=&)", i + base_offset);
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
("operator missing at " + (i+base_offset), i+base_offset); if (!eatingChars && ((c >= 0x21 && c <= 0x2F)
("operator missing at " + (i + base_offset), i + base_offset); if (! eatingChars && ((c >= 0x21 && c <= 0x2F)
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
("unquoted punctuation character '"+c+"'", i+base_offset);
("unquoted punctuation character '" + c + "'", i + base_offset);
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
res.put("gnu.java.io.encoding_scheme_alias.US-ASCII", "ISO8859-1"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16LE", "UTF16LE"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16BE", "UTF16BE");
public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f3e5560f89ada0f81ba625cea1b128a070cee56f/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java
throw new DomEx(DomEx.NAMESPACE_ERR, "xmlns is reserved", null, 0);
throw new DomDOMException(DOMException.NAMESPACE_ERR, "xmlns is reserved", null, 0);
public Document createDocument(String namespaceURI, String rootName, DocumentType doctype) { Document doc = new DomDocument(this); Element root = null; if (rootName != null) { root = doc.createElementNS(namespaceURI, rootName); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomImpl.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomImpl.java
throws ObjectNotActive, WrongPolicy, WrongAdapter
throws ObjectNotActive, WrongPolicy, WrongAdapter
public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { AOM.Obj ref = aom.findObject(the_Object); if (ref == nul...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/gnuPOA.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOA.java
throw new WrongAdapter();
{ String object; if (the_Object == null) object = "null passed"; else if (the_Object instanceof gnuServantObject) { gnuServantObject gs = (gnuServantObject) the_Object; object = "Wrong owner POA " + gs.poa.the_name(); } else object = "Unknown " + the_Object.getClass().getName(); throw new WrongAdapter(object + " for '...
public Servant reference_to_servant(org.omg.CORBA.Object the_Object) throws ObjectNotActive, WrongPolicy, WrongAdapter { if (applies(ServantRetentionPolicyValue.RETAIN)) { AOM.Obj ref = aom.findObject(the_Object); if (ref == nul...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/gnuPOA.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOA.java
String tmp; tmp = Security.getProperty("keystore.type");
String tmp = Security.getProperty("keystore.type");
public static final String getDefaultType() { String tmp; //Security reads every property in java.security so it //will return this property if it exists. tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyStore.java/buggy/core/src/classpath/java/java/security/KeyStore.java
String classname = p[i].getProperty("KeyStore." + type); if (classname != null) return getInstance(classname, type, p[i]);
try { return getInstance(type, p[i]); } catch (KeyStoreException ignore) { }
public static KeyStore getInstance(String type) throws KeyStoreException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("KeyStore." + type); if (classname != null) return getInstance(classname, type, p[i]); } throw new KeyStoreE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyStore.java/buggy/core/src/classpath/java/java/security/KeyStore.java
return getView().getSize();
{ Component view = getView(); if (view != null) return view.getPreferredSize(); else return new Dimension(); }
public Dimension getViewSize() { if (isViewSizeSet) return viewSize; else return getView().getSize(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/JViewport.java/clean/core/src/classpath/javax/javax/swing/JViewport.java
private synchronized static ConnectionRunner getConnectionRunner()
private static synchronized ConnectionRunner getConnectionRunner()
private synchronized static ConnectionRunner getConnectionRunner() { if(freelist.size() == 0){ if(size < max_size){ ++size; ConnectionRunner a = new ConnectionRunner(group, new Integer(size).toString()); a.start(); freelist.add(a); }else while(freelist.size() == 0) try{ ConnectionRunnerPool.class....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/ConnectionRunnerPool.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/ConnectionRunnerPool.java
if (parent != null && parent.isDisplayable()) fireDummyEvent();
addNotify(){ if (menuBar != null) menuBar.addNotify(); if (peer == null) peer = getToolkit ().createFrame (this); // We now know there's a Frame (us) with a live peer, so we can start the // fundamental queue and dispatch thread, by inserting a dummy event. if (parent != null && parent.isDisplayable()) fi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java
fireDummyEvent();
public void removeNotify(){ if (menuBar != null) menuBar.removeNotify(); super.removeNotify(); // By now we've been disconnected from the peer, and the peer set to // null. This is formally the same as saying "we just became // un-displayable", so we wake up the event queue with a dummy event to // see if it'...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java
tabInsets = UIManager.getInsets("TabbedPane.tabbedPaneTabInsets");
tabInsets = UIManager.getInsets("TabbedPane.tabInsets");
protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
tabAreaInsets = UIManager.getInsets("TabbedPane.tabbedPaneTabAreaInsets");
tabAreaInsets = UIManager.getInsets("TabbedPane.tabAreaInsets");
protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabPane.setOpaque(false); highlight = UIManager.getColor("TabbedPane.highlight"); ligh...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
setEditable(true);
public JTextComponent() { Keymap defkeymap = getKeymap(DEFAULT_KEYMAP); boolean creatingKeymap = false; if (defkeymap == null) { defkeymap = addKeymap(DEFAULT_KEYMAP, null); defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction()); creatingKeymap = true; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java
return null;
return getPreferredSize();
public Dimension getPreferredScrollableViewportSize() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java