rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
{
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
}
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
{
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
}
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
StringBuffer buf = new StringBuffer(getClass().getName());
StringBuffer buf = new StringBuffer("attribute");
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AttributeNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/AttributeNode.java
protected byte[] replicatePixels(int srcx, int srcy, int srcw, int srch,
private byte[] replicatePixels(int srcx, int srcy, int srcw, int srch,
protected byte[] replicatePixels(int srcx, int srcy, int srcw, int srch, ColorModel model, byte[] srcPixels, int srcOffset, int srcScansize, double rx, double ry, int destScansize) { byte[] destPixels = new...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ReplicateScaleFilter.java/buggy/core/src/classpath/java/java/awt/image/ReplicateScaleFilter.java
public InputStream getErrorStream ()
public InputStream getErrorStream()
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
if (!connected) return(null);
if (! connected) return (null);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
catch(IOException e)
catch (IOException e)
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
return(null);
return (null);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
if (((code/100) != 4) || ((code/100) != 5)) return(null);
if (((code / 100) != 4) || ((code / 100) != 5)) return (null);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
return(null);
return (null);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
return(pbis);
return (pbis);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
catch(IOException e)
catch (IOException e)
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
return(null);
return (null);
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
public long getHeaderFieldDate (String key, long value)
public long getHeaderFieldDate(String key, long value)
public long getHeaderFieldDate (String key, long value) { // FIXME: implement this correctly // http://www.w3.org/Protocols/HTTP-NG/ng-notes.txt return super.getHeaderFieldDate (key, value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
return super.getHeaderFieldDate (key, value);
return super.getHeaderFieldDate(key, value);
public long getHeaderFieldDate (String key, long value) { // FIXME: implement this correctly // http://www.w3.org/Protocols/HTTP-NG/ng-notes.txt return super.getHeaderFieldDate (key, value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
public boolean getInstanceFollowRedirects ()
public boolean getInstanceFollowRedirects()
public boolean getInstanceFollowRedirects () { return instanceFollowRedirects; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
if (!gotResponseVals)
if (! gotResponseVals)
public String getResponseMessage() throws IOException { if (!gotResponseVals) getResponseVals(); return responseMessage; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
if (!connected)
if (! connected)
private void getResponseVals() throws IOException { // getHeaderField() will connect for us, but do it here first in // order to pick up IOExceptions. if (!connected) connect(); gotResponseVals = true; // If responseCode not yet explicitly set by subclass if (responseCode == -1) { /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
int firstSpc, nextSpc;
int firstSpc; int nextSpc;
private void getResponseVals() throws IOException { // getHeaderField() will connect for us, but do it here first in // order to pick up IOExceptions. if (!connected) connect(); gotResponseVals = true; // If responseCode not yet explicitly set by subclass if (responseCode == -1) { /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
public void setRequestMethod(String method) throws ProtocolException { if (connected) throw new ProtocolException("Already connected"); method = method.toUpperCase(); if (valid_methods.indexOf("|" + method + "|") != -1) this.method = method; else throw new ProtocolException("Invalid HTTP r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("setLength in readonly filesystem"); }
public synchronized void setLength(long length) throws IOException { if (this.length == length) { // Do nothing return; } final FatFileSystem fs = getFatFileSystem(); final Fat fat = fs.getFat(); final int nrClusters = (int)((length + clusterSize-1) / clusterSize); if (this.length == 0) { final l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatFile.java/buggy/fs/src/fs/org/jnode/fs/fat/FatFile.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("write in readonly filesystem"); }
public synchronized void write(long fileOffset, byte[] src, int srcOfs, int len) throws IOException { final long max = (isDir) ? getLengthOnDisk() : getLength(); if (fileOffset > max) { throw new IOException("Cannot write beyond the EOF"); } if (fileOffset + len > max) { // this is too short increase...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatFile.java/buggy/fs/src/fs/org/jnode/fs/fat/FatFile.java
public synchronized long[] allocNew(int nrClusters) throws IOException {
public synchronized long allocNew() throws IOException {
public synchronized long[] allocNew(int nrClusters) throws IOException { long rc[] = new long[nrClusters]; rc[0] = allocNew(); for (int i = 1; i < nrClusters; i++) { rc[i] = allocAppend(rc[i - 1]); } return rc; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/buggy/fs/src/fs/org/jnode/fs/fat/Fat.java
long rc[] = new long[nrClusters];
int i; int entryIndex = -1; for (i = lastFreeCluster; i < entries.length; i++) { if (isFreeCluster(entries[i])) { entryIndex=i; break; } } if(entryIndex<0){ for(i = 2; i < lastFreeCluster;i++){ if (isFreeCluster(entries[i])) { entryIndex=i; break; } } } if(entryIndex < 0){ throw new IOException("FAT Full (" + entries....
public synchronized long[] allocNew(int nrClusters) throws IOException { long rc[] = new long[nrClusters]; rc[0] = allocNew(); for (int i = 1; i < nrClusters; i++) { rc[i] = allocAppend(rc[i - 1]); } return rc; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/buggy/fs/src/fs/org/jnode/fs/fat/Fat.java
rc[0] = allocNew(); for (int i = 1; i < nrClusters; i++) { rc[i] = allocAppend(rc[i - 1]); } return rc;
return entryIndex;
public synchronized long[] allocNew(int nrClusters) throws IOException { long rc[] = new long[nrClusters]; rc[0] = allocNew(); for (int i = 1; i < nrClusters; i++) { rc[i] = allocAppend(rc[i - 1]); } return rc; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/buggy/fs/src/fs/org/jnode/fs/fat/Fat.java
public void selectAll();
void selectAll();
public void selectAll();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ComboBoxEditor.java/buggy/core/src/classpath/javax/javax/swing/ComboBoxEditor.java
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/gnuPOA.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOA.java
checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); if (applies(IdUniquenessPolicyValue.UNIQUE_ID)) { AOM.Obj sx = aom.findServant(a_servant, false); if (sx != null) throw new ServantAlreadyActive(); } AOM.Obj exists = aom.get(an_Object_Id); if (exists != null) { if (exists.servant == null) { locateSer...
activate_object_with_id(an_Object_Id, a_servant, false);
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/gnuPOA.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuPOA.java
public abstract void copy(Address src, Address dst, int size);
public abstract void copy(Address src, Address dst, Extent size);
public abstract void copy(Address src, Address dst, int size);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/HeapHelper.java/buggy/core/src/core/org/jnode/vm/memmgr/HeapHelper.java
public Insets getBorderInsets(Component c, Insets s) { s.left = s.right = s.top = s.bottom = 5; return s; }
public Insets getBorderInsets(Component c) { return getBorderInsets(c, new Insets(0, 0, 0, 0)); }
public Insets getBorderInsets(Component c, Insets s) { s.left = s.right = s.top = s.bottom = 5; return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/TitledBorder.java/buggy/core/src/classpath/javax/javax/swing/border/TitledBorder.java
{ return false; }
{ /* Note that the AbstractBorder.isBorderOpaque would also return * false, so there is actually no need to override the inherited * implementation. However, GNU Classpath strives for exact * compatibility with the Sun reference implementation, which * overrides isBorderOpaque for unknown reasons. */ return false; }
public boolean isBorderOpaque() { return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/TitledBorder.java/buggy/core/src/classpath/javax/javax/swing/border/TitledBorder.java
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels inside the rectangle of the title text. */ class Bo...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/TitledBorder.java/buggy/core/src/classpath/javax/javax/swing/border/TitledBorder.java
switch (titlePosition) { case ABOVE_TOP: textY = y; break; case TOP: case DEFAULT_POSITION: default: textY = y + mes.borderSpacing.top + mes.borderInsets.top - mes.textAscent; break; case BELOW_TOP: textY = y + mes.borderSpacing.top + mes.borderInsets.top + TEXT_SPACING; break; case ABOVE_BOTTOM: textY = y + height...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/TitledBorder.java/buggy/core/src/classpath/javax/javax/swing/border/TitledBorder.java
if (comboBox.getFont() instanceof UIResource)
Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource)
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
if (comboBox.getForeground() instanceof UIResource)
if (fore == null || fore instanceof UIResource)
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
if (comboBox.getBackground() instanceof UIResource)
if (back == null || back instanceof UIResource)
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
ServiceContext[] cx)
org.omg.IOP.ServiceContext[] cx)
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java
return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data);
return cx[i];
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java
i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left; i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right; i.top = borderSpacing.top + borderInsets.top + edgeSpacing.top; i.bottom = borderSpacing.bottom + borderInsets.bottom + edgeSpacing.bottom;
i.left = outerSpacing.left + borderInsets.left + innerSpacing.left; i.right = outerSpacing.right + borderInsets.right + innerSpacing.right; i.top = outerSpacing.top + borderInsets.top + innerSpacing.top; i.bottom = outerSpacing.bottom + borderInsets.bottom + innerSpacing.bottom;
public Insets getContentInsets(Insets i) { if (i == null) i = new Insets(0, 0, 0, 0); i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left; i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right; i.top = borderSpacing.top + borderInsets.top + edgeSpacing.t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
width = Math.max(insets.left + insets.right, textWidth + 2 * TEXT_INSET_H);
width = Math.max(insets.left + insets.right, textWidth + 2 * TEXT_INSET_H);
public Dimension getMinimumSize() { int width; Insets insets; insets = getContentInsets(null); width = Math.max(insets.left + insets.right, textWidth + 2 * TEXT_INSET_H); return new Dimension(width, insets.top + insets.bottom); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
title, DEFAULT_JUSTIFICATION, DEFAULT_POSITION,
title, LEADING, TOP,
public TitledBorder(String title) { this(/* border */ null, title, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, /* titleFont */ null, /* titleColor */ null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.textDescent = fmet.getDescent();
m.textDescent = fmet.getDescent() + fmet.getLeading();
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
FontRenderContext frc = new FontRenderContext(new AffineTransform(), false, false);
FontRenderContext frc = new FontRenderContext(new AffineTransform(), false, false);
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
if (m.trimmedText != null) m.textWidth = fmet.stringWidth(m.trimmedText) + 3; m.edgeSpacing = new Insets(EDGE_SPACING, EDGE_SPACING, EDGE_SPACING, EDGE_SPACING); m.borderSpacing = new Insets(0, 0, 0, 0);
m.innerSpacing = new Insets(EDGE_SPACING, EDGE_SPACING, EDGE_SPACING, EDGE_SPACING); m.outerSpacing = new Insets(EDGE_SPACING, EDGE_SPACING, EDGE_SPACING, EDGE_SPACING);
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.borderSpacing.top += m.textAscent + m.textDescent + TEXT_SPACING;
m.outerSpacing.top += m.textAscent + m.textDescent + TEXT_SPACING; break; case TOP: m.outerSpacing.top += m.textDescent + m.lineHeight; m.innerSpacing.top += m.textAscent - m.lineHeight;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.edgeSpacing.top += m.textAscent + m.textDescent + TEXT_SPACING;
m.innerSpacing.top += m.textAscent + m.textDescent + TEXT_SPACING;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.edgeSpacing.bottom += m.textAscent + m.textDescent + TEXT_SPACING;
m.innerSpacing.bottom += m.textAscent + m.textDescent + TEXT_SPACING;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.edgeSpacing.bottom += Math.max(m.textAscent - m.borderInsets.bottom, 0); m.borderSpacing.bottom += m.textDescent;
m.innerSpacing.bottom += Math.max(m.textAscent - m.lineHeight, 0); m.outerSpacing.bottom += m.textDescent + m.lineHeight;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.borderSpacing.bottom += m.textAscent + m.textDescent + TEXT_SPACING;
m.outerSpacing.bottom += m.textAscent + m.textDescent;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
m.borderSpacing.top += m.textAscent;
m.outerSpacing.top += m.textAscent;
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
b.paintBorder(c, g, x, y, width - 1, height - 1);
b.paintBorder(c, g, x, y, width, height);
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
paint(g, holeX + holeWidth, holeY, width - (holeX + holeWidth), stripeHeight);
paint(g, holeX + holeWidth, holeY, x + width - (holeX + holeWidth), stripeHeight);
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
borderWidth = width - (mes.borderSpacing.left + mes.borderSpacing.right); borderHeight = height - (mes.borderSpacing.top + mes.borderSpacing.bottom);
borderWidth = width - (mes.outerSpacing.left + mes.outerSpacing.right); borderHeight = height - (mes.outerSpacing.top + mes.outerSpacing.bottom);
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
x + mes.borderSpacing.left, y + mes.borderSpacing.top,
x + mes.outerSpacing.left, y + mes.outerSpacing.top,
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
textX = x + TEXT_INSET_H;
textX = x + EDGE_SPACING + TEXT_INSET_H;
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
textY = y;
textY = y + EDGE_SPACING;
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
textY = y + mes.borderSpacing.top + mes.borderInsets.top - mes.textAscent
textY = y + mes.outerSpacing.top + mes.borderInsets.top - mes.textAscent
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
textY = y + mes.borderSpacing.top + mes.borderInsets.top + TEXT_SPACING;
textY = y + mes.outerSpacing.top + mes.borderInsets.top + TEXT_SPACING;
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
textY = y + height - mes.borderSpacing.bottom - mes.borderInsets.bottom
textY = y + height - mes.outerSpacing.bottom - mes.borderInsets.bottom
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
bp.paintExcept(g, textX - 2, textY, mes.textWidth + 2, mes.textAscent + mes.textDescent);
bp.paintExcept(g, textX, textY, mes.textWidth, mes.textAscent + mes.textDescent);
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
b.paintBorder(c, g, x, y, width - 1, height - 1);
b.paintBorder(c, g, x, y, width, height);
public void paint(Graphics g) { if (b != null) b.paintBorder(c, g, x, y, width - 1, height - 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
paint(g, holeX + holeWidth, holeY, width - (holeX + holeWidth), stripeHeight);
paint(g, holeX + holeWidth, holeY, x + width - (holeX + holeWidth), stripeHeight);
public void paintExcept(Graphics g, int holeX, int holeY, int holeWidth, int holeHeight) { int stripeHeight; stripeHeight = holeY - y; if (stripeHeight > 0) paint(g, x, y, width, stripeHeight); // patch #1 in the image above stripeHeight = h...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
String[] tokens = cn.split(".");
String[] tokens = cn.split("\\.");
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJavaId...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ConfigFileParser.java/clean/core/src/classpath/gnu/gnu/javax/security/auth/login/ConfigFileParser.java
if (Character.isJavaIdentifierStart(cn.toCharArray()[0])) abort("");
if (! Character.isJavaIdentifierStart(t.toCharArray()[0])) abort("Class name [" + cn + "] contains an invalid sub-package identifier: " + t);
private String validateClassName(String cn) throws IOException { if (cn.startsWith(".") || cn.endsWith(".")) abort("MODULE_CLASS MUST NOT start or end with a '.'"); String[] tokens = cn.split("."); for (int i = 0; i < tokens.length; i++) { String t = tokens[i]; if (Character.isJavaId...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ConfigFileParser.java/clean/core/src/classpath/gnu/gnu/javax/security/auth/login/ConfigFileParser.java
public abstract void put (String name, Object value);
public abstract void put (String name, boolean value);
public abstract void put (String name, Object value);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectOutputStream.java/clean/core/src/classpath/5.0/java/io/ObjectOutputStream.java
throw new IOException("Invalid protocol version requested.");
throw new IllegalArgumentException("Invalid protocol version requested.");
public void useProtocolVersion(int version) throws IOException { if (version != PROTOCOL_VERSION_1 && version != PROTOCOL_VERSION_2) throw new IOException("Invalid protocol version requested."); protocolVersion = version; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectOutputStream.java/clean/core/src/classpath/5.0/java/io/ObjectOutputStream.java
if (nextOID != baseWireHandle) throw new IllegalStateException("Protocol version cannot be changed " + "after serialization started.");
public void useProtocolVersion(int version) throws IOException { if (version != PROTOCOL_VERSION_1 && version != PROTOCOL_VERSION_2) throw new IOException("Invalid protocol version requested."); protocolVersion = version; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectOutputStream.java/clean/core/src/classpath/5.0/java/io/ObjectOutputStream.java
if (fields == ObjectStreamClass.INVALID_FIELDS) throw new InvalidClassException (osc.getName(), "serialPersistentFields is invalid");
protected void writeClassDescriptor(ObjectStreamClass osc) throws IOException { if (osc.isProxyClass) { realOutput.writeByte(TC_PROXYCLASSDESC); Class[] intfs = osc.forClass().getInterfaces(); realOutput.writeInt(intfs.length); for (int i = 0; i < intfs.length; i++) realOutput.writeUTF(intfs[i].getN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectOutputStream.java/clean/core/src/classpath/5.0/java/io/ObjectOutputStream.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setForeground(defaults.getColor("ScrollPane.foreground")); p.setBackground(defaults.getColor("ScrollPane.background")); p.setFont(defaults.getFont("ScrollPane.font")); p.setBorder(defaults.getBorder("ScrollPane.border"));
LookAndFeel.installColorsAndFont(p, "ScrollPane.background", "ScrollPane.foreground", "ScrollPane.font"); LookAndFeel.installBorder(p, "ScrollPane.border");
protected void installDefaults(JScrollPane p) { scrollpane = p; UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setForeground(defaults.getColor("ScrollPane.foreground")); p.setBackground(defaults.getColor("ScrollPane.background")); p.setFont(defaults.getFont("ScrollPane.font")); p.setBo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicScrollPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); popupMenu.setBackground(defaults.getColor("PopupMenu.background")); popupMenu.setBorder(defaults.getBorder("PopupMenu.border")); popupMenu.setFont(defaults.getFont("PopupMenu.font")); popupMenu.setForeground(defaults.getColor("PopupMenu.foreground"));
LookAndFeel.installColorsAndFont(popupMenu, "PopupMenu.background", "PopupMenu.foreground", "PopupMenu.font"); LookAndFeel.installBorder(popupMenu, "PopupMenu.border");
public void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); popupMenu.setBackground(defaults.getColor("PopupMenu.background")); popupMenu.setBorder(defaults.getBorder("PopupMenu.border")); popupMenu.setFont(defaults.getFont("PopupMenu.font")); popupMenu.setForeground(defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
public String getAuthority() {
public String getAuthority() {
public String getAuthority() { return authority; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public final Object getContent() throws IOException {
public Object getContent() throws IOException {
public final Object getContent() throws IOException { return openConnection().getContent(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public int getDefaultPort() { return handler.getDefaultPort();
public int getDefaultPort() { return ph.getDefaultPort();
public int getDefaultPort() { return handler.getDefaultPort(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public String getQuery() {
public String getQuery() {
public String getQuery() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? null : file.substring(quest + 1, file.length()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) {
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph = null;
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { return (URLStreamHandler) cls.newInstance(); } catch (Exception e) { } } }
if (cache_handlers) { if ((ph = (URLStreamHandler) ph_cache.get(protocol)) != null) return ph; }
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
if (factory != null) { URLStreamHandler ph; ph = factory.createURLStreamHandler(protocol); if (ph != null) { if (cache_handlers) { ph_cache.put(protocol, ph.getClass()); } return (ph); } }
if (factory != null) { ph = factory.createURLStreamHandler(protocol); }
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
StringTokenizer st = new StringTokenizer(ph_search_path, "|"); while (st.hasMoreTokens()) { String clsname = st.nextToken() + "." + protocol + ".Handler";
if (ph == null) { String ph_search_path = System.getProperty("java.protocol.handler.pkgs");
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
try { final ClassLoader cl = Thread.currentThread() .getContextClassLoader(); final Class cls = cl.loadClass(clsname); Object obj = cls.newInstance(); URLStreamHandler ph; if (!(obj instanceof URLStreamHandler)) { continue; } else { ph = (URLStreamHandler) obj; }
if (ph_search_path != null) ph_search_path += "|" + DEFAULT_SEARCH_PATH; else ph_search_path = DEFAULT_SEARCH_PATH;
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
if (cache_handlers) { ph_cache.put(protocol, cls); }
StringTokenizer pkgPrefix = new StringTokenizer(ph_search_path, "|");
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
return (ph); } catch (Exception e) { } }
if (systemClassLoader == null) { systemClassLoader = (ClassLoader) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return ClassLoader.getSystemClassLoader(); } }); }
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
return null;
do { try { String clsName = (pkgPrefix.nextToken() + "." + protocol + ".Handler"); Class c = Class.forName(clsName, true, systemClassLoader); ph = (URLStreamHandler) c.newInstance(); } catch (ThreadDeath death) { throw death; } catch (Throwable t) { } } while (ph == null && pkgPrefix.hasMoreTokens()); } if (ph !=...
private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { // First, see if a protocol handler is in our cache if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { r...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public String getUserInfo() {
public String getUserInfo() { if (userInfo != null) return userInfo;
public String getUserInfo() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? null : host.substring(0, at); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
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 ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException("Handler for protocol " + protocol + " not found");
this.ph = getURLStreamHandler(protocol); if (this.ph == 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 ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public boolean sameFile(URL other) { return handler.sameFile(this, other);
public boolean sameFile(URL url) { return ph.sameFile(this, url);
public boolean sameFile(URL other) { return handler.sameFile(this, other); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
String ref) { this.handler = getURLStreamHandler(protocol); this.protocol = protocol.toLowerCase(); this.authority = null;
String ref) { URLStreamHandler protocolHandler = null; protocol = protocol.toLowerCase(); if (! this.protocol.equals(protocol)) protocolHandler = getURLStreamHandler(protocol); if (protocolHandler != null) { this.ph = protocolHandler; this.protocol = protocol; } this.authority = "";
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
if (host != null) this.authority += host; if (port >= 0) this.authority += ":" + port;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) {
public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null)
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
}
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java
if (s != null) {
if (s != null)
public static synchronized void setURLStreamHandlerFactory( URLStreamHandlerFactory fac) { if ((factory != null) && (fac != null)) { throw new Error("URLStreamHandlerFactory already set"); } // Throw an exception if an extant security mgr precludes // setting the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9ce66a563f0f5fab6f343b0309996bee3627787a/URL.java/buggy/core/src/classpath/java/java/net/URL.java