rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
{
protected byte[] padBuffer() { int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) { length = BLOCK_LENGTH; } byte[] pad = new byte[length]; for (int i = 0; i < length; i++) { pad[i] = (byte) length; } return pad; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
}
protected byte[] padBuffer() { int length = BLOCK_LENGTH - (int) (count % BLOCK_LENGTH); if (length == 0) { length = BLOCK_LENGTH; } byte[] pad = new byte[length]; for (int i = 0; i < length; i++) { pad[i] = (byte) length; } return pad; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD2().digest())));
String d = Util.toString(new MD2().digest()); valid = Boolean.valueOf(DIGEST0.equals(d));
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD2().digest()))); } return valid.booleanValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
protected void transform(byte[] in, int off) { // encryptBlock(in, off); // updateCheckSum(in, off); updateCheckSumAndEncryptBlock(in, off); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
work[BLOCK_LENGTH * 2 + i] = (byte) (work[i] ^ b); l = (byte) (checksum[i] ^ PI[(b ^ l) & 0xFF]);
work[BLOCK_LENGTH * 2 + i] = (byte)(work[i] ^ b); l = (byte)(checksum[i] ^ PI[(b ^ l) & 0xFF]);
private void updateCheckSumAndEncryptBlock(byte[] in, int off) { byte l = checksum[BLOCK_LENGTH - 1]; for (int i = 0; i < BLOCK_LENGTH; i++) { byte b = in[off + i]; work[BLOCK_LENGTH + i] = b; // work[BLOCK_LENGTH*2+i] = (byte)((work[i] & 0xFF) ^ (b & 0xFF)); work[BLOCK...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
private void updateCheckSumAndEncryptBlock(byte[] in, int off) { byte l = checksum[BLOCK_LENGTH - 1]; for (int i = 0; i < BLOCK_LENGTH; i++) { byte b = in[off + i]; work[BLOCK_LENGTH + i] = b; // work[BLOCK_LENGTH*2+i] = (byte)((work[i] & 0xFF) ^ (b & 0xFF)); work[BLOCK...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
t = (byte) (work[j] ^ PI[t & 0xFF]);
t = (byte)(work[j] ^ PI[t & 0xFF]);
private void updateCheckSumAndEncryptBlock(byte[] in, int off) { byte l = checksum[BLOCK_LENGTH - 1]; for (int i = 0; i < BLOCK_LENGTH; i++) { byte b = in[off + i]; work[BLOCK_LENGTH + i] = b; // work[BLOCK_LENGTH*2+i] = (byte)((work[i] & 0xFF) ^ (b & 0xFF)); work[BLOCK...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
t = (byte) (t + i);
t = (byte)(t + i);
private void updateCheckSumAndEncryptBlock(byte[] in, int off) { byte l = checksum[BLOCK_LENGTH - 1]; for (int i = 0; i < BLOCK_LENGTH; i++) { byte b = in[off + i]; work[BLOCK_LENGTH + i] = b; // work[BLOCK_LENGTH*2+i] = (byte)((work[i] & 0xFF) ^ (b & 0xFF)); work[BLOCK...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/MD2.java/buggy/core/src/classpath/gnu/gnu/java/security/hash/MD2.java
requirementsValid[X_AXIS] = false; requirementsValid[Y_AXIS] = false;
public BoxView(Element element, int axis) { super(element); myAxis = axis; layoutValid[0] = false; layoutValid[1] = false; span[0] = 0; span[1] = 0; requirements[0] = new SizeRequirements(); requirements[1] = new SizeRequirements(); // Initialize the cache arrays. spans[0] = new int[0];...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
res.maximum = 0;
res.maximum = Integer.MAX_VALUE;
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements sr) { SizeRequirements res = sr; if (res == null) res = new SizeRequirements(); res.minimum = 0; res.preferred = 0; res.maximum = 0; res.alignment = 0....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
boolean wasValid = isLayoutValid(myAxis);
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory vf) { // FIXME: What to do here? super.forwardUpdate(ec, e, a, vf); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
if (wasValid && ! isLayoutValid(myAxis)) { Container c = getContainer(); if (a != null && c != null) { int pos = e.getOffset(); int index = getViewIndexAtPosition(pos); Rectangle r = getInsideAllocation(a); if (myAxis == X_AXIS) { r.x += offsets[myAxis][index]; r.width -= offsets[myAxis][index]; } else { r.y += offset...
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory vf) { // FIXME: What to do here? super.forwardUpdate(ec, e, a, vf); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
return span[Y_AXIS] + getTopInset() - getBottomInset();
return span[Y_AXIS] + getTopInset() + getBottomInset();
public int getHeight() { return span[Y_AXIS] + getTopInset() - getBottomInset(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
int weight = 1; if (axis == myAxis) weight = 0;
updateRequirements(axis); int weight = 0; if ((requirements[axis].preferred != requirements[axis].minimum) || (requirements[axis].preferred != requirements[axis].maximum)) weight = 1;
public int getResizeWeight(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis argument"); int weight = 1; if (axis == myAxis) weight = 0; return weight; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i)
if (myAxis == X_AXIS)
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
copy.setBounds(r); childAllocation(i, copy); if (copy.contains(x, y))
if (x < r.x + offsets[X_AXIS][0])
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
r.setBounds(copy); result = getView(i); break;
childAllocation(0, r); result = getView(0); } else { for (int i = 0; i < count && result == null; i++) { if (x < r.x + offsets[X_AXIS][i]) { childAllocation(i - 1, r); result = getView(i - 1);
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
if (result == null && count > 0) return getView(count - 1);
} } else { if (y < r.y + offsets[Y_AXIS][0]) { childAllocation(0, r); result = getView(0); } else { for (int i = 0; i < count && result == null; i++) { if (y < r.y + offsets[Y_AXIS][i]) { childAllocation(i - 1, r); result = getView(i - 1); } } } } if (result == null) { childAllocation(count - 1, r); result = getView...
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); // The next call modifies copy. childAllocation(i, copy); if (copy.contains(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
return span[X_AXIS] + getLeftInset() - getRightInset();
return span[X_AXIS] + getLeftInset() + getRightInset();
public int getWidth() { return span[X_AXIS] + getLeftInset() - getRightInset(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
int[] newSpan = new int[]{ width, height }; int count = getViewCount(); int minorAxis = myAxis == X_AXIS ? Y_AXIS : X_AXIS; if ((! isLayoutValid(minorAxis)) || newSpan[minorAxis] != span[minorAxis]) { layoutValid[minorAxis] = false; span[minorAxis] = newSpan[minorAxis]; layoutMinorAxis(span[minorAxis], minorAxis, o...
layoutAxis(X_AXIS, width); layoutAxis(Y_AXIS, height);
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
layoutValid[minorAxis] = true; } if ((! isLayoutValid(myAxis)) || newSpan[myAxis] != span[myAxis]) { layoutValid[myAxis] = false; span[myAxis] = newSpan[myAxis]; layoutMajorAxis(span[myAxis], myAxis, offsets[myAxis], spans[myAxis]); for (int i = 0; i < count; ++i) { getView(i).setSize(spans[X_AXIS][i], spans[Y_AXI...
protected void layout(int width, int height) { int[] newSpan = new int[]{ width, height }; int count = getViewCount(); // Update minor axis as appropriate. We need to first update the minor // axis layout because that might affect the children's preferences along // the major axis. int minorAxis = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
sumPref = spans[i];
sumPref += spans[i];
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // Set the spans to the preferred sizes. Determine the space // that we have to adjust the sizes afterwards. long sumPref = 0; int n = getViewCount(); for (int i = 0; i < n; i++) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds();
Rectangle alloc = a instanceof Rectangle ? (Rectangle) a : a.getBounds();
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset();
alloc = getInsideAllocation(alloc);
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle();
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
for (int i = 0; i < count; ++i)
for (int i = 0; i < count; i++)
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
tmp.x = x + getOffset(X_AXIS, i); tmp.y = y + getOffset(Y_AXIS, i); tmp.width = getSpan(X_AXIS, i); tmp.height = getSpan(Y_AXIS, i); if (tmp.intersects(clip)) paintChild(g, tmp, i);
View child = getView(i); tmpRect.setBounds(alloc); childAllocation(i, tmpRect); if (g.hitClip(tmpRect.x, tmpRect.y, tmpRect.width, tmpRect.height)) paintChild(g, tmpRect, i);
public void paint(Graphics g, Shape a) { Rectangle alloc; if (a instanceof Rectangle) alloc = (Rectangle) a; else alloc = a.getBounds(); int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset(); Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle(); int count ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
int numViews = 0; if (views != null) numViews = views.length; int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spans[X_AXIS], 0, newSpansX, 0, offset); System.arraycopy(spans[X_AXIS], offset + length, newSpansX, offset + numViews, oldSize - (offset + length)); s...
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
layoutValid[X_AXIS] = false; requirementsValid[X_AXIS] = false; layoutValid[Y_AXIS] = false; requirementsValid[Y_AXIS] = false;
int newItems = views != null ? views.length : 0; int minor = 1 - myAxis; offsets[myAxis] = replaceLayoutArray(offsets[myAxis], offset, newItems); spans[myAxis] = replaceLayoutArray(spans[myAxis], offset, newItems); layoutValid[myAxis] = false; requirementsValid[myAxis] = false; offsets[minor] = replaceLayoutArray(offs...
public void replace(int offset, int length, View[] views) { int numViews = 0; if (views != null) numViews = views.length; // Resize and copy data for cache arrays. // The spansX cache. int oldSize = getViewCount(); int[] newSpansX = new int[oldSize - length + numViews]; System.arraycopy(spa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
if (changed) preferenceChanged(null, true, true);
public void setAxis(int axis) { myAxis = axis; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
if (! isAllocationValid()) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); setSize(r.width, r.height); }
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // FIXME: What to do here? return super.viewToModel(x, y, a, bias); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
public abstract void setCheckboxGroup(java.awt.CheckboxGroup group);
void setCheckboxGroup (CheckboxGroup group);
public abstract void setCheckboxGroup(java.awt.CheckboxGroup group);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/CheckboxPeer.java/clean/core/src/classpath/java/java/awt/peer/CheckboxPeer.java
public abstract void setLabel(String label);
void setLabel (String label);
public abstract void setLabel(String label);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/CheckboxPeer.java/clean/core/src/classpath/java/java/awt/peer/CheckboxPeer.java
public abstract void setState(boolean state);
void setState (boolean state);
public abstract void setState(boolean state);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/CheckboxPeer.java/clean/core/src/classpath/java/java/awt/peer/CheckboxPeer.java
if (DEBUG && debuglevel > 0)
if (Configuration.DEBUG)
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
debug("seed: " + seed.toString(16)); debug("counter: " + counter.intValue()); debug("q: " + q.toString(16)); debug("p: " + p.toString(16)); debug("e: " + e.toString(16)); debug("g: " + g.toString(16));
log.fine("seed: " + seed.toString(16)); log.fine("counter: " + counter.intValue()); log.fine("q: " + q.toString(16)); log.fine("p: " + p.toString(16)); log.fine("e: " + e.toString(16)); log.fine("g: " + g.toString(16));
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.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/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.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/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
private synchronized BigInteger nextX() { byte[] xk = XKEY.toByteArray(); byte[] in = new byte[64]; // 512-bit block for SHS System.arraycopy(xk, 0, in, 0, xk.length); int[] H = Sha160.G(T_SHS[0], T_SHS[1], T_SHS[2], T_SHS[3], T_SHS[4], in, 0); byte[] h = new byte[20]; for (int i = 0, j = 0; i < 5;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
h[j++] = (byte) (H[i] >>> 24); h[j++] = (byte) (H[i] >>> 16); h[j++] = (byte) (H[i] >>> 8);
h[j++] = (byte)(H[i] >>> 24); h[j++] = (byte)(H[i] >>> 16); h[j++] = (byte)(H[i] >>> 8);
private synchronized BigInteger nextX() { byte[] xk = XKEY.toByteArray(); byte[] in = new byte[64]; // 512-bit block for SHS System.arraycopy(xk, 0, in, 0, xk.length); int[] H = Sha160.G(T_SHS[0], T_SHS[1], T_SHS[2], T_SHS[3], T_SHS[4], in, 0); byte[] h = new byte[20]; for (int i = 0, j = 0; i < 5;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
private synchronized BigInteger nextX() { byte[] xk = XKEY.toByteArray(); byte[] in = new byte[64]; // 512-bit block for SHS System.arraycopy(xk, 0, in, 0, xk.length); int[] H = Sha160.G(T_SHS[0], T_SHS[1], T_SHS[2], T_SHS[3], T_SHS[4], in, 0); byte[] h = new byte[20]; for (int i = 0, j = 0; i < 5;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
{
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
}
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT
preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
public void setup(Map attributes) { // find out the modulus length Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); if ((L % 64) != 0 || L < 512 || L > 1024) throw new IllegalArgumentException(MODULUS_LENGTH); // should we use the defa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairGenerator.java
return modInverse(m);
return modInverse(m).modPow(exponent.negate(), m);
public BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.isNegative() || m.isZero()) throw new ArithmeticException("non-positive modulo"); if (exponent.isNegative()) return modInverse(m); if (exponent.isOne()) return mod(m); // To do this naively by first raising this to the pow...
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 (!isSeeded) setSeed(getSeed(32));
public void nextBytes(byte[] bytes) { randomBytesUsed += bytes.length; counter++; secureRandomSpi.engineNextBytes(bytes); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/321ca9787201345560a6d7a6717b1d12e5e7241f/SecureRandom.java/buggy/core/src/classpath/java/java/security/SecureRandom.java
throws NotImplementedException
public void focusGained(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
slider.repaint(); hasFocus = true;
public void focusGained(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
throws NotImplementedException
public void focusLost(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
slider.repaint(); hasFocus = false;
public void focusLost(FocusEvent e) throws NotImplementedException { // FIXME: implement. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
public void paint(Graphics g, JComponent c) { // FIXME: Move this to propertyChangeEvent handler, when we get those. leftToRightCache = slider.getComponentOrientation() != ComponentOrientation.RIGHT_TO_LEFT; // FIXME: This next line is only here because the above line is here. calculateGeometry()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
if (hasFocus) paintFocus(g);
public void paint(Graphics g, JComponent c) { // FIXME: Move this to propertyChangeEvent handler, when we get those. leftToRightCache = slider.getComponentOrientation() != ComponentOrientation.RIGHT_TO_LEFT; // FIXME: This next line is only here because the above line is here. calculateGeometry()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
dark = new Polygon(new int[] { b.x, c.x, d.x + 1 }, new int[] { b.y, c.y - 1, d.y }, 3);
dark = new Polygon(new int[] { b.x, c.x, d.x + 1 }, new int[] { b.y, c.y - 1, d.y }, 3);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
all = new Polygon(new int[] { a.x + 1, b.x - 2, c.x - 2, d.x, e.x + 1 },
all = new Polygon( new int[] { a.x + 1, b.x - 2, c.x - 2, d.x, e.x + 1 },
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
dark = new Polygon(new int[] { c.x, d.x, e.x }, new int[] { c.y, d.y, e.y }, 3);
dark = new Polygon(new int[] { c.x, d.x, e.x }, new int[] { c.y, d.y, e.y }, 3);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
light = new Polygon(new int[] { c.x - 1, d.x, e.x + 1}, new int[] { c.y, d.y - 1, e.y - 1}, 3);
light = new Polygon(new int[] { c.x - 1, d.x, e.x + 1 }, new int[] { c.y, d.y - 1, e.y - 1 }, 3);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
e.x + 1 }, new int[] { a.y + 1, b.y + 1, c.y - 1, c.y, d.y - 2, e.y - 2 }, 6);
e.x + 1 }, new int[] { a.y + 1, b.y + 1, c.y - 1, c.y, d.y - 2, e.y - 2 }, 6);
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicSliderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java
return new Dimension(fixedCellWidth, getModel().getSize() * fixedCellHeight);
return new Dimension(fixedCellWidth, size * fixedCellHeight);
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
int prefWidth, prefHeight;
if (size == 0) { if (fixedCellWidth == -1) return new Dimension(256, 16 * getVisibleRowCount()); else return new Dimension (fixedCellWidth, 16 * getVisibleRowCount()); } int prefWidth;
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
{ prefWidth = 0; int size = getModel().getSize(); for (int i = 0; i < size; i++) if (getCellBounds(i, i).width > prefWidth) prefWidth = getCellBounds(i, i).width; }
prefWidth = getPreferredSize().width;
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
if (getModel().getSize() == 0 && fixedCellWidth == -1) return new Dimension(256, 16 * getVisibleRowCount()); else if (getModel().getSize() == 0) return new Dimension (fixedCellWidth, 16 * getVisibleRowCount());
int prefHeight;
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
{ prefHeight = getVisibleRowCount() * getCellBounds (getFirstVisibleIndex(), getFirstVisibleIndex()).height; }
prefHeight = getVisibleRowCount() * getCellBounds(0, 0).height;
public Dimension getPreferredScrollableViewportSize() { //If the layout orientation is not VERTICAL, then this will //return the value from getPreferredSize. The current ListUI is //expected to override getPreferredSize to return an appropriate value. if (getLayoutOrientation() != VERTICAL) return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
protected AccessibleJColorChooser(JColorChooser component) { super(component); }
protected AccessibleJColorChooser() { }
protected AccessibleJColorChooser(JColorChooser component) { super(component); // TODO } // AccessibleJColorChooser()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JColorChooser.java/buggy/core/src/classpath/javax/javax/swing/JColorChooser.java
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJColorChooser(this); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJColorChooser(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJColorChooser(this); } // if return accessibleContext; } // getAccessibleContext()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JColorChooser.java/buggy/core/src/classpath/javax/javax/swing/JColorChooser.java
final Extent size = Extent.fromIntZeroExtend(length);
final Extent size = Extent.fromIntZeroExtend(length * 4);
public void getInts(int memPtr, int[] dst, int dstOfs, int length) { if (dstOfs < 0) { throw new IndexOutOfBoundsException("dstOfs < 0"); } if (length < 0) { throw new IndexOutOfBoundsException("length < 0"); } if (dstOfs + length > dst.length) { throw new IndexOutOfBoundsException("dstOfs + length > dst.le...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/306272dd066f898e7c473582ef1ef9b230b629c9/MemoryResourceImpl.java/buggy/core/src/core/org/jnode/vm/MemoryResourceImpl.java
String s = value.toString();
String s = value != null ? value.toString() : "";
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); setHorizontalAlignment(LEF...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/DefaultListCellRenderer.java/clean/core/src/classpath/javax/javax/swing/DefaultListCellRenderer.java
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
public static int showConfirmDialog(Component parentComponent, Object message)
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(parentComponent, title);
JOptionPane pane = new JOptionPane(message); JDialog dialog = pane.createDialog(parentComponent, "Select an Option");
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) { JOptionPane pane = new JOptionPane(message, messageType, optionType); JDialog dialog = pane.createDialog(pare...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
if (created) { DomDocument domDoc = (DomDocument) parent; domDoc.setBuilding(false); domDoc.setCheckWellformedness(true); }
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/TransformerImpl.java/clean/core/src/classpath/gnu/gnu/xml/transform/TransformerImpl.java
int hi = Integer.reverse((int) val); int lo = Integer.reverse((int) (val >>> 32)); return (((long) hi) << 32) | lo;
long hi = Integer.reverse((int) val) & 0xffffffffL; long lo = Integer.reverse((int) (val >>> 32)) & 0xffffffffL; return (hi << 32) | lo;
public static long reverse(long val) { int hi = Integer.reverse((int) val); int lo = Integer.reverse((int) (val >>> 32)); return (((long) hi) << 32) | lo; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Long.java/clean/core/src/classpath/5.0/java/lang/Long.java
public static Long valueOf(String s)
public static Long valueOf(String s, int radix)
public static Long valueOf(String s) { return new Long(parseLong(s, 10, false)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Long.java/clean/core/src/classpath/5.0/java/lang/Long.java
return new Long(parseLong(s, 10, false));
return new Long(parseLong(s, radix, false));
public static Long valueOf(String s) { return new Long(parseLong(s, 10, false)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/Long.java/clean/core/src/classpath/5.0/java/lang/Long.java
if (file.isDirectory()) { URL url = getURL(); return url.openStream(); }
InputStream getInputStream() throws IOException { // Delegate to the URL content handler mechanism to retrieve an // HTML representation of the directory listing if a directory if (file.isDirectory()) { URL url = getURL(); return url.openStream(); } // Otherwis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
if (file.isDirectory()) { URL url = getURL(); try { URLConnection connection = url.openConnection(); return connection.getContentLength(); } catch (IOException e) { return -1; } }
public int getLength() { // Delegate to the URL content handler mechanism to retrieve the // length of the HTML representation of the directory listing if // a directory, or -1 if an exception occurs opening the directory. if (file.isDirectory()) { URL url = getURL(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
File file = new File(dir, name); if (file.exists()) return new FileResource(this, name, file);
try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file.getPath(), file); } catch (IOException e) { }
Resource getResource(String name) { File file = new File(dir, name); if (file.exists()) return new FileResource(this, name, file); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
synchronized (urlloaders)
synchronized (this)
private void addURLImpl(URL newUrl) { synchronized (urlloaders) { if (newUrl == null) return; // Silently ignore... // Reset the toString() value. thisString = null; // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); String specVendor = attr.getValue(Attributes.Name.SPECIFICATION_VENDOR); String implTitle = attr.getValue(Attributes.Name.IMPLEMENTATION_TITLE); String implVersion = attr.get...
String specTitle = getAttributeValue(Attributes.Name.SPECIFICATION_TITLE, entryAttr, attr); String specVersion = getAttributeValue(Attributes.Name.SPECIFICATION_VERSION, entryAttr, attr); String specVendor = getAttributeValue(Attributes.Name.SPECIFICATION_VENDOR, entryAttr, attr); String implTitle = getAttributeValue(...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
return definePackage(name, specTitle, specVersion, specVendor, implTitle, implVersion, implVendor, url);
return definePackage(name, specTitle, specVendor, specVersion, implTitle, implVendor, implVersion, url);
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERSION); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
super.setSigners(result, resource.getCertificates());
Certificate[] resourceCertificates = resource.getCertificates(); if(resourceCertificates != null) super.setSigners(result, resourceCertificates);
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
synchronized (urlloaders)
synchronized (this)
public String toString() { synchronized (urlloaders) { if (thisString == null) { StringBuffer sb = new StringBuffer(); sb.append(this.getClass().getName()); sb.append("{urls=[" ); URL[] thisURLs = getURLs(); for (int i = 0; i < thisURLs.length; i++) { sb.append(thisURLs[i]); if ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
public ObjectEmitter(AbstractVmClassLoader b, NativeStream os, PrintWriter debug, Set legalInstanceClasses) {
public ObjectEmitter(VmClassLoader b, NativeStream os, PrintWriter debug, Set legalInstanceClasses) {
public ObjectEmitter(AbstractVmClassLoader b, NativeStream os, PrintWriter debug, Set legalInstanceClasses) { this.loaderContext = b; this.os = os; this.bis = (BootImageNativeStream)os; this.legalInstanceClasses = legalInstanceClasses; this.debugWriter = debug; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/ObjectEmitter.java/buggy/builder/src/builder/org/jnode/build/ObjectEmitter.java
cdrBufOutput buffer = new cdrBufOutput();
BufferedCdrOutput buffer = new BufferedCdrOutput();
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ServiceRequestAdapter.java/buggy/core/src/classpath/gnu/gnu/CORBA/ServiceRequestAdapter.java
universalHolder uku = new universalHolder(h.reply);
GeneralHolder uku = new GeneralHolder(h.reply);
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ServiceRequestAdapter.java/buggy/core/src/classpath/gnu/gnu/CORBA/ServiceRequestAdapter.java
r.insert_Streamable(new streamReadyHolder(in));
r.insert_Streamable(new StreamHolder(in));
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ServiceRequestAdapter.java/buggy/core/src/classpath/gnu/gnu/CORBA/ServiceRequestAdapter.java
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreEleme...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
if (Configuration.DEBUG)
void start() throws Exception { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreEleme...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finest("About to verify signature of " + sigFileName + "...");
log.fine("About to verify signature of " + sigFileName + "..."); }
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finest("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes "));
if (Configuration.DEBUG) log.fine("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes "));
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finest("--- verifier public key = " + verifierKey);
if (Configuration.DEBUG) log.fine("--- verifier public key = " + verifierKey);
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finer("Signature block [" + sigFileName + "] is "
if (Configuration.DEBUG) { log.fine("Signature block [" + sigFileName + "] is "
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
}
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
private boolean verifySFEntries(String alias) throws IOException { log.entering(this.getClass().getName(), "verifySFEntries"); //$NON-NLS-1$ // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); In...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.exiting(this.getClass().getName(), "verifySFEntries", Boolean.valueOf(result));
if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "verifySFEntries", Boolean.valueOf(result));
private boolean verifySFEntries(String alias) throws IOException { log.entering(this.getClass().getName(), "verifySFEntries"); //$NON-NLS-1$ // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); In...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/JarVerifier.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java