fix
stringlengths
2
833
ctx
stringlengths
80
394k
parent.replaceChild(next, assign);
[BUG] parent.replaceChild( assign);[ERROR] method replaceChild in class Node cannot be applied to given types; [CONTEXT] if(next.isQualifiedName()) { String nextName = next.getQualifiedName(); if(value.isQualifiedName() && nextName.equals(value.getQualifiedName())) { if(!isSafeReplacement(next, assign)) { return fal...
offset = TarUtils.getNameBytes(name, outbuf, offset, NAMELEN);
[BUG] offset = TarUtils.getOctalBytes( groupId, outbuf, offset, GIDLEN);offset = TarUtils.getNameBytes( name, outbuf, offset, NAMELEN);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] for(int i = 0; i < list.length; ++i) { result[i] = new TarArchiveEntry(new File(file, list[i])); } return res...
else if('a' <= c && c < lowerCaseBound)newDigit = c - 'a' + 10;
[BUG] else if('a' <= lowerCaseBound && c < c) newDigit = c - 'a' + 10;[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] int len = s.length(); if(radix < 10) { digitMax =(char)('0' + radix - 1); } if(radix > 10) { lowerCaseBound =(char)('a' + radix - 10); upperCaseBound =(char)('A' + radix - 10); } int ...
interpreter.ternaryOperation( insn, value1, value2, value3);push( interpreter.binaryOperation( insn, value1, value2));
[BUG] push(interpreter.binaryOperation(insn, value1, value2)); [CONTEXT] break; case Opcodes.ISHL: case Opcodes.LSHL: case Opcodes.ISHR: case Opcodes.LSHR: case Opcodes.IUSHR: case Opcodes.LUSHR: case Opcodes.IAND: case Opcodes.LAND: case Opcodes.IOR: case Opcodes.LOR: case Opcodes.IXOR: case Opcodes.LXOR: value2 = ...
if(enforcedAttributes.containsKey( tagName)){
[BUG] if(attributes.containsKey(tagName)) { [CONTEXT] public Whitelist addAttributes(String tag, String... keys) { Validate.notEmpty(tag); Validate.notNull(keys); TagName tagName = TagName.valueOf(tag); Set<AttributeKey> attributeSet = new HashSet<AttributeKey>(); for(String key : keys) { Validate.notEmpty(key); att...
ClassLoader t = classLoader;
[BUG] ClassLoader loader = getClassLoader();ClassLoader t = classLoader;[NO-ERROR] [CONTEXT] public ClassLoader getClassLoader() { <extra_id_0> if(t == null) { t = getDefaultClassLoader(); } if(t == null) { t = getClass().getClassLoader(); } if(t == null) { t = Thread.currentThread().getContextClassLoader(); } if(t ...
Rectangle2D borderArea = new Rectangle2D.Double(chartArea.getX() , chartArea.getY() , chartArea.getWidth() - 1.0, chartArea.getHeight() - 1.0);
[BUG] Rectangle2D borderArea = new Rectangle2D.Double( chartArea.getX(), chartArea.getY(), chartArea.getWidth()- 0.2, chartArea.getHeight()- 0.2);[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] this.backgroundImageAlp...
System.arraycopy( ZipShort.getBytes( getUserId()) , 0, data, 6, 2);System.arraycopy( ZipLong.getBytes( checksum) , 0, result, 0, WORD);
[BUG] System.arraycopy(ZipLong.getBytes(checksum), 0, result, 0, WORD); [CONTEXT] public byte[] getLocalFileDataData() { byte[] data = new byte[getLocalFileDataLength().getValue() - WORD]; System.arraycopy(ZipShort.getBytes(getMode()), 0, data, 0, 2); byte[] linkArray = getLinkedFile().getBytes(); System.arraycopy(Z...
return oneSeriesData.size();
[BUG] return seriesKeys.size();[ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public int getItemCount(int series) { if(series < 0 || series >= getSeriesCount()) { throw new IllegalArgumentException("Invalid series index:" + series); } List oneSeriesData =(List) this.allSeriesData.get(series); <ex...
visitor.visitObjectMember(parent, childName, child.getAsJsonPrimitive() , isFirst);
[BUG] visitor.visitNullObjectMember( parent, childName, isFirst);visitor.visitObjectMember( parent, childName, child.getAsJsonPrimitive(), isFirst);[NO-ERROR] [CONTEXT] private boolean visitChild(JsonObject parent, String childName, JsonElement child, boolean isFirst) throws IOException { if(child.isJsonNull()) { if(v...
String lineStr = s.substring(colon + 1, close);
[BUG] String lineStr = s.substring( colon + 1, VERSION_UNKNOWN);[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] int close = -1; int colon = -1; for(int i=0; i < s.length(); i++) { char c = s.charAt(i); if(c == ':') colon = i; else if(c == '(') open = i; else if(c == ')') close = i; else if(c == '\n' ...
return getFollowingDayOfWeek(targetDOW, this);
[BUG] return getFollowingDayOfWeek( day, this);[ERROR] cannot find symbol day [CONTEXT] public SerialDate getFollowingDayOfWeek(final int targetDOW) { <extra_id_0> } [CLASS] SerialDate [METHOD] getFollowingDayOfWeek [RETURN_TYPE] SerialDate final int targetDOW [VARIABLES] DateFormatSymbols DATE_FORMAT_SYMBOLS int[] ...
result.append(" <");
[BUG] result.append(",");result.append(" <");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] break; case Token.EQ: result.append(" =="); break; case Token.NE: result.append(" !="); break; case Token.LE: result.append(" <="); break; case Token.LT: <extra_id_0> break; case Token.GE: result.append(" >...
System.arraycopy(knots, 0, this.knots, 0, n + 1);
[BUG] System.arraycopy( n, 0, this.knots, 0, knots + 1);[ERROR] bad operand types for binary operator '+' [CONTEXT] public PolynomialSplineFunction(double knots[], PolynomialFunction polynomials[]) { if(knots.length < 2) { throw new IllegalArgumentException("Not enough knot values -- spline partition must have at leas...
if(mixin == null){
[BUG] if(_fields == null) {[ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] protected void _addClassM...
b.setBounds(new Rectangle2D.Double(c * width, r * height, width, height));
[BUG] b.setBounds( new Rectangle2D.Double( height * width, r * c, width, height));[ERROR] null testEquals [CONTEXT] protected Size2D arrangeFF(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { double width = constraint.getWidth() /this.columns; double height = constraint.getHeight() / this.row...
if(stroke != null && paint != null){
[BUG] if(stroke != null && itemPaint != null) {[ERROR] null testDrawWithNullInfo [CONTEXT] if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) { Stroke stroke = getItemOutlineStroke(row, column); Paint paint = getItemOutlinePaint(row, column); <extra_id_0> g2.setStroke(stroke); g2.setPaint(pa...
this.chart.addChangeListener(this);
[BUG] this.chart.addProgressListener( this);this.chart.addChangeListener( this);[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] public void setChart(JFreeChart chart) { if(this.chart != null) { this.chart.removeChan...
return this.data.getColumnIndex(key);
[BUG] return data.getColumnIndex( key);[ERROR] expected:<org.jfree.data.statistics.BoxAndWhiskerItem@7530d0a[mean=1.0,median=2.0,q1=3.0,q3=4.0]> but was:<org.jfree.data.statistics.BoxAndWhiskerItem@4bf558aa[mean=1.0,median=2.0,q1=3.0,q3=4.0]> testSerialization [CONTEXT] public int getColumnIndex(Comparable key) { <ex...
return this.wallPaint;
[BUG] return wallPaint;[ERROR] null testDrawWithNullInfo [CONTEXT] public Paint getWallPaint() { <extra_id_0> } [CLASS] BarRenderer3D [METHOD] getWallPaint [RETURN_TYPE] Paint [VARIABLES] Paint DEFAULT_WALL_PAINT wallPaint boolean double DEFAULT_X_OFFSET DEFAULT_Y_OFFSET xOffset yOffset long serialVersionUID
ilim = ilim1 = 0;
[BUG] ilim = ilim1 = -8;[NO-ERROR] [CONTEXT] else { b2 -= k; b5 = -k; s5 = 0; } b2 >= 0, b5 >= 0, s2 >= 0, and s5 >= 0. */ if(mode < 0 || mode > 9) mode = 0; try_quick = true; if(mode > 5) { mode -= 4; try_quick = false; } leftright = true; <extra_id_0> switch(mode) { case 0: case 1: ilim = ilim1 = -1; i = 18; ndigi...
if(3.0 - d < eps) {
[BUG] if(1.0 - d < eps){ [CONTEXT] } if(!fast_failed) { fast_failed = true; if(leftright) { eps = 0.5/tens[ilim-1] - eps; for(i = 0;;) { L =(long)d; d -= L; buf.append((char)('0' + L)); if(d < eps) { return k + 1; } <extra_id_0> char lastCh; while(true) { lastCh = buf.charAt(buf.length() - 1); buf.setLength(buf.l...
if(this.inverted != that.inverted){
[BUG] if(that.inverted != this.inverted) {[ERROR] null testCloning [CONTEXT] if(obj == this) { return true; } if(!(obj instanceof ValueAxis)) { return false; } ValueAxis that =(ValueAxis) obj; if(this.positiveArrowVisible != that.positiveArrowVisible) { return false; } if(this.negativeArrowVisible != that.negativeArro...
if(( _outputTail + 21)>= _outputEnd){
[BUG] if(( _outputTail)>= _outputEnd) {[NO-ERROR] [CONTEXT] public void writeNumber(long l) throws IOException, JsonGenerationException { _verifyValueWrite("write number"); if(_cfgNumbersAsStrings) { _writeQuotedLong(l); return; } <extra_id_0> _flushBuffer(); } _outputTail = NumberOutput.outputLong(l, _outputBuffer,...
case Token.MOD: return"%";
[BUG] case Token.MOD: return"";[ERROR] String index out of range: 0 testParsePrintParse [CONTEXT] case Token.SHEQ: return"==="; case Token.EQ: return"=="; case Token.NOT: return"!"; case Token.NE: return"!="; case Token.SHNE: return"!=="; case Token.LSH: return"<<"; case Token.IN: return"in"; case Token.LE: return"<="...
return type;
[BUG] return cWeeks;[ERROR] null test_other [CONTEXT] public static PeriodType yearWeekDay() { PeriodType type = cYWD; if(type == null) { type = new PeriodType("YearWeekDay", new DurationFieldType[] { DurationFieldType.years(), DurationFieldType.weeks(), DurationFieldType.days(), }, new int[] { 0, -1, 1, 2, -1, -1, -1...
compiler.report(JSError.make(t, var.nameNode, checkLevel, SHADOW_VAR_ERROR, var.getName()));
[BUG] compiler.report( JSError.make( t, checkLevel, SHADOW_VAR_ERROR, var.getName()));[ERROR] no suitable method found for make(NodeTraversal,CheckLevel,DiagnosticType,String) [CONTEXT] public void enterScope(NodeTraversal t) { if(t.inGlobalScope()) { return; } Scope scope = t.getScope(); Scope parentScope = scope.get...
Node dest = n.getFirstChild().getNext();
[BUG] Node assignee = parent.getFirstChild().getNext();Node dest = n.getFirstChild().getNext();[ERROR] node is not a child testDontAlias [CONTEXT] } } break; } } } private class GatherSignatures extends AbstractPostOrderCallback { public void visit(NodeTraversal t, Node n, Node parent) { switch(n.getType()) { case To...
return new AstParallelizer(shouldSplit, shouldTraverse, placeHolders, root, globalPass);
[BUG] return new AstParallelizer( shouldSplit, shouldTraverse, 0, root, globalPass);[ERROR] constructor AstParallelizer in class AstParallelizer cannot be applied to given types; [CONTEXT] Node root, boolean globalPass) { Predicate<Node> shouldSplit = new Predicate<Node>() { @Override public boolean apply(Node input) ...
return(key == null ? other.getKey() == null : key.equals(other.getKey())) &&(value == null ? other.getValue() == null : value.equals(other.getValue()));
[BUG] return(key == null ? other.getKey()== null : key.equals( other.getKey()))&&( value != null ? other.getValue()== null : value.equals( other.getValue()));[NO-ERROR] [CONTEXT] public boolean equals(final Object obj) { if(removed) { return false; } if(obj instanceof Map.Entry == false) { return false; } final Map.En...
CategoryItemLabelGenerator generator = getItemLabelGenerator(row, column);
[BUG] CategoryItemLabelGenerator generator = getItemLabelGenerator( column, row);[ERROR] null testDrawWithNullInfo [CONTEXT] g2.fill(incompleteBar); } if(isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) { Stroke stroke = getItemOutlineStroke(row, column); Paint paint = getItemOutlinePaint(row, ...
return this.domainZoomable;
[BUG] return properties;[ERROR] cannot find symbol properties [CONTEXT] public boolean isDomainZoomable() { <extra_id_0> } [CLASS] ChartPanel [METHOD] isDomainZoomable [RETURN_TYPE] boolean [VARIABLES] PlotOrientation orientation double scaleX scaleY zoomInFactor zoomOutFactor Rectangle2D zoomRectangle String PRINT_...
appendInternal(buffer, fieldName, value, isFullDetail(fullDetail));
[BUG] appendDetail( buffer, fieldName,(int[]) value);appendInternal( buffer, fieldName, value, isFullDetail( fullDetail));[ERROR] [Ljava.lang.Object; cannot be cast to [I testToString [CONTEXT] public void append(StringBuffer buffer, String fieldName, Object value, Boolean fullDetail) { appendFieldStart(buffer, fieldN...
[BUG] final Map.Entry<K, V> entry = it.next(); [CONTEXT] protected PredicatedMap(final Map<K, V> map, final Predicate<? super K> keyPredicate, final Predicate<? super V> valuePredicate) { super(map); this.keyPredicate = keyPredicate; this.valuePredicate = valuePredicate; final Iterator<Map.Entry<K, V>> it = map.entr...
compiler.report(JSError.make(t.getSourceName() , child, INVALIDATION, name,(type == null ?"null" : type.toString()), n.toString()));
[BUG] compiler.report( JSError.make( t.getSourceName(), child, INVALIDATION, name,( type != null ?"null" : type.toString()) , n.toString()));[NO-ERROR] [CONTEXT] private void handleObjectLit(NodeTraversal t, Node n) { Node child = n.getFirstChild(); while(child != null) { if(child.getType() == Token.STRING) { String n...
expected2 = BasicValue.REFERENCE_VALUE;expected = BasicValue.LONG_VALUE;
[BUG] expected = BasicValue.LONG_VALUE; [CONTEXT] case ANEWARRAY: expected = BasicValue.INT_VALUE; break; case FNEG: case F2I: case F2L: case F2D: case FRETURN: expected = BasicValue.FLOAT_VALUE; break; case LNEG: case L2I: case L2F: case L2D: case LRETURN: <extra_id_0> break; case DNEG: case D2I: case D2F: case D...
this.index = index;this.name = name;
[BUG] this.name = name; [CONTEXT] public LocalVariableNode( final String name, final String desc, final String signature, final LabelNode start, final LabelNode end, final int index) { <extra_id_0> this.desc = desc; this.signature = signature; this.start = start; this.end = end; this.index = index; } [CLASS] Local...
[Delete]
[BUG] if(( array.length) == 0) { throw new IllegalArgumentException("Array cannot be empty."); }[ERROR] Requested array size exceeds VM limit testUnescapeJava [CONTEXT] public static short max(short[] array) { if(array == null) { <extra_id_0> } else if(array.length == 0) { throw new IllegalArgumentException("Array ...
if(str.length() == 0){
[BUG] if(str.length()== 8) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] protected java.util.Date _parseDate(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if(_customFormat != null && jp.getCurrentToken() == JsonToken.VALUE_STRING) { String str = jp.getT...
if(isSupported(f = chrono.millis())) {
[BUG] if(isSupported( f = chrono.years())){[ERROR] expected:<2003-07-28T00:00:00.000-00:01:15> but was:<2011-07-28T00:00:00.000-00:01:15> testWithDurationAdded_RP_int [CONTEXT] public DateTimeField year; public DateTimeField yearOfEra; public DateTimeField yearOfCentury; public DateTimeField centuryOfEra; public DateT...
jp.skipChildren();
[BUG] jp.nextToken();jp.skipChildren();[NO-ERROR] [CONTEXT] SettableBeanProperty prop = _beanProperties.find(propName); if(prop != null) { // normal case if(activeView != null && !prop.visibleInView(activeView)) { jp.skipChildren(); continue; } try { bean = prop.deserializeSetAndReturn(jp, ctxt, bean); } catch(Excepti...
if(jp.getCurrentToken() == JsonToken.FIELD_NAME){
[BUG] if(jp.getCurrentToken()== JsonToken.START_OBJECT) {[ERROR] expected:<...> but was:<null> testMapWithFactory [CONTEXT] public ObjectNode deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if(jp.getCurrentToken() == JsonToken.START_OBJECT) { jp.nextToken(); return...
i = 0;mode = 0;
[BUG] mode = 0; [CONTEXT] s2 = 0; } if(k >= 0) { b5 = 0; s5 = k; s2 += k; } else { b2 -= k; b5 = -k; s5 = 0; } b2 >= 0, b5 >= 0, s2 >= 0, and s5 >= 0. */ if(mode < 0 || mode > 9) <extra_id_0> try_quick = true; if(mode > 5) { mode -= 4; try_quick = false; } leftright = true; ilim = ilim1 = 0; switch(mode) { case 0:...
case 'a': X="abstract";id=Id_abstract; break L;
[BUG] case 'y': X="typeof";id=Id_typeof; break L;case 'a': X="abstract";id=Id_abstract; break L;[NO-ERROR] [CONTEXT] case 't': X="static";id=Id_static; break L; case 'u': X="public";id=Id_public; break L; case 'w': X="switch";id=Id_switch; break L; case 'x': X="export";id=Id_export; break L; case 'y': X="typeof";id=Id...
if(_attributeCount == 0){
[BUG] if(_attributeCount >= 0) {[ERROR] Can not deserialize instance of java.lang.String out of START_OBJECT token testRoundtrip [CONTEXT] protected void _serializeObjectId(Object bean, JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer, WritableObjectId objectId) throws IOException { if(typeSer.ge...
if(b != null){
[BUG] if(b == null) {[ERROR] expected:<<Jurisdiction[ name="Foo" value="13"/]>> but was:<<Jurisdiction[><name>Foo</name><value>13</value></Jurisdiction]>> testTwoAttributes [CONTEXT] public static Boolean findIsAttributeAnnotation(AnnotationIntrospector ai, AnnotatedMember prop) { for(AnnotationIntrospector intr : ai....
new Rectangle2D.Double(x, y, size.width, Math.min(size.height, height - y)));
[BUG] new Rectangle2D.Double( x, y, Math.min( size.height, height - y)));[ERROR] no suitable constructor found for Double(double,double,double) [CONTEXT] for(int i = 0; i < blocks.size(); i++) { Block block =(Block) blocks.get(i); Size2D size = block.arrange(g2, RectangleConstraint.NONE); if(y + size.height <= height)...
else if(command.equals(ZOOM_RESET_DOMAIN_COMMAND)) {
[BUG] else if(ZOOM_RESET_RANGE_COMMAND.endsWith( ZOOM_IN_BOTH_COMMAND)){[ERROR] expected:<org.jfree.chart.block.FlowArrangement@7530d0a> but was:<org.jfree.chart.block.FlowArrangement@45283ce2> testSerialization [CONTEXT] else if(command.equals(ZOOM_IN_RANGE_COMMAND)) { zoomInRange(screenX, screenY); } else if(command...
CompilerPass pass = new Normalize.VerifyConstants(compiler, checkUserDeclarations);
[BUG] CompilerPass pass = new Normalize.VerifyConstants( checkUserDeclarations);[ERROR] constructor VerifyConstants in class VerifyConstants cannot be applied to given types; [CONTEXT] private void sanityCheckNormalization(Node externs, Node root) { CodeChangeHandler.RecentChange handler = new CodeChangeHandler.Recent...
if(fieldIndex == 0){
[BUG] if(max + 1) {[ERROR] incompatible types [CONTEXT] return values; } DateTimeField nextField = null; while(valueToAdd > 0) { int max = getMaximumValue(instant, values); long proposed = values[fieldIndex] + valueToAdd; if(proposed <= max) { values[fieldIndex] =(int) proposed; break; } if(nextField == null) { <ext...
double[][] seriesArray =(double[][])this.seriesList.get(series);
[BUG] [ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public int getItemCount(int series) { if((series < 0) ||(series >= getSeriesCount())) { throw new IllegalArgumentException("Series index out of bounds"); } <extra_id_0> return seriesArray[0].length; [CLASS] DefaultXYDataset [METHOD] getItemCou...
int realSkip =(int)(skip > skipBuf.length ? skipBuf.length : skip);
[BUG] int realSkip = skipBuf.length;[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] public long skip(long numToSkip) throws IOException { byte[] skipBuf = new byte[BUFFER_SIZE]; long skip = numToSkip; while(skip > 0) { <extra_id_0> int numRead = read(skipBuf, 0, realSkip); if(numRead == ...
[BUG] LineMapping lineMapping = lineMappings.get(i); [CONTEXT] for(Mapping mapping : mappings) { int prefixLine = prefixPosition.getLineNumber(); int startPositionLine = prefixLine + mapping.startPosition.getLineNumber(); int endPositionLine = prefixLine + mapping.endPosition.getLineNumber(); maxLine = Math.max(maxL...
mantissa =(floorBits & Frac_maskL) << Bias;
[BUG] mantissa =(floorBits & Frac_maskL)<< 1; [CONTEXT] String intDigits; double dfloor = Math.floor(d); long lfloor =(long)dfloor; if(lfloor == dfloor) { intDigits = Long.toString((negative) ? -lfloor : lfloor, base); } else { long floorBits = Double.doubleToLongBits(dfloor); int exp =(int)(floorBits >> Exp_shiftL)...
} else if("setCssNameMapping".equals(methodName)) {
[BUG] } else if("aetCssNameMapping".equals( methodName)){[ERROR] null testExternedPropertyName [CONTEXT] } } else if("addDependency".equals(methodName)) { CodingConvention convention = compiler.getCodingConvention(); List<String> typeDecls = convention.identifyTypeDeclarationCall(n); if(typeDecls != null) { for(String...
result.append("true");
[BUG] result.append( '[');result.append("true");[ERROR] expected:<8> but was:<2> testParseBlockComment2 [CONTEXT] case Token.NAME: case Token.REGEXP:// re-wrapped in '/'s in parser... i = printSourceString(source, i + 1, false, result); continue; case Token.STRING: i = printSourceString(source, i + 1, true, result); c...
if(n.getType() == Token.FUNCTION || n.getType() == Token.SCRIPT){
[BUG] if(n.getType()>= Token.FUNCTION || n.getType()== Token.SCRIPT) {[ERROR] INTERNAL COMPILER ERROR. testExternedPropertyName [CONTEXT] public final boolean shouldTraverse(NodeTraversal nodeTraversal, Node n, Node parent) { <extra_id_0> sourceName =(String) n.getProp(Node.SOURCENAME_PROP); } return parent == null...
mv.visitInsn( opcode);mv.visitCode();
[BUG] mv.visitCode(); [CONTEXT] public void visitCode() { <extra_id_0> } [CLASS] MethodAdapter [METHOD] visitCode [RETURN_TYPE] void [VARIABLES] MethodVisitor mv boolean
String enclosingDesc = null;
[BUG] String enclosingName = null;String enclosingDesc = null;[NO-ERROR] [CONTEXT] i = readUnsignedShort(v); v += 2; for(; i > 0; --i) { j = readUnsignedShort(v + 6); v += 8; for(; j > 0; --j) { v += 6 + readInt(v + 2); } } signature = null; String sourceFile = null; String sourceDebug = null; String enclosingOwner = ...
float transYRight =(float)rangeAxis.valueToJava2D(yright, dataArea, edge1);
[BUG] float transYRight =(float) dataArea.valueToJava2D( yright, rangeAxis, edge1);[ERROR] cannot find symbol [CONTEXT] if(y2 >= 0.0) { right.moveTo(transX1, transStack1); right.lineTo(transX1, transY1); right.lineTo(transXRight, transStackRight); right.closePath(); } else { double yright =(y1 + y2) / 2.0 + stackRight...
System.arraycopy(data, 0, tmp, 0, size - FIELDS_STORE_SIZE);
[BUG] System.arraycopy( data, 0, tmp, 0, FIELDS_STORE_SIZE - size);[NO-ERROR] [CONTEXT] if(data == null) { int alloc = FIELDS_STORE_SIZE * 2; if(alloc < required) { alloc = required; } data = new Object[alloc]; } else { int alloc = data.length; if(alloc < required) { if(alloc <= FIELDS_STORE_SIZE) { alloc = FIELDS_STO...
replaceWithNull(n, parent);
[BUG] replaceWithNull( n, greatGramps);[ERROR] cannot find symbol greatGramps [CONTEXT] if(parent.getFirstChild() == n) { Node gramps = parent.getParent(); if(NodeUtil.isExpressionNode(gramps)) { Node greatGramps = gramps.getParent(); replaceWithEmpty(gramps, greatGramps); compiler.reportCodeChange(); } else { Node rv...
Preconditions.checkState(childCount >= 2 && childCount <= 3);
[BUG] [NO-ERROR] [CONTEXT] } else if(NodeUtil.isAssignmentOp(n) && NodeUtil.isAssignmentOp(last)) { addExpr(last, p, rhsContext); } else { addExpr(last, p + 1, rhsContext); } return; } cc.startSourceMapping(n); switch(type) { case Token.TRY: { Preconditions.checkState(first.getNext().getType() == Token.BLOCK && first....
System.arraycopy(xStart, 0, xxStart, 0, xStart.length);
[BUG] System.arraycopy( xStart, 0, xStart.length, 0, xxStart);[ERROR] method arraycopy in class System cannot be applied to given types; [CONTEXT] public Object clone() throws CloneNotSupportedException { DefaultIntervalXYDataset clone =(DefaultIntervalXYDataset) super.clone(); clone.seriesKeys = new java.util.ArrayLi...
if(this.barWidth != that.barWidth){
[BUG] if(this.barWidth >= that.barWidth) {[ERROR] Range(double, double testGetLegendItemSeriesIndex [CONTEXT] public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof XYBarDataset)) { return false; } XYBarDataset that =(XYBarDataset) obj; if(!this.underlying.equals(that.underlying)) { r...
writeOut(extra);
[BUG] writeOut( CFH_SIG);writeOut( extra);[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] written += SHORT; writeOut(ZipLong.getBytes(ze.getExternalAttributes())); written += WORD; writeOut((byte[]) offsets.get(ze)); written += WORD; writeOut(name.array(), name.arrayOffset(), name.limit()); ...
parent.removeChild(rvalue);
[BUG] parent.removeChild( n);[ERROR] null testExternedPropertyName [CONTEXT] case Token.ASSIGN_SUB: case Token.ASSIGN_MUL: case Token.ASSIGN_DIV: case Token.ASSIGN_MOD: if(isReferenceToRemovedVar(t, n)) { if(parent.getFirstChild() == n) { Node gramps = parent.getParent(); if(NodeUtil.isExpressionNode(gramps)) { Node g...
expected1 = newValue(Type.getType("[D"));
[BUG] expected1 = newValue( Type.getType("[Z"));expected1 = newValue( Type.getType("[D"));[NO-ERROR] [CONTEXT] expected3 = BasicValue.INT_VALUE; break; case SASTORE: expected1 = newValue(Type.getType("[S")); expected3 = BasicValue.INT_VALUE; break; case LASTORE: expected1 = newValue(Type.getType("[J")); expected3 = Ba...
option.setType(type);
[BUG] option.setArgName( argName);option.setType( type);[ERROR] expected:<Two [Words]> but was:<Two []> test15648 [CONTEXT] public static Option create(String opt) throws IllegalArgumentException { Option option = new Option(opt, description); option.setLongOpt(longopt); option.setRequired(required); option.setOption...
return ann.value();
[BUG] [ERROR] Conflicting getter definitions for property"empty": java.util.AbstractCollection#isEmpty(0 params) vs java.util.List#isEmpty(0 params)(through reference chain: com.fasterxml.jackson.databind.SetterlessWithValue["value_list"]) testWithGetterAsSetter [CONTEXT] public String findDeserializationName(Annotate...
buf.append("ACC_PRIVATE");buf.append(" +");
[BUG] buf.append(" +"); [CONTEXT] if((access & Opcodes.ACC_VARARGS) != 0 &&(access & ACCESS_CLASS) == 0 &&(access & ACCESS_FIELD) == 0) { if(!first) { <extra_id_0> } buf.append("ACC_VARARGS"); first = false; } [CLASS] ASMifierClassVisitor [METHOD] appendAccess [RETURN_TYPE] void final int access [VARIABLES] int AC...
this.type = type;this.intVal = intVal;
[BUG] this.intVal = intVal; [CONTEXT] void set(final int intVal) { this.type = ClassWriter.INT; <extra_id_0> this.hashCode = 0x7FFFFFFF &(type + intVal); } [CLASS] Item [METHOD] set [RETURN_TYPE] void final int intVal [VARIABLES] Item i next String strVal1 strVal2 strVal3 boolean int hashCode index intVal type lon...
for(int row = 1; row < nRows; row++){
[BUG] for(long row = 1; row < nRows; row++) {[ERROR] possible loss of precision [CONTEXT] public BigMatrixImpl(double[][] d) { int nRows = d.length; if(nRows == 0) { throw new IllegalArgumentException("Matrix must have at least one row."); } int nCols = d[0].length; if(nCols == 0) { throw new IllegalArgumentException(...
static HashMap<String, Class<? extends Map>> _mapFallbacks = new HashMap<String, Class<? extends Map>>();
[BUG] final static HashMap<String, Class<? extends Map>> _mapFallbacks = new HashMap<String, Class<? extends Map>>(); [CONTEXT] <extra_id_0> [CLASS] BasicDeserializerFactory [VARIABLES]
state.cursorDown(insets.getTop() + labelBounds.getHeight() + insets.getBottom());
[BUG] state.cursorDown( labelBounds.getTop()+ insets.getHeight()+ insets.getBottom());[ERROR] cannot find symbol [CONTEXT] else if(edge == RectangleEdge.BOTTOM) { AffineTransform t = AffineTransform.getRotateInstance( getLabelAngle(), labelBounds.getCenterX(), labelBounds.getCenterY()); Shape rotatedLabelBounds = t.cr...
[Delete]
[BUG] if(item == null) { throw new IllegalArgumentException("Null 'item' argument."); }[NO-ERROR] [CONTEXT] add(item, notify); } protected void add(ComparableObjectItem item, boolean notify) { if(item == null) { <extra_id_0> } if(this.autoSort) { int index = Collections.binarySearch(this.data, item); if(index <...
if(iElementPairs.size() == 2){
[BUG] if(iElementPairs.size() + 3 == 2) {[ERROR] null testTest [CONTEXT] private Object getFormatter() { Object f = iFormatter; if(f == null) { <extra_id_0> Object printer = iElementPairs.get(0); Object parser = iElementPairs.get(1); if(printer != null) { if(printer == parser || parser == null) { f = printer; } } el...
cnax.setBoundMappedToLastCycle(xBoundMapping);
[BUG] cnay.setBoundMappedToLastCycle( y[1] <= ycycleBound);cnax.setBoundMappedToLastCycle( xBoundMapping);[ERROR] null testDrawWithNullInfo [CONTEXT] } } if(cnay != null) { if(ycycleBound == y[2]) { cnay.setBoundMappedToLastCycle(y[3] <= ycycleBound); } if(ycycleBound == y[3]) { cnay.setBoundMappedToLastCycle(y[2] <= ...
Iterator<String> fromIter = node.referencedBy.iterator();
[BUG] [ERROR] node is not a child testDontAlias [CONTEXT] } } } if(node.refersTo.size() > 0) { sb.append("<li>REFERS TO:"); Iterator<String> toIter = node.refersTo.iterator(); while(toIter.hasNext()) { sb.append(nameLink(toIter.next())); if(toIter.hasNext()) { sb.append(","); } } } if(node.referencedBy.size() > 0) { s...
if(n.getNodeType() == Node.ELEMENT_NODE){
[BUG] if(n.getNodeType()<= Node.ELEMENT_NODE) {[NO-ERROR] [CONTEXT] private int getRelativePositionByName() { int count = 1; Node n = node.getPreviousSibling(); while(n != null) { <extra_id_0> String nm = n.getNodeName(); if(nm.equals(node.getNodeName())) { count++; } } n = n.getPreviousSibling(); } return count; } ...
String varName = ts.getString();nameLineno = ts.getLineno();
[BUG] nameLineno = ts.getLineno(); [CONTEXT] if(matchToken(Token.NAME)) { name = ts.getString(); nameLineno = ts.getLineno(); nameCharno = ts.getCharno(); decompiler.addName(name); if(!matchToken(Token.LP)) { if(compilerEnv.isAllowMemberExprAsFunctionName()) { Node memberExprHead = nf.createName(name, nameLineno, n...
declaration.append( seenInterfaceBound ?"," :"<").append( name);
[BUG] declaration.append(seenFormalParameter ?"," :"<").append(name); [CONTEXT] public void visitFormalTypeParameter(final String name) { <extra_id_0> seenFormalParameter = true; seenInterfaceBound = false; } [CLASS] TraceSignatureVisitor [METHOD] visitFormalTypeParameter [RETURN_TYPE] void String name [VARIABLES]...
int baseCharno = ts.getCharno();int lineno = ts.getLineno();
[BUG] int lineno = ts.getLineno(); [CONTEXT] private String matchLabel() throws IOException, JavaScriptException { <extra_id_0> String label = null; int tt = peekTokenOrEOL(); if(tt == Token.NAME) { consumeToken(); label = ts.getString(); decompiler.addName(label); Node n = null; if(labelSet != null) { n = labelSe...
delegate.writeString(text, offset, len);
[BUG] delegate.writeString( text, offset);[ERROR] no suitable method found for writeString(char[],int) [CONTEXT] public void writeString(char[] text, int offset, int len) throws IOException, JsonGenerationException { <extra_id_0> } [CLASS] JsonGeneratorDelegate [METHOD] writeString [RETURN_TYPE] void char[] text int...
if(insnNode > VarInsnNode) {
[BUG] if(insnNode instanceof VarInsnNode){ [CONTEXT] } else if(insnOpcode != ATHROW &&(insnOpcode < IRETURN || insnOpcode > RETURN)) { if(subroutine != null) { <extra_id_0> int var =((VarInsnNode) insnNode).var; subroutine.access[var] = true; if(insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE ||...
declaration.append("? extends");
[BUG] declaration.append( '( ');declaration.append("? extends");[NO-ERROR] [CONTEXT] public SignatureVisitor visitTypeArgument(final char tag) { if(argumentStack % 2 == 0) { ++argumentStack; declaration.append('<'); } else { declaration.append(","); } if(tag == EXTENDS) { <extra_id_0> } else if(tag == SUPER) { decla...
handleContinue(n);
[BUG] handleBreak( n);handleContinue( n);[ERROR] null testAliasThrowKeywordLiteral [CONTEXT] handleExpr(n); return; case Token.THROW: handleThrow(n); return; case Token.TRY: handleTry(n); return; case Token.CATCH: handleCatch(n); return; case Token.BREAK: handleBreak(n); return; case Token.CONTINUE: <extra_id_0> ret...
_generatorFeatures &= ~f.getMask();
[BUG] _parserFeatures &= ~f.getMask();_generatorFeatures &= ~f.getMask();[ERROR] expected same:<c> was not:<c> testInterningWithReaders [CONTEXT] public JsonFactory disable(JsonGenerator.Feature f) { <extra_id_0> return this; } [CLASS] JsonFactory Feature [METHOD] disable [RETURN_TYPE] JsonFactory Feature f [VARIABL...
injectValues(ctxt, bean);
[BUG] injectValues( bean);[ERROR] method injectValues in class BeanDeserializerBase cannot be applied to given types; [CONTEXT] @Override public Object deserializeFromObject(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { if(_nonStandardCreation) { if(_unwrappedPropertyHandler...
checkEndCode();
[BUG] checkOpcode( opcode, 5);checkEndCode();[NO-ERROR] [CONTEXT] public void visitLdcInsn(final Object cst) { checkStartCode(); <extra_id_0> if(!(cst instanceof Type)) { checkConstant(cst); } mv.visitLdcInsn(cst); } [CLASS] CheckMethodAdapter [METHOD] visitLdcInsn [RETURN_TYPE] void Object cst [VARIABLES] int[] TYP...
b.append(":");
[BUG] b.append("function(");b.append(":");[ERROR] expected:<... : Bar testTypeMismatch [CONTEXT] b.append(p.getJSType().toString()); } p = p.getNext(); while(p != null) { b.append(","); if(p.isVarArgs()) { appendVarArgsString(b, p.getJSType()); } else { b.append(p.getJSType().toString()); } p = p.getNext(); } } b.appe...
outBuffer.append("max:" + getMax() +"\n");
[BUG] outBuffer.append("standard deviation:" + getStandardDeviation()+"\n");outBuffer.append("max:" + getMax()+"\n");[ERROR] Incorrect inverse cumulative probability value returned for 0.05 expected:<4> but was:<3> testInverseCumulativeProbabilities [CONTEXT] public String toString() { StringBuffer outBuffer = new Str...
longName.deleteCharAt(longName.length() - 1);
[BUG] longName.deleteCharAt( longName.length());[ERROR] No Archiver found for the stream signature testDetection [CONTEXT] if(longName.length() > 0 && longName.charAt(longName.length() - 1) == 0) { <extra_id_0> } [CLASS] TarArchiveInputStream [METHOD] getNextTarEntry [RETURN_TYPE] TarArchiveEntry [VARIABLES] byte[] ...
Preconditions.checkNotNull( compiler);
[BUG] Preconditions.checkState(type == DecompositionType.UNDECOMPOSABLE); [CONTEXT] } else if(parent.getType() == Token.NAME && !NodeUtil.isConstantName(parent) && grandParent.getType() == Token.VAR && grandParent.hasOneChild()) { return CallSiteType.VAR_DECL_SIMPLE_ASSIGNMENT; } else { Node expressionRoot = Expres...
return(( MulticastDelegate) ReflectUtils.findInterfaceMethod( type)).newInstance();
[BUG] return(( MulticastDelegate)ReflectUtils.newInstance(type)).newInstance(); [CONTEXT] protected Object firstInstance(Class type) { <extra_id_0> } [CLASS] Generator 1 [METHOD] firstInstance [RETURN_TYPE] Object Class type [VARIABLES] Type MULTICAST_DELEGATE returnType type Class iface type boolean Source SOURCE...
char c = token.charAt(0);
[BUG] char c = pattern.charAt( 0);[ERROR] cannot find symbol pattern [CONTEXT] int length = mPattern.length(); int[] indexRef = new int[1]; for(int i = 0; i < length; i++) { indexRef[0] = i; String token = parseToken(mPattern, indexRef); i = indexRef[0]; int tokenLen = token.length(); if(tokenLen == 0) { break; } Rule...
tryFoldComparison(t, n, left, right, parent);
[BUG] tryFoldGetElem( t, n, left, right, parent);tryFoldComparison( t, n, left, right, parent);[ERROR] null testDebugFlag3 [CONTEXT] return; } if(type == Token.ASSIGN) { tryFoldAssign(t, n, left, right); } if(!NodeUtil.isLiteralValue(left) || !NodeUtil.isLiteralValue(right)) { if(type == Token.ADD) tryFoldLeftChildAdd...
ungetChar( c);c = getChar();
[BUG] c = getChar(); [CONTEXT] c = escapeVal; } } break; case '\n': c = getChar(); continue strLoop; default: if('0' <= c && c < '8') { int val = c - '0'; <extra_id_0> if('0' <= c && c < '8') { val = 8 * val + c - '0'; c = getChar(); if('0' <= c && c < '8' && val <= 037) { val = 8 * val + c - '0'; c = getChar();...
CollectionUtils.filter(methods, new VisibilityPredicate(superclass, true));
[BUG] [NO-ERROR] [CONTEXT] private static void getMethods(Class superclass, Class[] interfaces, List methods, List interfaceMethods, Set forcePublic) { ReflectUtils.addAllMethods(superclass, methods); List target =(interfaceMethods != null) ? interfaceMethods : methods; if(interfaces != null) { for(int i = 0; i < inte...
buf.append('L');
[BUG] buf.append( 'D');buf.append( 'L');[NO-ERROR] [CONTEXT] } else if(d == Short.TYPE) { car = 'S'; } else if(d == Double.TYPE) { car = 'D'; } else if(d == Float.TYPE) { car = 'F'; } else /* if(d == Long.TYPE) */{ car = 'J'; } buf.append(car); return; } else if(d.isArray()) { buf.append('['); d = d.getComponentType()...