rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
sessionPane.getComponent(sessionPane.getSelectedIndex()).requestFocus();
((Session)sessionPane.getComponent(sessionPane.getSelectedIndex())).grabFocus();
private void nextSession() { int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); if (index < sessionPane.getTabCount() - 1) { sessionPane.setSelectedIndex(++index); sessionPane.setForegroundAt(index,Co...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7a82ce3041cbc092c0d9eec362f4d9e8b4157e53/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
sessionPane.getComponent(sessionPane.getSelectedIndex()).requestFocus();
((Session)sessionPane.getComponent(sessionPane.getSelectedIndex())).grabFocus();
private void prevSession() { int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); if (index == 0) { sessionPane.setSelectedIndex(sessionPane.getTabCount() - 1); sessionPane.setForegroundAt(sessionPane.g...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7a82ce3041cbc092c0d9eec362f4d9e8b4157e53/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
((Session)sessionPane.getComponentAt(index)).requestFocus();
((Session)sessionPane.getComponentAt(index)).grabFocus();
public void removeSessionView(Session targetSession) { int index = sessionPane.indexOfComponent(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); int tabs = sessionPane.getT...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7a82ce3041cbc092c0d9eec362f4d9e8b4157e53/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
((Session)sessionPane.getComponentAt(0)).requestFocus();
((Session)sessionPane.getComponentAt(0)).grabFocus();
public void removeSessionView(Session targetSession) { int index = sessionPane.indexOfComponent(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); int tabs = sessionPane.getT...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7a82ce3041cbc092c0d9eec362f4d9e8b4157e53/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
sg.requestFocus();
sg.grabFocus();
public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); p.setForegroundAt(selectedIndex,Color.black); p.setIconAt(selectedIndex,unfocused); Session sg = (Session)p.getComponentAt(selectedIndex); sg.setVisible(false); sg = (Session)p.getSelectedComponent(); ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7a82ce3041cbc092c0d9eec362f4d9e8b4157e53/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
public void drawLine(int lineIndex, Graphics g, int x, int y)
protected void drawLine(int lineIndex, Graphics g, int x, int y)
public void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getDocument().getDefaultRootElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset()); //drawSelectedTex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/PlainView.java/clean/core/src/classpath/javax/javax/swing/text/PlainView.java
public int getTabSize()
protected int getTabSize()
public int getTabSize() { return 8; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/PlainView.java/clean/core/src/classpath/javax/javax/swing/text/PlainView.java
public Number decrementDimension() { Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null;
public int decrementDimension() { if (dimension == 0) { Log.error(" in DataCube, incrementDimentsion, the dimension is 0"); return 0;
public Number decrementDimension() { Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null; } else return setDimension(new Integer(dim.intValue()-1));}
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
return setDimension(new Integer(dim.intValue()-1));
return dimension--;
public Number decrementDimension() { Number dim = getDimension(); if (dim == null) { Log.error(" in DataCube, incrementDimentsion, the dimension is undef"); return null; } else return setDimension(new Integer(dim.intValue()-1));}
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public Number getDimension() { return (Number) ((XMLAttribute) attribHash.get("dimension")).getAttribValue();
public int getDimension() { return dimension;
public Number getDimension() { return (Number) ((XMLAttribute) attribHash.get("dimension")).getAttribValue();}
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
for(int i = 0; i < axes.size(); i++) {
int stop = axes.size(); for(int i = 0; i < stop; i++) {
public int[] getMaxDataIndex() { List axes = parentArray.getAxisList(); int[] maxDataIndices = new int[axes.size()]; for(int i = 0; i < axes.size(); i++) { maxDataIndices[i]=((Axis) axes.get(i)).getLength(); } //update the *maxDimensionIndex* attribute attribHash.put("maxDimensionIndex", maxDataIndices); retu...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
attribHash.put("maxDimensionIndex", maxDataIndices);
public int[] getMaxDataIndex() { List axes = parentArray.getAxisList(); int[] maxDataIndices = new int[axes.size()]; for(int i = 0; i < axes.size(); i++) { maxDataIndices[i]=((Axis) axes.get(i)).getLength(); } //update the *maxDimensionIndex* attribute attribHash.put("maxDimensionIndex", maxDataIndices); retu...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) {
public int incrementDimension(Axis axis) { if (dimension==0) {
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for (int i = 2; i < 2*le...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
return setDimension(new Integer(1));
return dimension++;
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for (int i = 2; i < 2*le...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
if (dim.intValue() == 1) {
if (dimension == 1) {
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for (int i = 2; i < 2*le...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
return setDimension(new Integer(dim.intValue()+1));
return dimension++;
public Number incrementDimension(Axis axis) { Number dim = getDimension(); if (dim.intValue()==0) { //add first dimension data.add(null); data.add(null); return setDimension(new Integer(1)); } if (dim.intValue() == 1) { //add second dimension int length = axis.getLength(); for (int i = 2; i < 2*le...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
attribOrder.add(0,"maxDimensionIndex"); attribOrder.add(0,"dimension");
private void init() { classXDFNodeName = "data"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"maxDimensionIndex"); attribOrder.add(0,"dimension"); attribOrder.add(0,"compression"); attribOrder.add(0,"checksum"); attribOrder.add(0,"href")...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
attribHash.put("maxDimensionIndex", new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE)); attribHash.put("dimension", new XMLAttribute(new Integer(0), Constants.NUMBER_TYPE));
private void init() { classXDFNodeName = "data"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"maxDimensionIndex"); attribOrder.add(0,"dimension"); attribOrder.add(0,"compression"); attribOrder.add(0,"checksum"); attribOrder.add(0,"href")...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
attribHash.put("checksum", new XMLAttribute(new Double(0), Constants.NUMBER_TYPE));
attribHash.put("encoding", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("checksum", new XMLAttribute(null, Constants.NUMBER_TYPE));
private void init() { classXDFNodeName = "data"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"maxDimensionIndex"); attribOrder.add(0,"dimension"); attribOrder.add(0,"compression"); attribOrder.add(0,"checksum"); attribOrder.add(0,"href")...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
Log.info("in DataCube.setChecksum()"); return (Number) ((XMLAttribute) attribHash.get("checksum")).setAttribValue(checksum); }
Log.info("in DataCube.setChecksum()"); return (Number) ((XMLAttribute) attribHash.get("checksum")).setAttribValue(checksum); }
public Number setChecksum (Number checksum) { Log.info("in DataCube.setChecksum()"); return (Number) ((XMLAttribute) attribHash.get("checksum")).setAttribValue(checksum);}
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
if (!Utility.isValidDataCompression(strCompression)) return null;
public String setCompression (String strCompression) { return (String) ((XMLAttribute) attribHash.get("compression")).setAttribValue(strCompression); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
String checksum = getChecksum().toString();
Number checksum = getChecksum();
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
writeOut(outputstream, " checksum = \"" + checksum + "\"");
writeOut(outputstream, " checksum = \"" + checksum.toString() + "\"");
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent ) { boolean niceOutput = sPrettyXDFOutput; String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
Locator locator,
Locator locator,
protected void writeTaggedData(OutputStream outputstream, Locator locator, String indent, int[] axisLength, String[] tags, int which) { String tag = (String) tags[which]; if (sPrettyXDFOutput) { indent += sPrettyXDFOutputIndentation; } //base case if...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
protected void writeTaggedData(OutputStream outputstream, Locator locator, String indent, int[] axisLength, String[] tags, int which) { String tag = (String) tags[which]; if (sPrettyXDFOutput) { indent += sPrettyXDFOutputIndentation; } //base case if...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/8b52fb16dca9cddb258fee9dd8dfc0365ee9e414/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
public BasicStroke()
public BasicStroke(float width, int cap, int join, float miterlimit, float[] dash, float dashPhase)
public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0);
if (width < 0.0f ) throw new IllegalArgumentException("width " + width + " < 0"); else if (cap < CAP_BUTT || cap > CAP_SQUARE) throw new IllegalArgumentException("cap " + cap + " out of range [" + CAP_BUTT + ".." + CAP_SQUARE + "]"); else if (miterlimit < 1.0f && join == JOIN_MITER) throw new IllegalArgumentException("...
public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
double[] p0 = start.last.last(); double[] p1 = new double[]{start.last.P2.getX(), start.last.P2.getY()}; double[] p2 = new double[]{segments[0].P1.getX(), segments[0].P1.getY()}; double[] p3 = segments[0].first(); Point2D p; double det = (p1[0] - p0[0])*(p3[1] - p2[1]) - (p3[0] - p2[0])*(p1[1] - p0[1]); if( det > 0 )...
joinSegments(segments); start.add(segments[0]); end.add(segments[1]);
private void addSegments(Segment[] segments) { double[] p0 = start.last.last(); double[] p1 = new double[]{start.last.P2.getX(), start.last.P2.getY()}; double[] p2 = new double[]{segments[0].P1.getX(), segments[0].P1.getY()}; double[] p3 = segments[0].first(); Point2D p; double det = (p1[0] - p0[0]...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
p0 = a.last.last();
p0 = a.last.cp2();
private void capEnd(Segment a, Segment b) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( cap ) { case CAP_BUTT: a.add(new LineSegment(a.last.P2, b.P1)); break; case CAP_SQUARE: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
p0 = a.last.last();
p0 = a.last.cp2();
private void capEnd(Segment a, Segment b) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( cap ) { case CAP_BUTT: a.add(new LineSegment(a.last.P2, b.P1)); break; case CAP_SQUARE: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
PathIterator pi = s.getPathIterator( new AffineTransform() );
PathIterator pi = s.getPathIterator(null);
public Shape createStrokedShape(Shape s) { PathIterator pi = s.getPathIterator( new AffineTransform() ); if( dash == null ) return solidStroke( pi ); return dashedStroke( pi ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
GeneralPath out = new GeneralPath(); return out;
FlatteningPathIterator flat = new FlatteningPathIterator(pi, Math.sqrt(width / 3)); double[] coords = new double[2]; double x, y, x0, y0; x = x0 = y = y0 = 0; boolean pathOpen = false; boolean dashOn = true; boolean offsetting = (phase != 0); double distance = 0; int dashIndex = 0; GeneralPath output = new ...
private Shape dashedStroke(PathIterator pi) { GeneralPath out = new GeneralPath(); return out; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
private void joinSegments(Segment a, Segment b, Point2D insideP)
private void joinSegments(Segment[] segments)
private void joinSegments(Segment a, Segment b, Point2D insideP) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( join ) { case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
double[] p0, p1; double dx, dy, l; Point2D c1,c2;
double[] p0 = start.last.cp2(); double[] p1 = new double[]{start.last.P2.getX(), start.last.P2.getY()}; double[] p2 = new double[]{segments[0].first.P1.getX(), segments[0].first.P1.getY()}; double[] p3 = segments[0].cp1(); Point2D p;
private void joinSegments(Segment a, Segment b, Point2D insideP) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( join ) { case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
switch( join )
p = lineIntersection(p0[0],p0[1],p1[0],p1[1], p2[0],p2[1],p3[0],p3[1], false); double det = (p1[0] - p0[0])*(p3[1] - p2[1]) - (p3[0] - p2[0])*(p1[1] - p0[1]); if( det > 0 )
private void joinSegments(Segment a, Segment b, Point2D insideP) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( join ) { case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.getY()}; double[] p3 = b.first(); Point2D p = lineIntersection(p0[0],p0[1],p1[0],p1[1],p2[0],p2[1],p3[0],p3[1], true); if( p == null || insideP == null ) a.add(new LineSegment(a.last....
joinInnerSegments(start, segments[0], p); joinOuterSegments(end, segments[1], p);
private void joinSegments(Segment a, Segment b, Point2D insideP) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( join ) { case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
a.add(b);
else { joinInnerSegments(end, segments[1], p); joinOuterSegments(start, segments[0], p); }
private void joinSegments(Segment a, Segment b, Point2D insideP) { double[] p0, p1; double dx, dy, l; Point2D c1,c2; switch( join ) { case JOIN_MITER: p0 = a.last.last(); p1 = new double[]{a.last.P2.getX(), a.last.P2.getY()}; double[] p2 = new double[]{b.P1.getX(), b.P1.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
x = coords[0]; y = coords[1];
x = coords[2]; y = coords[3];
private Shape solidStroke(PathIterator pi) { double[] coords = new double[6]; double x, y, x0, y0; boolean pathOpen = false; GeneralPath output = new GeneralPath( ); Segment[] p; x = x0 = y = y0 = 0; while( !pi.isDone() ) { switch( pi.currentSegment(coords) ) { case...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
x = coords[0]; y = coords[1];
x = coords[4]; y = coords[5];
private Shape solidStroke(PathIterator pi) { double[] coords = new double[6]; double x, y, x0, y0; boolean pathOpen = false; GeneralPath output = new GeneralPath( ); Segment[] p; x = x0 = y = y0 = 0; while( !pi.isDone() ) { switch( pi.currentSegment(coords) ) { case...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
p = (new LineSegment(x, y, x0, y0)).getDisplacedSegments(width/2.0);
if (x == x0 && y == y0) { joinSegments(new Segment[] { start.first, end.first }); } else { p = (new LineSegment(x, y, x0, y0)).getDisplacedSegments(width / 2.0);
private Shape solidStroke(PathIterator pi) { double[] coords = new double[6]; double x, y, x0, y0; boolean pathOpen = false; GeneralPath output = new GeneralPath( ); Segment[] p; x = x0 = y = y0 = 0; while( !pi.isDone() ) { switch( pi.currentSegment(coords) ) { case...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
output.setWindingRule(GeneralPath.WIND_EVEN_ODD);
private Shape solidStroke(PathIterator pi) { double[] coords = new double[6]; double x, y, x0, y0; boolean pathOpen = false; GeneralPath output = new GeneralPath( ); Segment[] p; x = x0 = y = y0 = 0; while( !pi.isDone() ) { switch( pi.currentSegment(coords) ) { case...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/564d5a4fe6696ea6c8710997b68012950f28e18a/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java
last = last.next;
last = last.next.last;
public void add(Segment newsegment) { last.next = newsegment; last = last.next; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/Segment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/Segment.java
public LineSegment(Point2D p1, Point2D p2)
public LineSegment(double x1, double y1, double x2, double y2)
public LineSegment(Point2D p1, Point2D p2) { super(); P1 = (Point2D) p1.clone(); P2 = (Point2D) p2.clone(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/LineSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/LineSegment.java
P1 = (Point2D) p1.clone(); P2 = (Point2D) p2.clone();
P1 = new Point2D.Double(x1, y1); P2 = new Point2D.Double(x2, y2);
public LineSegment(Point2D p1, Point2D p2) { super(); P1 = (Point2D) p1.clone(); P2 = (Point2D) p2.clone(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/LineSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/LineSegment.java
public CubicSegment(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2)
public CubicSegment(double x1, double y1, double c1x, double c1y, double c2x, double c2y, double x2, double y2)
public CubicSegment(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2) { super(); P1 = p1; P2 = p2; this.cp1 = cp1; this.cp2 = cp2; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/CubicSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/CubicSegment.java
P1 = p1; P2 = p2; this.cp1 = cp1; this.cp2 = cp2;
P1 = new Point2D.Double(x1, y1); P2 = new Point2D.Double(x2, y2); cp1 = new Point2D.Double(c1x, c1y); cp2 = new Point2D.Double(c2x, c2y);
public CubicSegment(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2) { super(); P1 = p1; P2 = p2; this.cp1 = cp1; this.cp2 = cp2; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/CubicSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/CubicSegment.java
first = last;
public void reverseAll() { reverse(); Segment v = next; Segment former = this; next = null; while (v != null) { v.reverse(); v.last = this; Segment oldnext = v.next; v.next = former; former = v; v = oldnext; // move to the next in list } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/Segment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/Segment.java
double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double[] p1 = normal(x0, y0, x1, y1); double[] p2 = normal(x2, y2, x3, y3);
public Segment[] getDisplacedSegments(double radius) { this.radius = radius; double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double[] p1 = normal(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/CubicSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/CubicSegment.java
return new Segment[0];
return new Segment[] { segmentTop, segmentBottom };
public Segment[] getDisplacedSegments(double radius) { this.radius = radius; double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double[] p1 = normal(x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/CubicSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/CubicSegment.java
protected void resolve() throws PluginException {
protected void resolve(PluginRegistryModel registry) throws PluginException { registry.registerExtensionPoint(this);
protected void resolve() throws PluginException { // Do nothing }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ExtensionPointModel.java/buggy/core/src/core/org/jnode/plugin/model/ExtensionPointModel.java
protected void unresolve() throws PluginException {
protected void unresolve(PluginRegistryModel registry) throws PluginException { registry.unregisterExtensionPoint(this);
protected void unresolve() throws PluginException { // Do nothing }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ExtensionPointModel.java/buggy/core/src/core/org/jnode/plugin/model/ExtensionPointModel.java
public DoubleSeqHolder(double[] initial_value)
public DoubleSeqHolder()
public DoubleSeqHolder(double[] initial_value) { value = initial_value; typecode.setLength(value.length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9b55eb78411ab1a82da7ba097b7b93a8cd80865/DoubleSeqHolder.java/clean/core/src/classpath/org/org/omg/CORBA/DoubleSeqHolder.java
value = initial_value; typecode.setLength(value.length);
public DoubleSeqHolder(double[] initial_value) { value = initial_value; typecode.setLength(value.length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9b55eb78411ab1a82da7ba097b7b93a8cd80865/DoubleSeqHolder.java/clean/core/src/classpath/org/org/omg/CORBA/DoubleSeqHolder.java
public void append(PathIterator iter, boolean connect)
public void append(Shape s, boolean connect)
public void append(PathIterator iter, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/GeneralPath.java/buggy/core/src/classpath/java/java/awt/geom/GeneralPath.java
float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { moveTo(f[0], f[1]); break; } if ((index >= 1) && (types[index - 1] == PathIterator.SEG_CLOSE) && (f[0] == xpoints[index - 1]) && (f[1] == ypoints[index - 1])) break; ca...
append(s.getPathIterator(null), connect);
public void append(PathIterator iter, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/GeneralPath.java/buggy/core/src/classpath/java/java/awt/geom/GeneralPath.java
rb.append ('\n');
public void parseFields(byte[] cByte, ArrayList ffd, StringBuffer rb) { FileFieldDef f; // write out the html record information for each field that is selected for (int x = 0; x < ffd.size(); x++) { f = (FileFieldDef)ffd.get(x); if (f.isWriteField()) { switch (f.getFieldTyp...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d168ed72700f29af0ae56810df6fe5dbdb8a8a8c/DelimitedOutputFilter.java/clean/tn5250j/src/org/tn5250j/tools/filters/DelimitedOutputFilter.java
try {
FileFieldDef f; StringBuffer sb = new StringBuffer(); for (int x = 0; x < ffd.size(); x++) { f = (FileFieldDef)ffd.get(x); if (f.isWriteField()) { sb.append(f.getFieldName() + delimiter); } }
public void writeHeader(String fileName, String host, ArrayList ffd, char decChar) { try { FileFieldDef f; StringBuffer sb = new StringBuffer(); // loop through each of the fields and write out the field name for // each selected field ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d168ed72700f29af0ae56810df6fe5dbdb8a8a8c/DelimitedOutputFilter.java/clean/tn5250j/src/org/tn5250j/tools/filters/DelimitedOutputFilter.java
FileFieldDef f; StringBuffer sb = new StringBuffer(); for (int x = 0; x < ffd.size(); x++) { f = (FileFieldDef)ffd.get(x); if (f.isWriteField()) { sb.append(f.getFieldName() + delimiter); } } fout.write (sb.toString().getBytes()); fout.write ('\n'); } catch (IOException ioe) { }
fout.println (sb.toString().toCharArray());
public void writeHeader(String fileName, String host, ArrayList ffd, char decChar) { try { FileFieldDef f; StringBuffer sb = new StringBuffer(); // loop through each of the fields and write out the field name for // each selected field ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d168ed72700f29af0ae56810df6fe5dbdb8a8a8c/DelimitedOutputFilter.java/clean/tn5250j/src/org/tn5250j/tools/filters/DelimitedOutputFilter.java
if (animationIndex > (numFrames) / 2)
if (animationIndex > numFrames / 2)
protected Rectangle getBox(Rectangle r) { if (!progressBar.isIndeterminate()) return null; if (r == null) r = new Rectangle(); Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(progressBar, vr); // Recalculate the metrics only when size of the progressbar has changed. if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicProgressBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicProgressBarUI.java
g.fillRect(vr.x, vr.y + vr.height - amountFull, vr.width, amountFull);
g.fillRect(vr.x, vr.y + vr.height - amountFull, vr.width, amountFull);
protected void paintDeterminate(Graphics g, JComponent c) { Color saved = g.getColor(); int space = getCellSpacing(); int len = getCellLength(); int max = progressBar.getMaximum(); int min = progressBar.getMinimum(); int value = progressBar.getValue(); Rectangle vr = SwingUtilities.calculateInne...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicProgressBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicProgressBarUI.java
public ProgressBarUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ProgressBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ProgressBarUI.java
System.out.println("i1 % i2=" + NumberUtils.hex(i1 % i2)); System.out.println("i1 & i2=" + NumberUtils.hex(i1 & i2)); System.out.println("i1 | i2=" + NumberUtils.hex(i1 | i2)); System.out.println("i1 ^ i2=" + NumberUtils.hex(i1 ^ i2));
System.out.println("i1 % i2 =" + NumberUtils.hex(i1 % i2)); System.out.println("i1 & i2 =" + NumberUtils.hex(i1 & i2)); System.out.println("i1 | i2 =" + NumberUtils.hex(i1 | i2)); System.out.println("i1 ^ i2 =" + NumberUtils.hex(i1 ^ i2));
public static void main(String[] args) { final int i1 = 0x00450078; final int i2 = 0x45007800; System.out.println("i1 % i2=" + NumberUtils.hex(i1 % i2)); System.out.println("i1 & i2=" + NumberUtils.hex(i1 & i2)); System.out.println("i1 | i2=" + NumberUtils.hex(i1 | i2)); System.out.println("i1 ^ i2=" + Numbe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d974d9b7c8007292fb3bf35e9f401b7489394db3/BinOpTest.java/buggy/core/src/test/org/jnode/test/BinOpTest.java
System.out.println("l1 % l2 =" + NumberUtils.hex(l1 % l2)); System.out.println("l1 & l2 =" + NumberUtils.hex(l1 & l2)); System.out.println("l1 | l2 =" + NumberUtils.hex(l1 | l2)); System.out.println("l1 ^ l2 =" + NumberUtils.hex(l1 ^ l2)); System.out.println("l1 >> 3 =" + NumberUtils.hex(l1 >> 3)); System.out.pri...
public static void main(String[] args) { final int i1 = 0x00450078; final int i2 = 0x45007800; System.out.println("i1 % i2=" + NumberUtils.hex(i1 % i2)); System.out.println("i1 & i2=" + NumberUtils.hex(i1 & i2)); System.out.println("i1 | i2=" + NumberUtils.hex(i1 | i2)); System.out.println("i1 ^ i2=" + Numbe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d974d9b7c8007292fb3bf35e9f401b7489394db3/BinOpTest.java/buggy/core/src/test/org/jnode/test/BinOpTest.java
public final static VmArrayClass getPrimitiveArrayClass(int type) {
public final static VmType getPrimitiveArrayClass(char type) {
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 4:
case 'Z':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 8:
case 'B':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 5:
case 'C':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 9:
case 'S':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 10:
case 'I':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 6:
case 'F':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 11:
case 'J':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 7:
case 'D':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
{ super();
{
public NoSuchFieldError() { super(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/NoSuchFieldError.java/buggy/core/src/classpath/java/java/lang/NoSuchFieldError.java
public StackOverflowError() { super();
public StackOverflowError() {
public StackOverflowError() { super(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StackOverflowError.java/buggy/core/src/classpath/java/java/lang/StackOverflowError.java
public UnknownError(String s) { super(s);
public UnknownError() {
public UnknownError(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/UnknownError.java/buggy/core/src/classpath/java/java/lang/UnknownError.java
}
}
public AbstractColorChooserPanel() { } // AbstractColorChooserPanel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/AbstractColorChooserPanel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/AbstractColorChooserPanel.java
public AddressPcEntry(VmMethod method, int pc, int offset) {
public AddressPcEntry(VmMethod method, int pc, int offset, int inlineDepth) {
public AddressPcEntry(VmMethod method, int pc, int offset) { this.method = method; this.pc = (char)pc; this.offset = offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
this.pc = (char)pc;
this.pc = (char) pc;
public AddressPcEntry(VmMethod method, int pc, int offset) { this.method = method; this.pc = (char)pc; this.offset = offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
this.inlineDepth = (byte)inlineDepth;
public AddressPcEntry(VmMethod method, int pc, int offset) { this.method = method; this.pc = (char)pc; this.offset = offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
public void add(VmMethod method, int pc, int offset) { if (offsetTable != null) { throw new RuntimeException( "Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(method, pc, offset);
public void add(VmMethod method, int pc, int offset, int inlineDepth) { if (offsetTable != null) { throw new RuntimeException("Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(method, pc, offset, inlineDepth);
public void add(VmMethod method, int pc, int offset) { if (offsetTable != null) { throw new RuntimeException( "Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(method, pc, offset); if (list == null) { list = entry; } else { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
final int[] offsetTable = new int[ count];
final int methodCount = methods.size(); final int[] offsetTable = new int[count];
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList<VmMethod> methods = new ArrayList<VmMethod>(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
final byte[] methodIndexTable = new byte[count]; this.methodTable = (VmMethod[]) methods.toArray(new VmMethod[ methods .size()]);
final byte[] methodIndexTable = (methodCount > 1) ? new byte[count] : null; final byte[] inlineDepthTable = (maxInlineDepth == 0) ? null : new byte[count]; this.methodTable = (VmMethod[]) methods.toArray(new VmMethod[methodCount]);
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList<VmMethod> methods = new ArrayList<VmMethod>(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
methodIndexTable[i] = (byte)methods.indexOf(p.method);
if (methodIndexTable != null) { methodIndexTable[i] = (byte) methods.indexOf(p.method); }
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList<VmMethod> methods = new ArrayList<VmMethod>(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
if (p.offset < lastOffset) { throw new InternalError( "unordered offset found"); }
if (inlineDepthTable != null) { inlineDepthTable[i] = p.inlineDepth; } if (p.offset < lastOffset) { throw new InternalError("unordered offset found"); }
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList<VmMethod> methods = new ArrayList<VmMethod>(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
this.inlineDepthTable = inlineDepthTable;
final void lock() { AddressPcEntry p = list; int count = 0; final ArrayList<VmMethod> methods = new ArrayList<VmMethod>(); while (p != null) { count++; final VmMethod m = p.method; if (!methods.contains(m)) { methods.add(m); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
final int methodIdx = methodIndexTable[i];
final int methodIdx = (methodIndexTable != null) ? methodIndexTable[i] : 0;
public void writeTo(PrintStream out) { for (int i = 0; i < offsetTable.length; i++) { final int methodIdx = methodIndexTable[i]; final int pc = pcTable[i]; final int offset = offsetTable[i]; out.println(methodTable[ methodIdx].getName() + ", pc[" + pc ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
out.println(methodTable[ methodIdx].getName() + ", pc[" + pc
out.println(methodTable[methodIdx].getName() + ", pc[" + pc
public void writeTo(PrintStream out) { for (int i = 0; i < offsetTable.length; i++) { final int methodIdx = methodIndexTable[i]; final int pc = pcTable[i]; final int offset = offsetTable[i]; out.println(methodTable[ methodIdx].getName() + ", pc[" + pc ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/VmAddressMap.java/clean/core/src/core/org/jnode/vm/classmgr/VmAddressMap.java
public EthernetHeader(SocketBuffer skbuf) { this.destination = new EthernetAddress(skbuf, 0); this.source = new EthernetAddress(skbuf, 6); this.lengthType = skbuf.get16(12);
public EthernetHeader( EthernetAddress destination, EthernetAddress source, int lengthType) { this.destination = destination; this.source = source; this.lengthType = lengthType;
public EthernetHeader(SocketBuffer skbuf) { this.destination = new EthernetAddress(skbuf, 0); this.source = new EthernetAddress(skbuf, 6); this.lengthType = skbuf.get16(12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/EthernetHeader.java/buggy/net/src/net/org/jnode/net/ethernet/EthernetHeader.java
public ScrollBarUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ScrollBarUI.java
initial_references.put("DynAnyFactory", factory);
public ORB_1_4() { super(); try { rootPOA = new gnuPOA(null, "RootPOA", null, policySets.rootPoa(), this); } catch (InvalidPolicy ex) { // Invalid default policy set. InternalError ierr = new InternalError(); ierr.initCause(ex); throw ierr; } initial...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/ORB_1_4.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/ORB_1_4.java
dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0);
dirty.setBounds(tArea.getBounds());
protected void clearGuiStuff() { for (int x = 0; x < lenScreen; x++) {// screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); }// dirty.setBounds(tArea.getBounds()); dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0);
dirty.setBounds(tArea.getBounds());
public void clearScreen() { for (int x = 0; x < lenScreen; x++) { screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); }// dirty.setBounds(tArea.getBounds()); dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
if (evt.getKeyCode() == KeyEvent.VK_DOWN) {
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; if (!evt.isShiftDown()) { BasicListUI.this.list....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
else if (evt.getKeyCode() == KeyEvent.VK_UP)
else if ((evt.getKeyCode() == KeyEvent.VK_UP) || (evt.getKeyCode() == KeyEvent.VK_KP_UP))
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; if (!evt.isShiftDown()) { BasicListUI.this.list....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int lead = BasicListUI.this.list.getLeadSelectionIndex();
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; if (!evt.isShiftDown()) { BasicListUI.this.list....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
else if (evt.getKeyCode() == KeyEvent.VK_PAGE_UP) { } else if (evt.getKeyCode() == KeyEvent.VK_PAGE_DOWN) { } else if (evt.getKeyCode() == KeyEvent.VK_BACK_SLASH && evt.isControlDown()) { BasicListUI.this.list.clearSelection(); } else if ((evt.getKeyCode() == KeyEvent.VK_HOME) || evt.getKeyCode() == KeyEvent.VK_END) ...
public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; if (!evt.isShiftDown()) { BasicListUI.this.list....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java