rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public String getVolumeIdentifier() { return volumeIdentifier; }
public String getVolumeIdentifier() { return volumeIdentifier; }
public String getVolumeIdentifier() { return volumeIdentifier; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/VolumeDescriptor.java/clean/fs/src/fs/org/jnode/fs/iso9660/VolumeDescriptor.java
public String getVolumeSetIdentifier() { return volumeSetIdentifier; }
public String getVolumeSetIdentifier() { return volumeSetIdentifier; }
public String getVolumeSetIdentifier() { return volumeSetIdentifier; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/VolumeDescriptor.java/clean/fs/src/fs/org/jnode/fs/iso9660/VolumeDescriptor.java
return volumeSetSize; }
return volumeSetSize; }
public int getVolumeSetSize() { return volumeSetSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/VolumeDescriptor.java/clean/fs/src/fs/org/jnode/fs/iso9660/VolumeDescriptor.java
public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.out.pri...
public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.out.pri...
public void printOut() { System.out.println("Primary volume information: "); System.out.println(" - Standard Identifier: " + this.getStandardIdentifier()); System.out.println(" - System Identifier: " + this.getSystemIdentifier()); System.out.println(" - Volume Identifier: " + this.getVolumeIdentifier()); System.o...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/VolumeDescriptor.java/clean/fs/src/fs/org/jnode/fs/iso9660/VolumeDescriptor.java
final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1);
final int pos = screen.getRowColFromPoint(me.getX(),me.getY());
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bc7e11ab017c3feeba41d87e99dba276258b7c41/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
int ePos = screen.getRowColFromPoint(workR.width , workR.height );
int ePos = screen.getRowColFromPoint(workR.width + 1 , workR.height + 1 );
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bc7e11ab017c3feeba41d87e99dba276258b7c41/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
filledSlider = UIManager.getBoolean(SLIDER_FILL);
public MetalSliderUI() { super(null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/MetalSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSliderUI.java
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSliderUI instance; if (o == null) { instance = new MetalSliderUI(); instances.put(component, instance); } else instance = (Met...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/MetalSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalSliderUI.java
row = 0; sb = new StringBuffer();
public void createFileInstance(String fileName) throws FileNotFoundException { fout = new ZipOutputStream(new FileOutputStream(fileName)); fout.setMethod(ZipOutputStream.DEFLATED); writeManifestEntry(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/OpenOfficeOutputFilter.java/buggy/tn5250j/src/org/tn5250j/tools/filters/OpenOfficeOutputFilter.java
VirtualStack vstack, X86RegisterPool pool) {
VirtualStack vstack, X86RegisterPool pool, ItemFactory ifac) {
EmitterContext(AbstractX86Stream os, X86CompilerHelper helper, VirtualStack vstack, X86RegisterPool pool) { this.os = os; this.helper = helper; this.vstack = vstack; this.pool = pool; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
this.itemfac = ifac;
EmitterContext(AbstractX86Stream os, X86CompilerHelper helper, VirtualStack vstack, X86RegisterPool pool) { this.os = os; this.helper = helper; this.vstack = vstack; this.pool = pool; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
X86CompilerHelper getHelper() {
final X86CompilerHelper getHelper() {
X86CompilerHelper getHelper() { return helper; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
X86RegisterPool getPool() {
final X86RegisterPool getPool() {
X86RegisterPool getPool() { return pool; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
AbstractX86Stream getStream() {
final AbstractX86Stream getStream() {
AbstractX86Stream getStream() { return os; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
VirtualStack getVStack() {
final VirtualStack getVStack() {
VirtualStack getVStack() { return vstack; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/EmitterContext.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/EmitterContext.java
bad.minor = Minor.Any;
public static WrongAdapter extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (WrongAdapter) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("WrongAdapter expected"); bad...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/WrongAdapterHelper.java/clean/core/src/classpath/org/org/omg/PortableServer/POAPackage/WrongAdapterHelper.java
ic.imageComplete(ImageConsumer.SINGLEFRAME);
ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE);
public void startProduction(ImageConsumer ic) { if (! (consumers.contains(ic))) consumers.addElement(ic); Vector list = (Vector) consumers.clone(); for (int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture(ic); if (animated) ic.imageComplete(ImageConsumer.SINGLE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/MemoryImageSource.java/clean/core/src/classpath/java/java/awt/image/MemoryImageSource.java
throw new BAD_OPERATION();
BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad;
public static AlreadyBound extract(Any a) { try { return ((AlreadyBoundHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/AlreadyBoundHelper.java/clean/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/AlreadyBoundHelper.java
bad.minor = Minor.Any;
public static InvalidName extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (InvalidName) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("InvalidName expected"); bad.in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InvalidNameHelper.java/clean/core/src/classpath/org/org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHelper.java
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
AxisReadOrder.add(AxisObj.get(attrs.getValue(i)));
AxisReadOrder.add(0, AxisObj.get(attrs.getValue(i)));
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // for node sets the iteration order for how we will setData // in the datacube (important for delimited and formatted reads). int size = attrs.getLength(); for (int i = 0; i < size; i++) {...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
newparameter = CurrentArray.addParameter(newparameter);
newparameter = (Parameter) CurrentArray.addParameter(newparameter);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
newparameter = CurrentStructure.addParameter(newparameter);
newparameter = (Parameter) CurrentStructure.addParameter(newparameter);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
newparameter = ((Array) LastParameterGroupParentObject).addParameter(newparameter);
newparameter = (Parameter) ((Array) LastParameterGroupParentObject).addParameter(newparameter);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
newparameter = ((Structure) LastParameterGroupParentObject).addParameter(newparameter);
newparameter = (Parameter) ((Structure) LastParameterGroupParentObject).addParameter(newparameter);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
CurrentStructure = XDF;
setCurrentStructure(XDF);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // The root node is just a "structure" node, // but is always the first one. XDF.setXMLAttributes(attrs); // set XML attributes from passed list CurrentStructure = XDF; // current working structure...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
private Array appendArrayToArray (Array arrayToAppendTo, Array arrayToAdd) {
private ArrayInterface appendArrayToArray ( ArrayInterface arrayToAppendTo, ArrayInterface arrayToAdd ) {
private Array appendArrayToArray (Array arrayToAppendTo, Array arrayToAdd) { if (arrayToAppendTo != null) { List origAxisList = arrayToAppendTo.getAxes(); List addAxisList = arrayToAdd.getAxes(); Hashtable correspondingAddAxis = new Hashtable(); Hashtable correspon...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Array getCurrentArray () {
public ArrayInterface getCurrentArray () {
public Array getCurrentArray () { return CurrentArray; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Structure getCurrentStructure () {
public StructureInterface getCurrentStructure () {
public Structure getCurrentStructure () { return CurrentStructure; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
XDF = new Structure();
XDF = new XDF();
private void init () { // set up logging, needed ?? Log.configure("XDFLogConfig"); // assign/init 'globals' (e.g. object fields) XDF = new Structure(); Options = new Hashtable(); startElementHandlerHashtable = new Hashtable(); // start node handler charDataHandlerHashtable...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public void setCurrentArray(Array array) {
private void setCurrentArray(ArrayInterface array) {
public void setCurrentArray(Array array) { CurrentArray = array; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public void setCurrentDatatypeObject(Object object) {
private void setCurrentDatatypeObject(Object object) {
public void setCurrentDatatypeObject(Object object) { CurrentDatatypeObject = object; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public void setCurrentStructure (Structure structure) {
private void setCurrentStructure (StructureInterface structure) {
public void setCurrentStructure (Structure structure) { CurrentStructure = structure; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9fcb98310830418b64d8a8704f0c7e3afa93a2d0/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
super(n, e);
this(Registry.RAW_ENCODING_ID, n, e);
public GnuRSAPublicKey(final BigInteger n, final BigInteger e) { // super(n); super(n, e); // // this.e = e; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof RSAPublicKey)) { return false; } final RSAPublicKey that = (RSAPublicKey) obj; // return super.equals(that) && e.equals(that.getPublicExponent()); return super.equal...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
throw new IllegalArgumentException("format");
throw new IllegalArgumentException("Unsupported encoding format: " + format);
public byte[] getEncoded(final int format) { final byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new RSAKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("format"); } return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
final IKeyPairCodec codec = new RSAKeyPairRawCodec(); return (GnuRSAPublicKey) codec.decodePublicKey(k);
return (GnuRSAPublicKey) new RSAKeyPairRawCodec().decodePublicKey(k);
public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
else
catch (IllegalArgumentException ignored)
public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
throw new IllegalArgumentException("magic");
public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
return (GnuRSAPublicKey) new RSAKeyPairX509Codec().decodePublicKey(k);
public static GnuRSAPublicKey valueOf(final byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/GnuRSAPublicKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/GnuRSAPublicKey.java
if (inf == null) throw new IOException("stream closed");
public int available() throws IOException { return inf.finished() ? 0 : 1; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java
protected void fill() throws IOException { len = in.read(buf, 0, buf.length); if (len < 0) throw new ZipException("Deflated stream ends early."); inf.setInput(buf, 0, len); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java
int len = 2048; if (n < len) len = (int) n; byte[] tmp = new byte[len]; return (long) read(tmp);
if (n == 0) return 0; int buflen = (int) Math.min(n, 2048); byte[] tmpbuf = new byte[buflen]; long skipped = 0L; while (n > 0L) { int numread = read(tmpbuf, 0, buflen); if (numread <= 0) break; n -= numread; skipped += numread; buflen = (int) Math.min(n, 2048); } return skipped;
public long skip(long n) throws IOException { if (n < 0) throw new IllegalArgumentException(); int len = 2048; if (n < len) len = (int) n; byte[] tmp = new byte[len]; return (long) read(tmp); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/InflaterInputStream.java/clean/core/src/classpath/java/java/util/zip/InflaterInputStream.java
System.out.print("\n Buffer Dump of data from AS400: ");
log.info("\n Buffer Dump of data from AS400: ");
public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
System.out.println("Cannot dump from host\n\r");
log.warn("Cannot dump from host\n\r");
public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
log.debug("partial stream found");
private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
log.debug("partial stream saved");
private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
System.out.println("load stream error " + ex.getMessage());
log.warn("load stream error " + ex.getMessage());
private final void loadStream(byte abyte0[], int i) throws IOException { int j = 0; int size = 0; if (saveStream == null) { j = (abyte0[i] & 0xff) << 8 | abyte0[i + 1] & 0xff; size = abyte0.length; } else { size = saveStream.length + abyte0.length; byte[] ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
System.out.println(" run() " + ioef.getMessage());
log.warn(" run() " + ioef.getMessage());
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
System.out.println(" DataStreamProducer thread interrupted and stopping ");
log.warn(" DataStreamProducer thread interrupted and stopping ");
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
log.warn(ioe.getMessage());
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
System.out.println(ex.getMessage());
log.warn(ex.getMessage());
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java
getThread.yield();
Thread.yield();
public void run() { Socket socket = null; DataInputStream datainputstream = null; String localFileFull = localFileF; executeCommand("TYPE","I"); try { socket = createPassiveSocket("RETR " + remoteFileF); if(socket != null) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a214bcb897ee9098f3737a95f7be3c969f3651cb/FTP5250Prot.java/clean/tn5250j/src/org/tn5250j/tools/FTP5250Prot.java
public StackManagerImpl(X86RegisterPool pool) {
public StackManagerImpl(X86RegisterPool pool, ItemFactory ifac) {
public StackManagerImpl(X86RegisterPool pool) { this.pool = pool; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
this.ifac = ifac;
public StackManagerImpl(X86RegisterPool pool) { this.pool = pool; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
final Item item = WordItem.createReg(jvmType, reg);
final Item item = ifac.createReg(jvmType, reg);
public void writePUSH(int jvmType, Register reg) { final Item item = WordItem.createReg(jvmType, reg); Item.assertCondition(pool.request(reg, item), "request"); push(item); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
final Item item; switch (jvmType) { case JvmType.LONG: item = LongItem.createReg(lsbReg, msbReg); break; case JvmType.DOUBLE: item = DoubleItem.createReg(lsbReg, msbReg); break; default: throw new IllegalArgumentException("Unknown JvmType " + jvmType); }
final Item item = ifac.createReg(jvmType, lsbReg, msbReg);
public void writePUSH64(int jvmType, Register lsbReg, Register msbReg) { final Item item; switch (jvmType) { case JvmType.LONG: item = LongItem.createReg(lsbReg, msbReg); break; case JvmType.DOUBLE: item = DoubleItem.createReg(lsbReg, msbReg); break; default: throw new IllegalArgumentExceptio...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
final AbstractX86StackManager createStackMgr(X86RegisterPool pool) { return new StackManagerImpl(pool);
final AbstractX86StackManager createStackMgr(X86RegisterPool pool, ItemFactory ifac) { return new StackManagerImpl(pool, ifac);
final AbstractX86StackManager createStackMgr(X86RegisterPool pool) { return new StackManagerImpl(pool); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
final void pushAll(TypeStack tstack) {
final void pushAll(ItemFactory ifac, TypeStack tstack) {
final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
final Item item = VirtualStack.createStack(type);
final Item item = ifac.createStack(type);
final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java
m.minor = Minor.UserException;
public TypeCode type() { InputStream in = null; try { OutputStream out = _request("_get_type", true); in = _invoke(out); return TypeCodeHelper.read(in); } catch (ApplicationException ex) { in = ex.getInputStream(); throw new org.omg.CORBA.MARSHAL(ex.getId())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/_IDLTypeStub.java/buggy/core/src/classpath/org/org/omg/CORBA/_IDLTypeStub.java
return uiClassID;
return "ComboBoxUI";
public String getUIClassID() { return uiClassID; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable);
firePropertyChange("editable", ! isEditable, isEditable);
public void setEditable(boolean editable) { if (isEditable != editable) { isEditable = editable; firePropertyChange(EDITABLE_CHANGED_PROPERTY, ! isEditable, isEditable); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(EDITOR_CHANGED_PROPERTY, oldEditor, editor);
firePropertyChange("editor", oldEditor, editor);
public void setEditor(ComboBoxEditor newEditor) { if (editor == newEditor) return; if (editor != null) editor.removeActionListener(this); ComboBoxEditor oldEditor = editor; editor = newEditor; if (editor != null) editor.addActionListener(this); firePropertyChange(EDITOR_CHANGED_PROPE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(ENABLED_CHANGED_PROPERTY, oldEnabled, (boolean) enabled);
firePropertyChange("enabled", oldEnabled, enabled);
public void setEnabled(boolean enabled) { boolean oldEnabled = super.isEnabled(); if (enabled != oldEnabled) { super.setEnabled(enabled); firePropertyChange(ENABLED_CHANGED_PROPERTY, oldEnabled, (boolean) enabled); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY,
firePropertyChange("maximumRowCount",
public void setMaximumRowCount(int rowCount) { if (maximumRowCount != rowCount) { int oldMaximumRowCount = maximumRowCount; maximumRowCount = rowCount; firePropertyChange(MAXIMUM_ROW_COUNT_CHANGED_PROPERTY, oldMaximumRowCount, maximumRowCount); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(MODEL_CHANGED_PROPERTY, oldDataModel, dataModel);
firePropertyChange("model", oldDataModel, dataModel);
public void setModel(ComboBoxModel newDataModel) { // dataModel is null if it this method is called from inside the constructors. if(dataModel != null) { // Prevents unneccessary updates. if (dataModel == newDataModel) return; // Removes itself (as DataListener) from the to-be-replaced model. dat...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer,
firePropertyChange("renderer", oldRenderer,
public void setRenderer(ListCellRenderer aRenderer) { if (renderer != aRenderer) { ListCellRenderer oldRenderer = renderer; renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, renderer); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JComboBox.java/clean/core/src/classpath/javax/javax/swing/JComboBox.java
Unsafe.debug(nr); Unsafe.debug(address);
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberUti...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/SoftByteCodes.java/buggy/core/src/core/org/jnode/vm/SoftByteCodes.java
final String state = " (" + Unsafe.getCurrentProcessor().getCurrentThread().getReadableErrorState() + ")";
final VmThread current = Unsafe.getCurrentProcessor().getCurrentThread(); final String state = " (" + current.getReadableErrorState() + ")"; current.setInSystemException();
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberUti...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/SoftByteCodes.java/buggy/core/src/core/org/jnode/vm/SoftByteCodes.java
protected AccessibleObject() {
protected AccessibleObject() {
protected AccessibleObject() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/AccessibleObject.java/buggy/core/src/classpath/java/java/lang/reflect/AccessibleObject.java
private static final void checkPermission() {
private static final void checkPermission() {
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/AccessibleObject.java/buggy/core/src/classpath/java/java/lang/reflect/AccessibleObject.java
if (sm != null) {
if (sm != null)
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/AccessibleObject.java/buggy/core/src/classpath/java/java/lang/reflect/AccessibleObject.java
}
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/AccessibleObject.java/buggy/core/src/classpath/java/java/lang/reflect/AccessibleObject.java
public boolean isAccessible() {
public boolean isAccessible() {
public boolean isAccessible() { return flag; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/AccessibleObject.java/buggy/core/src/classpath/java/java/lang/reflect/AccessibleObject.java
public DesktopPaneUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DesktopPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/DesktopPaneUI.java
protected void resolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point);
protected void resolve(PluginRegistryModel registry) throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) registry.getExtensionPoint(point);
protected void resolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); if (ep == null) { throw new PluginException("Unknown extension-point " + point); } else { ep.add(this); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ExtensionModel.java/clean/core/src/core/org/jnode/plugin/model/ExtensionModel.java
protected void unresolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point);
protected void unresolve(PluginRegistryModel registry) throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) registry.getExtensionPoint(point);
protected void unresolve() throws PluginException { final ExtensionPointModel ep = (ExtensionPointModel) getDeclaringPluginDescriptor().getPluginRegistry().getExtensionPoint(point); if (ep == null) { throw new PluginException("Unknown extension-point " + point); } else { ep.remove(this); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ExtensionModel.java/clean/core/src/core/org/jnode/plugin/model/ExtensionModel.java
helper.writeGetStaticsEntry(curInstrLabel, resultr, (VmIsolatedStaticsEntry)sf);
final GPR tmp = (GPR) L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false); helper.writeGetStaticsEntry(curInstrLabel, resultr, (VmIsolatedStaticsEntry) sf, tmp); L1AHelper.releaseRegister(eContext, tmp);
public final void visit_getstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize if needed if (!sf.getDeclaringClass().isInitialized()) { final X86Regis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7b4429d600268671b52c990e550f7e161b047152/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
lock(position, size, shared, true);
lock(position, size, shared, false);
public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fc10db4f3c7e4495c850eee76c5f5ea45b8979bc/FileChannelImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/channels/FileChannelImpl.java
writeOut(outputstream, "<for axisIdRef=\""+axis.getAxisId()+"\">");
writeOut(outputstream, "<for axisIdRef=\""); writeOutAttribute(outputstream, axis.getAxisId()); writeOut(outputstream, "\">");
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { ArrayList axisIds = new ArrayList (); int numberOfAxes = 0; synchronized (parentArray) { List axisList = parentArray.getAxisList(); Iterator iter = axisList.iterator(); while(iter.hasNext()) { ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/FormattedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/FormattedXMLDataIOStyle.java
CurrentArray.getDataCube().setEndByte(null); }
public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/9f85ef3e605fa9d8c5bc044b9e802c1f428757f6/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
int width = cols.getColumn(i).getWidth() + (gap == null ? 0 : gap.width);
int width = cols.getColumn(i).getWidth() + (gap == null ? 0 : gap.width);
public int columnAtPoint(Point point) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).getWidth() + (gap == null...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
}
public int columnAtPoint(Point point) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).getWidth() + (gap == null...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.sto...
public void editingCanceled (ChangeEvent event) { repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = ...
public void editingStopped (ChangeEvent event) { repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
}
public int rowAtPoint(Point point) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
if (rowHeight < 1)
if (r < 1)
public void setRowHeight(int r) { if (rowHeight < 1) throw new IllegalArgumentException(); rowHeight = r; revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
if (!isCellEditable(row, column)) return; if (value instanceof Component) add((Component)value);
public void setValueAt(Object value, int row, int column) { dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
Element() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/Element.java/buggy/core/src/classpath/javax/javax/swing/text/html/parser/Element.java
private void closeDialog()
void closeDialog()
private void closeDialog() { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).dispose(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java
private void filterEntries()
void filterEntries()
private void filterEntries() { FileFilter[] list = filechooser.getChoosableFileFilters(); if (filters.getItemCount() > 0) filters.removeAllItems(); int index = -1; String selected = filechooser.getFileFilter().getDescription(); for (int i = 0; i < list.length; i++) { if (selected.equals(list...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java
AttributeSet atts = data[0].getAttributes();
AttributeSet atts = child.getAttributes();
private void createFracture(ElementSpec[] data) { BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element child = paragraph.getElement(index); Edit edit = getEditForParagraphAndIndex(paragraph, index); AttributeSet...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.pos = offset; this.endOffset = offset + length; this.length = length; documentEvent = ev; edits...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
int index = paragraph.getElementIndex(offset);
int index = paragraph.getElementIndex(pos);
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
int newEndOffset = offset + first.length;
int newEndOffset = pos + first.length;
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
if (offset != 0)
if (pos != 0)
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
offset);
pos);
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultStyledDocument.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java