rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
};
result = Collections.enumeration(aliases);
public Enumeration engineAliases() { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return new Enumeration() { public boolean hasMoreElements() { return false; } public Object nextElement...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
return keyring.aliases();
return result;
public Enumeration engineAliases() { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return new Enumeration() { public boolean hasMoreElements() { return false; } public Object nextElement...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } return keyring.containsAlias(alias);
log.entering(this.getClass().getName(), "engineContainsAlias", alias); ensureLoaded(); boolean inPrivateKR = privateKR.containsAlias(alias); log.finest("inPrivateKR=" + inPrivateKR); boolean inPublicKR = publicKR.containsAlias(alias); log.finest("inPublicKR=" + inPublicKR); boolean result = inPrivateKR || inPublicKR; ...
public boolean engineContainsAlias(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } return keyring.containsAlias(alias); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring != null) { keyring.remove(alias); }
log.entering(this.getClass().getName(), "engineDeleteEntry", alias); ensureLoaded(); if (privateKR.containsAlias(alias)) privateKR.remove(alias); else if (publicKR.containsAlias(alias)) publicKR.remove(alias); else log.finer("Unknwon alias: " + alias); log.exiting(this.getClass().getName(), "engineDeleteEntry");
public void engineDeleteEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring != null) { keyring.remove(alias); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } return ((IPublicKeyring) keyring).getCertificate(alias);
log.entering(this.getClass().getName(), "engineGetCertificate", alias); ensureLoaded(); Certificate result = publicKR.getCertificate(alias); log.exiting(this.getClass().getName(), "engineGetCertificate", result); return result;
public Certificate engineGetCertificate(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } Enumeration aliases = keyring.aliases(); while (aliases.hasMoreElements())
log.entering(this.getClass().getName(), "engineGetCertificateAlias", cert); ensureLoaded(); String result = null; for (Enumeration aliases = publicKR.aliases(); aliases.hasMoreElements();)
public String engineGetCertificateAlias(Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring")...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
Certificate cert2 = ((IPublicKeyring) keyring).getCertificate(alias);
Certificate cert2 = publicKR.getCertificate(alias);
public String engineGetCertificateAlias(Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring")...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
return alias;
result = alias; break;
public String engineGetCertificateAlias(Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring")...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
return null;
log.exiting(this.getClass().getName(), "engineGetCertificateAlias", result); return result;
public String engineGetCertificateAlias(Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring")...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalStateException("not a private keyring"); } return ((IPrivateKeyring) keyring).getCertPath(alias);
log.entering(this.getClass().getName(), "engineGetCertificateChain", alias); ensureLoaded(); Certificate[] result = privateKR.getCertPath(alias); log.exiting(this.getClass().getName(), "engineGetCertificateChain", result); return result;
public Certificate[] engineGetCertificateChain(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalStateException("not a private keyr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } List entries = keyring.get(alias); if (entries.size() == 0) { return null; } for (Iterator it = entries.iterator(); it.hasNext();) { Object o = it.next(); if (o instanceof PrimitiveEntry) { return ((PrimitiveEntry) o)...
log.entering(this.getClass().getName(), "engineGetCreationDate", alias); ensureLoaded(); Date result = getCreationDate(alias, privateKR); if (result == null) result = getCreationDate(alias, publicKR); log.exiting(this.getClass().getName(), "engineGetCreationDate", result); return result;
public Date engineGetCreationDate(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } List entries = keyring.get(alias); if (entries.size() == 0) { return null; } for (Iterator it = en...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalStateException("not a private keyring"); }
log.entering(this.getClass().getName(), "engineGetKey", String.valueOf(password)); ensureLoaded(); Key result = null;
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (((IPrivateKeyring) keyring).containsPublicKey(alias)) { return ((IPrivateKeyring) keyring).getPublicKey(alias); }
if (privateKR.containsPublicKey(alias)) result = privateKR.getPublicKey(alias);
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (((IPrivateKeyring) keyring).containsPrivateKey(alias)) { return ((IPrivateKeyring) keyring).getPrivateKey(alias, password); } return null;
else if (privateKR.containsPrivateKey(alias)) result = privateKR.getPrivateKey(alias, password); log.exiting(this.getClass().getName(), "engineGetKey", result); return result;
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPublicKeyring)) { return false; } return ((IPublicKeyring) keyring).containsCertificate(alias);
log.entering(this.getClass().getName(), "engineIsCertificateEntry", alias); ensureLoaded(); boolean result = publicKR.containsCertificate(alias); log.exiting(this.getClass().getName(), "engineIsCertificateEntry", Boolean.valueOf(result)); return result;
public boolean engineIsCertificateEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPublicKeyring)) { return false; } return ((IPublicKeyring) keyring)....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded");
log.entering(this.getClass().getName(), "engineIsKeyEntry", alias); ensureLoaded(); boolean result = privateKR.containsPublicKey(alias) || privateKR.containsPrivateKey(alias); log.exiting(this.getClass().getName(), "engineIsKeyEntry", Boolean.valueOf(result)); return result;
public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).containsPublicKey(alias) || ((IPrivateKeyring) keyring).containsPrivateKey(alias); }
public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
{
{ log.entering(this.getClass().getName(), "engineLoad", String.valueOf(password));
public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) throw new MalformedKeyringException("incorrect magic"); int usage = in.read(); in.reset(); HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_IN, in); attr.put(IKeyrin...
if (! in.markSupported()) in = new BufferedInputStream(in); loadPrivateKeyring(in, password); loadPublicKeyring(in, password);
public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
log.exiting(this.getClass().getName(), "engineLoad");
public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } ((IPublicKeyring) keyring).putCertificate(alias, cert);
log.entering(this.getClass().getName(), "engineSetCertificateEntry", new Object[] { alias, cert }); ensureLoaded(); publicKR.putCertificate(alias, cert); log.exiting(this.getClass().getName(), "engineSetCertificateEntry");
public void engineSetCertificateEntry(String alias, Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
Certificate[] chain) throws KeyStoreException { if (!loaded)
Certificate[] chain) throws KeyStoreException
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
throw new IllegalStateException ("not loaded"); } if (keyring == null)
log.entering(this.getClass().getName(), "engineSetKeyEntry", new Object[] { alias, key, password, chain }); ensureLoaded(); if (key instanceof PublicKey) privateKR.putPublicKey(alias, (PublicKey) key); else
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
keyring = new GnuPrivateKeyring("HMAC-SHA-1", 20, "AES", "OFB", 16); } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalStateException("not a private keyring"); } if (key instanceof PublicKey) { ((IPrivateKeyring) keyring).putPublicKey(alias, (PublicKey) key); return; } if (!(key instanceof PrivateKey) && ...
if (! (key instanceof PrivateKey) && ! (key instanceof SecretKey))
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
try { CertificateFactory fact = CertificateFactory.getInstance("X.509"); ((IPrivateKeyring) keyring).putCertPath(alias, chain); } catch (CertificateException ce) { throw new KeyStoreException(ce.toString()); } ((IPrivateKeyring) keyring).putPrivateKey(alias, key, password);
log.exiting(this.getClass().getName(), "engineSetKeyEntry");
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
{ if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return 0; } return keyring.size(); }
{ ensureLoaded(); return privateKR.size() + publicKR.size(); }
public int engineSize() { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return 0; } return keyring.size(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
{ if (!loaded || keyring == null)
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
throw new IllegalStateException ("not loaded"); }
log.entering(this.getClass().getName(), "engineStore", String.valueOf(password)); ensureLoaded();
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
keyring.store(attr);
privateKR.store(attr); publicKR.store(attr); log.exiting(this.getClass().getName(), "engineStore");
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuKeyring.java/clean/core/src/classpath/gnu/gnu/javax/crypto/jce/keyring/GnuKeyring.java
public KeyStoreException(String msg)
public KeyStoreException()
public KeyStoreException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/KeyStoreException.java/buggy/core/src/classpath/java/java/security/KeyStoreException.java
super(msg);
public KeyStoreException(String msg) { super(msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/375948b746a7ee130ddcfdc51ac2e51092612050/KeyStoreException.java/buggy/core/src/classpath/java/java/security/KeyStoreException.java
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded,
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded,
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/TreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/TreeCellEditor.java
public BufferedImage filter(BufferedImage src, BufferedImage dst)
public final BufferedImage filter(BufferedImage src, BufferedImage dst)
public BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO: The plan is to create a scanline buffer for intermediate buffers. // For now we just suck it up and create intermediate buffers. if (dst == null && spaces.length == 0) throw new IllegalArgumentException(); // Make sure ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ColorConvertOp.java/clean/core/src/classpath/java/java/awt/image/ColorConvertOp.java
public Rectangle2D getBounds2D(BufferedImage src)
public final Rectangle2D getBounds2D(BufferedImage src)
public Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ColorConvertOp.java/clean/core/src/classpath/java/java/awt/image/ColorConvertOp.java
public ICC_Profile[] getICC_Profiles()
public final ICC_Profile[] getICC_Profiles()
public ICC_Profile[] getICC_Profiles() { return profiles; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ColorConvertOp.java/clean/core/src/classpath/java/java/awt/image/ColorConvertOp.java
public Point2D getPoint2D(Point2D src, Point2D dst)
public final Point2D getPoint2D(Point2D src, Point2D dst)
public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D)src.clone(); dst.setLocation(src); return dst; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ColorConvertOp.java/clean/core/src/classpath/java/java/awt/image/ColorConvertOp.java
public RenderingHints getRenderingHints()
public final RenderingHints getRenderingHints()
public RenderingHints getRenderingHints() { return hints; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ColorConvertOp.java/clean/core/src/classpath/java/java/awt/image/ColorConvertOp.java
public float[] getPixel(int x, int y, float[] fArray)
public int[] getPixel(int x, int y, int[] iArray)
public float[] getPixel(int x, int y, float[] fArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java
fArray, dataBuffer);
iArray, dataBuffer);
public float[] getPixel(int x, int y, float[] fArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray, dataBuffer);
public void setPixel(int x, int y, int[] iArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, iArray, dataBuffer);
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray, dataBuffer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/WritableRaster.java/buggy/core/src/classpath/java/java/awt/image/WritableRaster.java
public RenderingHints getRenderingHints();
RenderingHints getRenderingHints();
public RenderingHints getRenderingHints();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RasterOp.java/buggy/core/src/classpath/java/java/awt/image/RasterOp.java
emitArray(cls, obj, (VmArrayClass) vmClass);
emitArray(cls, obj, (VmArrayClass<?>) vmClass);
public final void emitObject(Object obj) throws BuildException, ClassNotFoundException { if (obj == null) { return; } final Class< ? > cls = obj.getClass(); try { testForValidEmit(obj, cls.getName()); } catch (JNodeClassNotFoundException ex) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3596133af9d06fd09099bec70251eddfb836e8e/ObjectEmitter.java/clean/builder/src/builder/org/jnode/build/ObjectEmitter.java
AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize (b, defaultTextIconGap + defaultTextShiftOffset);
AbstractButton b = (AbstractButton) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(b, defaultTextIconGap + defaultTextShiftOffset);
public Dimension getPreferredSize(JComponent c) { AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize (b, defaultTextIconGap + defaultTextShiftOffset); return d; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicButtonUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
public DEREncodingException (String msg)
public DEREncodingException()
public DEREncodingException (String msg) { super (msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/DEREncodingException.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DEREncodingException.java
super (msg);
super ();
public DEREncodingException (String msg) { super (msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/DEREncodingException.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DEREncodingException.java
public static TimeZone getTimeZone(String ID) {
public static TimeZone getTimeZone(String ID) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) {
TimeZone tz = (TimeZone) timezones().get(ID); if (tz != null) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
tz = (TimeZone)tz.clone();
tz = (TimeZone) tz.clone();
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
timezones.put(ID, tz);
timezones().put(ID, tz);
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
if (ID.startsWith("GMT")) {
if (ID.startsWith("GMT")) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
if (ID.charAt(pos) == '-') {
if (ID.charAt(pos) == '-') {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
} else if (ID.charAt(pos) == '+') {
} else if (ID.charAt(pos) == '+') {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
try {
try {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
if (idx != -1) {
if (idx != -1) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
} else {
} else {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
if (offset_length <= 2) {
if (offset_length <= 2) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
} else {
} else {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
hour = Integer.parseInt( offset_str.substring(0, offset_length - 2)); minute = Integer.parseInt( offset_str.substring(offset_length - 2));
hour = Integer.parseInt (offset_str.substring(0, offset_length - 2)); minute = Integer.parseInt (offset_str.substring(offset_length - 2));
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
return new SimpleTimeZone( (hour * (60 * 60 * 1000) + minute * (60 * 1000)) * offset_direction, ID); } catch (NumberFormatException e) {
return new SimpleTimeZone((hour * (60 * 60 * 1000) + minute * (60 * 1000)) * offset_direction, ID); } catch (NumberFormatException e) {
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
public BasicAttribute (String id, Object value)
private BasicAttribute ()
public BasicAttribute (String id, Object value) { this (id, value, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/BasicAttribute.java/buggy/core/src/classpath/javax/javax/naming/directory/BasicAttribute.java
this (id, value, false);
public BasicAttribute (String id, Object value) { this (id, value, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/BasicAttribute.java/buggy/core/src/classpath/javax/javax/naming/directory/BasicAttribute.java
throws IOException
throws IOException, NotImplementedException
public void writeBit(int bit) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/ImageOutputStreamImpl.java/buggy/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
throws IOException
throws IOException, NotImplementedException
public void writeUTF(String data) throws IOException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/ImageOutputStreamImpl.java/buggy/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
if (w == 0 || h == 0) return;
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponents.get(component)); dirtyComponents.put(component...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java
if (getDeclaringClass() != e.getDeclaringClass()) throw new ClassCastException();
public final int compareTo(T e) { return ordinal - e.ordinal; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Enum.java/clean/core/src/classpath/5.0/java/lang/Enum.java
return (S) etype.getDeclaredField(s).get(null);
Field f = etype.getDeclaredField(s); if (! f.isEnumConstant()) throw new IllegalArgumentException(s); return (S) f.get(null);
public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Enum.java/clean/core/src/classpath/5.0/java/lang/Enum.java
cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2);
cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2);
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2e0642a3388d44969ac5786342abe04d18e4e9e7/DosUtils.java/clean/fs/src/fs/org/jnode/fs/util/DosUtils.java
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2e0642a3388d44969ac5786342abe04d18e4e9e7/DosUtils.java/clean/fs/src/fs/org/jnode/fs/util/DosUtils.java
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2e0642a3388d44969ac5786342abe04d18e4e9e7/DosUtils.java/clean/fs/src/fs/org/jnode/fs/util/DosUtils.java
public static int encodeDate(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * ( cal.get(Calendar.MONTH) + 1 ) + cal.get(Calendar.DATE); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2e0642a3388d44969ac5786342abe04d18e4e9e7/DosUtils.java/clean/fs/src/fs/org/jnode/fs/util/DosUtils.java
public static int encodeTime(long javaDateTime) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(javaDateTime); return 2048 * cal.get(Calendar.HOUR_OF_DAY) + 32 * cal.get(Calendar.MINUTE) + cal.get(Calendar.SECOND) / 2; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2e0642a3388d44969ac5786342abe04d18e4e9e7/DosUtils.java/clean/fs/src/fs/org/jnode/fs/util/DosUtils.java
pos.y = contentRect.y + contentRect.height - viewBounds.height;
pos.y = contentRect.y + contentRect.height - portBounds.height;
public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JViewport.java/clean/core/src/classpath/javax/javax/swing/JViewport.java
pos.x = contentRect.x + contentRect.width - viewBounds.width;
pos.x = contentRect.x + contentRect.width - portBounds.width;
public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JViewport.java/clean/core/src/classpath/javax/javax/swing/JViewport.java
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.KEYCLONE_CMD, true); result.setHeader(Messages.getString("KeyCloneCmd.22")); //$NON-NLS-1$ result.setFooter(Messages.getString("KeyCloneCmd.21")); //$NON-NLS-1$ OptionG...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/KeyCloneCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java
if (Configuration.DEBUG)
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.KEYCLONE_CMD, true); result.setHeader(Messages.getString("KeyCloneCmd.22")); //$NON-NLS-1$ result.setFooter(Messages.getString("KeyCloneCmd.21")); //$NON-NLS-1$ OptionG...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/KeyCloneCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java
log.finer("-keyclone handler will use the following options:"); log.finer(" -alias=" + alias); log.finer(" -dest=" + destinationAlias); log.finer(" -storetype=" + storeType); log.finer(" -keystore=" + storeURL); log.finer(" -provider=" + provider); log.finer(" -v=" + verbose);
if (Configuration.DEBUG) { log.fine("-keyclone handler will use the following options:"); log.fine(" -alias=" + alias); log.fine(" -dest=" + destinationAlias); log.fine(" -storetype=" + storeType); log.fine(" -keystore=" + storeURL); log.fine(" -provider=" + provider); log.fine(" -v=" + verbose); }
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setDestinationAlias(_destAlias); log.finer("-keyclone handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/KeyCloneCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java
void start() throws KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, UnrecoverableKeyException, CertificateException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (store.containsAlias(destinationAlias)) throw new SecurityException(Mes...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/KeyCloneCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java
if (Configuration.DEBUG)
void start() throws KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, UnrecoverableKeyException, CertificateException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (store.containsAlias(destinationAlias)) throw new SecurityException(Mes...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/KeyCloneCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java
public synchronized void add(OptionGroup group)
public synchronized void add(Option opt)
public synchronized void add(OptionGroup group) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Parser.java/buggy/core/src/classpath/tools/gnu/classpath/tools/getopt/Parser.java
options.addAll(group.options); if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group);
options.add(opt); defaultGroup.add(opt);
public synchronized void add(OptionGroup group) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Parser.java/buggy/core/src/classpath/tools/gnu/classpath/tools/getopt/Parser.java
if (Configuration.DEBUG)
public static String getFormattedString(String key, Object args) { MessageFormat mf = (MessageFormat) CACHED_FORMATS.get(key); if (mf == null) { String formatString = getString(key); if (formatString.startsWith("!")) return constructMessage(key, args); mf = new MessageForma...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Messages.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Messages.java
setProviderClassNameParam(className); setKeystoreTypeParam(type); setKeystorePasswordParam(password); setKeystoreURLParam(url);
setKeyStoreParams(false, className, type, password, url);
protected void setKeyStoreParams(String className, String type, String password, String url) throws IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertificateException { setProviderClassNameParam(className); setKeystoreTypePar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Command.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Command.java
protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
protected void saveKeyStore(char[] password) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { saveKeyStore(storePasswordChars); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Command.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Command.java
saveKeyStore(storePasswordChars);
if (Configuration.DEBUG) log.entering(this.getClass().getName(), "saveKeyStore"); URLConnection con = storeURL.openConnection(); con.setDoOutput(true); con.setUseCaches(false); OutputStream out = con.getOutputStream(); if (verbose) System.out.println(Messages.getFormattedString("Command.63", storeURL.getPath())); stor...
protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { saveKeyStore(storePasswordChars); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/Command.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Command.java
public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode");
public void dumpData(Logger out) { out.debug("Intialization Block - 32 bit mode");
public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtil...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/InitializationBlock32Bit.java/buggy/net/src/driver/org/jnode/driver/net/lance/InitializationBlock32Bit.java
out.println(
out.debug(
public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtil...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/InitializationBlock32Bit.java/buggy/net/src/driver/org/jnode/driver/net/lance/InitializationBlock32Bit.java
public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode");
public void dumpData(Logger out) { out.debug("Receive Ring Descriptors - Software Style 2");
public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); rxDescriptors[i].dumpData(out); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/RxDescriptorRing.java/buggy/net/src/driver/org/jnode/driver/net/lance/RxDescriptorRing.java
out.println("Descriptor " + i);
out.debug("Descriptor " + i);
public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); rxDescriptors[i].dumpData(out); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/RxDescriptorRing.java/buggy/net/src/driver/org/jnode/driver/net/lance/RxDescriptorRing.java
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode");
public void dumpData(Logger out) { out.debug("Transmit Ring Descriptors - Software Style 2");
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/TxDescriptorRing.java/buggy/net/src/driver/org/jnode/driver/net/lance/TxDescriptorRing.java
out.println("Descriptor " + i);
out.debug("Descriptor " + i);
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9bab8310a989b28ff35508a8163342426afce2a3/TxDescriptorRing.java/buggy/net/src/driver/org/jnode/driver/net/lance/TxDescriptorRing.java
if (this == o) return true;
if (!(o instanceof BitString)) return false;
public boolean equals(Object o) { if (this == o) return true; BitString that = (BitString) o; // True for cloned instances. if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) return true; if (this.ignoredBits == that.ignoredBits) return Arrays.equals(this.bytes, that....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/BitString.java/clean/core/src/classpath/gnu/gnu/java/security/der/BitString.java
put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName...
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS Im...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/GnuCrypto.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/jce/GnuCrypto.java
put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName...
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCF...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/GnuCrypto.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/jce/GnuCrypto.java
protected AbstractQueue() { }
protected AbstractQueue() { }
protected AbstractQueue() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); }
public boolean add(E e) { if (offer(e)) return true; else throw new IllegalStateException("Queue full"); }
public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; }
public boolean addAll(Collection<? extends E> c) { if (c == null) throw new NullPointerException(); if (c == this) throw new IllegalArgumentException(); boolean modified = false; Iterator<? extends E> e = c.iterator(); while (e.hasNext()) { if (add(e.next())) modified = true; } return modified; }
public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
public void clear() { while (poll() != null) ; }
public void clear() { while (poll() != null) ; }
public void clear() { while (poll() != null) ; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; }
public E element() { E x = peek(); if (x != null) return x; else throw new NoSuchElementException(); }
public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; }
public E remove() { E x = poll(); if (x != null) return x; else throw new NoSuchElementException(); }
public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/AbstractQueue.java/clean/core/src/classpath/5.0/java/util/AbstractQueue.java
private String complete(String partial) {
CompletionInfo complete(String partial) {
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f2385c6a19065b00b78132ca332505dc23e536aa/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java