rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
}
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
if (Configuration.DEBUG)
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
{
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
}
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
{
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
}
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
if (Configuration.DEBUG)
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
public BigInteger gcd(BigInteger y)
private static int gcd(int a, int b)
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int xval = ival; int yval = y.ival; if (words == null)
int tmp; if (b > a)
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return valueOf(gcd(xval, yval));
tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp;
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
xval = 1;
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (y.words == null) { if (yval == 0) return abs(this); yval = 1; } int len = (xval > yval ? xval : yval) + 1; int[] xwords = new int[len]; int[] ywords = new int[len]; getAbsolute(xwords); y.getAbsolute(ywords); len = MPN.gcd(xwords, ywords, len); BigInteger result = new BigInteger(0); result.ival = len; result.words ...
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
public PixelGrabber(Image img, int x, int y, int w, int h, int pix[], int off, int scansize) { this(img.getSource(), x, y, w, h, pix, off, scansize);
public PixelGrabber(Image img, int x, int y, int w, int h, int pix[], int off, int scansize) { this (img.getSource(), x, y, w, h, pix, off, scansize);
public PixelGrabber(Image img, int x, int y, int w, int h, int pix[], int off, int scansize) { this(img.getSource(), x, y, w, h, pix, off, scansize); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/PixelGrabber.java/buggy/core/src/classpath/java/java/awt/image/PixelGrabber.java
public boolean grabPixels() throws InterruptedException {
public synchronized boolean grabPixels() throws InterruptedException {
public boolean grabPixels() throws InterruptedException { return grabPixels(0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/PixelGrabber.java/buggy/core/src/classpath/java/java/awt/image/PixelGrabber.java
insets = new Insets (0,0,0,0);
insets = new Insets(0, 0, 0, 0);
public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; // If there is an outside border, add it to insets. if (outsideBorder != null) { borde...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/CompoundBorder.java/buggy/core/src/classpath/javax/javax/swing/border/CompoundBorder.java
jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent);
jComponent.add(((SwingMenuPeer) helpMenu.getPeer()).jComponent);
public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7940b0671149936fc9981fac400464ffef073df8/SwingMenuBarPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingMenuBarPeer.java
paintBorder = true;
borderPainted = true;
public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
public abstract void addHelpMenu(Menu menu);
void addHelpMenu(Menu menu);
public abstract void addHelpMenu(Menu menu);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuBarPeer.java/buggy/core/src/classpath/java/java/awt/peer/MenuBarPeer.java
public abstract void addMenu(Menu menu);
void addMenu(Menu menu);
public abstract void addMenu(Menu menu);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuBarPeer.java/buggy/core/src/classpath/java/java/awt/peer/MenuBarPeer.java
public abstract void delMenu(int index);
void delMenu(int index);
public abstract void delMenu(int index);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuBarPeer.java/buggy/core/src/classpath/java/java/awt/peer/MenuBarPeer.java
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime();
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { GregorianCalendar cal = new GregorianCalendar(year + 1900, month, date, hrs, min, sec); cal.set(Calendar.ZONE_OFFSET, 0); cal.set(Calendar.DST_OFFSET, 0); return cal.getTimeInMillis();
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public boolean after(Date when) { return getTime() > when.getTime();
public boolean after(Date when) { return time > when.time;
public boolean after(Date when) { return getTime() > when.getTime(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public boolean before(Date when) { return getTime() < when.getTime();
public boolean before(Date when) { return time < when.time;
public boolean before(Date when) { return getTime() < when.getTime(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getDate() { refresh_components(); return date; }
public int getDate() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.DATE); }
public int getDate() { refresh_components(); return date; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getDay() { refresh_components(); return day; }
public int getDay() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.DAY_OF_WEEK) - 1; }
public int getDay() { refresh_components(); return day; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getHours() { refresh_components(); return hrs; }
public int getHours() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.HOUR_OF_DAY); }
public int getHours() { refresh_components(); return hrs; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getMinutes() { refresh_components(); return min; }
public int getMinutes() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.MINUTE); }
public int getMinutes() { refresh_components(); return min; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getMonth() { refresh_components(); return month; }
public int getMonth() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.MONTH); }
public int getMonth() { refresh_components(); return month; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getSeconds() { refresh_components(); return sec; }
public int getSeconds() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.SECOND); }
public int getSeconds() { refresh_components(); return sec; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); }
public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); }
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int getYear() { refresh_components(); return year; }
public int getYear() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.YEAR) - 1900; }
public int getYear() { refresh_components(); return year; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); }
public int hashCode() { return (int) time ^ (int) (time >>> 32); }
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public synchronized static long parse(String string) { return new DateParser(string).parse(); }
public static long parse(String string) { int year = -1; int month = -1; int day = -1; int hour = -1; int minute = -1; int second = -1; int timezone = 0; boolean localTimezone = true; StringBuffer buf = new StringBuffer(); int parenNesting = 0; int len = string.length(); for (int i = 0; i < len; i++) { char ch = s...
public synchronized static long parse(String string) { return new DateParser(string).parse(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setDate(int date) { this.date = date; invalidate(); }
public void setDate(int date) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.DATE, date); time = cal.getTimeInMillis(); }
public void setDate(int date) { this.date = date; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setHours(int hours) { this.hrs = hours; invalidate(); }
public void setHours(int hours) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.HOUR_OF_DAY, hours); time = cal.getTimeInMillis(); }
public void setHours(int hours) { this.hrs = hours; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setMinutes(int minutes) { this.min = minutes; invalidate(); }
public void setMinutes(int minutes) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.MINUTE, minutes); time = cal.getTimeInMillis(); }
public void setMinutes(int minutes) { this.min = minutes; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setMonth(int month) { this.month = month; invalidate(); }
public void setMonth(int month) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.MONTH, month); time = cal.getTimeInMillis(); }
public void setMonth(int month) { this.month = month; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
public void setSeconds(int seconds) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.SECOND, seconds); time = cal.getTimeInMillis(); }
public void setSeconds(int seconds) { this.sec = seconds; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true;
public void setTime(long time) { this.time = time;
public void setTime(long millis) { this.millis = millis; valid = false; mvalid = true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public void setYear(int year) { this.year = year; invalidate(); }
public void setYear(int year) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.YEAR, 1900 + year); time = cal.getTimeInMillis(); }
public void setYear(int year) { this.year = year; invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
public String toGMTString() { java.text.DateFormat format = java.text.DateFormat.getInstance(); format.setTimeZone(TimeZone.getTimeZone("GMT")); return format.format(this); }
public String toGMTString() { if (!isGMT) { Date d = new Date(this.millis); d.isGMT = true; return d.toGMTString(); } refresh_components(); return (date) + " " + months[month] + " " + (1900 + year) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + "GMT"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public String toLocaleString() { return toString();
public String toLocaleString() { return java.text.DateFormat.getInstance().format(this);
public String toLocaleString() { return toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Date.java/clean/core/src/classpath/java/java/util/Date.java
public Label(String text) { this(text, LEFT); }
Label() { this("", LEFT); }
public Label(String text) { this(text, LEFT); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Label.java/buggy/core/src/classpath/java/java/awt/Label.java
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
List() { this(4, false); }
public List(int rows, boolean multipleMode) { this.rows = rows; this.multipleMode = multipleMode; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
Button(String label)
Button()
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/Button.java/buggy/core/src/classpath/java/java/awt/Button.java
this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();
this("");
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/Button.java/buggy/core/src/classpath/java/java/awt/Button.java
public void add(String item) { add(item, -1); }
add(String item) { add (item, -1); }
public void add(String item) { add(item, -1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer();
select(int index) { ListPeer lp = (ListPeer)getPeer();
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.select(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
}
}
public synchronized void select(int index) { ListPeer lp = (ListPeer) getPeer(); if (lp != null) lp.select(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
public synchronized int[] getSelectedIndexes() { if (peer != null) {
getSelectedIndexes() { if (peer != null) {
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
selected = l.getSelectedIndexes();
selected = l.getSelectedIndexes ();
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
}
}
public synchronized int[] getSelectedIndexes() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } return selected; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
public synchronized int getSelectedIndex() { if (peer != null) {
getSelectedIndex() { if (peer != null) {
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
selected = l.getSelectedIndexes();
selected = l.getSelectedIndexes ();
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
if (selected == null || selected.length > 1)
if (selected == null || selected.length != 1)
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
}
}
public synchronized int getSelectedIndex() { if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes(); } if (selected == null || selected.length > 1) return -1; return selected[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/List.java/buggy/core/src/classpath/java/java/awt/List.java
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages." + language); } catch (MissingResourceException e) { return language; }
public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale);
public String getDisplayLanguage(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("languages."...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
public String getDisplayCountry(Locale inLocale)
public String getDisplayCountry()
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("territories." + country); } catch (MissingResourceException e) { return country; }
return getDisplayCountry(defaultLocale);
public String getDisplayCountry(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("terri...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
public String getDisplayVariant(Locale inLocale)
public String getDisplayVariant()
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("variants." + variant); } catch (MissingResourceException e) { return variant; }
return getDisplayVariant(defaultLocale);
public String getDisplayVariant(Locale inLocale) { try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", inLocale, ClassLoader.getSystemClassLoader()); return res.getString("varia...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01602165fc31514bf19f3083123977c17cdf6f79/Locale.java/buggy/core/src/classpath/java/java/util/Locale.java
public TextField() {
TextField() {
public TextField() { this("", 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextField.java/buggy/core/src/classpath/java/java/awt/TextField.java
}
}
public TextField() { this("", 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextField.java/buggy/core/src/classpath/java/java/awt/TextField.java
public synchronized void setText(String text) {
setText(String text) {
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextComponent.java/buggy/core/src/classpath/java/java/awt/TextComponent.java
TextComponentPeer tcp = (TextComponentPeer) getPeer();
TextComponentPeer tcp = (TextComponentPeer)getPeer();
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextComponent.java/buggy/core/src/classpath/java/java/awt/TextComponent.java
}
setCaretPosition(0); }
public synchronized void setText(String text) { if (text == null) text = ""; this.text = text; TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) tcp.setText(text); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextComponent.java/buggy/core/src/classpath/java/java/awt/TextComponent.java
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
setEchoChar(char echoChar) { setEchoCharacter (echoChar); }
public void setEchoChar(char echoChar) { this.echoChar = echoChar; TextFieldPeer tfp = (TextFieldPeer) getPeer(); if (tfp != null) tfp.setEchoChar(echoChar); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextField.java/buggy/core/src/classpath/java/java/awt/TextField.java
else if (propName.equals("iconifiable"))
else if (propName.equals("iconable"))
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
enableActions();
public void propertyChange(PropertyChangeEvent evt) { String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicInternalFrameTitlePane.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); if (source == null) source = tk.getTop(); KeyEvent me = new KeyEvent(source, id, time, modifiers, keyCode,
KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode,
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component source = kfm.getFocusOwner(); // TODO get th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2cc61f6e4aecc935f9f19636279aa7c8856af28a/KeyboardHandler.java/clean/gui/src/awt/org/jnode/awt/KeyboardHandler.java
int keyCode, char keyChar)
int keyCode, char keyChar, int keyLocation)
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/KeyEvent.java/buggy/core/src/classpath/java/java/awt/event/KeyEvent.java
this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN);
super(source, id, when, modifiers); this.keyCode = keyCode; this.keyChar = keyChar; this.keyLocation = keyLocation; if ((id == KEY_TYPED && (keyCode != VK_UNDEFINED || keyChar == CHAR_UNDEFINED)) || keyLocation < KEY_LOCATION_UNKNOWN || keyLocation > KEY_LOCATION_NUMPAD) throw new IllegalArgumentException();
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/KeyEvent.java/buggy/core/src/classpath/java/java/awt/event/KeyEvent.java
public DataBufferInt(int[] dataArray, int size) {
public DataBufferInt(int size) {
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DataBufferInt.java/buggy/core/src/classpath/java/java/awt/image/DataBufferInt.java
data = dataArray;
data = new int[size];
public DataBufferInt(int[] dataArray, int size) { super(TYPE_INT, size); data = dataArray; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/DataBufferInt.java/buggy/core/src/classpath/java/java/awt/image/DataBufferInt.java
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p);
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddres...
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3fc0245901e133fe0e5d517f341ae990bc8849/UDPOutputStream.java/clean/core/src/core/org/jnode/debug/UDPOutputStream.java
public DatagramSocket() throws SocketException
protected DatagramSocket(DatagramSocketImpl impl)
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01db1a0d9fd6e0f94d31c54712f8818b6a6a708e/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java
this(new InetSocketAddress(0)); }
if (impl == null) throw new NullPointerException("impl may not be null"); this.impl = impl; this.remoteAddress = null; this.remotePort = -1; }
public DatagramSocket() throws SocketException { this(new InetSocketAddress(0)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01db1a0d9fd6e0f94d31c54712f8818b6a6a708e/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java
return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e);
PublicKey result = new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); log.exiting(this.getClass().getName(), "decodePublicKey()", result); return result;
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/RSAKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
log.exiting(this.getClass().getName(), "encodePublicKey()", result);
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPublicKey) key; BigInteger n = rsaKey.getN(); BigInteger e = rsaKe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/RSAKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) {
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
stylesheet.bindings.push(global);
stylesheet.bindings.push(type);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
stylesheet.bindings.set(name, value, global);
stylesheet.bindings.set(name, value, type); if (stylesheet.debug) { System.err.println(this + ": set to " + value);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
if (apply) {
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
stylesheet.bindings.pop(global); }
stylesheet.bindings.pop(type);
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { boolean apply = global || !stylesheet.bindings.containsKey(name, global); if (apply) { // push the variable context styleshe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
if (global)
buf.append(",type="); switch (type)
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
buf.append(",global");
case Bindings.VARIABLE: buf.append("variable"); break; case Bindings.PARAM: buf.append("param"); break; case Bindings.WITH_PARAM: buf.append("with-param"); break;
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (select != null) { buf.append(",select="); buf.append(select); } if (global) { buf.append(",global"); } buf.ap...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java
public boolean containsKey(String name, boolean global)
public boolean containsKey(QName name, int type)
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/Bindings.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Bindings.java
Iterator i = global ? variables.iterator() : parameters.iterator();
Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ctx.containsKey(name); } if (i != null) {
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/Bindings.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Bindings.java
}
public boolean containsKey(String name, boolean global) { Iterator i = global ? variables.iterator() : parameters.iterator(); while (i.hasNext()) { Map ctx = (Map) i.next(); if (ctx.containsKey(name)) { return true; } } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/Bindings.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Bindings.java
protected void doResolveMember(AbstractVmClassLoader clc) {
protected void doResolveMember(VmClassLoader clc) {
protected void doResolveMember(AbstractVmClassLoader clc) { VmType vmClass = getConstClass().getResolvedVmClass(); if (!vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be an interface"); } final VmMethod vmMethod; vmMethod = vmClass.getMethod(getName(), getSignature()); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmConstIMethodRef.java/buggy/core/src/core/org/jnode/vm/classmgr/VmConstIMethodRef.java
public InvalidName(String reason)
public InvalidName()
public InvalidName(String reason) { super(reason); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/InvalidName.java/buggy/core/src/classpath/org/org/omg/CORBA/ORBPackage/InvalidName.java
super(reason);
public InvalidName(String reason) { super(reason); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/InvalidName.java/buggy/core/src/classpath/org/org/omg/CORBA/ORBPackage/InvalidName.java