rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
debug("verifying sig=" + sig + " key=" + key);
logger.log (Component.X509, "verifying sig={0} key={1}", new Object[] { sig, key });
private void doVerify(Signature sig, PublicKey key) throws CertificateException, InvalidKeyException, SignatureException { debug("verifying sig=" + sig + " key=" + key); sig.initVerify(key); sig.update(tbsCertBytes); if (!sig.verify(signature)) { throw new CertificateException("signature not v...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start Certificate len == " + cert.getLength());
logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start TBSCertificate len == " + tbsCert.getLength());
logger.log (Component.X509, "start TBSCertificate len == {0}", new Integer (tbsCert.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read version == " + version);
logger.log (Component.X509, "read version == {0}", new Integer (version));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read serial number == " + serialNo);
logger.log (Component.X509, "read serial number == {0}", serialNo);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start AlgorithmIdentifier len == " + certAlgLen);
logger.log (Component.X509, "start AlgorithmIdentifier len == {0}", new Integer (certAlgLen));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read algorithm ID == " + algId);
logger.log (Component.X509, "read algorithm ID == {0}", algId);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read algorithm parameters == " + algVal);
logger.log (Component.X509, "read algorithm parameters == {0}", algVal);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read issuer == " + issuer);
logger.log (Component.X509, "read issuer == {0}", issuer);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read notBefore == " + notBefore); debug("read notAfter == " + notAfter);
logger.log (Component.X509, "read notAfter == {0}", notAfter);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read subject == " + subject);
logger.log (Component.X509, "read subject == {0}", subject);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read subjectPublicKey == " + subjectKey);
logger.log (Component.X509, "read subjectPublicKey == {0}", subjectKey);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read issuerUniqueId == " + issuerUniqueId);
logger.log (Component.X509, "read issuerUniqueId == {0}", issuerUniqueId);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read subjectUniqueId == " + subjectUniqueId);
logger.log (Component.X509, "read subjectUniqueId == {0}", subjectUniqueId);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start Extensions len == " + val.getLength());
logger.log (Component.X509, "start Extensions len == {0}", new Integer (val.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start extension len == " + ext.getLength());
logger.log (Component.X509, "start extension len == {0}", new Integer (ext.getLength()));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("count == " + len);
logger.log (Component.X509, "read extension {0} == {1}", new Object[] { e.getOid (), e }); logger.log (Component.X509, "count == {0}", new Integer (len));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
val = der.read();
logger.log (Component.X509, "read value {0}", val);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
throw new IOException("malformed AlgorithmIdentifier");
throw new CertificateException ("malformed AlgorithmIdentifier");
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("start AlgorithmIdentifier len == " + sigAlgLen);
logger.log (Component.X509, "start AlgorithmIdentifier len == {0}", new Integer (sigAlgLen));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read algorithm id == " + sigAlgId);
logger.log (Component.X509, "read algorithm id == {0}", sigAlgId);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read parameters == " + sigAlgVal);
logger.log (Component.X509, "read parameters == {0}", sigAlgVal);
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
debug("read signature ==\n" + Util.hexDump(signature, ">>>> "));
logger.log (Component.X509, "read signature ==\n{0}", Util.hexDump(signature, ">>>> "));
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3b291bfa6f2e46a23cf5990911194ec6f9f20b8/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
public OID(String strRep)
public OID(int[] components)
public OID(String strRep) { this(strRep, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/OID.java/buggy/core/src/classpath/gnu/gnu/java/security/OID.java
this(strRep, false);
this(components, false);
public OID(String strRep) { this(strRep, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/OID.java/buggy/core/src/classpath/gnu/gnu/java/security/OID.java
public synchronized void log(Level level, String message, Object param)
public synchronized void log(LogRecord record)
public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/Logger.java/buggy/core/src/classpath/java/java/util/logging/Logger.java
StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param);
if (!isLoggable(record.getLevel())) return; if ((filter != null) && !filter.isLoggable(record)) return; /* If no logger name has been set for the log record, * use the name of this logger. */ if (record.getLoggerName() == null) record.setLoggerName(name); /* Avoid that some other thread is changing the logger hierar...
public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/Logger.java/buggy/core/src/classpath/java/java/util/logging/Logger.java
public CertificateException(String msg)
public CertificateException()
public CertificateException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/CertificateException.java/buggy/core/src/classpath/java/java/security/cert/CertificateException.java
super(msg);
public CertificateException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/CertificateException.java/buggy/core/src/classpath/java/java/security/cert/CertificateException.java
public final void update(byte[]data) throws SignatureException
public final void update(byte b) throws SignatureException
public final void update(byte[]data) throws SignatureException { if (state != UNINITIALIZED) engineUpdate(data, 0, data.length); else throw new SignatureException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/Signature.java/buggy/core/src/classpath/java/java/security/Signature.java
engineUpdate(data, 0, data.length);
engineUpdate(b);
public final void update(byte[]data) throws SignatureException { if (state != UNINITIALIZED) engineUpdate(data, 0, data.length); else throw new SignatureException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/Signature.java/buggy/core/src/classpath/java/java/security/Signature.java
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; }
public Object clone() { try { return super.clone();
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/buggy/core/src/classpath/java/java/util/Date.java
catch (CloneNotSupportedException ex) { return null; } }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/buggy/core/src/classpath/java/java/util/Date.java
public DERReader(InputStream in)
public DERReader(byte[] in)
public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERReader.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERReader.java
if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048);
this(new ByteArrayInputStream(in));
public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERReader.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERReader.java
public DERValue read() throws IOException
public static DERValue read(byte[] encoded) throws IOException
public DERValue read() throws IOException { int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERReader.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERReader.java
int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read(encoded); encBuf.write(encoded); value = new DERValue(tag, len, CONSTRUCTED_VALUE, encBuf.toByt...
return new DERReader(encoded).read();
public DERValue read() throws IOException { int tag = in.read(); if (tag == -1) throw new EOFException(); encBuf.write(tag); int len = readLength(); DERValue value = null; if ((tag & CONSTRUCTED) == CONSTRUCTED) { in.mark(2048); byte[] encoded = new byte[len]; in.read...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERReader.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERReader.java
public X500DistinguishedName(byte[] encoded) throws IOException
public X500DistinguishedName(String name)
public X500DistinguishedName(byte[] encoded) throws IOException { this(new ByteArrayInputStream(encoded)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/X500DistinguishedName.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java
this(new ByteArrayInputStream(encoded));
if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); }
public X500DistinguishedName(byte[] encoded) throws IOException { this(new ByteArrayInputStream(encoded)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/X500DistinguishedName.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java
public BitString(byte[] bytes, int offset, int length, int ignoredBits)
public BitString(byte[] bytes, int ignoredBits, boolean doShift)
public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/BitString.java/buggy/core/src/classpath/gnu/gnu/java/security/der/BitString.java
this(bytes, offset, length, ignoredBits, false);
this(bytes, 0, bytes.length, ignoredBits, doShift);
public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/BitString.java/buggy/core/src/classpath/gnu/gnu/java/security/der/BitString.java
public static String hexDump(byte[] buf, String prefix)
public static String hexDump(byte[] buf, int off, int len, String prefix)
public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/Util.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/Util.java
return hexDump(buf, 0, buf.length, prefix);
String nl = System.getProperty("line.separator"); StringBuffer str = new StringBuffer(); int i = 0; while (i < len) { str.append(prefix); str.append(Util.formatInt(i+off, 16, 8)); str.append(" "); String s = Util.toHexString(buf, i+off, Math.min(16, len-i), ' '); str.append(s); for (int j = 56 - (56 - s.length()); j <...
public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/Util.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/Util.java
this.source = source; this.listeners = new EventListenerList(); this.propertyListeners = new HashMap(); }
}
public SwingPropertyChangeSupport(Object source) { super(source); this.source = source; this.listeners = new EventListenerList(); this.propertyListeners = new HashMap(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/SwingPropertyChangeSupport.java/buggy/core/src/classpath/javax/javax/swing/event/SwingPropertyChangeSupport.java
public ArithmeticException(String s) { super(s);
public ArithmeticException() {
public ArithmeticException(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ArithmeticException.java/buggy/core/src/classpath/java/java/lang/ArithmeticException.java
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" );
private BufferType(long offset, ByteBuffer buffer) { if (offset < 0) throw new IllegalArgumentException ("offset < 0");
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
this.buffer = buffer; this.offset = offset; this.length = buffer.remaining();
this.buffer = buffer;
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
this.ofsR = (int)(offset % alignment);
this.offset = offset; this.length = buffer.remaining();
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
this.lst = offset + length; this.lstR = (int)(lst % alignment); this.start = offset - ofsR; this.end = ( lstR == 0 ) ? lst : lst - lstR + alignment;
this.ofsR = (int) (offset % alignment);
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
this.lA = (int)(end - start); this.nA = lA / alignment;
this.lst = offset + length; this.lstR = (int) (lst % alignment);
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
int r = nA; if ( length == 0 ) { type = EMPTY; } else { if ( ( ofsR != 0 ) || ( lstR != 0 ) ) { if ( lst <= ( start + alignment ) ) { type = CONTAINED; r--; } else { type = CROSSED; if ( ofsR != 0 ) r--; if ( lstR != 0 ) r--; } } else { type = ALIGNED; } }
this.start = offset - ofsR; this.end = (lstR == 0) ? lst : lst - lstR + alignment;
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
nB = r; lB = nB * alignment; }
this.lA = (int) (end - start); this.nA = lA / alignment; int nB = nA; long s = start; if (length == 0) { type = EMPTY; } else { if ((ofsR != 0) || (lstR != 0)) { if (lst <= (start + alignment)) { type = CONTAINED; nB--; } else { type = CROSSED; if (ofsR != 0) { nB--; s += alignment; } if (lstR != 0) nB--; } } else ...
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
private void copyFrom ( ByteBuffer src, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" );
private void copyFrom(ByteBuffer src, int ofs, int len) { if (len <= 0) throw new IllegalArgumentException ("len <= 0, shouldn't happen");
private void copyFrom ( ByteBuffer src, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( src,ofs, buffer,buffer.position(), l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" );
if (ofs < 0) throw new IllegalArgumentException ("ofs < 0, shouldn't happen");
private void copyFrom ( ByteBuffer src, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( src,ofs, buffer,buffer.position(), l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
ByteBufferUtils.buffercopy ( src,ofs, buffer,buffer.position(), len ); }
ByteBufferUtils.buffercopy (src, ofs, buffer, buffer.position(), len); }
private void copyFrom ( ByteBuffer src, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( src,ofs, buffer,buffer.position(), l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
private void copyTo ( ByteBuffer dst, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" );
private void copyTo(ByteBuffer dst, int ofs, int len) { if (len <= 0) throw new IllegalArgumentException ("len <= 0, shouldn't happen");
private void copyTo ( ByteBuffer dst, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( buffer,buffer.position(), dst,ofs, len...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" );
if (ofs < 0) throw new IllegalArgumentException ("ofs < 0, shouldn't happen");
private void copyTo ( ByteBuffer dst, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( buffer,buffer.position(), dst,ofs, len...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
ByteBufferUtils.buffercopy ( buffer,buffer.position(), dst,ofs, len ); }
ByteBufferUtils.buffercopy (buffer, buffer.position(), dst, ofs, len); }
private void copyTo ( ByteBuffer dst, int ofs, int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); if ( ofs < 0 ) throw new IllegalArgumentException ( "ofs < 0, shouldn't happen" ); ByteBufferUtils.buffercopy ( buffer,buffer.position(), dst,ofs, len...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
private void limit ( int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); buffer.limit ( buffer.position() + len ); }
private void limit(int len) { if (len <= 0) throw new IllegalArgumentException ("len <= 0, shouldn't happen"); buffer.limit(buffer.position() + len); }
private void limit ( int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); buffer.limit ( buffer.position() + len ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
buffer.limit ( length ); }
buffer.limit(length); }
private void restore() { buffer.limit ( length ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder();
private String toBlockString(long offset, long length) { StringBuilder str = new StringBuilder();
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
switch ( type ) { case EMPTY: str.append ( "Empty" ); break;
switch (type) { case EMPTY: str.append("Empty"); break;
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case CONTAINED: str.append ( "Contained: " ); break;
case CONTAINED: str.append("Contained: "); break;
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case CROSSED: str.append ( "Crossed: " ); break;
case CROSSED: str.append("Crossed: "); break;
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case ALIGNED: str.append ( "Aligned: " ); break; default: throw new IllegalArgumentException ( "no type: shouldn't happen" ); }
case ALIGNED: str.append("Aligned: "); break;
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
if ( type != EMPTY ) str.append ( "pos[" + buffer.position() + "] " + "ofs[" + offset + "] " + "len[" + length + "]" );
default: throw new IllegalArgumentException ("no type: shouldn't happen"); }
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
return str.toString(); }
if (type != EMPTY) str.append("pos[" + buffer.position() + "] " + "ofs[" + offset + "] " + "len[" + length + "]"); return str.toString(); }
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
StringBuilder str = new StringBuilder(); str.append ( "offset[" + offset + "] " + "length[" + length + "] " + "lst[" + lst + "] " + "alignment[" + alignment + "]\n" );
StringBuilder str = new StringBuilder();
public String toString() { StringBuilder str = new StringBuilder(); str.append ( "offset[" + offset + "] " + "length[" + length + "] " + "lst[" + lst + "] " + "alignment[" + alignment + "]\n" ); str.append ( "ofsR[" + ofsR + "] " + "lstR[" + lstR + "] " + "start[" + s...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
str.append ( "ofsR[" + ofsR + "] " + "lstR[" + lstR + "] " + "start[" + start + "] " + "end[" + end + "] " + "lA[" + lA + "] " + "lB[" + lB + "]\n" ); str.append ( toTypeString() ); return str.toString(); }
str.append("offset[" + offset + "] " + "length[" + length + "] " + "lst[" + lst + "] " + "alignment[" + alignment + "]\n"); str.append("ofsR[" + ofsR + "] " + "lstR[" + lstR + "] " + "start[" + start + "] " + "end[" + end + "] " + "lA[" + lA + "] " + "sB[" + sB + "] " + "lB[" + lB + "]\n"); str.append(toTypeString())...
public String toString() { StringBuilder str = new StringBuilder(); str.append ( "offset[" + offset + "] " + "length[" + length + "] " + "lst[" + lst + "] " + "alignment[" + alignment + "]\n" ); str.append ( "ofsR[" + ofsR + "] " + "lstR[" + lstR + "] " + "start[" + s...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
StringBuilder str = new StringBuilder();
StringBuilder str = new StringBuilder();
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break;
switch (type) { case EMPTY: str.append("Empty"); break;
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append ( "H[" + start + ":" + ofsR + "] " ); if ( nB != 0 ) str.append ( "B[" + (start+alignment) + ":" + lB + "] " ); if ( lstR != 0 ) str.append ( "T[" + (end-alignment) + ":" + lstR + "]" ); break;
case CONTAINED: str.append("Contained[" + start + ":" + length + "]"); break;
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case ALIGNED: str.append ( "Aligned[" + start + ":" + lA + "]" ); break;
case CROSSED: str.append("Crossed "); if (ofsR != 0) str.append("H[" + start + ":" + ofsR + "] "); if (lB != 0) str.append("B[" + sB + ":" + lB + "] "); if (lstR != 0) str.append("T[" + (end - alignment) + ":" + lstR + "]"); break;
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
default: throw new IllegalArgumentException ( "no type: shouldn't happen" ); }
case ALIGNED: str.append("Aligned[" + start + ":" + lA + "]"); break;
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
return str.toString(); }
default: throw new IllegalArgumentException ("no type: shouldn't happen"); } return str.toString(); }
private String toTypeString() { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained[" + start + ":" + length + "]" ); break; case CROSSED: str.append ( "Crossed " ); if ( ofsR != 0 ) str.append (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
this.parentApi = parentApi; this.alignment = alignment; if (alignment <= 0) { throw new IllegalArgumentException("alignment <= 0"); }
this.parentApi = parentApi; this.alignment = alignment; if (alignment <= 0) { throw new IllegalArgumentException("alignment <= 0"); }
public BlockAlignmentSupport(BlockDeviceAPI parentApi, int alignment) { this.parentApi = parentApi; this.alignment = alignment; if (alignment <= 0) { throw new IllegalArgumentException("alignment <= 0"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
parentApi.flush();
parentApi.flush();
public void flush() throws IOException { parentApi.flush(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
return alignment;
return alignment;
public int getAlignment() { return alignment; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
return parentApi.getLength();
return parentApi.getLength();
public long getLength() throws IOException { return parentApi.getLength(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
private void mylog ( String msg ) { if ( dolog ) log.debug ( msg );
private void mylog(String msg) { if (dolog) log.debug(msg);
private void mylog ( String msg ) { if ( dolog ) log.debug ( msg ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break;
public void read(long offset, ByteBuffer dst) throws IOException { BufferType t = new BufferType(offset, dst);
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = By...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyFrom ( buf, t.ofsR, t.length ); } break;
mylog("\n" + t);
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = By...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.CROSSED: if ( t.ofsR != 0 ) { mylog ( "read[HEAD] " + t.toBlockString ( t.ofsR, alignment - t.ofsR ) ); ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyFrom ( buf, t.ofsR, alignment - t.ofsR ); } if ( t.nB != 0 ) { mylog ( "read[BODY] " + t.toBlockString ( t....
switch (t.type) { case BufferType.EMPTY: break;
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = By...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.ALIGNED: mylog ( "read[ALGN] " + t.toBlockString ( t.offset, t.length ) ); parentApi.read ( offset, dst ); break;
case BufferType.CONTAINED: { mylog("read[CONT] " + t.toBlockString(t.ofsR, t.length)); ByteBuffer buf = ByteBuffer.allocate(alignment); parentApi.read(t.start, buf); t.copyFrom(buf, t.ofsR, t.length); } break;
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = By...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
default: throw new IllegalArgumentException ( "no type: shouldn't happen" ); }
case BufferType.CROSSED: ByteBuffer buf = ByteBuffer.allocate(alignment); if (t.ofsR != 0) { mylog("read[HEAD] " + t.toBlockString(t.ofsR, alignment - t.ofsR)); parentApi.read(t.start, buf); t.copyFrom(buf, t.ofsR, alignment - t.ofsR); } if (t.lB != 0) { mylog("read[BODY] " + t.toBlockString(t.sB, t.lB)); t.limit(t...
public void read ( long offset, ByteBuffer dst ) throws IOException { BufferType t = new BufferType ( offset, dst ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: break; case BufferType.CONTAINED: { mylog ( "read[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf = By...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
alignment = i;
alignment = i;
public void setAlignment(int i) { alignment = i; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return;
public void write(long offset, ByteBuffer src) throws IOException { BufferType t = new BufferType(offset, src);
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return; case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyTo ( buf, t.ofsR, t.length ); buf.clear(); parentApi.write ( t.start, buf ); } break;
mylog("\n" + t);
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return; case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.CROSSED: if ( t.ofsR != 0 ) { mylog ( "write[HEAD] " + t.toBlockString ( t.ofsR, alignment - t.ofsR ) ); ByteBuffer buf = ByteBuffer.allocate ( alignment ); parentApi.read ( t.start, buf ); t.copyTo ( buf, t.ofsR, alignment - t.ofsR ); buf.clear(); parentApi.write ( t.start, buf ); } if ( t.nB != 0 )...
switch (t.type) { case BufferType.EMPTY: return;
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return; case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
case BufferType.ALIGNED: mylog ( "writeALGN] " + t.toBlockString ( t.offset, t.length ) ); parentApi.write ( offset, src ); break;
case BufferType.CONTAINED: { mylog("write[CONT] " + t.toBlockString(t.ofsR, t.length)); ByteBuffer buf = ByteBuffer.allocate(alignment); parentApi.read(t.start, buf); t.copyTo(buf, t.ofsR, t.length); buf.clear(); parentApi.write(t.start, buf); } break;
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return; case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
default: throw new IllegalArgumentException ( "no type: shouldn't happen" ); }
case BufferType.CROSSED: ByteBuffer buf = ByteBuffer.allocate(alignment); if (t.ofsR != 0) { mylog("write[HEAD] " + t.toBlockString(t.ofsR, alignment - t.ofsR)); parentApi.read(t.start, buf); t.copyTo(buf, t.ofsR, alignment - t.ofsR); buf.clear(); parentApi.write(t.start, buf); } if (t.lB != 0) { mylog("write[BODY]...
public void write ( long offset, ByteBuffer src ) throws IOException { BufferType t = new BufferType ( offset, src ); mylog ( "\n" + t ); switch ( t.type ) { case BufferType.EMPTY: return; case BufferType.CONTAINED: { mylog ( "write[CONT] " + t.toBlockString ( t.ofsR, t.length ) ); // ByteBuffer buf =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
public final Buffer limit (int newLimit)
public final int limit ()
public final Buffer limit (int newLimit) { if ((newLimit < 0) || (newLimit > cap)) throw new IllegalArgumentException (); if (newLimit < mark) mark = -1; if (pos > newLimit) pos = newLimit; limit = newLimit; return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java
if ((newLimit < 0) || (newLimit > cap)) throw new IllegalArgumentException (); if (newLimit < mark) mark = -1; if (pos > newLimit) pos = newLimit; limit = newLimit; return this;
return limit;
public final Buffer limit (int newLimit) { if ((newLimit < 0) || (newLimit > cap)) throw new IllegalArgumentException (); if (newLimit < mark) mark = -1; if (pos > newLimit) pos = newLimit; limit = newLimit; return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Buffer.java/buggy/core/src/classpath/java/java/nio/Buffer.java
public Menu(String label) { this(label, false); }
Menu() { }
public Menu(String label) { this(label, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
return false;
String headless = SystemProperties.getProperty("java.awt.headless", null); return "true".equalsIgnoreCase(headless);
public static boolean isHeadless() { // XXX Should be: getLocalGraphicsEnvironment().isHeadlessInstance(); return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e60a457237548cb2220b3d83b95ea32b1605264/GraphicsEnvironment.java/buggy/core/src/classpath/java/java/awt/GraphicsEnvironment.java
public void addNotify() { if (peer != null)
addNotify() { if (peer == null)
public void addNotify() { if (peer != null) peer = getToolkit().createMenu(this); super.addNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
super.addNotify();
Enumeration e = items.elements(); while (e.hasMoreElements()) { MenuItem mi = (MenuItem)e.nextElement(); mi.addNotify();
public void addNotify() { if (peer != null) peer = getToolkit().createMenu(this); super.addNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
super.addNotify (); }
public void addNotify() { if (peer != null) peer = getToolkit().createMenu(this); super.addNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
public abstract void show (Component origin, int x, int y);
void show (Component origin, int x, int y);
public abstract void show (Component origin, int x, int y);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/PopupMenuPeer.java/buggy/core/src/classpath/java/java/awt/peer/PopupMenuPeer.java
public AccessibleJLayeredPane()
protected AccessibleJLayeredPane()
public AccessibleJLayeredPane() { // Nothing to do here. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java