rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
* src.getFilter().getPopInt();
* Util.getItemsProduced(src);
private double getStaticCost(StaticStreamGraph ssg, HashSet usedTiles) { // the tiles used by THIS SSG for routing // this set is filled with tiles that are not assigned but // have been used to route items previously by this SSG HashSet routers = new HashSet(); // allt tiles used for this SSG, add it to used tiles at the end, if // legal HashSet tiles = new HashSet(); //reset the intermediate tiles list intermediateTiles = new HashSet(); Iterator nodes = ssg.getFlatNodes().iterator(); double cost = 0.0; // calculate the communication cost for each node that is assign a tile // in // the ssg while (nodes.hasNext()) { FlatNode src = (FlatNode) nodes.next(); if (!assignToAComputeNode(src)) continue; ComputeNode srcNode = getComputeNode(src); assert srcNode != null; // add the src tile to the list of tiles used by this SSG if (srcNode.isTile()) tiles.add(srcNode); // make sure we have not previously tried to route through this tile // in a previous SSG if (srcNode.isTile() && usedTiles.contains(srcNode)) { // System.out.println(srcNode); // return -1.0; cost += ILLEGAL_WEIGHT; } // get all the dests for this node that are assigned tiles Iterator dsts = getDownStream(src).iterator(); while (dsts.hasNext()) { FlatNode dst = (FlatNode) dsts.next(); if (!assignToAComputeNode(dst)) continue; ComputeNode dstNode = getComputeNode(dst); assert dstNode != null; // add the dst tile to the list of tiles used by this SSG if (dstNode.isTile()) tiles.add(dstNode); // make sure we have not previously (in another SSG) tried to // route // thru the tile assigned to the dst if (dstNode.isTile() && usedTiles.contains(dstNode)) { // System.out.println(dstNode); cost += ILLEGAL_WEIGHT; // return -1.0; } ComputeNode[] route = (ComputeNode[]) router.getRoute(ssg, srcNode, dstNode).toArray(new ComputeNode[0]); // check if we cannot find a route from src to dst that does not // go // thru another ssg if (route.length == 0) { // System.out.println("Cannot find route from src to dst // within SSG " + // src + "(" + srcNode + ") -> " + dst + "(" + dstNode + // ")"); cost += ILLEGAL_WEIGHT; // return -1.0; } // find the cost of the route, penalize routes that go thru // tiles assigned to filters or joiners, reward routes that go // thru // non-assigned tiles double numAssigned = 0.0; for (int i = 1; i < route.length - 1; i++) { assert route[i].isTile(); //add this intermediate hop tile to the list of intermediate tiles intermediateTiles.add(route[i]); // make sure that this route does not pass thru any tiles // assigned to other SSGs // otherwise we have a illegal layout!!!! if (usedTiles.contains(route[i])) { cost += ILLEGAL_WEIGHT; // return -1.0; } // add this tile to the set of tiles used by this SSG tiles.add(route[i]); /* * if (getNode((RawTile)route[i]) != null) //assigned tile * numAssigned += ASSIGNED_WEIGHT * (1.0 / * workEstimates.getEstimate(getNode((RawTile)route[i]))); * else { */ // router tile, only penalize it if we have routed through // it before if (routers.contains(route[i]) || (getNode((RawTile) route[i]) != null)) numAssigned += ROUTER_WEIGHT; else // now it is a router tile routers.add(route[i]); /* } */ } int hops = route.length - 2; // the number of items sent over this channel for one execution // of entire // SSG, from src to dest int items = 0; // now calculate the number of items sent per firing of SSG // if we are sending thru a splitter we have to be careful // because not // all the data that the src produces goes to the dest if (src.edges[0].isSplitter()) { // if the dest is a filter, then just calculate the number // of items // the dest filter receives if (dst.isFilter()) items = ssg.getMult(dst, false) * dst.getFilter().getPopInt(); else { // this is a joiner assert dst.isJoiner(); // the percentage of items that go to this dest double rate = 1.0; // we are sending to a joiner thru a splitter, this will // only happen // for a feedback loop, the feedback path is always way // 0 thru the joiner if (dst.inputs > 1) rate = ((double) dst.incomingWeights[0]) / ((double) dst.getTotalIncomingWeights()); // now calculate the rate at which the splitter sends to // the joiner rate = rate * (((double) src.edges[0].weights[0]) / ((double) src.edges[0] .getTotalOutgoingWeights())); // now calculate the number of items sent to this dest // by this filter items = (int) rate * ssg.getMult(dst, false) * src.getFilter().getPopInt(); } } else { // sending without intermediate splitter // get the number of items sent int push = 0; if (src.isFilter()) push = src.getFilter().getPushInt(); else // joiner push = 1; items = ssg.getMult(src, false) * push; } items *= Util.getTypeSize(Util.getOutputType(src)); // calculate communication cost of this node and add it to the // cost sum // what we really want to do here is add to the latency the work // estimation sum of all the routes that this route crosses... // um, yeah cost += ((items * hops) + (/* items */numAssigned)); } } SpaceDynamicBackend.addAll(usedTiles, tiles); return cost; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/ca95d063513374d7acc8beaff007baf2099bb26c/Layout.java/buggy/streams/src/at/dms/kjc/spacedynamic/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 23414, 8018, 12, 5788, 1228, 4137, 272, 1055, 16, 6847, 1399, 27669, 13, 288, 3639, 368, 326, 12568, 1399, 635, 20676, 12867, 43, 364, 7502, 3639, 368, 333, 444, 353, 6300, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 23414, 8018, 12, 5788, 1228, 4137, 272, 1055, 16, 6847, 1399, 27669, 13, 288, 3639, 368, 326, 12568, 1399, 635, 20676, 12867, 43, 364, 7502, 3639, 368, 333, 444, 353, 6300, 59...
VM.assert(isPageAligned(address) && isPageMultiple(size));
VM._assert(isPageAligned(address) && isPageMultiple(size));
public static boolean msync(VM_Address address, int size, int flags) { if (VM.VerifyAssertions) VM.assert(isPageAligned(address) && isPageMultiple(size)); VM_BootRecord bootRecord = VM_BootRecord.the_boot_record; return VM.sysCall3(bootRecord.sysMSyncIP, address.toInt(), size, flags) == 0; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_Memory.java/buggy/rvm/src/vm/runtime/VM_Memory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 4086, 1209, 12, 7397, 67, 1887, 1758, 16, 509, 963, 16, 509, 2943, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 1377, 8251, 6315, 11231, 12, 291, 1964, 28495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 4086, 1209, 12, 7397, 67, 1887, 1758, 16, 509, 963, 16, 509, 2943, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 1377, 8251, 6315, 11231, 12, 291, 1964, 28495...
encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
private static void encodeDoubleBigEndian(StringBuffer result, double d) { encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 5265, 9901, 7583, 12, 780, 1892, 563, 16, 1645, 302, 13, 288, 202, 565, 2017, 3708, 9901, 7583, 12, 2088, 16, 3698, 18, 9056, 30220, 6495, 12, 72, 10019, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 5265, 9901, 7583, 12, 780, 1892, 563, 16, 1645, 302, 13, 288, 202, 565, 2017, 3708, 9901, 7583, 12, 2088, 16, 3698, 18, 9056, 30220, 6495, 12, 72, 10019, 225,...
Expr Expression = (Expr) getRhsSym(6); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } case 530: { TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); Object Valueopt = (Object) getRhsSym(3); Object Unsafeopt = (Object) getRhsSym(4); Expr distr = (Expr) getRhsSym(6); Expr initializer = (Expr) getRhsSym(8); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } case 531: { TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); Object Valueopt = (Object) getRhsSym(3); Object Unsafeopt = (Object) getRhsSym(4);
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 54...
advancePhase();
return true;
private void setupMove() { // If there are no legal moves, move on. if (highlightMobileCritters() < 1) { advancePhase(); } else { map.setupMoveMenu(); Player player = getActivePlayer(); if (player.getOption(Options.autoBattleMove)) { player.aiBattleMove(); } } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/543d46c48561719e348608f3b5a38fdb268872cc/Battle.java/clean/Colossus/Battle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 7607, 1435, 565, 288, 3639, 368, 971, 1915, 854, 1158, 19286, 13934, 16, 3635, 603, 18, 3639, 309, 261, 15978, 19584, 39, 583, 5432, 1435, 411, 404, 13, 3639, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 7607, 1435, 565, 288, 3639, 368, 971, 1915, 854, 1158, 19286, 13934, 16, 3635, 603, 18, 3639, 309, 261, 15978, 19584, 39, 583, 5432, 1435, 411, 404, 13, 3639, 288, 5411, ...
if (e.isDirty()) return true;
if (e.isDirty()) { return true; }
public boolean isDirty() { for (int i = 0; i < innerEditors.length; i++) { IEditorPart e = innerEditors[i]; if (e.isDirty()) return true; } return false; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/MultiEditor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25206, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3443, 4666, 1383, 18, 2469, 31, 277, 27245, 288, 5411, 467, 6946, 1988, 425, 273, 3443, 4666, 1383, 63, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25206, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3443, 4666, 1383, 18, 2469, 31, 277, 27245, 288, 5411, 467, 6946, 1988, 425, 273, 3443, 4666, 1383, 63, 7...
monitor.beginTask("", finalEditors.size());
monitorWrap.beginTask("", finalEditors.size());
public void run(IProgressMonitor monitor) {// try { // @issue reference to workspace to run runnable/* IProgressMonitor monitorWrap = new EventLoopProgressMonitor(monitor); ResourcesPlugin.getWorkspace().run(workspaceOp, monitorWrap);*///--------- This code was in the IWorkspaceRunnable above monitor.beginTask("", finalEditors.size()); //$NON-NLS-1$ Iterator enum = finalEditors.iterator(); while (enum.hasNext()) { IEditorPart part = (IEditorPart) enum.next(); part.doSave(new SubProgressMonitor(monitor, 1)); if (monitor.isCanceled()) break; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/992fc4d46fd179609e0f556b4c6affa612b7ed50/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 20308, 6862, 202, 45, 5491, 7187, 6438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 759, 9506, 202, 698, 288, 6862, 202, 759, 632, 13882, 2114, 358, 6003, 358, 1086, 14685, 20308, 6862, 202, 45, 5491, 7187, 6438, ...
if (debug) System.out.println("---------------getFileList ");
private List getFileList(CancelTask cancelTask) { if (debug) System.out.println("---------------getFileList "); ArrayList fileList = new ArrayList(); for (int i = 0; i < scanList.size(); i++) { Directory d = (Directory) scanList.get(i); crawlDirectory(d.dirName, d.suffix, d.dateFormatMark, d.enhance, fileList, cancelTask); if ((cancelTask != null) && cancelTask.isCancel()) return null; } Collections.sort(fileList, new Comparator() { public int compare(Object o1, Object o2) { MyFile mf1 = (MyFile) o1; MyFile mf2 = (MyFile) o2; if (isDate) return mf1.dateCoord.compareTo(mf2.dateCoord); else return mf1.file.getName().compareTo(mf2.file.getName()); } }); return fileList; }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/b0404daf12e2383fdcab31178ed65cf88b9c105e/Aggregation.java/buggy/cdm/src/main/java/ucar/nc2/ncml/Aggregation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 987, 6034, 682, 12, 6691, 2174, 3755, 2174, 13, 288, 4202, 2407, 18645, 273, 394, 2407, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4135, 682, 18, 1467, 5621, 277, 2724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 987, 6034, 682, 12, 6691, 2174, 3755, 2174, 13, 288, 4202, 2407, 18645, 273, 394, 2407, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4135, 682, 18, 1467, 5621, 277, 2724...
balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start();
xr = new XmlReader(url); navigator = new Navigator(graph, xr); Balancer balancing = new Balancer(this); navigator.navigateFirst(startNodeName); Thread navigateThread = new Thread(navigator); Thread balanceThread = new Thread(balancing); balanceThread.start(); navigateThread.start();
public void start() { xr = new XmlReader(url); graph.setXmlReader(xr); xr.getNodeData(startNodeName,graph); graph.navigateTo(Graph.centerNode); bi = new BufferedImage( Config.windowwidth, Config.windowheight, BufferedImage.TYPE_INT_RGB); bg = (Graphics2D) bi.getGraphics(); bg.setClip( Config.viewstartx, Config.viewstarty, Config.viewwidth, Config.viewheight); balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start(); //CanvaxVertex.setanimator(a); }
1796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1796/de9e2c4a8f697872a5f47e00d06399692e38e1fb/Can3d.java/clean/tiki/lib/wiki3d/Can3d.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
public boolean isPassed() {
public boolean isPassed(){
public boolean isPassed() { return passed; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/VariablePassedAsArgumentVisitor.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/VariablePassedAsArgumentVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22530, 1435, 95, 3639, 327, 2275, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22530, 1435, 95, 3639, 327, 2275, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private static boolean runQueryOnRS( DataEngineImpl dataEngine, IQueryDefinition queryDefn ) throws DataException { String queryResultID = queryDefn.getQueryResultsID( ); String rootQueryResultID = QueryResultIDUtil.get1PartID( queryResultID ); String parentQueryResultID = null; if ( rootQueryResultID != null ) parentQueryResultID = QueryResultIDUtil.get2PartID( queryResultID ); else rootQueryResultID = queryResultID; QueryResultInfo queryResultInfo = new QueryResultInfo( rootQueryResultID, parentQueryResultID, null, null, -1 ); RDLoad rdLoad = RDUtil.newLoad( dataEngine.getContext( ), queryResultInfo ); boolean runningOnRS = GroupDefnUtil.isEqualGroups( queryDefn.getGroups( ), rdLoad.loadGroupDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ) ); if ( runningOnRS == false ) return false; runningOnRS = !hasTopBottomNInFilter( queryDefn.getFilters( ) ); if ( runningOnRS == false ) return false; runningOnRS = isCompatibleRSMap( rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ) .getResultSetExpressions( ), queryDefn.getResultSetExpressions( ) ); if ( runningOnRS == false ) return false; runningOnRS = isCompatibleSubQuery( rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ), queryDefn ); if ( runningOnRS == false ) return false; IBaseQueryDefinition qd = rdLoad.loadQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ); List filters = qd.getFilters( ); if ( FilterDefnUtil.isConflictFilter( filters, queryDefn.getFilters( ) ) ) { runningOnRS = false; filters = rdLoad.loadOriginalQueryDefn( StreamManager.ROOT_STREAM, StreamManager.BASE_SCOPE ).getFilters( ); FilterDefnUtil.getRealFilterList( filters, queryDefn.getFilters( ) ); } if ( runningOnRS == false ) return false; // TODO enhance me // If the following conditions hold, running on data set // 1.There are sorts that different from that of original design // 2.The query has subqueries. if ( hasSubquery( queryDefn ) ) { if ( !QueryDefnUtil.isEqualSorts( queryDefn.getSorts( ), qd.getSorts( ) ) ) { runningOnRS = false; } } if ( runningOnRS == false ) return false; if ( queryDefn.getFilters( ) != null && queryDefn.getFilters( ).size( ) > 0 ) runningOnRS = queryDefn.getResultSetExpressions( ).values( ) == null || !hasAggregationOnRowObjects( queryDefn.getResultSetExpressions( ) .values( ) .iterator( ) ); return runningOnRS; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/842f3c47d4a7e311e92d330f5ed36fc2fbeefaab/PreparedQueryUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQueryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 1086, 1138, 1398, 13225, 12, 1910, 4410, 2828, 501, 4410, 16, 1082, 202, 45, 1138, 1852, 843, 3262, 82, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 26992, 734, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 1086, 1138, 1398, 13225, 12, 1910, 4410, 2828, 501, 4410, 16, 1082, 202, 45, 1138, 1852, 843, 3262, 82, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 26992, 734, 2...
for (Iterator it2 = item.keySet().iterator(); it2.hasNext();) {
for (Iterator it2 = item.iterator(); it2.hasNext();) {
public void TestNarrowForms() { if (disableUntilLater("TestMinimalLocalization")) return; for (Iterator it = locales.iterator(); it.hasNext();) { String locale = (String)it.next(); logln("Testing: " + getLocaleAndName(locale)); BreakIterator bi = BreakIterator.getCharacterInstance(new ULocale(locale)); CLDRFile item = cldrFactory.make(locale, false); // Walk through all the xpaths, adding to currentValues // Whenever two values for the same xpath are different, we remove from currentValues, and add to okValues for (Iterator it2 = item.keySet().iterator(); it2.hasNext();) { String xpath = (String) it2.next(); if (xpath.indexOf("[@type=\"narrow\"]") >= 0) { String value = item.getStringValue(xpath); //logln("\tTesting: " + value + "\t path: " + xpath); int end = getXGraphemeClusterBoundary(bi, value, 0); if (end == value.length()) continue; errln(getLocaleAndName(locale) + "\tillegal narrow value " + value + "\t path: " + xpath); surveyInfo.add(locale + "\t" + xpath + "\t'" + value + "' is too wide for a \"narrow\" value."); } } } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/ff7fbac08460c1e82a57dd272ba9ee7fad506cde/CLDRTest.java/buggy/tools/java/org/unicode/cldr/test/CLDRTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7766, 11936, 18529, 1435, 288, 202, 202, 430, 261, 8394, 9716, 20607, 2932, 4709, 2930, 2840, 19157, 6, 3719, 327, 31, 9506, 202, 1884, 261, 3198, 518, 273, 6922, 18, 9838,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7766, 11936, 18529, 1435, 288, 202, 202, 430, 261, 8394, 9716, 20607, 2932, 4709, 2930, 2840, 19157, 6, 3719, 327, 31, 9506, 202, 1884, 261, 3198, 518, 273, 6922, 18, 9838,...
results.put("NotSubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE (NOT EXISTS(SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company'))");
results.put("NotSubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE NOT EXISTS(SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company')");
public static void setUpResults() throws Exception { results.put("SelectSimpleObject", "SELECT intermine_Alias.OBJECT AS \"intermine_Alias\", intermine_Alias.id AS \"intermine_Aliasid\" FROM InterMineObject AS intermine_Alias WHERE intermine_Alias.class = 'org.intermine.model.testmodel.Company' ORDER BY intermine_Alias.id"); results2.put("SelectSimpleObject", Collections.singleton("InterMineObject")); results.put("SubQuery", "SELECT DISTINCT intermine_All.intermine_Arrayname AS a1_, intermine_All.intermine_Alias AS \"intermine_Alias\" FROM (SELECT intermine_Array.CEOId AS intermine_ArrayCEOId, intermine_Array.addressId AS intermine_ArrayaddressId, intermine_Array.id AS intermine_Arrayid, intermine_Array.name AS intermine_Arrayname, intermine_Array.vatNumber AS intermine_ArrayvatNumber, 5 AS intermine_Alias FROM InterMineObject AS intermine_Array WHERE intermine_Array.class = 'org.intermine.model.testmodel.Company') AS intermine_All ORDER BY intermine_All.intermine_Arrayname, intermine_All.intermine_Alias"); results2.put("SubQuery", Collections.singleton("InterMineObject")); results.put("WhereSimpleEquals", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.vatNumber = 1234 ORDER BY a1_.name"); results2.put("WhereSimpleEquals", Collections.singleton("InterMineObject")); results.put("WhereSimpleNotEquals", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNotEquals", Collections.singleton("InterMineObject")); results.put("WhereSimpleNegEquals", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.vatNumber != 1234 ORDER BY a1_.name"); results2.put("WhereSimpleNegEquals", Collections.singleton("InterMineObject")); results.put("WhereSimpleLike", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.name LIKE 'Company%' ORDER BY a1_.name"); results2.put("WhereSimpleLike", Collections.singleton("InterMineObject")); results.put("WhereEqualsString", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.name = 'CompanyA' ORDER BY a1_.name"); results2.put("WhereEqualsString", Collections.singleton("InterMineObject")); results.put("WhereAndSet", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereAndSet", Collections.singleton("InterMineObject")); results.put("WhereOrSet", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND (a1_.name LIKE 'CompanyA%' OR a1_.vatNumber > 2000) ORDER BY a1_.name"); results2.put("WhereOrSet", Collections.singleton("InterMineObject")); results.put("WhereNotSet", "SELECT DISTINCT a1_.name AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND ( NOT (a1_.name LIKE 'Company%' AND a1_.vatNumber > 2000)) ORDER BY a1_.name"); results2.put("WhereNotSet", Collections.singleton("InterMineObject")); results.put("WhereSubQueryField", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a1_.name IN (SELECT DISTINCT a1_.name FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Department') ORDER BY a1_.name, a1_.id"); results2.put("WhereSubQueryField", Collections.singleton("InterMineObject")); results.put("WhereSubQueryClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id IN (SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereSubQueryClass", Collections.singleton("InterMineObject")); results.put("WhereNotSubQueryClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id NOT IN (SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNotSubQueryClass", Collections.singleton("InterMineObject")); results.put("WhereNegSubQueryClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id NOT IN (SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.name = 'CompanyA') ORDER BY a1_.id"); results2.put("WhereNegSubQueryClass", Collections.singleton("InterMineObject")); results.put("WhereClassClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a1_.id = a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereClassClass", Collections.singleton("InterMineObject")); results.put("WhereNotClassClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNotClassClass", Collections.singleton("InterMineObject")); results.put("WhereNegClassClass", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a1_.id != a2_.id ORDER BY a1_.id, a2_.id"); results2.put("WhereNegClassClass", Collections.singleton("InterMineObject")); results.put("WhereClassObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id = " + companyAId + " ORDER BY a1_.id"); results2.put("WhereClassObject", Collections.singleton("InterMineObject")); results.put("Contains11", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Manager' AND (a1_.managerId = a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("Contains11", Collections.singleton("InterMineObject")); results.put("ContainsNot11", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Manager' AND (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNot11", Collections.singleton("InterMineObject")); results.put("ContainsNeg11", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Manager' AND (a1_.managerId != a2_.id AND a1_.name = 'DepartmentA1') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNeg11", Collections.singleton("InterMineObject")); results.put("Contains1N", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND (a1_.id = a2_.companyId AND a1_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("Contains1N", Collections.singleton("InterMineObject")); results.put("ContainsNot1N", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND (a1_.id != a2_.companyId AND a1_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsNot1N", Collections.singleton("InterMineObject")); results.put("ContainsN1", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Company' AND (a1_.companyId = a2_.id AND a2_.name = 'CompanyA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsN1", Collections.singleton("InterMineObject")); results.put("ContainsMN", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_, CompanysContractors AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Contractor' AND a2_.class = 'org.intermine.model.testmodel.Company' AND ((a1_.id = indirect0.Companys AND indirect0.Contractors = a2_.id) AND a1_.name = 'ContractorA') ORDER BY a1_.id, a2_.id"); results2.put("ContainsMN", new HashSet(Arrays.asList(new String[] {"InterMineObject", "CompanysContractors"}))); results.put("ContainsDuplicatesMN", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_, OldComsOldContracts AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Contractor' AND a2_.class = 'org.intermine.model.testmodel.Company' AND (a1_.id = indirect0.OldComs AND indirect0.OldContracts = a2_.id) ORDER BY a1_.id, a2_.id"); results2.put("ContainsDuplicatesMN", new HashSet(Arrays.asList(new String[] {"InterMineObject", "OldComsOldContracts"}))); results.put("SimpleGroupBy", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id, COUNT(*) AS a2_ FROM InterMineObject AS a1_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a3_.class = 'org.intermine.model.testmodel.Department' AND a1_.id = a3_.companyId GROUP BY a1_.OBJECT, a1_.CEOId, a1_.addressId, a1_.id, a1_.name, a1_.vatNumber ORDER BY a1_.id, COUNT(*)"); results2.put("SimpleGroupBy", Collections.singleton("InterMineObject")); results.put("MultiJoin", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id, a4_.OBJECT AS a4_, a4_.id AS a4_id FROM InterMineObject AS a1_, InterMineObject AS a2_, InterMineObject AS a3_, InterMineObject AS a4_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND a3_.class = 'org.intermine.model.testmodel.Manager' AND a4_.class = 'org.intermine.model.testmodel.Address' AND (a1_.id = a2_.companyId AND a2_.managerId = a3_.id AND a3_.addressId = a4_.id AND a3_.name = 'EmployeeA1') ORDER BY a1_.id, a2_.id, a3_.id, a4_.id"); results2.put("MultiJoin", Collections.singleton("InterMineObject")); results.put("SelectComplex", "SELECT DISTINCT (AVG(a1_.vatNumber) + 20) AS a3_, a2_.name AS a4_, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' GROUP BY a2_.OBJECT, a2_.companyId, a2_.id, a2_.managerId, a2_.name ORDER BY (AVG(a1_.vatNumber) + 20), a2_.name, a2_.id"); results2.put("SelectComplex", Collections.singleton("InterMineObject")); results.put("SelectClassAndSubClasses", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.name AS orderbyfield0 FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY a1_.name, a1_.id"); results2.put("SelectClassAndSubClasses", Collections.singleton("InterMineObject")); results.put("SelectInterfaceAndSubClasses", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employable' ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses", Collections.singleton("InterMineObject")); results.put("SelectInterfaceAndSubClasses2", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.RandomInterface' ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses2", Collections.singleton("InterMineObject")); results.put("SelectInterfaceAndSubClasses3", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.ImportantPerson' ORDER BY a1_.id"); results2.put("SelectInterfaceAndSubClasses3", Collections.singleton("InterMineObject")); results.put("OrderByAnomaly", "SELECT DISTINCT 5 AS a2_, a1_.name AS a3_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' ORDER BY a1_.name"); results2.put("OrderByAnomaly", Collections.singleton("InterMineObject")); results.put("SelectClassObjectSubquery", "SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a2_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND (a1_.id = " + companyAId + " AND a1_.id = a2_.companyId AND a2_.id IN (SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a1_.id = " + departmentA1Id + ")) ORDER BY a1_.id"); results2.put("SelectClassObjectSubquery", Collections.singleton("InterMineObject")); results.put("SelectUnidirectionalCollection", "SELECT DISTINCT a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a1_, InterMineObject AS a2_, HasSecretarysSecretarys AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Secretary' AND (a1_.name = 'CompanyA' AND (a1_.id = indirect0.Secretarys AND indirect0.HasSecretarys = a2_.id)) ORDER BY a2_.id"); results2.put("SelectUnidirectionalCollection", new HashSet(Arrays.asList(new String[] {"InterMineObject", "HasSecretarysSecretarys"}))); results.put("EmptyAndConstraintSet", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND true ORDER BY a1_.id"); results2.put("EmptyAndConstraintSet", Collections.singleton("InterMineObject")); results.put("EmptyOrConstraintSet", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND false ORDER BY a1_.id"); results2.put("EmptyOrConstraintSet", Collections.singleton("InterMineObject")); results.put("EmptyNandConstraintSet", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND false ORDER BY a1_.id"); results2.put("EmptyNandConstraintSet", Collections.singleton("InterMineObject")); results.put("EmptyNorConstraintSet", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND true ORDER BY a1_.id"); results2.put("EmptyNorConstraintSet", Collections.singleton("InterMineObject")); results.put("BagConstraint", "SELECT Company.OBJECT AS \"Company\", Company.id AS \"Companyid\" FROM InterMineObject AS Company WHERE Company.class = 'org.intermine.model.testmodel.Company' AND (Company.name IN ('CompanyA', 'goodbye', 'hello')) ORDER BY Company.id"); results2.put("BagConstraint", Collections.singleton("InterMineObject")); results.put("BagConstraint2", "SELECT Company.OBJECT AS \"Company\", Company.id AS \"Companyid\" FROM InterMineObject AS Company WHERE Company.class = 'org.intermine.model.testmodel.Company' AND (Company.id IN (" + companyAId + ")) ORDER BY Company.id"); results2.put("BagConstraint2", Collections.singleton("InterMineObject")); results.put("InterfaceField", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employable' AND a1_.name = 'EmployeeA1' ORDER BY a1_.id"); results2.put("InterfaceField", Collections.singleton("InterMineObject")); Set res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1__1.debt AS a2_, a1_.age AS a3_ FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND (a1__1.debt > 0 AND a1_.age > 0) ORDER BY a1_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.debt AS a2_, a1__1.age AS a3_ FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Employee' AND (a1_.debt > 0 AND a1__1.age > 0) ORDER BY a1_.id"); results.put("DynamicInterfacesAttribute", res); results2.put("DynamicInterfacesAttribute", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Employable' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' ORDER BY a1_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Employable' ORDER BY a1_.id"); results.put("DynamicClassInterface", res); results2.put("DynamicClassInterface", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a3_.class = 'org.intermine.model.testmodel.Bank' AND (a2_.id = a1_.companyId AND a3_.id = a1__1.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a3_.class = 'org.intermine.model.testmodel.Bank' AND (a2_.id = a1__1.companyId AND a3_.id = a1_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef1", res); results2.put("DynamicClassRef1", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a3_.class = 'org.intermine.model.testmodel.Bank' AND (a1_.companyId = a2_.id AND a1__1.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Department' AND a2_.class = 'org.intermine.model.testmodel.Company' AND a3_.class = 'org.intermine.model.testmodel.Bank' AND (a1__1.companyId = a2_.id AND a1_.bankId = a3_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef2", res); results2.put("DynamicClassRef2", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Bank' AND a2_.class = 'org.intermine.model.testmodel.Department' AND a3_.class = 'org.intermine.model.testmodel.Broke' AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Bank' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND a3_.class = 'org.intermine.model.testmodel.Broke' AND (a1_.id = a2_.companyId AND a1_.id = a3_.bankId) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef3", res); results2.put("DynamicClassRef3", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Bank' AND a2_.class = 'org.intermine.model.testmodel.Department' AND a3_.class = 'org.intermine.model.testmodel.Broke' AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a3_ WHERE a1_.class = 'org.intermine.model.testmodel.Bank' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Company' AND a2_.class = 'org.intermine.model.testmodel.Department' AND a3_.class = 'org.intermine.model.testmodel.Broke' AND (a2_.companyId = a1_.id AND a3_.bankId = a1_.id) ORDER BY a1_.id, a2_.id, a3_.id"); results.put("DynamicClassRef4", res); results2.put("DynamicClassRef4", Collections.singleton("InterMineObject")); res = new HashSet(); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a2__1 WHERE a1_.class = 'org.intermine.model.testmodel.Employable' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND a2_.class = 'org.intermine.model.testmodel.HasAddress' AND a2_.id = a2__1.id AND a2__1.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a2__1 WHERE a1_.class = 'org.intermine.model.testmodel.Employable' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND a2_.class = 'org.intermine.model.testmodel.Broke' AND a2_.id = a2__1.id AND a2__1.class = 'org.intermine.model.testmodel.HasAddress' AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a2__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Employable' AND a2_.class = 'org.intermine.model.testmodel.HasAddress' AND a2_.id = a2__1.id AND a2__1.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a2_.id ORDER BY a1_.id"); res.add("SELECT DISTINCT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1, InterMineObject AS a2_, InterMineObject AS a2__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Employable' AND a2_.class = 'org.intermine.model.testmodel.Broke' AND a2_.id = a2__1.id AND a2__1.class = 'org.intermine.model.testmodel.HasAddress' AND a1_.id = a2_.id ORDER BY a1_.id"); results.put("DynamicClassConstraint", res); results2.put("DynamicClassConstraint", Collections.singleton("InterMineObject")); results.put("ContainsConstraintNull", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.addressId IS NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNull", Collections.singleton("InterMineObject")); results.put("ContainsConstraintNotNull", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.addressId IS NOT NULL ORDER BY a1_.id"); results2.put("ContainsConstraintNotNull", Collections.singleton("InterMineObject")); results.put("ContainsConstraintObjectRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.departmentId = 5 ORDER BY a1_.id"); results2.put("ContainsConstraintObjectRefObject", Collections.singleton("InterMineObject")); results.put("ContainsConstraintNotObjectRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.departmentId != 5 ORDER BY a1_.id"); results2.put("ContainsConstraintNotObjectRefObject", Collections.singleton("InterMineObject")); results.put("ContainsConstraintCollectionRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND indirect0.class = 'org.intermine.model.testmodel.Employee' AND (a1_.id = indirect0.departmentId AND indirect0.id = 11) ORDER BY a1_.id"); results2.put("ContainsConstraintCollectionRefObject", Collections.singleton("InterMineObject")); results.put("ContainsConstraintNotCollectionRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Department' AND indirect0.class = 'org.intermine.model.testmodel.Employee' AND (a1_.id != indirect0.departmentId AND indirect0.id = 11) ORDER BY a1_.id"); results2.put("ContainsConstraintNotCollectionRefObject", Collections.singleton("InterMineObject")); results.put("ContainsConstraintMMCollectionRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, CompanysContractors AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND (a1_.id = indirect0.Contractors AND indirect0.Companys = 3) ORDER BY a1_.id"); results2.put("ContainsConstraintMMCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "CompanysContractors"}))); //results.put("ContainsConstraintNotMMCollectionRefObject", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, CompanysContractors AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Company' AND (a1_.id != indirect0.Contractors AND indirect0.Companys = 3) ORDER BY a1_.id"); //results2.put("ContainsConstraintNotMMCollectionRefObject", new HashSet(Arrays.asList(new String[] {"InterMineObject", "CompanysContractors"}))); results.put("SimpleConstraintNull", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Manager' AND a1_.title IS NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNull", Collections.singleton("InterMineObject")); results.put("SimpleConstraintNotNull", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Manager' AND a1_.title IS NOT NULL ORDER BY a1_.id"); results2.put("SimpleConstraintNotNull", Collections.singleton("InterMineObject")); results.put("TypeCast", "SELECT DISTINCT (a1_.age)::TEXT AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY (a1_.age)::TEXT"); results2.put("TypeCast", Collections.singleton("InterMineObject")); results.put("IndexOf", "SELECT STRPOS(a1_.name, 'oy') AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY STRPOS(a1_.name, 'oy')"); results2.put("IndexOf", Collections.singleton("InterMineObject")); results.put("Substring", "SELECT SUBSTR(a1_.name, 2, 2) AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY SUBSTR(a1_.name, 2, 2)"); results2.put("Substring", Collections.singleton("InterMineObject")); results.put("Substring2", "SELECT SUBSTR(a1_.name, 2) AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY SUBSTR(a1_.name, 2)"); results2.put("Substring2", Collections.singleton("InterMineObject")); results.put("OrderByReference", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.departmentId AS orderbyfield0 FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY a1_.departmentId, a1_.id"); results2.put("OrderByReference", Collections.singleton("InterMineObject")); String largeBagConstraintText = new BufferedReader(new InputStreamReader(TruncatedSqlGeneratorTest.class.getClassLoader().getResourceAsStream("truncatedLargeBag.sql"))).readLine(); results.put("LargeBagConstraint", largeBagConstraintText); results2.put("LargeBagConstraint", Collections.singleton("InterMineObject")); String largeBagNotConstraintText = new BufferedReader(new InputStreamReader(TruncatedSqlGeneratorTest.class.getClassLoader().getResourceAsStream("truncatedLargeNotBag.sql"))).readLine(); results.put("LargeBagNotConstraint", largeBagNotConstraintText); results2.put("LargeBagNotConstraint", Collections.singleton("InterMineObject")); results.put("LargeBagConstraintUsingTable", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.name IN (SELECT value FROM " + SqlGeneratorTest.LARGE_BAG_TABLE_NAME + ") ORDER BY a1_.id"); results2.put("LargeBagConstraintUsingTable", Collections.singleton("InterMineObject")); results.put("LargeBagNotConstraintUsingTable", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND NOT (a1_.name IN (SELECT value FROM " + LARGE_BAG_TABLE_NAME + ")) ORDER BY a1_.id"); results2.put("LargeBagNotConstraintUsingTable", Collections.singleton("InterMineObject")); results.put("NegativeNumbers", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND a1_.age > -51 ORDER BY a1_.id"); results2.put("NegativeNumbers", Collections.singleton("InterMineObject")); results.put("Lower", "SELECT LOWER(a1_.name) AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY LOWER(a1_.name)"); results2.put("Lower", Collections.singleton("InterMineObject")); results.put("Upper", "SELECT UPPER(a1_.name) AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY UPPER(a1_.name)"); results2.put("Upper", Collections.singleton("InterMineObject")); results.put("CollectionQueryOneMany", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' AND " + departmentA1Id + " = a1_.departmentId ORDER BY a1_.id"); results2.put("CollectionQueryOneMany", Collections.singleton("InterMineObject")); results.put("CollectionQueryManyMany", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, HasSecretarysSecretarys AS indirect0 WHERE a1_.class = 'org.intermine.model.testmodel.Secretary' AND (" + companyBId + " = indirect0.Secretarys AND indirect0.HasSecretarys = a1_.id) ORDER BY a1_.id"); results2.put("CollectionQueryManyMany", new HashSet(Arrays.asList(new String[] {"InterMineObject", "HasSecretarysSecretarys"}))); results.put("QueryClassBag", "SELECT a2_.departmentId AS a3_, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a2_ WHERE a2_.class = 'org.intermine.model.testmodel.Employee' AND (a2_.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) ORDER BY a2_.departmentId, a2_.id"); results2.put("QueryClassBag", Collections.singleton("InterMineObject")); results.put("QueryClassBagMM", "SELECT indirect0.Secretarys AS a3_, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a2_, HasSecretarysSecretarys AS indirect0 WHERE a2_.class = 'org.intermine.model.testmodel.Secretary' AND ((indirect0.Secretarys IN (" + companyAId + ", " + companyBId + ", " + employeeB1Id + ")) AND indirect0.HasSecretarys = a2_.id) ORDER BY indirect0.Secretarys, a2_.id"); results2.put("QueryClassBagMM", new HashSet(Arrays.asList(new String[] {"InterMineObject", "HasSecretarysSecretarys"}))); results.put("QueryClassBagDynamic", "SELECT indirect0.Secretarys AS a3_, a2_.OBJECT AS a2_, a2_.id AS a2_id FROM InterMineObject AS a2_, HasSecretarysSecretarys AS indirect0 WHERE a2_.class = 'org.intermine.model.testmodel.Secretary' AND ((indirect0.Secretarys IN (" + employeeB1Id + ")) AND indirect0.HasSecretarys = a2_.id) ORDER BY indirect0.Secretarys, a2_.id"); results2.put("QueryClassBagDynamic", new HashSet(Arrays.asList(new String[] {"InterMineObject", "HasSecretarysSecretarys"}))); //res = new HashSet() //res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Employable' AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); //res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1__1.class = 'org.intermine.model.testmodel.Employable' AND a1_.id = a1__1.id AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); //results.put("DynamicBagConstraint", res); //results2.put("DynamicBagConstraint", Collections.singleton("InterMineObject")); // See ticket #469 res = new HashSet(); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.CEO' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.Broke' AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); res.add("SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_, InterMineObject AS a1__1 WHERE a1_.class = 'org.intermine.model.testmodel.Broke' AND a1_.id = a1__1.id AND a1__1.class = 'org.intermine.model.testmodel.CEO' AND (a1_.id IN (" + employeeB1Id + ")) ORDER BY a1_.id"); results.put("DynamicBagConstraint2", res); results2.put("DynamicBagConstraint2", Collections.singleton("InterMineObject")); results.put("QueryClassBagDouble", "SELECT a2_.departmentId AS a4_, a2_.OBJECT AS a2_, a2_.id AS a2_id, a3_.OBJECT AS a3_, a3_.id AS a3_id FROM InterMineObject AS a2_, InterMineObject AS a3_ WHERE a2_.class = 'org.intermine.model.testmodel.Employee' AND a3_.class = 'org.intermine.model.testmodel.Employee' AND ((a2_.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND a3_.departmentId = a2_.departmentId) ORDER BY a2_.departmentId, a2_.id, a3_.id"); results2.put("QueryClassBagDouble", Collections.singleton("InterMineObject")); results.put("QueryClassBagContainsObject", "SELECT indirect0.departmentId AS a2_ FROM InterMineObject AS indirect0 WHERE indirect0.class = 'org.intermine.model.testmodel.Employee' AND ((indirect0.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND indirect0.id = " + employeeA1Id + ") ORDER BY indirect0.departmentId"); results2.put("QueryClassBagContainsObject", Collections.singleton("InterMineObject")); results.put("QueryClassBagContainsObjectDouble", "SELECT indirect0.departmentId AS a2_ FROM InterMineObject AS indirect0, InterMineObject AS indirect1 WHERE (indirect0.class = 'org.intermine.model.testmodel.Employee' AND ((indirect0.departmentId IN (" + departmentA1Id + ", " + departmentB1Id + ")) AND indirect0.id = " + employeeA1Id + ") AND indirect1.class = 'org.intermine.model.testmodel.Employee' AND (indirect1.departmentId = indirect0.departmentId AND indirect1.id = " + employeeA2Id + ")) ORDER BY indirect0.departmentId"); results2.put("QueryClassBagContainsObjectDouble", Collections.singleton("InterMineObject")); results.put("ObjectContainsObject", "SELECT 'hello' AS a1_ FROM InterMineObject AS indirect0 WHERE indirect0.class = 'org.intermine.model.testmodel.Employee' AND (" + departmentA1Id + " = indirect0.departmentId AND indirect0.id = " + employeeA1Id + ")"); results2.put("ObjectContainsObject", Collections.singleton("InterMineObject")); results.put("ObjectContainsObject2", "SELECT 'hello' AS a1_ FROM InterMineObject AS indirect0 WHERE indirect0.class = 'org.intermine.model.testmodel.Employee' AND (" + departmentA1Id + " = indirect0.departmentId AND indirect0.id = " + employeeB1Id + ")"); results2.put("ObjectContainsObject2", Collections.singleton("InterMineObject")); results.put("ObjectNotContainsObject", "SELECT 'hello' AS a1_ FROM InterMineObject AS indirect0 WHERE indirect0.class = 'org.intermine.model.testmodel.Employee' AND (" + departmentA1Id + " != indirect0.departmentId AND indirect0.id = " + employeeA1Id + ")"); results2.put("ObjectNotContainsObject", Collections.singleton("InterMineObject")); results.put("SubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE EXISTS(SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company')"); results2.put("SubqueryExistsConstraint", Collections.singleton("InterMineObject")); results.put("NotSubqueryExistsConstraint", "SELECT 'hello' AS a1_ WHERE (NOT EXISTS(SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company'))"); results2.put("NotSubqueryExistsConstraint", Collections.singleton("InterMineObject")); results.put("SubqueryExistsConstraintNeg", "SELECT 'hello' AS a1_ WHERE EXISTS(SELECT a1_.id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Bank')"); results2.put("SubqueryExistsConstraintNeg", Collections.singleton("InterMineObject")); //results.put("ObjectPathExpression", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Employee' ORDER BY a1_.id"); //results2.put("ObjectPathExpression", Collections.singleton("InterMineObject")); //results.put("FieldPathExpression", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' ORDER BY a1_.id"); //results2.put("FieldPathExpression", Collections.singleton("InterMineObject")); results.put("ObjectPathExpression", NO_RESULT); results.put("FieldPathExpression", NO_RESULT); results.put("ForeignKey", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.CEOId AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' ORDER BY a1_.id"); results2.put("ForeignKey", Collections.singleton("InterMineObject")); results.put("ForeignKey2", "SELECT a1_.OBJECT AS a1_, a1_.id AS a1_id, a1_.CEOId AS a2_ FROM InterMineObject AS a1_ WHERE a1_.class = 'org.intermine.model.testmodel.Company' ORDER BY a1_.id"); results2.put("ForeignKey2", Collections.singleton("InterMineObject")); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/c8af41491c45bdf301a00060b3d923f1e2c08033/TruncatedSqlGeneratorTest.java/buggy/intermine/objectstore/test/src/org/intermine/objectstore/intermine/TruncatedSqlGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 24292, 3447, 1435, 1216, 1185, 288, 3639, 1686, 18, 458, 2932, 3391, 5784, 921, 3113, 315, 4803, 1554, 3081, 67, 2936, 18, 9422, 5355, 1239, 2761, 3081, 67, 2936, 22564, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 24292, 3447, 1435, 1216, 1185, 288, 3639, 1686, 18, 458, 2932, 3391, 5784, 921, 3113, 315, 4803, 1554, 3081, 67, 2936, 18, 9422, 5355, 1239, 2761, 3081, 67, 2936, 22564, 1...
public void reportException(RhinoException ex)
public static void reportException(ErrorReporter er, RhinoException ex)
public void reportException(RhinoException ex) { String msg; if (ex instanceof JavaScriptException) { msg = getMessage("msg.uncaughtJSException", ex.details()); } else if (ex instanceof EcmaError) { msg = getMessage("msg.uncaughtEcmaError", ex.details()); } else { msg = ex.toString(); } reportErrorMessage(msg, ex.sourceName(), ex.lineNumber(), ex.lineSource(), ex.columnNumber(), false); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f33158e1f3ca50dd2d54de255aa8870a9f06997d/ToolErrorReporter.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2605, 503, 12, 668, 13289, 6445, 16, 534, 76, 15020, 503, 431, 13, 565, 288, 3639, 514, 1234, 31, 3639, 309, 261, 338, 1276, 11905, 503, 13, 288, 5411, 1234, 273, 2381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2605, 503, 12, 668, 13289, 6445, 16, 534, 76, 15020, 503, 431, 13, 565, 288, 3639, 514, 1234, 31, 3639, 309, 261, 338, 1276, 11905, 503, 13, 288, 5411, 1234, 273, 2381, ...
void printFile (String filename)
void printFile(String filename)
void printFile (String filename) { FileReader fis = null; try { fis = new FileReader(filename); char[] data = new char[4*1024]; // 4K buffer int bytesRead; bytesRead = fis.read(data); while (/*(bytesRead = fis.read(data))*/ bytesRead != -1) { out.write(data, 0, bytesRead); bytesRead = fis.read(data); } } catch (Exception e) { out.println("Unable to read file (exception: "+e+")<br>\n"); } finally { if (fis != null) try { fis.close(); } catch (Exception ex) { out.println("Unable to close the file reader (exception: "+ex+")<br>\n"); } } }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ServletPrinter.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/ServletPrinter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1172, 812, 12, 780, 1544, 13, 225, 288, 565, 23010, 15324, 273, 446, 31, 565, 775, 565, 288, 1377, 15324, 273, 394, 23010, 12, 3459, 1769, 1377, 1149, 8526, 501, 273, 394, 1149, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1172, 812, 12, 780, 1544, 13, 225, 288, 565, 23010, 15324, 273, 446, 31, 565, 775, 565, 288, 1377, 15324, 273, 394, 23010, 12, 3459, 1769, 1377, 1149, 8526, 501, 273, 394, 1149, 63...
if (projectedFeatures == null) { projectedFeatures = new ProjectedFeatureHolder(componentSequence, this, translation); }
protected FeatureHolder getProjectedFeatures() { if (projectedFeatures == null) { projectedFeatures = new ProjectedFeatureHolder(componentSequence, this, translation); } return projectedFeatures; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/6c79fb193179976d4997e1a31578bec8168e022d/DASComponentFeature.java/clean/src/org/biojava/bio/program/das/DASComponentFeature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 7881, 6064, 3570, 6059, 8696, 1435, 288, 202, 430, 261, 685, 6059, 8696, 422, 446, 13, 288, 202, 565, 20939, 8696, 273, 394, 1186, 6059, 4595, 6064, 12, 4652, 4021, 16, 6862, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 7881, 6064, 3570, 6059, 8696, 1435, 288, 202, 430, 261, 685, 6059, 8696, 422, 446, 13, 288, 202, 565, 20939, 8696, 273, 394, 1186, 6059, 4595, 6064, 12, 4652, 4021, 16, 6862, 9506, ...
}
} else usedPackages.add(packages[i]);
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { ImportPackageObject[] packages = null; if (ClasspathUtilCore.hasBundleStructure(fModel)) { IBundle bundle = ((IBundlePluginModelBase)fModel).getBundleModel().getBundle(); IManifestHeader header = bundle.getManifestHeader(Constants.IMPORT_PACKAGE); if (header instanceof ImportPackageHeader) { packages = ((ImportPackageHeader)header).getPackages(); } else if (header != null && header.getValue() != null) { header = new ImportPackageHeader(Constants.IMPORT_PACKAGE, header.getValue(), bundle, System.getProperty("line.separator")); //$NON-NLS-1$ packages = ((ImportPackageHeader)header).getPackages(); } } IPluginImport[] imports = fModel.getPluginBase().getImports(); int totalWork = imports.length * 3 + (packages != null ? packages.length : 0); monitor.beginTask("", totalWork); //$NON-NLS-1$ fList = new ArrayList(); for (int i = 0; i < imports.length; i++) { if (monitor.isCanceled()) break; if (isUnused(imports[i], new SubProgressMonitor(monitor, 3))) { fList.add(imports[i]); } updateMonitor(monitor, fList.size()); } if (packages != null && !monitor.isCanceled()) { for (int i = 0; i < packages.length; i++) { if (monitor.isCanceled()) break; if (isUnused(packages[i], new SubProgressMonitor(monitor, 1))) { fList.add(packages[i]); updateMonitor(monitor, fList.size()); } } } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/77bc17b1aa81b546952ff2452e998dae0d231de8/GatherUnusedDependenciesOperation.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/dependencies/GatherUnusedDependenciesOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 15342, 16, 1082, 202, 24485, 503, 288, 9506, 202, 5010, 2261, 921, 8526, 5907, 273, 446, 31, 202, 202, 430, 261, 17461, 1304, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 15342, 16, 1082, 202, 24485, 503, 288, 9506, 202, 5010, 2261, 921, 8526, 5907, 273, 446, 31, 202, 202, 430, 261, 17461, 1304, 46...
public void testRead2() { byte[] data = new byte[] {-127, -100, -50, -10, -1, 0, 1, 10, 50, 127};
public void testRead2() throws Exception { byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 };
public void testRead2() { byte[] data = new byte[] {-127, -100, -50, -10, -1, 0, 1, 10, 50, 127}; TestInputStream tis = new TestInputStream(data); CipherInputStream cis = new CipherInputStream(tis, new NullCipher()); try { int expected = data.length; byte[] result = new byte[expected]; int ind = 0; // index into the data array (to check the got data) int got = cis.read(result); // the number of got bytes while (true) { for (int j=0; j<got-ind; j++) { if (result[j] != data[ind+j]) { fail("read(byte[] b) returned incorrect data."); } } if (got == expected) { break; } else if (got > expected) { fail("The data returned by read(byte[] b) " + "is larger than expected."); } else { ind = got; got += cis.read(result); } } if (cis.read(result) != -1) { fail("read(byte[] b) should return -1 " + "at the end of the stream."); } } catch (IOException e) { e.printStackTrace(); fail("Unexpected IOException was thrown."); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4d76bfb2eadb70e06c48c35a604c83b3f0eefc76/CipherInputStreamTest.java/clean/modules/crypto/src/test/api/java.injected/javax/crypto/CipherInputStreamTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 22, 1435, 288, 3639, 1160, 8526, 501, 273, 394, 1160, 8526, 288, 17, 14260, 16, 300, 6625, 16, 300, 3361, 16, 300, 2163, 16, 300, 21, 16, 374, 16, 404, 16, 1728...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 22, 1435, 288, 3639, 1160, 8526, 501, 273, 394, 1160, 8526, 288, 17, 14260, 16, 300, 6625, 16, 300, 3361, 16, 300, 2163, 16, 300, 21, 16, 374, 16, 404, 16, 1728...
log.error(e);
System.err.println(e);
public DrawRepl() { colors.put(new Integer(1), Color.white); colors.put(new Integer(2), Color.black); colors.put(new Integer(3), Color.red); colors.put(new Integer(4), Color.orange); colors.put(new Integer(5), Color.green); colors.put(new Integer(6), Color.magenta); colors.put(new Integer(7), Color.cyan); colors.put(new Integer(8), Color.blue); mythread=new Thread(this); try { channel=new JChannel(); dispatcher=new RpcDispatcher(channel, null, null, this); channel.connect(groupname); } catch(Exception e) { log.error(e); System.exit(0); } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/DrawRepl.java/buggy/src/org/jgroups/demos/DrawRepl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10184, 20043, 1435, 288, 202, 9724, 18, 458, 12, 2704, 2144, 12, 21, 3631, 225, 5563, 18, 14739, 1769, 202, 9724, 18, 458, 12, 2704, 2144, 12, 22, 3631, 225, 5563, 18, 11223, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10184, 20043, 1435, 288, 202, 9724, 18, 458, 12, 2704, 2144, 12, 21, 3631, 225, 5563, 18, 14739, 1769, 202, 9724, 18, 458, 12, 2704, 2144, 12, 22, 3631, 225, 5563, 18, 11223, 1769...
if (intervalMin > intervalMax) return;
public void intersect(Ray r, IntersectionState state) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x - orgX) * invDirX; if (invDirX > 0) { if (t1 > intervalMin) intervalMin = t1; if (t2 < intervalMax) intervalMax = t2; if (intervalMin > intervalMax) return; } else { if (t2 > intervalMin) intervalMin = t2; if (t1 < intervalMax) intervalMax = t1; if (intervalMin > intervalMax) return; } float orgY = r.oy; float dirY = r.dy, invDirY = 1 / dirY; t1 = (bounds.getMinimum().y - orgY) * invDirY; t2 = (bounds.getMaximum().y - orgY) * invDirY; if (invDirY > 0) { if (t1 > intervalMin) intervalMin = t1; if (t2 < intervalMax) intervalMax = t2; if (intervalMin > intervalMax) return; } else { if (t2 > intervalMin) intervalMin = t2; if (t1 < intervalMax) intervalMax = t1; if (intervalMin > intervalMax) return; } float orgZ = r.oz; float dirZ = r.dz, invDirZ = 1 / dirZ; t1 = (bounds.getMinimum().z - orgZ) * invDirZ; t2 = (bounds.getMaximum().z - orgZ) * invDirZ; if (invDirZ > 0) { if (t1 > intervalMin) intervalMin = t1; if (t2 < intervalMax) intervalMax = t2; if (intervalMin > intervalMax) return; } else { if (t2 > intervalMin) intervalMin = t2; if (t1 < intervalMax) intervalMax = t1; if (intervalMin > intervalMax) return; } // compute custom offsets from direction sign bit int offsetXFront = (Float.floatToRawIntBits(dirX) & (1 << 31)) >>> 30; int offsetYFront = (Float.floatToRawIntBits(dirY) & (1 << 31)) >>> 30; int offsetZFront = (Float.floatToRawIntBits(dirZ) & (1 << 31)) >>> 30; int offsetXBack = offsetXFront ^ 2; int offsetYBack = offsetYFront ^ 2; int offsetZBack = offsetZFront ^ 2; int[] nodeStack = state.iscratch; float[] tStack = state.fscratch; int nstackPos = 0; int tstackPos = 0; int node = 0; while (true) { pushloop: while (true) { int tn = tree[node]; int axis = tn & (3 << 30); int offset = tn & ~(3 << 30); switch (axis) { case 0: { float d = (Float.intBitsToFloat(tree[node + 1]) - orgX) * invDirX; int back = offset + offsetXBack; node = back; if (d < intervalMin) continue; node = offset + offsetXFront; // front if (d > intervalMax) continue; // push back node nodeStack[nstackPos] = back; tStack[tstackPos + 0] = (d >= intervalMin) ? d : intervalMin; tStack[tstackPos + 1] = intervalMax; nstackPos++; tstackPos += 2; // update ray interval for front node intervalMax = (d <= intervalMax) ? d : intervalMax; continue; } case 1 << 30: { // y axis float d = (Float.intBitsToFloat(tree[node + 1]) - orgY) * invDirY; int back = offset + offsetYBack; node = back; if (d < intervalMin) continue; node = offset + offsetYFront; // front if (d > intervalMax) continue; // push back node nodeStack[nstackPos] = back; tStack[tstackPos + 0] = (d >= intervalMin) ? d : intervalMin; tStack[tstackPos + 1] = intervalMax; nstackPos++; tstackPos += 2; // update ray interval for front node intervalMax = (d <= intervalMax) ? d : intervalMax; continue; } case 2 << 30: { // z axis float d = (Float.intBitsToFloat(tree[node + 1]) - orgZ) * invDirZ; int back = offset + offsetZBack; node = back; if (d < intervalMin) continue; node = offset + offsetZFront; // front if (d > intervalMax) continue; // push back node nodeStack[nstackPos] = back; tStack[tstackPos + 0] = (d >= intervalMin) ? d : intervalMin; tStack[tstackPos + 1] = intervalMax; nstackPos++; tstackPos += 2; // update ray interval for front node intervalMax = (d <= intervalMax) ? d : intervalMax; continue; } default: { // leaf - test some objects int n = tree[node + 1]; while (n > 0) { objects[offset].intersect(r, state); n--; offset++; } if (r.getMax() < intervalMax) return; break pushloop; } } // switch } // traversal loop // stack is empty? do { if (nstackPos == 0) return; // move back up the stack nstackPos--; tstackPos -= 2; node = nodeStack[nstackPos]; intervalMin = tStack[tstackPos + 0]; intervalMax = tStack[tstackPos + 1]; } while (r.getMax() < intervalMin); } }
51147 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51147/6b89bbc9ad8aa4f49e3e33289511b2fba6774b2a/KDTree.java/buggy/src/org/sunflow/core/accel/KDTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9136, 12, 54, 528, 436, 16, 5294, 3464, 1119, 919, 13, 288, 3639, 1431, 3673, 2930, 273, 436, 18, 588, 2930, 5621, 3639, 1431, 3673, 2747, 273, 436, 18, 588, 2747, 5621, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9136, 12, 54, 528, 436, 16, 5294, 3464, 1119, 919, 13, 288, 3639, 1431, 3673, 2930, 273, 436, 18, 588, 2930, 5621, 3639, 1431, 3673, 2747, 273, 436, 18, 588, 2747, 5621, 3639...
throw new TypeError(recv.getRuntime(), "can't make subclass of Class");
throw recv.getRuntime().newTypeError("can't make subclass of Class");
public static IRubyObject inherited(RubyClass recv) { throw new TypeError(recv.getRuntime(), "can't make subclass of Class"); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyClass.java/buggy/src/org/jruby/RubyClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 12078, 12, 54, 10340, 797, 10665, 13, 288, 3639, 604, 10665, 18, 588, 5576, 7675, 2704, 19030, 2932, 4169, 1404, 1221, 10177, 434, 1659, 8863, 565, 289, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 12078, 12, 54, 10340, 797, 10665, 13, 288, 3639, 604, 10665, 18, 588, 5576, 7675, 2704, 19030, 2932, 4169, 1404, 1221, 10177, 434, 1659, 8863, 565, 289, 2, -...
nglPointParameterfv(pname, params, params.position());
long function_pointer = GLContext.getCapabilities().GL14_glPointParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameterfv(pname, params, params.position(), function_pointer);
public static void glPointParameter(int pname, FloatBuffer params) { BufferChecks.checkBuffer(params, 4); nglPointParameterfv(pname, params, params.position()); }
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/34f4e7ae56bc58e471c8c83a1f87a76a5e81ea12/GL14.java/buggy/src/java/org/lwjgl/opengl/GL14.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 2148, 1662, 12, 474, 19952, 16, 5450, 1892, 859, 13, 288, 202, 202, 1892, 4081, 18, 1893, 1892, 12, 2010, 16, 1059, 1769, 202, 202, 3368, 80, 2148, 1662, 17679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 5118, 2148, 1662, 12, 474, 19952, 16, 5450, 1892, 859, 13, 288, 202, 202, 1892, 4081, 18, 1893, 1892, 12, 2010, 16, 1059, 1769, 202, 202, 3368, 80, 2148, 1662, 17679...
{ final boolean previousRelevantState = inheritedInstanceData.getPreviousRelevantState(); final boolean newRelevantState = inheritedInstanceData.getRelevant().get(); if ((valueChanged || previousRelevantState) && !newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsDisabledEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRelevantState) && newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsEnabledEvent((XFormsEventTarget) i.next())); } } { final boolean previousReadonlyState = inheritedInstanceData.getPreviousReadonlyState(); final boolean newReadonlyState = inheritedInstanceData.getReadonly().get(); if ((valueChanged || previousReadonlyState) && !newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadwriteEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousReadonlyState) && newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadonlyEvent((XFormsEventTarget) i.next())); } } { final boolean previousValidState = inheritedInstanceData.getPreviousValidState(); final boolean newValidState = inheritedInstanceData.getValid().get(); if ((valueChanged || previousValidState) && !newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsInvalidEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousValidState) && newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValidEvent((XFormsEventTarget) i.next())); } } if (valueChanged) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValueChangeEvent((XFormsEventTarget) i.next())); }
public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { setNode(node); // Check if value has changed final boolean valueChanged = inheritedInstanceData.isValueChanged(); // Dispatch xforms-optional/xforms-required { final boolean previousRequiredState = inheritedInstanceData.getPreviousRequiredState(); final boolean newRequiredState = inheritedInstanceData.getRequired().get(); if ((valueChanged || previousRequiredState) && !newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsOptionalEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRequiredState) && newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsRequiredEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-enabled/xforms-disabled { final boolean previousRelevantState = inheritedInstanceData.getPreviousRelevantState(); final boolean newRelevantState = inheritedInstanceData.getRelevant().get(); if ((valueChanged || previousRelevantState) && !newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsDisabledEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRelevantState) && newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsEnabledEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-readonly/xforms-readwrite { final boolean previousReadonlyState = inheritedInstanceData.getPreviousReadonlyState(); final boolean newReadonlyState = inheritedInstanceData.getReadonly().get(); if ((valueChanged || previousReadonlyState) && !newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadwriteEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousReadonlyState) && newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadonlyEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-valid/xforms-invalid // NOTE: There is no mention in the spec that these events should be // displatched automatically when the value has changed, contrary to the // other events above. { final boolean previousValidState = inheritedInstanceData.getPreviousValidState(); final boolean newValidState = inheritedInstanceData.getValid().get(); if ((valueChanged || previousValidState) && !newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsInvalidEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousValidState) && newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValidEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-value-changed // NOTE: deferred behavior is broken in XForms 1.0; 1.1 should // introduce better behavior; howver, with the 1.0 behavior, it works // better for us for now to send xforms-value-changed last if (valueChanged) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValueChangeEvent((XFormsEventTarget) i.next())); } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/08765f5dfa47c92ad95accd37caf0de0bfbf351e/XFormsModel.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7682, 1071, 918, 5442, 12, 907, 756, 16, 5180, 751, 1191, 1442, 751, 16, 5180, 751, 12078, 1442, 751, 13, 288, 18701, 26250, 12, 2159, 1769, 18701, 368, 2073, 309, 460, 711, 3550, 18701, 727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7682, 1071, 918, 5442, 12, 907, 756, 16, 5180, 751, 1191, 1442, 751, 16, 5180, 751, 12078, 1442, 751, 13, 288, 18701, 26250, 12, 2159, 1769, 18701, 368, 2073, 309, 460, 711, 3550, 18701, 727, ...
setPeerNodeStatus(now);
public void disconnected() { long now = System.currentTimeMillis(); Logger.normal(this, "Disconnected "+this); node.usm.onDisconnect(this); node.peers.disconnected(this); synchronized(this) { // Force renegotiation. isConnected = false; isRoutable = false; completedHandshake = false; setPeerNodeStatus(now); // Prevent sending packets to the node until that happens. if(currentTracker != null) currentTracker.disconnected(); if(previousTracker != null) previousTracker.disconnected(); if(unverifiedTracker != null) unverifiedTracker.disconnected(); // DO NOT clear trackers, so can still receive. } node.lm.lostOrRestartedNode(this); synchronized(this) { sendHandshakeTime = now; } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/8de4b1cd60a548b4d18488fb67f53e39abfa9b77/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
if(logMINOR) Logger.minor(this, "Already freed block "+offset+" ("+reason+")");
if(logMINOR) Logger.minor(this, "Already freed block "+offset+" ("+reason+ ')');
private void addFreeBlock(long offset, boolean loud, String reason) { if(freeBlocks.push(offset)) { if(loud) { System.err.println("Freed block "+offset+" ("+reason+")"); Logger.normal(this, "Freed block "+offset+" ("+reason+")"); } else { if(logMINOR) Logger.minor(this, "Freed block "+offset+" ("+reason+")"); } } else { if(logMINOR) Logger.minor(this, "Already freed block "+offset+" ("+reason+")"); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/62fd59041864b4ed1f43adc676de6bfb5ea977f3/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 9194, 1768, 12, 5748, 1384, 16, 1250, 437, 1100, 16, 514, 3971, 13, 288, 565, 202, 202, 430, 12, 9156, 6450, 18, 6206, 12, 3348, 3719, 288, 565, 1082, 202, 430, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 9194, 1768, 12, 5748, 1384, 16, 1250, 437, 1100, 16, 514, 3971, 13, 288, 565, 202, 202, 430, 12, 9156, 6450, 18, 6206, 12, 3348, 3719, 288, 565, 1082, 202, 430, 1...
cx.debugger.handleCompilationDone(cx, result, debugSource);
cx.debugger.handleCompilationDone(cx, itsData, debugSource);
private InterpretedScript generateScriptICode(Context cx, Scriptable scope, Node tree) { itsSourceFile = (String) tree.getProp(Node.SOURCENAME_PROP); itsData.itsSourceFile = itsSourceFile; debugSource = (String) tree.getProp(Node.DEBUGSOURCE_PROP); generateNestedFunctions(cx, scope, tree); generateRegExpLiterals(cx, scope, tree); itsVariableTable = (VariableTable)tree.getProp(Node.VARS_PROP); generateICodeFromTree(tree); if (Context.printICode) dumpICode(itsData); InterpretedScript result = new InterpretedScript(cx, itsData); setArgNames(result); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, result, debugSource); } return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/9be5d10e5ccfcc7dda8e206dfd57a94a1d82d251/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5294, 15089, 329, 3651, 2103, 3651, 45, 1085, 12, 1042, 9494, 16, 4766, 5375, 22780, 2146, 16, 4766, 5375, 2029, 2151, 13, 565, 288, 3639, 2097, 31150, 273, 261, 780, 13, 2151, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5294, 15089, 329, 3651, 2103, 3651, 45, 1085, 12, 1042, 9494, 16, 4766, 5375, 22780, 2146, 16, 4766, 5375, 2029, 2151, 13, 565, 288, 3639, 2097, 31150, 273, 261, 780, 13, 2151, 18, ...
public Map findDatasetAnnotations(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size()==0) { return new HashMap(); } HibernateTemplate ht = new HibernateTemplate(sessions); return (Map) ht.execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Query q = session.getNamedQuery("findDatasetAnn"); q.setParameterList("ds_list", arg0, new IntegerType()); Map map = findDatasetAnnotations(q); emptyCache(); return map; } }); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/8442e37c365d8ade04f3bf94b6b000049c740d2a/HierarchyBrowsingImpl.java/buggy/components/wars/srv/src/java/org/ome/omero/logic/HierarchyBrowsingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 1104, 10656, 5655, 12, 6385, 1000, 1501, 20, 13, 288, 7734, 368, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, 20, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 1104, 10656, 5655, 12, 6385, 1000, 1501, 20, 13, 288, 7734, 368, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, 20, 13, 288, ...
IClasspathEntry entry = JavaCore.newLibraryEntry( archivePath, null, null, false); _path.add(entry); if(framework.indexOf("Java") == 0) { try { JavaUI.setLibraryJavadocLocation(archivePath, new URL("file: } catch (MalformedURLException e) { e.printStackTrace(); }
if(!archives.equals("src.jar")) { IClasspathEntry entry = JavaCore.newLibraryEntry( archivePath, source, null, false); _path.add(entry); if(framework.indexOf("Java") == 0) { try { JavaUI.setLibraryJavadocLocation(archivePath, new URL("file: } catch (MalformedURLException e) { e.printStackTrace(); } }
private void _initPath() { IPath[] paths = VariablesPlugin.getDefault().getFrameworkRoots(); for (int i = 1; i < _id.segmentCount(); i++) { for (int h = 0; h < paths.length; h++) { IPath classpathVariable = paths[h]; String framework = _id.segment(i); File frameworkFile = new File(classpathVariable.toOSString(), framework + ".framework/Resources/Java"); if (frameworkFile.isDirectory()) { String archives[] = frameworkFile .list(new FilenameFilter() { public boolean accept(File dir, String name) { String lowerName = name.toLowerCase(); return (lowerName.endsWith(".zip") || lowerName .endsWith(".jar")); } }); for (int j = 0; j < archives.length; j++) { //framework found under this root h = paths.length; IPath archivePath = new Path(frameworkFile .getAbsolutePath() + "/" + archives[j]); //IClasspathEntry entry = // JavaCore.newLibraryEntry(archivePath, null, null); IClasspathEntry entry = JavaCore.newLibraryEntry( archivePath, null, null, false); _path.add(entry); if(framework.indexOf("Java") == 0) { try { JavaUI.setLibraryJavadocLocation(archivePath, new URL("file:///Developer/Documentation/WebObjects/Reference/API/")); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } } } }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/5b7ecb388a679e0c4e2636ac2f0adc7174533042/WOClasspathContainer.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.jdt/java/org/objectstyle/wolips/jdt/classpath/WOClasspathContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 389, 2738, 743, 1435, 288, 202, 202, 45, 743, 8526, 2953, 273, 23536, 3773, 18, 588, 1868, 7675, 588, 13701, 17540, 5621, 202, 202, 1884, 261, 474, 277, 273, 404, 31, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 389, 2738, 743, 1435, 288, 202, 202, 45, 743, 8526, 2953, 273, 23536, 3773, 18, 588, 1868, 7675, 588, 13701, 17540, 5621, 202, 202, 1884, 261, 474, 277, 273, 404, 31, 27...
code.emitGoto(switch_label);
code.fixupChain(cases_label, switch_label);
public SwitchState(CodeAttr code) { switch_label = new Label(code); code.popType(); // pop switch value // Save stack types (except top int) into typeState typeState = code.saveStackTypeState(false); code.emitGoto(switch_label); numCases = 0; }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/50aae2053d3e7c936750da14a5887b2c333a54ab/SwitchState.java/buggy/gnu/bytecode/SwitchState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13967, 1119, 12, 1085, 3843, 981, 13, 225, 288, 565, 1620, 67, 1925, 273, 394, 5287, 12, 710, 1769, 565, 981, 18, 5120, 559, 5621, 225, 368, 1843, 1620, 460, 565, 368, 7074, 2110,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13967, 1119, 12, 1085, 3843, 981, 13, 225, 288, 565, 1620, 67, 1925, 273, 394, 5287, 12, 710, 1769, 565, 981, 18, 5120, 559, 5621, 225, 368, 1843, 1620, 460, 565, 368, 7074, 2110,...
double A = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle(); fSynch.setDate(new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0-h)); double B = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle();
Vector3D speedITRF = trans.transformVector(Vector3D.add(speedJ2000, new Vector3D(w, Vector3D.crossProduct(axis, posJ2000))));
public void testRoughTransformJ2000_TerRef_one() throws OrekitException, ParseException { System.out.println("bête test : "); AbsoluteDate test = new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0); AbsoluteDate nous = new AbsoluteDate("2003-10-14T02:00:00", TTScale.getInstance()); System.out.println("date donnée : " + test); System.out.println("date nous : " + nous); AbsoluteDate date = new AbsoluteDate("2003-10-14T01:58:55.816", UTCScale.getInstance()); FrameSynchronizer fSynch = new FrameSynchronizer(date); ITRF2000Frame itrf = new ITRF2000Frame(fSynch); Transform trans = Frame.getJ2000().getTransformTo(itrf); // Positions Vector3D posJ2000 = new Vector3D(6500000.0, -1234567.0, 4000000.0); Vector3D posITRF = trans.transformPosition(posJ2000); Vector3D posTestCase = new Vector3D(3011113.9718319275, -5889820.8187575004, 4002169.292903322); // Position tests System.out.println("------------------------------------------"); System.out.println(""); System.out.println("tests position Ter Ref i = "); Vector3D d = Vector3D.subtract(posITRF, posTestCase); System.out.println("Ecarts position en metres " + d.getX() + " " + d.getY() + " " + d.getZ() + " " + d.getNorm()); Rotation r = new Rotation(posITRF, posTestCase); System.out.println("axe rotation position" + r.getAxis().getX() + " " + r.getAxis().getY() + " " + r.getAxis().getZ()); System.out.println("angle rotation position " + Math.toDegrees(r.getAngle())); checkClosePosition(posITRF, posTestCase, 2e-6, 12.0, 14.0); // speed tests Vector3D speedJ2000 = new Vector3D(3609.28229, 3322.88979, -7083.950661); Vector3D speedTestCase = new Vector3D(4410.401666334629, -1033.6270183038084, -7082.627462818678); Vector3D axe= trans.getRotation().getAxis(); double h = 0.5; fSynch.setDate(new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0+h)); double A = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle(); fSynch.setDate(new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0-h)); double B = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle(); fSynch.setDate(new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0+2*h)); double C = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle(); fSynch.setDate(new AbsoluteDate(AbsoluteDate.CNES1950Epoch, 19644*86400+7200.0-2*h)); double D = Frame.getJ2000().getTransformTo(itrf).getRotation().getAngle(); double w = (1/(12*h))*(8*(A-B)-(C-D)); // System.out.println("omega : " + w); Vector3D rot = Vector3D.multiply(w,axe); Vector3D speedITRF = trans.transformVector(Vector3D.add(speedJ2000,Vector3D.crossProduct(rot,posJ2000))); System.out.println("------------------------------------------"); System.out.println(""); System.out.println("tests vitesse Ter Ref "); Vector3D v = Vector3D.subtract(speedITRF, speedTestCase); System.out.println("Ecarts vitesse en metres seconde " + v.getX() + " " + v.getY() + " " + v.getZ() + " " + v.getNorm()); checkClosePosition(speedITRF, speedTestCase, 1e-5, 0.2, 0.2); }
4799 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4799/34929c520e9d49d2ea767710b97fbe46f7182818/ITRF2000FrameTest.java/buggy/tests-src/fr/cs/aerospace/orekit/frames/ITRF2000FrameTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 54, 4966, 4059, 46, 17172, 67, 56, 264, 1957, 67, 476, 1435, 1216, 531, 266, 8691, 503, 16, 10616, 288, 202, 225, 2332, 18, 659, 18, 8222, 2932, 70, 132, 108, 736, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 54, 4966, 4059, 46, 17172, 67, 56, 264, 1957, 67, 476, 1435, 1216, 531, 266, 8691, 503, 16, 10616, 288, 202, 225, 2332, 18, 659, 18, 8222, 2932, 70, 132, 108, 736, 18...
if( session.getTransactionContext().isInLocalTransaction() ) {
TransactionContext transactionContext = session.getTransactionContext(); if( transactionContext != null && transactionContext.isInLocalTransaction() ) {
public void afterDelivery(ActiveMQSession session, Message msg) { if (++currentBatchSize >= batchSize || !session.hasUncomsumedMessages()) { currentBatchSize = 0; try { endpoint.afterDelivery(); } catch (Throwable e) { throw new RuntimeException("Endpoint after delivery notification failure", e); } finally { if( session.getTransactionContext().isInLocalTransaction() ) { if( !useRAManagedTx ) { // Sanitiy Check: If the local transaction has not been commited.. // Commit it now. log.warn("Local transaction had not been commited. Commiting now."); } try { session.commit(); } catch (JMSException e) { log.info("Commit failed:", e); } } } } }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/9d0ca025fa42a61a7da99086114672fc606e690c/ServerSessionImpl.java/clean/activemq-ra/src/main/java/org/apache/activemq/ra/ServerSessionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1839, 8909, 12, 3896, 9682, 2157, 1339, 16, 2350, 1234, 13, 288, 3639, 309, 261, 9904, 2972, 23304, 1545, 16494, 747, 401, 3184, 18, 5332, 984, 832, 1364, 329, 5058, 10756, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1839, 8909, 12, 3896, 9682, 2157, 1339, 16, 2350, 1234, 13, 288, 3639, 309, 261, 9904, 2972, 23304, 1545, 16494, 747, 401, 3184, 18, 5332, 984, 832, 1364, 329, 5058, 10756, 288...
result = toXMLString();
result = toXMLString(0);
public String toString() { String result; XmlCursor curs = newCursor(); if (curs.isStartdoc()) { curs.toFirstContentToken(); } if (curs.isText()) { result = curs.getChars(); } else if (curs.isStart() && hasSimpleContent()) { result = curs.getTextValue(); } else { result = toXMLString(); } return result; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/347734a288cc52cc58154ef5e55d0c26058627eb/XML.java/clean/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 514, 563, 31, 3639, 5714, 6688, 25326, 273, 394, 6688, 5621, 3639, 309, 261, 2789, 18, 291, 1685, 2434, 10756, 3639, 288, 5411, 25326, 18, 869, 3759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 514, 563, 31, 3639, 5714, 6688, 25326, 273, 394, 6688, 5621, 3639, 309, 261, 2789, 18, 291, 1685, 2434, 10756, 3639, 288, 5411, 25326, 18, 869, 3759...
} else if (!"terminated successfully".equals(vmCrashString)) {
} else if (!Constants.TERMINATED_SUCCESSFULLY.equals(vmCrashString)) {
private TestResultHolder executeAsForked(JUnitTest test, ExecuteWatchdog watchdog, File casesFile) throws BuildException { if (perm != null) { log("Permissions ignored when running in forked mode!", Project.MSG_WARN); } CommandlineJava cmd = null; try { cmd = (CommandlineJava) (getCommandline().clone()); } catch (CloneNotSupportedException e) { throw new BuildException("This shouldn't happen", e, getLocation()); } cmd.setClassname("org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner"); if (casesFile == null) { cmd.createArgument().setValue(test.getName()); } else { log("Running multiple tests in the same VM", Project.MSG_VERBOSE); cmd.createArgument().setValue("testsfile=" + casesFile); } cmd.createArgument().setValue("filtertrace=" + test.getFiltertrace()); cmd.createArgument().setValue("haltOnError=" + test.getHaltonerror()); cmd.createArgument().setValue("haltOnFailure=" + test.getHaltonfailure()); if (includeAntRuntime) { Vector v = Execute.getProcEnvironment(); Enumeration e = v.elements(); while (e.hasMoreElements()) { String s = (String) e.nextElement(); if (s.startsWith("CLASSPATH=")) { cmd.createClasspath(getProject()).createPath() .append(new Path(getProject(), s.substring(10 // "CLASSPATH=".length() ))); } } log("Implicitly adding " + antRuntimeClasses + " to CLASSPATH", Project.MSG_VERBOSE); cmd.createClasspath(getProject()).createPath() .append(antRuntimeClasses); } if (summary) { String prefix = ""; if ("withoutanderr".equalsIgnoreCase(summaryValue)) { prefix = "OutErr"; } cmd.createArgument() .setValue("formatter" + "=org.apache.tools.ant.taskdefs.optional.junit." + prefix + "SummaryJUnitResultFormatter"); } cmd.createArgument().setValue("showoutput=" + String.valueOf(showOutput)); cmd.createArgument().setValue("logtestlistenerevents=true"); // #31885 StringBuffer formatterArg = new StringBuffer(STRING_BUFFER_SIZE); final FormatterElement[] feArray = mergeFormatters(test); for (int i = 0; i < feArray.length; i++) { FormatterElement fe = feArray[i]; if (fe.shouldUse(this)) { formatterArg.append("formatter="); formatterArg.append(fe.getClassname()); File outFile = getOutput(fe, test); if (outFile != null) { formatterArg.append(","); formatterArg.append(outFile); } cmd.createArgument().setValue(formatterArg.toString()); formatterArg = new StringBuffer(); } } File vmWatcher = createTempPropertiesFile("junitvmwatcher"); cmd.createArgument().setValue("crashfile=" + vmWatcher.getAbsolutePath()); File propsFile = createTempPropertiesFile("junit"); cmd.createArgument().setValue("propsfile=" + propsFile.getAbsolutePath()); Hashtable p = getProject().getProperties(); Properties props = new Properties(); for (Enumeration e = p.keys(); e.hasMoreElements();) { Object key = e.nextElement(); props.put(key, p.get(key)); } try { FileOutputStream outstream = new FileOutputStream(propsFile); props.store(outstream, "Ant JUnitTask generated properties file"); outstream.close(); } catch (java.io.IOException e) { propsFile.delete(); throw new BuildException("Error creating temporary properties " + "file.", e, getLocation()); } Execute execute = new Execute(new JUnitLogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN), watchdog); execute.setCommandline(cmd.getCommandline()); execute.setAntRun(getProject()); if (dir != null) { execute.setWorkingDirectory(dir); } String[] environment = env.getVariables(); if (environment != null) { for (int i = 0; i < environment.length; i++) { log("Setting environment variable: " + environment[i], Project.MSG_VERBOSE); } } execute.setNewenvironment(newEnvironment); execute.setEnvironment(environment); log(cmd.describeCommand(), Project.MSG_VERBOSE); TestResultHolder result = new TestResultHolder(); try { result.exitCode = execute.execute(); } catch (IOException e) { throw new BuildException("Process fork failed.", e, getLocation()); } finally { String vmCrashString = "unknown"; try { BufferedReader br = new BufferedReader(new FileReader(vmWatcher)); vmCrashString = br.readLine(); } catch (Exception e) { e.printStackTrace(); // ignored. } if (watchdog != null && watchdog.killedProcess()) { result.timedOut = true; logTimeout(feArray, test, vmCrashString); } else if (!"terminated successfully".equals(vmCrashString)) { result.crashed = true; logVmCrash(feArray, test, vmCrashString); } vmWatcher.delete(); if (!propsFile.delete()) { throw new BuildException("Could not delete temporary " + "properties file."); } } return result; }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/d2e6dcf66da83b17eb4a13f4ff7f374521fe29ec/JUnitTask.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7766, 1253, 6064, 1836, 1463, 22662, 329, 12, 46, 2802, 4709, 1842, 16, 4766, 2398, 7903, 5234, 20330, 4267, 20330, 16, 4766, 2398, 1387, 6088, 812, 13, 3639, 1216, 18463, 288, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7766, 1253, 6064, 1836, 1463, 22662, 329, 12, 46, 2802, 4709, 1842, 16, 4766, 2398, 7903, 5234, 20330, 4267, 20330, 16, 4766, 2398, 1387, 6088, 812, 13, 3639, 1216, 18463, 288, 3639, ...
throw new RuntimeException("file " + i2find.getPath() + " can't be found!");
throw new LoadError(ruby, "No such file to load -- " + i2find.getPath());
public File findFile(File i2find) { RubyArray lLoadPath = (RubyArray) getGlobalVar("$:"); int lPathNb = lLoadPath.getLength(); String l2Find = i2find.getPath(); for (int i = 0; i < lPathNb; i++) { String lCurPath = ((RubyString) lLoadPath.entry(i)).getValue(); File lCurFile = new File(lCurPath + File.separatorChar + l2Find); if (lCurFile.exists()) { i2find = lCurFile; break; } } if (i2find.exists()) { return i2find; } else { throw new RuntimeException("file " + i2find.getPath() + " can't be found!"); } }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/ca0297671a9134bbd35c936224da11609c37fa62/Ruby.java/buggy/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1387, 1104, 812, 12, 812, 277, 22, 4720, 13, 288, 3639, 19817, 1076, 328, 2563, 743, 273, 261, 54, 10340, 1076, 13, 20591, 1537, 2932, 8, 2773, 1769, 3639, 509, 328, 743, 22816, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1387, 1104, 812, 12, 812, 277, 22, 4720, 13, 288, 3639, 19817, 1076, 328, 2563, 743, 273, 261, 54, 10340, 1076, 13, 20591, 1537, 2932, 8, 2773, 1769, 3639, 509, 328, 743, 22816, 2...
try { Object javaValue = constructor.newInstance(newArgs); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule) recv, javaValue); javaObject.callInit(args); return javaObject; } catch (IllegalAccessException iaExcptn) { } catch (InstantiationException iExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) { } return ruby.getNil(); }
try { Object javaValue = constructor.newInstance(newArgs); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule) recv, javaValue); javaObject.callInit(args); return javaObject; } catch (IllegalAccessException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (InstantiationException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (IllegalArgumentException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (InvocationTargetException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } }
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.hasNext()) { Constructor constructor = (Constructor) iter.next(); if (constructor.getParameterTypes().length != argsLength) { iter.remove(); } } // remove constructors with wrong parameter types. iter = executeConstructors.iterator(); while (iter.hasNext()) { Constructor constructor = (Constructor) iter.next(); for (int i = 0; i < constructor.getParameterTypes().length; i++) { if (!JavaUtil.isCompatible(args[i], constructor.getParameterTypes()[i])) { iter.remove(); break; } } } if (executeConstructors.isEmpty()) { throw new RubyArgumentException(ruby, "wrong arguments."); } // take the first constructor. Constructor constructor = (Constructor) executeConstructors.getFirst(); Object[] newArgs = new Object[argsLength]; for (int i = 0; i < argsLength; i++) { newArgs[i] = JavaUtil.convertRubyToJava(ruby, args[i], constructor.getParameterTypes()[i]); } try { Object javaValue = constructor.newInstance(newArgs); RubyJavaObject javaObject = new RubyJavaObject(ruby, (RubyModule) recv, javaValue); javaObject.callInit(args); return javaObject; } catch (IllegalAccessException iaExcptn) { } catch (InstantiationException iExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) { } return ruby.getNil(); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaConstructor.java/clean/org/jruby/javasupport/JavaConstructor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 1836, 12, 54, 10340, 921, 10665, 16, 19817, 921, 8526, 833, 16, 19817, 22155, 13, 288, 202, 202, 13174, 682, 1836, 29590, 273, 394, 10688, 12, 12726, 18, 345, 682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 1836, 12, 54, 10340, 921, 10665, 16, 19817, 921, 8526, 833, 16, 19817, 22155, 13, 288, 202, 202, 13174, 682, 1836, 29590, 273, 394, 10688, 12, 12726, 18, 345, 682, ...
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 855, 17442, 261, 15223, 930, 16, 2407, 563, 13, 225, 288, 565, 5589, 7246, 273, 930, 18, 588, 4212, 7604, 7566, 11569, 8863, 565, 309, 261, 11937, 422, 446, 13, 1377, 327, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 855, 17442, 261, 15223, 930, 16, 2407, 563, 13, 225, 288, 565, 5589, 7246, 273, 930, 18, 588, 4212, 7604, 7566, 11569, 8863, 565, 309, 261, 11937, 422, 446, 13, 1377, 327, 31...
Debug.println(Debug.MEDIUM, "Normaler Fehler!");
Debug.println("Normaler Fehler!");
public static void main(String args[]) { /* * Der unwichtige Fehler wird nicht ausgegeben, weil * der Debug-Level standardmig auf MEDIUM steht. */ Debug.println(Debug.LOW, "Unwichtiger Fehler!"); Debug.println(Debug.MEDIUM, "Normaler Fehler!"); Debug.println(Debug.HIGH, "Wichtiger Fehler!"); }
12294 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12294/c038788aa00429c1042660a68bcbc3d84031cff3/Debug.java/buggy/design/Util/Debug/Debug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 1748, 377, 380, 14969, 640, 91, 335, 647, 360, 73, 5782, 76, 749, 341, 6909, 11562, 647, 279, 407, 28303, 19425, 16, 732, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 1748, 377, 380, 14969, 640, 91, 335, 647, 360, 73, 5782, 76, 749, 341, 6909, 11562, 647, 279, 407, 28303, 19425, 16, 732, 330, ...
public synchronized void addAdjustmentListener(AdjustmentListener listener) {
addAdjustmentListener(AdjustmentListener listener) {
public synchronized void addAdjustmentListener(AdjustmentListener listener) { adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Scrollbar.java/buggy/core/src/classpath/java/java/awt/Scrollbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 527, 19985, 2223, 12, 19985, 2223, 2991, 13, 288, 202, 202, 13362, 475, 67, 16072, 273, 432, 8588, 1133, 5049, 335, 2440, 18, 1289, 12, 13362, 475, 67, 16072, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 527, 19985, 2223, 12, 19985, 2223, 2991, 13, 288, 202, 202, 13362, 475, 67, 16072, 273, 432, 8588, 1133, 5049, 335, 2440, 18, 1289, 12, 13362, 475, 67, 16072, 16, 2...
a1.setPrivateForums(getPrivateForums());
public Area getPrivateArea() { Area a1 = new AreaImpl(); a1.setContextId("context1"); a1.setHidden(Boolean.FALSE); a1.setName("Private Message Area"); a1.setCreated(new Date()); a1.setCreatedBy("admin"); a1.setModified(new Date()); a1.setModifiedBy("admin"); a1.setId(new Long(1)); a1.setUuid("1"); a1.setPrivateForums(getPrivateForums()); return a1; }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/eefe287f4a4cdaab7309c1e89a76803d853c5305/DummyDataHelper.java/buggy/msgcntr/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/DummyDataHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16668, 27914, 5484, 1435, 225, 288, 565, 16668, 279, 21, 273, 394, 16668, 2828, 5621, 565, 279, 21, 18, 542, 1042, 548, 2932, 2472, 21, 8863, 565, 279, 21, 18, 542, 9345, 12, 5507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16668, 27914, 5484, 1435, 225, 288, 565, 16668, 279, 21, 273, 394, 16668, 2828, 5621, 565, 279, 21, 18, 542, 1042, 548, 2932, 2472, 21, 8863, 565, 279, 21, 18, 542, 9345, 12, 5507...
}
protected boolean updateSelection(IStructuredSelection selection) { if (!super.updateSelection(selection)) return false; if (getSelectedNonResources().size() > 0) return false; List selectedResources = getSelectedResources(); if (selectedResources.size() == 0) return false; boolean projSelected = selectionIsOfType(IResource.PROJECT); boolean fileFoldersSelected = selectionIsOfType(IResource.FILE | IResource.FOLDER); if (!projSelected && !fileFoldersSelected) return false; // selection must be homogeneous if (projSelected && fileFoldersSelected) return false; // must have a common parent IContainer firstParent = ((IResource) selectedResources.get(0)).getParent(); if (firstParent == null) return false; Iterator resourcesEnum = selectedResources.iterator(); while (resourcesEnum.hasNext()) { IResource currentResource = (IResource) resourcesEnum.next(); if (!currentResource.getParent().equals(firstParent)) { return false; } // resource location must exist if (currentResource.getLocation() == null) { return false; } } return true;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/77fa4fa7cf032f952882d781c1d0551256b402ef/CopyAction.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/CopyAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 1250, 1089, 6233, 12, 45, 30733, 6233, 4421, 13, 288, 202, 430, 16051, 9565, 18, 2725, 6233, 12, 10705, 3719, 202, 202, 2463, 629, 31, 202, 202, 430, 261, 588, 7416, 3989, 3805, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 1250, 1089, 6233, 12, 45, 30733, 6233, 4421, 13, 288, 202, 430, 16051, 9565, 18, 2725, 6233, 12, 10705, 3719, 202, 202, 2463, 629, 31, 202, 202, 430, 261, 588, 7416, 3989, 3805, 7675, ...
GoalModel gm = Designer.TheDesigner.getGoalModel(); Vector goals = gm.getGoals();
GoalModel gm = Designer.TheDesigner.getGoalModel(); Vector goals = gm.getGoals();
public void initMainPanel() { GoalModel gm = Designer.TheDesigner.getGoalModel(); Vector goals = gm.getGoals(); GridBagLayout gb = new GridBagLayout(); _mainPanel.setLayout(gb); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 0.0; c.ipadx = 3; c.ipady = 3; // c.gridy = 0;// c.gridx = 0;// JLabel priLabel = new JLabel("Priority:");// gb.setConstraints(priLabel, c);// _mainPanel.add(priLabel);// c.gridy = 0;// c.gridx = 1;// JLabel offLabel = new JLabel("Off");// gb.setConstraints(offLabel, c);// _mainPanel.add(offLabel);// c.gridy = 0;// c.gridx = 2;// JLabel lowLabel = new JLabel("Low");// gb.setConstraints(lowLabel, c);// _mainPanel.add(lowLabel);// c.gridy = 0;// c.gridx = 3;// JLabel twoLabel = new JLabel("ad");// gb.setConstraints(twoLabel, c);// _mainPanel.add(twoLabel);// c.gridy = 0;// c.gridx = 4;// JLabel threeLabel = new JLabel("asd");// gb.setConstraints(threeLabel, c);// _mainPanel.add(threeLabel);// c.gridy = 0;// c.gridx = 5;// JLabel fourLabel = new JLabel("asd");// gb.setConstraints(fourLabel, c);// _mainPanel.add(fourLabel);// c.gridy = 0;// c.gridx = 6;// JLabel highLabel = new JLabel("High");// gb.setConstraints(highLabel, c);// _mainPanel.add(highLabel); c.gridy = 1; java.util.Enumeration enum = goals.elements(); while (enum.hasMoreElements()) { Goal d = (Goal) enum.nextElement(); JLabel decLabel = new JLabel(d.getName()); JLabel valueLabel = new JLabel(" " + d.getPriority()); JSlider decSlide = new JSlider(SwingConstants.HORIZONTAL, 0, 5, d.getPriority()); decSlide.setPaintTicks(true); decSlide.setPaintLabels(true); decSlide.addChangeListener(this); Dimension origSize = decSlide.getPreferredSize(); Dimension smallSize = new Dimension(origSize.width/2, origSize.height); decSlide.setSize(smallSize); decSlide.setPreferredSize(smallSize); _slidersToDecisions.put(decSlide, d); _slidersToDigits.put(decSlide, valueLabel); c.gridx = 0; c.gridwidth = 1; c.weightx = 0.0; c.ipadx = 3; gb.setConstraints(decLabel, c); _mainPanel.add(decLabel); c.gridx = 1; c.gridwidth = 1; c.weightx = 0.0; c.ipadx = 0; gb.setConstraints(valueLabel, c); _mainPanel.add(valueLabel); c.gridx = 2; c.gridwidth = 6; c.weightx = 1.0; gb.setConstraints(decSlide, c); _mainPanel.add(decSlide); c.gridy++; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoalsDialog.java/clean/src_new/org/argouml/cognitive/ui/GoalsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 6376, 5537, 1435, 288, 565, 4220, 287, 1488, 14125, 273, 29703, 264, 18, 1986, 15478, 264, 18, 588, 27716, 1488, 5621, 565, 5589, 1960, 1031, 273, 14125, 18, 588, 5741, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 6376, 5537, 1435, 288, 565, 4220, 287, 1488, 14125, 273, 29703, 264, 18, 1986, 15478, 264, 18, 588, 27716, 1488, 5621, 565, 5589, 1960, 1031, 273, 14125, 18, 588, 5741, 1...
if(nodeids.length>0){ Vault.releaseDbConnection(conn); }
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ThreadCategory.setPrefix(LOG4J_CATEGORY); log = ThreadCategory.getInstance(this.getClass()); String elems = request.getParameter("elems"); String action = request.getParameter("action"); log.debug("Received action="+action+" elems="+elems); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(response .getOutputStream())); String strToSend = ""; try { HttpSession session = request.getSession(false); String refreshTime = (String)session.getAttribute("refreshTime"); int refreshtime = 300; if (refreshTime != null) { refreshtime = Integer.parseInt(refreshTime)*60; } Manager m = new Manager(); VMap map = null; List velems = new ArrayList();// List links = new ArrayList(); if (session != null) { map = (VMap) session.getAttribute("sessionMap"); if (map != null) { strToSend = action + "OK"; Integer[] nodeids = null; String TYPE = VElement.NODE_TYPE; boolean actionfound = false; if (action.equals(ADDNODES_ACTION)) { actionfound = true; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (action.equals(ADDRANGE_ACTION)) { actionfound = true; nodeids = (Integer[]) NetworkElementFactory.getNodeIdsWithIpLike(elems).toArray(new Integer[0]); } if (action.equals(ADDNODES_NEIG_ACTION)) { actionfound = true; nodeids = (Integer[]) NetworkElementFactory.getLinkedNodeIdOnNode(Integer.parseInt(elems)).toArray(new Integer[0]); } if (action.equals(ADDNODES_WITH_NEIG_ACTION)) { actionfound = true; Set linkednodeids = NetworkElementFactory.getLinkedNodeIdOnNode(Integer.parseInt(elems)); linkednodeids.add(new Integer(elems)); nodeids = (Integer[]) linkednodeids.toArray(new Integer[0]); } if (action.equals(ADDMAPS_ACTION)) { actionfound = true; TYPE = VElement.MAP_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } // response for addElement if (actionfound) { log.debug("Before Checking map contains elems"); Connection conn = null; if(nodeids.length>0){ conn = Vault.getDbConnection(); } log.debug("Obtained connection"); for (int i = 0; i < nodeids.length; i++) { int elemId = nodeids[i].intValue(); if (map.containsElement(elemId, TYPE)) { log.debug("Action: " + action + " . Map Contains Element: " + elemId+TYPE); continue; } if (TYPE.equals(VElement.MAP_TYPE) && m.foundLoopOnMaps(map,elemId)) { strToSend += "&loopfound" + elemId; log.debug("Action: " + action + " . Map " + map.getName()+ "Loop Found On Element: " + elemId+TYPE); continue; } VElement curVElem = m.newElement(map.getId(), elemId, TYPE, conn); velems.add(curVElem); } // end for if(nodeids.length>0){ Vault.releaseDbConnection(conn); } log.debug("After Checking map contains elems"); log.debug("Before RefreshElements"); velems = m.refreshElements((VElement[]) velems.toArray(new VElement[0]),false); log.debug("After RefreshElements"); log.debug("Before getting/adding links"); conn = Vault.getDbConnection(); if (velems != null) { Iterator ite = velems.iterator(); while (ite.hasNext()) { // take the VElement object VElement ve = (VElement) ite.next(); // Get the link between ma objects and new Element List vElemLinks = m.getLinksOnElem(map .getAllElements(), ve, conn); // add MapElement to Map map.addElement(ve); // Add correpondant Links to Map map.addLinks((VLink[]) vElemLinks .toArray(new VLink[0])); // Add String to return to client strToSend += "&" + ve.getId() + ve.getType() + "+" + ve.getIcon() + "+" + ve.getLabel(); strToSend += "+" + ve.getRtc() + "+" + ve.getStatus() + "+" + ve.getSeverity(); // add String to return containing Links if (vElemLinks != null) { Iterator sub_ite = vElemLinks.iterator(); while (sub_ite.hasNext()) { VLink vl = (VLink) sub_ite.next(); strToSend += "&" + vl.getFirst().getId() + vl.getFirst().getType() + "+" + vl.getSecond().getId() + vl.getSecond().getType(); } } } // end cicle on element found } Vault.releaseDbConnection(conn); log.debug("After getting/adding links"); //end if velement to add } // and first if action found if (!actionfound) { if (action.equals(DELETENODES_ACTION)) { actionfound = true; TYPE = VElement.NODE_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (action.equals(DELETEMAPS_ACTION)) { actionfound = true; TYPE = VElement.MAP_TYPE; String[] snodeids = elems.split(","); nodeids = new Integer[snodeids.length]; for (int i = 0; i<snodeids.length;i++) { nodeids[i] = new Integer(snodeids[i]); } } if (actionfound) { for (int i = 0; i < nodeids.length; i++) { int elemId = nodeids[i].intValue(); if (map.containsElement(elemId, TYPE)){ map.removeLinksOnElementList(elemId,TYPE); velems.add(map.removeElement(elemId,TYPE)); strToSend += "&" + elemId + TYPE; } } } } if (action.equals(REFRESH_ACTION)) { actionfound = true; // First refresh Element objects velems = m.refreshElements(map.getAllElements(),true); //checks for only changed velements if (velems != null) { Iterator ite = velems.iterator(); while (ite.hasNext()) { VElement ve = (VElement) ite.next(); strToSend += "&" + ve.getId() + ve.getType() + "+" + ve.getIcon() + "+" + ve.getLabel(); strToSend += "+" + ve.getRtc() + "+" + ve.getStatus() + "+" + ve.getSeverity(); } } // Second Refresh Link Object on Map // Now is done using a very simple way // but really it's slow // the alternativ is anyway to analize all // links, 1 against other. // So with this solution more traffic // less stress on server // more work on client // We are waiting to attempt to mapd map.removeAllLinks(); // get all links on map List links = m.getLinks(map.getAllElements()); // add links to map map.addLinks((VLink[]) links.toArray(new VLink[0])); // write to client if (links != null) { Iterator ite = links.iterator(); while (ite.hasNext()) { VLink vl = (VLink) ite.next(); strToSend += "&" + vl.getFirst().getId() + vl.getFirst().getType() + "+" + vl.getSecond().getId() + vl.getSecond().getType(); } } } if (action.equals(CLEAR_ACTION)) { actionfound = true; map.removeAllLinks(); map.removeAllElements(); } if (actionfound) { session.setAttribute("sessionMap",map); } else { throw new Exception("action " + action + " not exists"); } } else { throw new Exception("Attribute session sessionMap is null"); } } else { throw new Exception("HttpSession not initialized"); } } catch (Exception e) { strToSend = action + "Failed"; log.error("Exception catch " + e); } finally { bw.write(strToSend); bw.close(); log.info("Sending response to the client '" + strToSend + "'"); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/d5b0121ba147eea97a444ae288f11e94118d5a54/LoadCurrentNodesServlet.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/LoadCurrentNodesServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1082, 202, 15069, 16517, 16, 1860, 288, 202, 202, 3830, 4457, 18, 542, 2244, 12, 4842, 24, 46, 67, 24847, 1769, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1082, 202, 15069, 16517, 16, 1860, 288, 202, 202, 3830, 4457, 18, 542, 2244, 12, 4842, 24, 46, 67, 24847, 1769, 202, ...
} catch (IOException ioe) { _log.error("Error delivering the payload", ioe);
private void handleReceiveBegin(I2CPMessageReader reader, ReceiveMessageBeginMessage message) { if (_runner.isDead()) return; _log.debug("Handling recieve begin: id = " + message.getMessageId()); MessagePayloadMessage msg = new MessagePayloadMessage(); msg.setMessageId(message.getMessageId()); msg.setSessionId(_runner.getSessionId()); Payload payload = _runner.getPayload(message.getMessageId()); if (payload == null) { _log.error("Payload for message id [" + message.getMessageId() + "] is null! Unknown message id?"); return; } msg.setPayload(payload); try { _runner.doSend(msg); } catch (IOException ioe) { _log.error("Error delivering the payload", ioe); } catch (I2CPMessageException ime) { _log.error("Error delivering the payload", ime); } }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/14b9f9509fb68b2e019bd0b2eba7ed801fd81d87/ClientMessageEventListener.java/buggy/router/java/src/net/i2p/router/client/ClientMessageEventListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 11323, 8149, 12, 45, 22, 4258, 1079, 2514, 2949, 16, 17046, 1079, 8149, 1079, 883, 13, 288, 3639, 309, 261, 67, 18156, 18, 291, 11852, 10756, 327, 31, 3639, 389, 1330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 11323, 8149, 12, 45, 22, 4258, 1079, 2514, 2949, 16, 17046, 1079, 8149, 1079, 883, 13, 288, 3639, 309, 261, 67, 18156, 18, 291, 11852, 10756, 327, 31, 3639, 389, 1330, ...
CheckUMLModelHelper.createAndRelease( this, ExtensionMechanismsFactory.getFactory(), objs);
CheckUMLModelHelper.createAndRelease( this, ExtensionMechanismsFactory.getFactory(), objs);
public void testCreates() { String[] objs = { "Stereotype", "TaggedValue", null }; CheckUMLModelHelper.createAndRelease( this, ExtensionMechanismsFactory.getFactory(), objs); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5f6191c876d7ba33373fe98de4e3c7d94a09c303/TestExtensionMechanismsFactory.java/clean/tests/org/argouml/model/uml/foundation/extensionmechanisms/TestExtensionMechanismsFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2729, 1435, 288, 202, 202, 780, 8526, 12721, 273, 288, 315, 55, 387, 73, 10570, 3113, 315, 18674, 620, 3113, 446, 289, 31, 202, 202, 1564, 57, 1495, 1488, 2276, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2729, 1435, 288, 202, 202, 780, 8526, 12721, 273, 288, 315, 55, 387, 73, 10570, 3113, 315, 18674, 620, 3113, 446, 289, 31, 202, 202, 1564, 57, 1495, 1488, 2276, 18,...
public void replace(Object parent, int index, Object element) { if (parent.equals(getInput())) { if (index < tree.getItemCount()) { updateItem(tree.getItem(index), element); } } else { Widget[] parentItems = findItems(parent); for (int i = 0; i < parentItems.length; i++) { TreeItem parentItem = (TreeItem) parentItems[i]; if (index < parentItem.getItemCount()) { updateItem(parentItem.getItem(index), element);
public void replace(final Object parentElementOrTreePath, final int index, final Object element) { preservingSelection(new Runnable() { public void run() { if (internalIsInputOrEmptyPath(parentElementOrTreePath)) { if (index < tree.getItemCount()) { updateItem(tree.getItem(index), element); } } else { Widget[] parentItems = internalFindItems(parentElementOrTreePath); for (int i = 0; i < parentItems.length; i++) { TreeItem parentItem = (TreeItem) parentItems[i]; if (index < parentItem.getItemCount()) { updateItem(parentItem.getItem(index), element); } }
public void replace(Object parent, int index, Object element) { if (parent.equals(getInput())) { if (index < tree.getItemCount()) { updateItem(tree.getItem(index), element); } } else { Widget[] parentItems = findItems(parent); for (int i = 0; i < parentItems.length; i++) { TreeItem parentItem = (TreeItem) parentItems[i]; if (index < parentItem.getItemCount()) { updateItem(parentItem.getItem(index), element); } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/859901e463f16654ddbadbf132674c7de109fa2c/TreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1453, 12, 921, 982, 16, 509, 770, 16, 1033, 930, 13, 288, 202, 202, 430, 261, 2938, 18, 14963, 12, 588, 1210, 1435, 3719, 288, 1082, 202, 430, 261, 1615, 411, 2151, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1453, 12, 921, 982, 16, 509, 770, 16, 1033, 930, 13, 288, 202, 202, 430, 261, 2938, 18, 14963, 12, 588, 1210, 1435, 3719, 288, 1082, 202, 430, 261, 1615, 411, 2151, 18,...
public ICDebugConfiguration getDebugConfiguration(String id) throws CoreException { if (fDebugConfigurations == null) {
public ICDebugConfiguration getDebugConfiguration( String id ) throws CoreException { if ( fDebugConfigurations == null ) {
public ICDebugConfiguration getDebugConfiguration(String id) throws CoreException { if (fDebugConfigurations == null) { initializeDebugConfiguration(); } ICDebugConfiguration dbgCfg = (ICDebugConfiguration) fDebugConfigurations.get(id); if ( dbgCfg == null ) { IStatus status = new Status(IStatus.ERROR, getUniqueIdentifier(), 100, CDebugCorePlugin.getResourceString("core.CDebugCorePlugin.No_such_debugger"), null); //$NON-NLS-1$ throw new CoreException(status); } return dbgCfg; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e2983ad1f85b8b3ba80a73a8b0453ef6828d31ca/CDebugCorePlugin.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugCorePlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 26899, 2829, 1750, 29264, 1750, 12, 780, 612, 13, 1216, 30015, 288, 202, 202, 430, 261, 74, 2829, 9698, 422, 446, 13, 288, 1082, 202, 11160, 2829, 1750, 5621, 202, 202, 97, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 26899, 2829, 1750, 29264, 1750, 12, 780, 612, 13, 1216, 30015, 288, 202, 202, 430, 261, 74, 2829, 9698, 422, 446, 13, 288, 1082, 202, 11160, 2829, 1750, 5621, 202, 202, 97, 20...
"", null);
null, "", null);
protected IASTExpression postfixExpression( IASTScope scope ) throws Backtrack { IASTExpression firstExpression = null; boolean isTemplate = false; switch (LT(1)) { case IToken.t_typename : consume(); //TODO: the rest of this break; // simple-type-specifier ( assignment-expression , .. ) case IToken.t_char : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR); break; case IToken.t_wchar_t : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART); break; case IToken.t_bool : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL); break; case IToken.t_short : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT); break; case IToken.t_int : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT); break; case IToken.t_long : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG); break; case IToken.t_signed : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED); break; case IToken.t_unsigned : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED); break; case IToken.t_float : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT); break; case IToken.t_double : firstExpression = simpleTypeConstructorExpression( scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE); break; case IToken.t_dynamic_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_DYNAMIC_CAST); break; case IToken.t_static_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_STATIC_CAST); break; case IToken.t_reinterpret_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_REINTERPRET_CAST); break; case IToken.t_const_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_CONST_CAST); break; case IToken.t_typeid : consume(); consume(IToken.tLPAREN); boolean isTypeId = true; IASTExpression lhs = null; ITokenDuple typeId = null; try { typeId = typeId(); } catch (Backtrack b) { isTypeId = false; lhs = expression(scope); } consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, (isTypeId ? IASTExpression.Kind.POSTFIX_TYPEID_TYPEID : IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION), lhs, null, null, typeId, "", null); } catch (ASTSemanticException e6) { failParse(); throw backtrack; } break; default : firstExpression = primaryExpression(scope); } IASTExpression secondExpression = null; for (;;) { switch (LT(1)) { case IToken.tLBRACKET : // array access consume(); secondExpression = expression(scope); consume(IToken.tRBRACKET); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_SUBSCRIPT, firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e2) { failParse(); throw backtrack; } break; case IToken.tLPAREN : // function call consume(); secondExpression = expression(scope); consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_FUNCTIONCALL, firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e3) { failParse(); throw backtrack; } break; case IToken.tINCR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_INCREMENT, firstExpression, null, null, null, "", null); } catch (ASTSemanticException e1) { failParse(); throw backtrack; } break; case IToken.tDECR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_DECREMENT, firstExpression, null, null, null, "", null); } catch (ASTSemanticException e4) { failParse(); throw backtrack; } break; case IToken.tDOT : // member access consume(IToken.tDOT); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS : IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION), firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e5) { failParse(); throw backtrack; } break; case IToken.tARROW : // member access consume(IToken.tARROW); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP : IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION), firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e) { failParse(); throw backtrack; } break; default : return firstExpression; } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/02c194aaf46b86d6f7a904d6f531e535d47002ba/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 2300, 18923, 2300, 12, 467, 9053, 3876, 2146, 262, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1250, 353, 2283, 273, 629, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 2300, 18923, 2300, 12, 467, 9053, 3876, 2146, 262, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1250, 353, 2283, 273, 629, 31,...
expression += "0x";
expression = "0x" + expression;
public IMemoryBlock getMemoryBlock( long startAddress, long length ) throws DebugException { String expression = Long.toHexString(startAddress); BigInteger address = new BigInteger(expression, 16); expression += "0x"; //$NON-NLS-1$ return new CMemoryBlockExtension( getDebugTarget(), expression, address ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/df6b9c604bb1ce147cff73330d02fdea8e57bbd1/CMemoryBlockRetrievalExtension.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CMemoryBlockRetrievalExtension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6031, 1768, 27740, 1768, 12, 1525, 787, 1887, 16, 1525, 769, 262, 1216, 4015, 503, 288, 202, 202, 780, 2652, 273, 3407, 18, 869, 14866, 12, 1937, 1887, 1769, 202, 202, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6031, 1768, 27740, 1768, 12, 1525, 787, 1887, 16, 1525, 769, 262, 1216, 4015, 503, 288, 202, 202, 780, 2652, 273, 3407, 18, 869, 14866, 12, 1937, 1887, 1769, 202, 202, 24...
public org.quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { org.quickfix.field.SecurityExchange value = new org.quickfix.field.SecurityExchange();
public quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { quickfix.field.SecurityExchange value = new quickfix.field.SecurityExchange();
public org.quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound { org.quickfix.field.SecurityExchange value = new org.quickfix.field.SecurityExchange(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/buggy/src/java/src/quickfix/fix43/SecurityListRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 19288, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 460, 273, 394, 2358, 18, 19525, 904...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 19288, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 11688, 460, 273, 394, 2358, 18, 19525, 904...
JAXWSAttachmentMarshaller am = (JAXWSAttachmentMarshaller)((RuntimeContext)rtc).getBridgeContext().getAttachmentMarshaller();
JAXWSAttachmentMarshaller am = (JAXWSAttachmentMarshaller) ((RuntimeContext) rtc).getBridgeContext().getAttachmentMarshaller();
protected void setAttachmentsMap(MessageInfo mi, InternalMessage im){ Object rtc = mi.getMetaData(BindingProviderProperties.JAXWS_RUNTIME_CONTEXT); if(rtc != null){ BridgeContext bc = ((RuntimeContext)rtc).getBridgeContext(); if(bc == null) return; JAXWSAttachmentMarshaller am = (JAXWSAttachmentMarshaller)((RuntimeContext)rtc).getBridgeContext().getAttachmentMarshaller(); am.setAttachments(im.getAttachments()); am.setHandlerContaxt(((RuntimeContext)rtc).getHandlerContext()); HandlerContext hc = ((RuntimeContext)rtc).getHandlerContext(); Object mtomThreshold; if(hc == null){ //to be removed when client guarantees handlerContext mtomThreshold = mi.getMetaData(JAXWSProperties.MTOM_THRESHOLOD_VALUE); }else{ mtomThreshold = hc.getMessageContext().get(JAXWSProperties.MTOM_THRESHOLOD_VALUE); } if(mtomThreshold != null) am.setMtomThresholdValue((Integer)mtomThreshold); } }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/ce96346d5ca4eea83baf52a7392c41134ccfb8c7/SOAPEncoder.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/encoding/soap/SOAPEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 12961, 863, 12, 1079, 966, 12837, 16, 3186, 1079, 709, 15329, 3639, 1033, 436, 5111, 273, 12837, 18, 588, 6998, 12, 5250, 2249, 2297, 18, 17368, 2651, 67, 54, 25375, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 12961, 863, 12, 1079, 966, 12837, 16, 3186, 1079, 709, 15329, 3639, 1033, 436, 5111, 273, 12837, 18, 588, 6998, 12, 5250, 2249, 2297, 18, 17368, 2651, 67, 54, 25375, 67, ...
return false; }
return false; }
public boolean isNil() { return false; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 8197, 330, 1435, 288, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 8197, 330, 1435, 288, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
null, "setIndexId");
null, "setIndexIdExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[9]; try { result[0] = new PropertyDescriptor("collection", ELIterateTag.class, null, "setCollectionExpr"); result[1] = new PropertyDescriptor("id", ELIterateTag.class, null, "setId"); result[2] = new PropertyDescriptor("indexId", ELIterateTag.class, null, "setIndexId"); result[3] = new PropertyDescriptor("length", ELIterateTag.class, null, "setLength"); result[4] = new PropertyDescriptor("name", ELIterateTag.class, null, "setName"); result[5] = new PropertyDescriptor("offset", ELIterateTag.class, null, "setOffset"); result[6] = new PropertyDescriptor("property", ELIterateTag.class, null, "setProperty"); result[7] = new PropertyDescriptor("scope", ELIterateTag.class, null, "setScope"); result[8] = new PropertyDescriptor("type", ELIterateTag.class, null, "setType"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELIterateTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELIterateTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 29, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 7734, 394, 26761, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 29, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 7734, 394, 26761, 2932, ...
-1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1,
-1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, 0, -1, -1, -1, -1, -1, 344, 93, 94, -1, 10, -1,
private static final short[] yyCheck2() { return new short[] { 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, -1, 33, -1, -1, -1, 37, 38, -1, 40, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, 58, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 124, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 336, -1, -1, 339, 340, 341, 342, 0, 344, 345, 346, 347, 348, 349, 350, 351, -1, 10, -1, -1, 356, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 33, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 63, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 124, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, 33, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, 297, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, 46, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, 59, 60, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, 91, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, 123, -1, -1, 126, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 41, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, 59, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, 125, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 33, 346, 347, 348, 349, 350, 351, 40, -1, -1, -1, 356, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 59, 60, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, 91, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 33, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 59, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 10, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 33, -1, 269, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, 59, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 335, 336, -1, -1, 339, 340, 341, 342, -1, 344, 0, 346, 347, 348, 349, 350, 351, -1, -1, -1, 10, 356, -1, -1, -1, 126, -1, -1, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, -1, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 93, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 33, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, 264, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 10, 313, 314, -1, 316, 317, 125, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, 58, 59, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 0, 281, 91, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 123, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 91, -1, 93, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 91, 271, 93, 94, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 0, -1, 123, 124, 125, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 41, -1, 343, 44, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 59, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 125, 337, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 280, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 0, 268, 269, -1, 271, -1, 91, -1, 93, 94, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 94, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, 124, 125, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, 41, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 58, 59, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 58, 59, 267, 268, 269, 63, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 93, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 125, 333, 334, 335, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, 0, 271, -1, -1, -1, -1, 91, -1, 93, 94, 10, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, 0, -1, -1, -1, 281, 282, -1, -1, -1, -1, 10, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, 58, 59, 60, 338, 62, 63, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 91, -1, 93, 94, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 60, -1, 62, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, 94, -1, 96, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 124, 338, 126, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, 93, 94, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 37, 38, -1, 281, 282, 42, 43, 44, 45, -1, 47, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 94, -1, -1, 338, -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, 124, -1, -1, 37, 38, 281, 282, 41, 42, 43, 44, 45, -1, 47, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 0, -1, 333, 334, 93, 94, -1, 338, }; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 28245, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 28245, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 282, ...
boolean on = MylarUiPlugin.getDefault().getPreferenceStore().getBoolean(getGlobalPrefId()) ;
boolean on = ContextUiPlugin.getDefault().getPreferenceStore().getBoolean(getGlobalPrefId()) ;
public void update(IEditorPart editorPart) { if (!super.isChecked()) { return; } boolean on = MylarUiPlugin.getDefault().getPreferenceStore().getBoolean(getGlobalPrefId()) ; IMylarUiBridge bridge = MylarUiPlugin.getDefault().getUiBridgeForEditor(editorPart); List<TreeViewer> outlineViewers = bridge.getContentOutlineViewers(editorPart); for (TreeViewer viewer : outlineViewers) { if (viewPart != null) { MylarUiPlugin.getDefault().getViewerManager().addManagedViewer(viewer, viewPart); } updateInterestFilter(on, viewer); configureDecorator(viewer); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/ApplyMylarToOutlineAction.java/clean/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/actions/ApplyMylarToOutlineAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 12, 45, 6946, 1988, 4858, 1988, 13, 288, 202, 202, 430, 16051, 9565, 18, 291, 11454, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6494, 603, 273, 8005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 12, 45, 6946, 1988, 4858, 1988, 13, 288, 202, 202, 430, 16051, 9565, 18, 291, 11454, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6494, 603, 273, 8005, ...
if (Extensions.getAllAreas().length < 2) { Extensions.registerAreaClass("IDEA_PROJECT", null); Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT"); Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName()); }
protected void initApplication() throws Exception { ourApplication = IdeaTestApplication.getInstance(); ourApplication.setDataProvider(this); if (Extensions.getAllAreas().length < 2) { Extensions.registerAreaClass("IDEA_PROJECT", null); Extensions.registerAreaClass("IDEA_MODULE", "IDEA_PROJECT"); Extensions.getRootArea().registerExtensionPoint(ExtensionPoints.JUNIT_PATCHER, JUnitPatcher.class.getName()); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/248fdb9837f5b7d688b1bda76a2a07d678d26a54/IdeaTestCase.java/buggy/ExtendedApi/src/com/intellij/testFramework/IdeaTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 3208, 1435, 1216, 1185, 288, 565, 3134, 3208, 273, 23062, 69, 4709, 3208, 18, 588, 1442, 5621, 565, 3134, 3208, 18, 542, 20757, 12, 2211, 1769, 565, 309, 261, 7513, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 3208, 1435, 1216, 1185, 288, 565, 3134, 3208, 273, 23062, 69, 4709, 3208, 18, 588, 1442, 5621, 565, 3134, 3208, 18, 542, 20757, 12, 2211, 1769, 565, 309, 261, 7513, 18, ...
throw new TaskListExternalizerException("Failed to load all tasks");
throw new TaskExternalizationException("Failed to load all tasks");
public void readQuery(Node node, TaskList tlist) throws TaskListExternalizerException { boolean hasCaughtException = false; Element element = (Element) node; IRepositoryQuery cat = null; if (node.getNodeName().equals(TAG_BUGZILLA_CUSTOM_QUERY)) { cat = new BugzillaCustomQueryCategory( element.getAttribute(REPOSITORY_URL), element.getAttribute(QUERY_STRING), element.getAttribute(NAME), element.getAttribute(MAX_HITS)); } else if (node.getNodeName().equals(TAG_BUGZILLA_QUERY)) { cat = new BugzillaQueryCategory( element.getAttribute(REPOSITORY_URL), element.getAttribute(QUERY_STRING), element.getAttribute(NAME), element.getAttribute(MAX_HITS)); } if (cat != null) { tlist.internalAddQuery(cat); } NodeList list = node.getChildNodes(); for (int i = 0; i < list.getLength(); i++) { Node child = list.item(i); try { readQueryHit(child, tlist, cat); } catch (TaskListExternalizerException e) { hasCaughtException = true; } } if (hasCaughtException) throw new TaskListExternalizerException("Failed to load all tasks"); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d91a4c7a3effbbe8b742e700082f8e9f1c02b294/BugzillaTaskExternalizer.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 1138, 12, 907, 756, 16, 3837, 682, 268, 1098, 13, 1216, 3837, 682, 6841, 1824, 503, 288, 202, 202, 6494, 711, 24512, 503, 273, 629, 31, 202, 202, 1046, 930, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 1138, 12, 907, 756, 16, 3837, 682, 268, 1098, 13, 1216, 3837, 682, 6841, 1824, 503, 288, 202, 202, 6494, 711, 24512, 503, 273, 629, 31, 202, 202, 1046, 930, 273, 2...
return false;
return isRequestedSessionIdFromURL;
public boolean isRequestedSessionIdFromURL() { return false; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f7774c4d8d6a8c775f23714b588e7827411253b9/MockRequest.java/clean/src/test/org/apache/cocoon/environment/mock/MockRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 11244, 18030, 1265, 1785, 1435, 288, 3639, 327, 353, 11244, 18030, 1265, 1785, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 11244, 18030, 1265, 1785, 1435, 288, 3639, 327, 353, 11244, 18030, 1265, 1785, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return CDebugUtils.serializeDocument( doc, " " );
return CDebugUtils.serializeDocument( doc, " " );
public String getMemento() throws CoreException { if ( getCSourceLocator() != null ) { Document doc = new DocumentImpl(); Element node = doc.createElement( ELEMENT_NAME ); doc.appendChild( node ); node.setAttribute( ATTR_PROJECT, getCSourceLocator().getProject().getName() ); IPersistableSourceLocator psl = getPersistableSourceLocator(); if ( psl != null ) { node.setAttribute( ATTR_MEMENTO, psl.getMemento() ); } try { return CDebugUtils.serializeDocument( doc, " " ); } catch( IOException e ) { abort( "Unable to create memento for C/C++ source locator.", e ); } } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7c50719ee75ad53d8a6bd367d0f569749c3680bc/DefaultSourceLocator.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2108, 820, 83, 1435, 1216, 30015, 202, 95, 202, 202, 430, 261, 1927, 1830, 5786, 1435, 480, 446, 262, 202, 202, 95, 1082, 202, 2519, 997, 273, 394, 4319, 2828, 5621, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2108, 820, 83, 1435, 1216, 30015, 202, 95, 202, 202, 430, 261, 1927, 1830, 5786, 1435, 480, 446, 262, 202, 202, 95, 1082, 202, 2519, 997, 273, 394, 4319, 2828, 5621, 1082...
return false;
return -1;
static private boolean hasBaseClass( Declaration obj, Declaration base ){ boolean isABaseClass = false; if( obj._parentScopes != null ){ Declaration decl; Declaration.ParentWrapper wrapper; Iterator iter = obj._parentScopes.iterator(); int size = obj._parentScopes.size(); for( int i = size; i > 0; i-- ){ wrapper = (Declaration.ParentWrapper) iter.next(); decl = wrapper.parent; if( decl == base || hasBaseClass( decl, base ) ){ return true; } } } return false; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f77eeb8c082db24c25aee73a91b8427f5fb333de/ParserSymbolTable.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ParserSymbolTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 3238, 1250, 711, 2171, 797, 12, 16110, 4302, 1081, 16, 16110, 4302, 1026, 262, 95, 202, 202, 6494, 353, 2090, 448, 797, 273, 629, 31, 9506, 202, 430, 12, 1081, 6315, 2938, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 3238, 1250, 711, 2171, 797, 12, 16110, 4302, 1081, 16, 16110, 4302, 1026, 262, 95, 202, 202, 6494, 353, 2090, 448, 797, 273, 629, 31, 9506, 202, 430, 12, 1081, 6315, 2938, 12...
if ((element.tag.model & Dict.CM_INLINE) != 0)
if (TidyUtils.toBoolean(element.tag.model & Dict.CM_INLINE))
public void parse(Lexer lexer, Node element, short mode) { Node node, parent; TagTable tt = lexer.configuration.tt; if ((element.tag.model & Dict.CM_EMPTY) != 0) { return; } // ParseInline is used for some block level elements like H1 to H6 For such elements we need to insert // inline emphasis tags currently on the inline stack. For Inline elements, we normally push them onto the // inline stack provided they aren't implicit or OBJECT/APPLET. This test is carried out in PushInline and // PopInline, see istack.c We don't push SPAN to replicate current browser behavior if (((element.tag.model & Dict.CM_BLOCK) != 0) || (element.tag == tt.tagDt)) { lexer.inlineDup(null); } else if ((element.tag.model & Dict.CM_INLINE) != 0 && element.tag != tt.tagSpan) { lexer.pushInline(element); } if (element.tag == tt.tagNobr) { lexer.badLayout |= Report.USING_NOBR; } else if (element.tag == tt.tagFont) { lexer.badLayout |= Report.USING_FONT; } // Inline elements may or may not be within a preformatted element if (mode != Lexer.PREFORMATTED) { mode = Lexer.MIXED_CONTENT; } while ((node = lexer.getToken(mode)) != null) { // end tag for current element if (node.tag == element.tag && node.type == Node.END_TAG) { if ((element.tag.model & Dict.CM_INLINE) != 0) { lexer.popInline(node); } if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } // if a font element wraps an anchor and nothing else then move the font element inside the anchor // since otherwise it won't alter the anchor text color if (element.tag == tt.tagFont && element.content != null && element.content == element.last) { Node child = element.content; if (child.tag == tt.tagA) { child.parent = element.parent; child.next = element.next; child.prev = element.prev; if (child.prev != null) { child.prev.next = child; } else { child.parent.content = child; } if (child.next != null) { child.next.prev = child; } else { child.parent.last = child; } element.next = null; element.prev = null; element.parent = child; element.content = child.content; element.last = child.last; child.content = element; child.last = element; for (child = element.content; child != null; child = child.next) { child.parent = element; } } } element.closed = true; Node.trimSpaces(lexer, element); Node.trimEmptyElement(lexer, element); return; } // <u> ... <u> map 2nd <u> to </u> if 1st is explicit // otherwise emphasis nesting is probably unintentional // big and small have cumulative effect to leave them alone if (node.type == Node.START_TAG && node.tag == element.tag && lexer.isPushed(node) && !node.implicit && !element.implicit && node.tag != null && ((node.tag.model & Dict.CM_INLINE) != 0) && node.tag != tt.tagA && node.tag != tt.tagFont && node.tag != tt.tagBig && node.tag != tt.tagSmall && node.tag != tt.tagQ) { if (element.content != null && node.attributes == null) { lexer.report.warning(lexer, element, node, Report.COERCE_TO_ENDTAG); node.type = Node.END_TAG; lexer.ungetToken(); continue; } lexer.report.warning(lexer, element, node, Report.NESTED_EMPHASIS); } else if (lexer.isPushed(node) && node.type == Node.START_TAG && node.tag == tt.tagQ) { lexer.report.warning(lexer, element, node, Report.NESTED_QUOTATION); } if (node.type == Node.TEXT_NODE) { // only called for 1st child if (element.content == null && !((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } if (node.start >= node.end) { continue; } element.insertNodeAtEnd(node); continue; } // mixed content model so allow text if (Node.insertMisc(element, node)) { continue; } // deal with HTML tags if (node.tag == tt.tagHtml) { if (node.type == Node.START_TAG || node.type == Node.START_END_TAG) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } // otherwise infer end of inline element lexer.ungetToken(); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } // within <dt> or <pre> map <p> to <br> if (node.tag == tt.tagP && node.type == Node.START_TAG && ((mode & Lexer.PREFORMATTED) != 0 || element.tag == tt.tagDt || element.isDescendantOf(tt.tagDt))) { node.tag = tt.tagBr; node.element = "br"; Node.trimSpaces(lexer, element); element.insertNodeAtEnd(node); continue; } // ignore unknown and PARAM tags if (node.tag == null || node.tag == tt.tagParam) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } if (node.tag == tt.tagBr && node.type == Node.END_TAG) { node.type = Node.START_TAG; } if (node.type == Node.END_TAG) { // coerce </br> to <br> if (node.tag == tt.tagBr) { node.type = Node.START_TAG; } else if (node.tag == tt.tagP) { // coerce unmatched </p> to <br><br> if (!element.isDescendantOf(tt.tagP)) { Node.coerceNode(lexer, node, tt.tagBr); Node.trimSpaces(lexer, element); element.insertNodeAtEnd(node); node = lexer.inferredTag("br"); continue; } } else if ((node.tag.model & Dict.CM_INLINE) != 0 && node.tag != tt.tagA && !((node.tag.model & Dict.CM_OBJECT) != 0) && (element.tag.model & Dict.CM_INLINE) != 0) { // allow any inline end tag to end current element lexer.popInline(element); if (element.tag != tt.tagA) { if (node.tag == tt.tagA && node.tag != element.tag) { lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_BEFORE); lexer.ungetToken(); } else { lexer.report.warning(lexer, element, node, Report.NON_MATCHING_ENDTAG); } if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } // if parent is <a> then discard unexpected inline end tag lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } // special case </tr> etc. for stuff moved in front of table else if (lexer.exiled && node.tag.model != 0 && (node.tag.model & Dict.CM_TABLE) != 0) { lexer.ungetToken(); Node.trimSpaces(lexer, element); Node.trimEmptyElement(lexer, element); return; } } // allow any header tag to end current header if ((node.tag.model & Dict.CM_HEADING) != 0 && (element.tag.model & Dict.CM_HEADING) != 0) { if (node.tag == element.tag) { lexer.report.warning(lexer, element, node, Report.NON_MATCHING_ENDTAG); } else { lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_BEFORE); lexer.ungetToken(); } if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } // an <A> tag to ends any open <A> element but <A href=...> is mapped to </A><A href=...> // #427827 - fix by Randy Waki and Bjoern Hoehrmann 23 Aug 00 // if (node.tag == tt.tagA && !node.implicit && lexer.isPushed(node)) if (node.tag == tt.tagA && !node.implicit && (element.tag == tt.tagA || element.isDescendantOf(tt.tagA))) { // coerce <a> to </a> unless it has some attributes // #427827 - fix by Randy Waki and Bjoern Hoehrmann 23 Aug 00 // other fixes by Dave Raggett // if (node.attributes == null) if (node.type != Node.END_TAG && node.attributes == null) { node.type = Node.END_TAG; lexer.report.warning(lexer, element, node, Report.COERCE_TO_ENDTAG); // lexer.popInline(node); lexer.ungetToken(); continue; } lexer.ungetToken(); lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_BEFORE); // lexer.popInline(element); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } if ((element.tag.model & Dict.CM_HEADING) != 0) { if (node.tag == tt.tagCenter || node.tag == tt.tagDiv) { if (node.type != Node.START_TAG && node.type != Node.START_END_TAG) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } lexer.report.warning(lexer, element, node, Report.TAG_NOT_ALLOWED_IN); // insert center as parent if heading is empty if (element.content == null) { Node.insertNodeAsParent(element, node); continue; } // split heading and make center parent of 2nd part element.insertNodeAfterElement(node); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } element = lexer.cloneNode(element); element.start = lexer.lexsize; element.end = lexer.lexsize; node.insertNodeAtEnd(element); continue; } if (node.tag == tt.tagHr) { if (node.type != Node.START_TAG && node.type != Node.START_END_TAG) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } lexer.report.warning(lexer, element, node, Report.TAG_NOT_ALLOWED_IN); // insert hr before heading if heading is empty if (element.content == null) { Node.insertNodeBeforeElement(element, node); continue; } // split heading and insert hr before 2nd part element.insertNodeAfterElement(node); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } element = lexer.cloneNode(element); element.start = lexer.lexsize; element.end = lexer.lexsize; node.insertNodeAfterElement(element); continue; } } if (element.tag == tt.tagDt) { if (node.tag == tt.tagHr) { Node dd; if (node.type != Node.START_TAG && node.type != Node.START_END_TAG) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } lexer.report.warning(lexer, element, node, Report.TAG_NOT_ALLOWED_IN); dd = lexer.inferredTag("dd"); // insert hr within dd before dt if dt is empty if (element.content == null) { Node.insertNodeBeforeElement(element, dd); dd.insertNodeAtEnd(node); continue; } // split dt and insert hr within dd before 2nd part element.insertNodeAfterElement(dd); dd.insertNodeAtEnd(node); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } element = lexer.cloneNode(element); element.start = lexer.lexsize; element.end = lexer.lexsize; dd.insertNodeAfterElement(element); continue; } } // if this is the end tag for an ancestor element then infer end tag for this element if (node.type == Node.END_TAG) { for (parent = element.parent; parent != null; parent = parent.parent) { if (node.tag == parent.tag) { if (!((element.tag.model & Dict.CM_OPT) != 0) && !element.implicit) { lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_BEFORE); } if (element.tag == tt.tagA) { lexer.popInline(element); } lexer.ungetToken(); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } } } // block level tags end this element if (!((node.tag.model & Dict.CM_INLINE) != 0)) { if (node.type != Node.START_TAG) { lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } if (!((element.tag.model & Dict.CM_OPT) != 0)) { lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_BEFORE); } if ((node.tag.model & Dict.CM_HEAD) != 0 && !((node.tag.model & Dict.CM_BLOCK) != 0)) { moveToHead(lexer, element, node); continue; } // prevent anchors from propagating into block tags except for headings h1 to h6 if (element.tag == tt.tagA) { if (node.tag != null && !((node.tag.model & Dict.CM_HEADING) != 0)) { lexer.popInline(element); } else if (!(element.content != null)) { Node.discardElement(element); lexer.ungetToken(); return; } } lexer.ungetToken(); if (!((mode & Lexer.PREFORMATTED) != 0)) { Node.trimSpaces(lexer, element); } Node.trimEmptyElement(lexer, element); return; } // parse inline element if (node.type == Node.START_TAG || node.type == Node.START_END_TAG) { if (node.implicit) { lexer.report.warning(lexer, element, node, Report.INSERTING_TAG); } // trim white space before <br> if (node.tag == tt.tagBr) { Node.trimSpaces(lexer, element); } element.insertNodeAtEnd(node); parseTag(lexer, node, mode); continue; } // discard unexpected tags lexer.report.warning(lexer, element, node, Report.DISCARDING_UNEXPECTED); continue; } if (!((element.tag.model & Dict.CM_OPT) != 0)) { lexer.report.warning(lexer, element, node, Report.MISSING_ENDTAG_FOR); } Node.trimEmptyElement(lexer, element); }
3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/709dab9442f38d7d39953b5624b1c28e49b4284b/ParserImpl.java/buggy/src/main/org/w3c/tidy/ParserImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1109, 12, 13356, 8512, 16, 2029, 930, 16, 3025, 1965, 13, 3639, 288, 5411, 2029, 756, 16, 982, 31, 5411, 4034, 1388, 3574, 273, 8512, 18, 7025, 18, 748, 31, 5411, 309, 14015,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1109, 12, 13356, 8512, 16, 2029, 930, 16, 3025, 1965, 13, 3639, 288, 5411, 2029, 756, 16, 982, 31, 5411, 4034, 1388, 3574, 273, 8512, 18, 7025, 18, 748, 31, 5411, 309, 14015,...
rbMenuItem = new JCheckBoxMenuItem("9600", 9600 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); rbMenuItem = new JCheckBoxMenuItem("19200", 19200 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); rbMenuItem = new JCheckBoxMenuItem("115200", 115200 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem);
for (int i = 0; i < portRates.length; i++) { rbMenuItem = new JCheckBoxMenuItem(portRates[i], portRates[i].equals(curr_rate)); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); }
protected JMenu buildToolsMenu() { JMenuItem item; JMenuItem rbMenuItem; JMenuItem cbMenuItem; SerialRateMenuListener srml = new SerialRateMenuListener(); // Enumeration portRates = {"9600","19200","38400","57600","115200"}; serialMenuListener = new SerialMenuListener(); JMenu menu = new JMenu("Tools"); item = newJMenuItem("Auto Format", 'T', false); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new AutoFormat(Editor.this).show(); } }); menu.add(item); menu.addSeparator(); // The serial options serialSubMenu = new JMenu("Serial Port");// item = newJMenuItem("Update List", 'E', false);// item.addActionListener(new ActionListener() {// public void actionPerformed(ActionEvent e) {// // if (debug) displayResult("Serial Port List Updated");// //updateSerial();// }// }); //serialGroup = new ButtonGroup(); populateSerialMenu(); menu.add(serialSubMenu); // End of The serial options // menu.addSeparator(); // add the serial speed submenu serialRateSubMenu = new JMenu("Serial Monitor Baud Rate"); //serialSubMenu.add(item); //serialSubMenu.addSeparator(); ButtonGroup group = new ButtonGroup(); int curr_rate = Preferences.getInteger("serial.debug_rate"); rbMenuItem = new JCheckBoxMenuItem("9600", 9600 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); rbMenuItem = new JCheckBoxMenuItem("19200", 19200 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); rbMenuItem = new JCheckBoxMenuItem("115200", 115200 == curr_rate); rbMenuItem.addActionListener(srml); group.add(rbMenuItem); serialRateSubMenu.add(rbMenuItem); menu.add(serialRateSubMenu); menu.addMenuListener(new MenuListener() { public void menuCanceled(MenuEvent e) {} public void menuDeselected(MenuEvent e) {} public void menuSelected(MenuEvent e) { populateSerialMenu(); } }); return menu; }
54744 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54744/55dc23e8599909f625c67f85b3cc4f21b35af2ef/Editor.java/clean/app/Editor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 804, 4599, 1361, 10348, 4599, 1435, 288, 202, 46, 12958, 761, 31, 202, 46, 12958, 7138, 12958, 31, 202, 46, 12958, 2875, 12958, 31, 202, 6342, 4727, 4599, 2223, 202, 202, 11254, 781...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 804, 4599, 1361, 10348, 4599, 1435, 288, 202, 46, 12958, 761, 31, 202, 46, 12958, 7138, 12958, 31, 202, 46, 12958, 2875, 12958, 31, 202, 6342, 4727, 4599, 2223, 202, 202, 11254, 781...
f.setVisible(false);
f.dispose();
public void closeJSVGViewerFrame(JSVGViewerFrame f) { f.getJSVGCanvas().stopProcessing(); viewerFrames.remove(f); if (viewerFrames.size() == 0) { System.exit(0); } f.setVisible(false); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/6880bec9a015a6bd327e01d8fc69266b1fdceb65/Main.java/buggy/sources/org/apache/batik/apps/svgbrowser/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 6479, 9266, 18415, 3219, 12, 6479, 9266, 18415, 3219, 284, 13, 288, 3639, 284, 18, 588, 6479, 9266, 12971, 7675, 5681, 7798, 5621, 3639, 14157, 15162, 18, 4479, 12, 74, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 6479, 9266, 18415, 3219, 12, 6479, 9266, 18415, 3219, 284, 13, 288, 3639, 284, 18, 588, 6479, 9266, 12971, 7675, 5681, 7798, 5621, 3639, 14157, 15162, 18, 4479, 12, 74, 1...
createChildControl();
public void createControl(Composite parent) { if (getControl() != null) return; // Create view form. control = new Composite(parent, SWT.NONE); control.setLayout(new FillLayout()); // the part should never be visible by default. It will be made visible // by activation. This allows us to have views appear in tabs without // becoming active by default. control.setVisible(false); // Create a title bar. createTitleBar(); // Create content. createChildControl(); // When the pane or any child gains focus, notify the workbench. control.addListener(SWT.Activate, this); control.addTraverseListener(traverseListener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e63fb57c60e1285097cb8d21d56f8acdff80e7de/PartPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 309, 261, 588, 3367, 1435, 480, 446, 13, 5411, 327, 31, 3639, 368, 1788, 1476, 646, 18, 202, 3639, 3325, 273, 394, 14728, 12, 2938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 309, 261, 588, 3367, 1435, 480, 446, 13, 5411, 327, 31, 3639, 368, 1788, 1476, 646, 18, 202, 3639, 3325, 273, 394, 14728, 12, 2938, ...
String newname=parent+newFile+"/"+folder.getAbsolutePath().substring(file.getAbsolutePath().length()); cms.copyFolder(folder.getAbsolutePath(), newname);
if (folder.getState() != C_STATE_DELETED) { String newname=parent+newFile+"/"+folder.getAbsolutePath().substring(file.getAbsolutePath().length()); cms.copyFolder(folder.getAbsolutePath(), newname); }
public byte[] getContent(A_CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { HttpSession session= ((HttpServletRequest)cms.getRequestContext().getRequest().getOriginalRequest()).getSession(true); // the template to be displayed String template=null; // get the lasturl parameter String lasturl = getLastUrl(cms, parameters); // clear session values on first load String initial=(String)parameters.get(C_PARA_INITIAL); if (initial!= null) { // remove all session values session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_NAME); } // TODO: check, if this is neede: String lock=(String)parameters.get(C_PARA_LOCK); String filename=(String)parameters.get(C_PARA_FILE); if (filename != null) { session.putValue(C_PARA_FILE,filename); } filename=(String)session.getValue(C_PARA_FILE); String newFile=(String)parameters.get(C_PARA_NAME); if (newFile != null) { session.putValue(C_PARA_NAME,newFile); } newFile=(String)session.getValue(C_PARA_NAME); String action = (String)parameters.get("action"); A_CmsResource file=(A_CmsResource)cms.readFileHeader(filename); if (file.isFile()) { template="file"; } else { template="folder"; } //check if the name parameter was included in the request // if not, the lock page is shown for the first time if (newFile == null) { session.putValue(C_PARA_NAME,file.getName()); } else { if (action== null) { template="wait"; } else { // now check if the resource is a file or a folder if (file.isFile()) { // this is a file, so rename it try { renameFile(cms,file,newFile); } catch (CmsException ex) { // something went wrong, so remove all session parameters session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_NAME); throw ex; } // everything is done, so remove all session parameters session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_NAME); try { if(lasturl == null || "".equals(lasturl)) { cms.getRequestContext().getResponse().sendCmsRedirect( getConfigFile(cms).getWorkplaceActionPath()+C_WP_EXPLORER_FILELIST); } else { ((HttpServletResponse)(cms.getRequestContext().getResponse().getOriginalResponse())).sendRedirect(lasturl); } } catch (Exception e) { throw new CmsException("Redirect fails :"+ getConfigFile(cms).getWorkplaceActionPath()+C_WP_EXPLORER_FILELIST,CmsException.C_UNKNOWN_EXCEPTION,e); } } else { // this is a folder // get all subfolders and files Vector allFolders=new Vector(); Vector allFiles=new Vector(); getAllResources(cms,filename,allFiles,allFolders); String parent=file.getParent(); try { // first creatre the new folder cms.unlockResource(file.getAbsolutePath()); cms.copyFolder(filename,parent+newFile+"/"); // then copy all folders for (int i=0;i<allFolders.size();i++) { CmsFolder folder=(CmsFolder)allFolders.elementAt(i); String newname=parent+newFile+"/"+folder.getAbsolutePath().substring(file.getAbsolutePath().length()); cms.copyFolder(folder.getAbsolutePath(), newname); } // now move the files for (int i=0;i<allFiles.size();i++) { CmsFile newfile=(CmsFile)allFiles.elementAt(i); String newname=parent+newFile+"/"+newfile.getAbsolutePath().substring(file.getAbsolutePath().length()); cms.lockResource(newfile.getAbsolutePath()); // cms.moveFile(newfile.getAbsolutePath(),newname); moveFile(cms,newfile,newname,"true",true); cms.unlockResource(newname); } // finally remove the original folders for (int i=0;i<allFolders.size();i++) { CmsFolder folder=(CmsFolder)allFolders.elementAt(allFolders.size()-i-1); cms.lockResource(folder.getAbsolutePath()); cms.deleteFolder(folder.getAbsolutePath()); } // as the last step, delete the original folder cms.lockResource(filename); cms.deleteFolder(filename); cms.lockResource(parent+newFile+"/"); } catch (CmsException ex) { // something went wrong, so remove all session parameters session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_NAME); throw ex; } // everything is done, so remove all session parameters session.removeValue(C_PARA_FILE); session.removeValue(C_PARA_NAME); template="update"; } } } CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms,templateFile); // set the required datablocks if (action == null) { String title=cms.readProperty(file.getAbsolutePath(),C_PROPERTY_TITLE); if (title==null) { title=""; } A_CmsUser owner=cms.readOwner(file); xmlTemplateDocument.setData("TITLE",title); xmlTemplateDocument.setData("STATE",getState(cms,file,new CmsXmlLanguageFile(cms))); xmlTemplateDocument.setData("OWNER",owner.getFirstname()+" "+owner.getLastname()+"("+owner.getName()+")"); xmlTemplateDocument.setData("GROUP",cms.readGroup(file).getName()); xmlTemplateDocument.setData("FILENAME",file.getName()); } // process the selected template return startProcessing(cms,xmlTemplateDocument,"",parameters,template); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/ee5fdb19bcb842ea696a28a76d4adb3d74deeea9/CmsRename.java/buggy/src/com/opencms/workplace/CmsRename.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 37, 67, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 17311, 18559, 1472, 16, 514, 1542, 4320, 13, 3639, 1216, 11228, 288, 3639, 26166, 1339, 33, 14015,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 37, 67, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 17311, 18559, 1472, 16, 514, 1542, 4320, 13, 3639, 1216, 11228, 288, 3639, 26166, 1339, 33, 14015,...
Class[] loadedClasses = app.getAllClasses();
public static void main(String[] args) { ApplicationContext ctx = GrailsUtil.bootstrapGrailsFromClassPath(); GrailsApplication app = (GrailsApplication)ctx.getBean(GrailsApplication.APPLICATION_ID); Class[] loadedClasses = app.getAllClasses(); Binding b = new Binding(); for (int i = 0; i < loadedClasses.length; i++) { b.setVariable(loadedClasses[i].getName(), loadedClasses[i]); } Console c = new Console(app.getClassLoader(), new Binding()); c.run(); }
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/04f84d40684d8785499ed04d6996fd9f05dec7c0/Console.java/buggy/src/commons/grails/ui/Console.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 9506, 202, 28278, 1103, 273, 10812, 14573, 1304, 18, 12722, 14571, 14573, 1265, 22158, 5621, 202, 202, 14571, 14573, 3208, 595, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 9506, 202, 28278, 1103, 273, 10812, 14573, 1304, 18, 12722, 14571, 14573, 1265, 22158, 5621, 202, 202, 14571, 14573, 3208, 595, 273, ...
public C_Term distribution() {
public C_Var distribution() {
public C_Term distribution() { if (isDistSet) return dist; Constraint c = realClause(); if (c == null) return dist = null; dist = c.find("distribution"); if (dist == null) { // build the synthetic term. C_Var var = c.selfVar(); if (var !=null) { FieldInstance fi = definedFieldNamed("distribution"); dist = new C_Field_c(fi, var); } } isDistSet = true; //Report.report(1, "X1ParsedClassType dist is " + rank); C_Term result = dist; return result; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/06304835049655f4d36cb3ccb10bdc8623791da8/X10ParsedClassType_c.java/clean/x10.compiler/src/polyglot/ext/x10/types/X10ParsedClassType_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 67, 4065, 7006, 1435, 288, 202, 202, 430, 261, 291, 5133, 694, 13, 327, 2411, 31, 9506, 202, 5806, 276, 273, 2863, 7044, 5621, 202, 202, 430, 261, 71, 422, 446, 13, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 67, 4065, 7006, 1435, 288, 202, 202, 430, 261, 291, 5133, 694, 13, 327, 2411, 31, 9506, 202, 5806, 276, 273, 2863, 7044, 5621, 202, 202, 430, 261, 71, 422, 446, 13, 108...
return this.taint; }
return this.taint; }
public boolean isTaint() { return this.taint; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 29048, 1435, 288, 202, 202, 2463, 333, 18, 88, 1598, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 29048, 1435, 288, 202, 202, 2463, 333, 18, 88, 1598, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
IJavaElement sibling= fInsertPosition; IMethod existing = JavaModelUtil.findMethod( curr.getElementName(), curr.getParameterTypes(), curr.isConstructor(), existingMethods); if (existing != null) { continue; } else if (curr.isConstructor() && existingMethods.length > 0) { sibling = existingMethods[0]; } String formattedContent= CodeFormatterUtil.format(CodeFormatterUtil.K_CLASS_BODY_DECLARATIONS, content, indent, null, lineDelim, null) + lineDelim; IMethod created= fType.createMethod(formattedContent, sibling, true, null); fCreatedMethods.add(created); monitor.worked(1);
imports.create(false, null); } finally { monitor.done();
public void run(IProgressMonitor monitor) throws CoreException { int listSize= fList.size(); String message = ActionMessages.getFormattedString("AddDelegateMethodsOperation.monitor.message", String.valueOf(listSize)); //$NON-NLS-1$ monitor.setTaskName(message); monitor.beginTask("", listSize); //$NON-NLS-1$ boolean addComments = fCodeSettings.createComments; // already existing methods IMethod[] existingMethods = fType.getMethods(); //the delemiter used String lineDelim = StubUtility.getLineDelimiterUsed(fType); // the indent used + 1 int indent = StubUtility.getIndentUsed(fType) + 1; // perhaps we have to add import statements final ImportsStructure imports = new ImportsStructure(fType.getCompilationUnit(), fCodeSettings.importOrder, fCodeSettings.importThreshold, true); ITypeHierarchy typeHierarchy = fType.newSupertypeHierarchy(null); for (int i = 0; i < listSize; i++) { //check for cancel each iteration if (monitor.isCanceled()) { if (i > 0) { imports.create(false, null); } return; } String content = null; Methods2Field wrapper = (Methods2Field) fList.get(i); IMethod curr = wrapper.fMethod; IField field = wrapper.fField; monitor.subTask(JavaElementLabels.getElementLabel(curr, JavaElementLabels.M_PARAMETER_TYPES)); IMethod overwrittenMethod = JavaModelUtil.findMethodImplementationInHierarchy( typeHierarchy, fType, curr.getElementName(), curr.getParameterTypes(), curr.isConstructor()); if (overwrittenMethod == null) { content = createStub(field, curr, addComments, overwrittenMethod, imports); } else { // we could ask before overwriting final methods IMethod declaration = JavaModelUtil.findMethodDeclarationInHierarchy( typeHierarchy, fType, curr.getElementName(), curr.getParameterTypes(), curr.isConstructor()); content = createStub(field, declaration, addComments, overwrittenMethod, imports); } IJavaElement sibling= fInsertPosition; IMethod existing = JavaModelUtil.findMethod( curr.getElementName(), curr.getParameterTypes(), curr.isConstructor(), existingMethods); if (existing != null) { // we could ask before replacing a method continue; } else if (curr.isConstructor() && existingMethods.length > 0) { // add constructors at the beginning sibling = existingMethods[0]; } String formattedContent= CodeFormatterUtil.format(CodeFormatterUtil.K_CLASS_BODY_DECLARATIONS, content, indent, null, lineDelim, null) + lineDelim; IMethod created= fType.createMethod(formattedContent, sibling, true, null); fCreatedMethods.add(created); monitor.worked(1); } imports.create(false, null); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bc82ecf42bd93a106c73b0b9fcad696af77a61d4/AddDelegateMethodsOperation.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddDelegateMethodsOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 474, 666, 1225, 33, 284, 682, 18, 1467, 5621, 202, 202, 780, 883, 273, 4382, 5058, 18, 588, 18298, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 474, 666, 1225, 33, 284, 682, 18, 1467, 5621, 202, 202, 780, 883, 273, 4382, 5058, 18, 588, 18298, 780, ...
public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException { ResultTreeHandler rhandler = transformer.getResultTreeHandler(); // Add namespace declarations. executeNSDecls(transformer); rhandler.startElement(getNamespace(), getLocalName(), getRawName()); // Process any possible attributes from xsl:use-attribute-sets first super.execute(transformer, sourceNode, mode); //xsl:version, excludeResultPrefixes??? // Process the list of avts next if(null != m_avts) { int nAttrs = m_avts.size(); for(int i = (nAttrs-1); i >= 0; i--) { AVT avt = (AVT)m_avts.elementAt(i); XPathContext xctxt = transformer.getXPathContext(); String stringedValue = avt.evaluate(xctxt, sourceNode, this); if(null != stringedValue) { // Important Note: I'm not going to check for excluded namespace // prefixes here. It seems like it's to expensive, and I'm not // even sure this is right. But I could be wrong, so this needs // to be tested against other implementations. rhandler.addAttribute(avt.getURI(), avt.getName(), avt.getRawName(), "CDATA", stringedValue); } } // end for } // Now process all the elements in this subtree // TODO: Process m_extensionElementPrefixes && m_attributeSetsNames transformer.executeChildTemplates(this, sourceNode, mode); rhandler.endElement (getNamespace(), getLocalName(), getRawName()); unexecuteNSDecls(transformer); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemLiteralResult.java/buggy/src/org/apache/xalan/templates/ElemLiteralResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 12, 8319, 2828, 8360, 16, 15604, 2029, 26799, 16, 8227, 16723, 1965, 13, 565, 1216, 14366, 225, 288, 565, 3438, 2471, 1503, 436, 4176, 273, 8360, 18, 588, 1253, 2471, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 12, 8319, 2828, 8360, 16, 15604, 2029, 26799, 16, 8227, 16723, 1965, 13, 565, 1216, 14366, 225, 288, 565, 3438, 2471, 1503, 436, 4176, 273, 8360, 18, 588, 1253, 2471, 150...
final ChildListPropertyDescriptor descriptor= (declarations.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION) ? AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY : TypeDeclaration.BODY_DECLARATIONS_PROPERTY; rewrite.getListRewrite(declarations, descriptor).insertAt(declaration, 0, null);
final ChildListPropertyDescriptor descriptor= (node.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION) ? AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY : TypeDeclaration.BODY_DECLARATIONS_PROPERTY; rewrite.getListRewrite(node, descriptor).insertAt(declaration, 0, null);
protected final ASTRewrite getRewrite() throws CoreException { final ASTNode declarations= getDeclarationNode(); final AST ast= declarations.getAST(); final ASTRewrite rewrite= ASTRewrite.create(ast); final VariableDeclarationFragment fragment= ast.newVariableDeclarationFragment(); fragment.setName(ast.newSimpleName(NAME_FIELD)); final FieldDeclaration declaration= ast.newFieldDeclaration(fragment); declaration.setType(ast.newPrimitiveType(PrimitiveType.LONG)); declaration.modifiers().addAll(ASTNodeFactory.newModifiers(ast, Modifier.PRIVATE | Modifier.STATIC | Modifier.FINAL)); addInitializer(fragment); if (fragment.getInitializer() != null) { final ChildListPropertyDescriptor descriptor= (declarations.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION) ? AnonymousClassDeclaration.BODY_DECLARATIONS_PROPERTY : TypeDeclaration.BODY_DECLARATIONS_PROPERTY; rewrite.getListRewrite(declarations, descriptor).insertAt(declaration, 0, null); addLinkedPositions(rewrite, fragment); } final String comment= CodeGeneration.getFieldComment(getCompilationUnit(), declaration.getType().toString(), NAME_FIELD, StubUtility.getLineDelimiterUsed(getCompilationUnit())); if (comment != null && comment.length() > 0) { final Javadoc doc= (Javadoc) rewrite.createStringPlaceholder(comment, ASTNode.JAVADOC); declaration.setJavadoc(doc); } return rewrite; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3e17eda16bae41a26aae63710ce12a12f19dea70/AbstractSerialVersionProposal.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AbstractSerialVersionProposal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 432, 3902, 12341, 4170, 12341, 1435, 1216, 30015, 288, 202, 202, 6385, 9183, 907, 12312, 33, 336, 6094, 907, 5621, 202, 202, 6385, 9183, 3364, 33, 12312, 18, 588, 9053, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 432, 3902, 12341, 4170, 12341, 1435, 1216, 30015, 288, 202, 202, 6385, 9183, 907, 12312, 33, 336, 6094, 907, 5621, 202, 202, 6385, 9183, 3364, 33, 12312, 18, 588, 9053, 56...
public boolean deleteLesson(ILesson lesson) throws RemoteException { for (Iterator<IGroup> it = lesson.getLstGroup().iterator() ; it .hasNext() ;) { IGroup g = it.next(); try { g.getSetBusy().remove(lesson); GroupStorage.save(g); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return false; } manager.fireDataChanged(IGroup.class, new DataEvent(g, "lstBusy", DataEvent.TYPE_PROPERTY_SUBDATA_REMOVED, new Object[] { lesson })); } for (Iterator<IDevice> it = lesson.getLstDevice().iterator() ; it .hasNext() ;) { IDevice d = it.next(); try { d.getSetBusy().remove(lesson); DeviceStorage.save(d); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return false; } manager.fireDataChanged(IDevice.class, new DataEvent(d, "lstBusy", DataEvent.TYPE_PROPERTY_SUBDATA_REMOVED, new Object[] { lesson })); } for (Iterator<IRoom> it = lesson.getLstRoom().iterator() ; it.hasNext() ;) { IRoom r = it.next(); try { r.getSetBusy().remove(lesson); RoomStorage.save(r); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return false; } manager.fireDataChanged(IRoom.class, new DataEvent(r, "lstBusy", DataEvent.TYPE_PROPERTY_SUBDATA_REMOVED, new Object[] { lesson })); } for (Iterator<ITeacher> it = lesson.getLstTeacher().iterator() ; it .hasNext() ;) { ITeacher t = it.next(); try { t.getSetBusy().remove(lesson); TeacherStorage.save(t); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return false; } manager.fireDataChanged(ITeacher.class, new DataEvent(t, "lstBusy", DataEvent.TYPE_PROPERTY_SUBDATA_REMOVED, new Object[] { lesson })); } try { LessonStorage.delete(lesson); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); } return true; }
13357 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13357/88394371c35f4389a1cd4ba2e6c30c902f533ddc/DataManagerImpl.java/clean/current/src/fr/umlv/ir3/flexitime/server/core/DataManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1430, 15313, 265, 12, 2627, 403, 265, 22766, 13, 1216, 18361, 565, 288, 3639, 364, 261, 3198, 32, 45, 1114, 34, 518, 273, 22766, 18, 588, 28134, 1114, 7675, 9838, 1435, 274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1430, 15313, 265, 12, 2627, 403, 265, 22766, 13, 1216, 18361, 565, 288, 3639, 364, 261, 3198, 32, 45, 1114, 34, 518, 273, 22766, 18, 588, 28134, 1114, 7675, 9838, 1435, 274, ...
return "testng-coverage.dat";
final String name = getGeneratedName(); if (name.equals(JUnitConfiguration.DEFAULT_PACKAGE_NAME)) { return JUnitConfiguration.DEFAULT_PACKAGE_CONFIGURATION_NAME; } return name;
public String getCoverageFileName() { return "testng-coverage.dat"; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6b711021c8ae4dc9e770e08d7336fac4b3e9f663/TestNGConfiguration.java/buggy/plugins/testng/src/com/theoryinpractice/testng/TestNGConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1927, 1643, 410, 4771, 1435, 288, 3639, 727, 514, 508, 273, 336, 7823, 461, 5621, 309, 261, 529, 18, 14963, 12, 46, 2802, 1750, 18, 5280, 67, 19077, 67, 1985, 3719, 288, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1927, 1643, 410, 4771, 1435, 288, 3639, 727, 514, 508, 273, 336, 7823, 461, 5621, 309, 261, 529, 18, 14963, 12, 46, 2802, 1750, 18, 5280, 67, 19077, 67, 1985, 3719, 288, 327,...
public void treeExpanded(TreeExpansionEvent treeExpansionEvent) {
public void treeExpanded(TreeExpansionEvent treeExpansionEvent) {
public void treeExpanded(TreeExpansionEvent treeExpansionEvent) { expandedTreePaths.add(treeExpansionEvent.getPath()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/JTreeUpdater.java/clean/src/main/mondrian/gui/JTreeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2151, 17957, 12, 2471, 2966, 12162, 1133, 2151, 2966, 12162, 1133, 13, 288, 202, 202, 17336, 2471, 4466, 18, 1289, 12, 3413, 2966, 12162, 1133, 18, 588, 743, 10663, 202, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2151, 17957, 12, 2471, 2966, 12162, 1133, 2151, 2966, 12162, 1133, 13, 288, 202, 202, 17336, 2471, 4466, 18, 1289, 12, 3413, 2966, 12162, 1133, 18, 588, 743, 10663, 202, 97...
throws ConfigurationException
throws CascadingException, InvocationTargetException
private void configureInline( final ObjectConfigurer configurer, final Object object, final Configuration element, final Context context ) throws ConfigurationException { final String elementName = element.getName(); // Locate the configurer for the child element final PropertyConfigurer childConfigurer = configurer.getProperty( elementName ); if( null == childConfigurer ) { final String message = REZ.getString( "unknown-property.error", elementName ); throw new ConfigurationException( message ); } try { // Create the child element final Object child = childConfigurer.createValue( object ); // Configure the child element configure( child, element, context ); // Set the child element childConfigurer.setValue( object, child ); } catch( final ConfigurationException ce ) { final String message = REZ.getString( "bad-set-property.error", elementName ); throw new ConfigurationException( message, ce ); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/f52a170159f6dc5beebe07bfb945cb5b3fa5290b/DefaultConfigurer.java/buggy/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5068, 10870, 12, 727, 1033, 809, 11278, 642, 11278, 16, 21394, 727, 1033, 733, 16, 21394, 727, 4659, 930, 16, 21394, 727, 1772, 819, 262, 3639, 1216, 385, 3691, 14968, 503, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5068, 10870, 12, 727, 1033, 809, 11278, 642, 11278, 16, 21394, 727, 1033, 733, 16, 21394, 727, 4659, 930, 16, 21394, 727, 1772, 819, 262, 3639, 1216, 385, 3691, 14968, 503, 16,...
anticipateAndSend(false,
anticipateAndSend(false, true,
public void testV1GenericMatch() throws Exception { anticipateAndSend(false, "uei.opennms.org/generic/traps/SNMP_Cold_Start", "v1", null, 0, 0); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/babd69f99b2c34d418f92b79c80dc38b03680037/TrapHandlerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 58, 21, 7014, 2060, 1435, 1216, 1185, 288, 3639, 17841, 24629, 340, 1876, 3826, 12, 5743, 16, 638, 16, 12900, 315, 344, 77, 18, 3190, 82, 959, 18, 3341, 19, 13540, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 58, 21, 7014, 2060, 1435, 1216, 1185, 288, 3639, 17841, 24629, 340, 1876, 3826, 12, 5743, 16, 638, 16, 12900, 315, 344, 77, 18, 3190, 82, 959, 18, 3341, 19, 13540, 19, ...
if (onResource == ON_WORKING_SET) { if (workingSet == null) return true;
if (onResource == ON_WORKING_SET) { if (workingSet == null) return true;
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (workingSet == null) return true; if (resource != null) return isEnclosed(resource); } else if (onResource == ON_ANY_RESOURCE_OF_SAME_PROJECT) { IProject project = resource.getProject(); if (project == null) { return false; } for (int i = 0; i < focusResource.length; i++) { IProject selectedProject = focusResource[i].getProject(); if (selectedProject == null) { continue; } if (project.equals(selectedProject)) return true; } } else if (onResource == ON_SELECTED_RESOURCE_ONLY) { for (int i = 0; i < focusResource.length; i++) { if (resource.equals(focusResource[i])) return true; } } else if (onResource == ON_SELECTED_RESOURCE_AND_CHILDREN) { for (int i = 0; i < focusResource.length; i++) { IResource parentResource = resource; while (parentResource != null) { if (parentResource.equals(focusResource[i])) return true; parentResource = parentResource.getParent(); } } } return false; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2027, 858, 6233, 12, 25845, 7078, 5373, 13, 288, 3639, 309, 261, 265, 1420, 422, 6229, 67, 15409, 67, 11395, 747, 5373, 422, 446, 13, 5411, 327, 638, 31, 3639, 309, 261, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2027, 858, 6233, 12, 25845, 7078, 5373, 13, 288, 3639, 309, 261, 265, 1420, 422, 6229, 67, 15409, 67, 11395, 747, 5373, 422, 446, 13, 5411, 327, 638, 31, 3639, 309, 261, 139...
LocalVariable maxDB = new LocalVariable(CodeUtils.TYPE_DOUBLE, "max"); InstructionVector dbi = new InstructionVector(); dbi.add( ByteCode.make_dload (max)); dbi.add( ByteCode.make_dstore (maxDB)); dbi.add( message("Max " + i + " = ", maxDB)); stateV.add( debug(dbi));
private CodeGenerator createFRecursion( boolean isInit, MarkovModel model, State[] states, AlphabetIndex stateIndex, CodeField stateF, CodeField [] transitionFields, AlphabetIndex[] transitionIndexers, GeneratedCodeMethod method ) throws NoSuchMethodException, NoSuchFieldException, IllegalSymbolException, CodeException { CodeClass _Cell = IntrospectedCodeClass.forClass(Cell.class); CodeField _Cell_score = _Cell.getFieldByName("scores"); CodeField _Cell_backpointer = _Cell.getFieldByName("backPointers"); CodeField _Cell_emissions = _Cell.getFieldByName("emissions"); CodeClass _State = IntrospectedCodeClass.forClass(State.class); CodeClass _double_A = IntrospectedCodeClass.forClass(double [].class); CodeClass _Math = IntrospectedCodeClass.forClass(Math.class); CodeMethod _Math_exp = _Math.getMethod("exp", new CodeClass[] { CodeUtils.TYPE_DOUBLE }); CodeMethod _Math_log = _Math.getMethod("log", new CodeClass[] { CodeUtils.TYPE_DOUBLE }); InstructionVector ccV = new InstructionVector(); ccV.add( debug(message("Retrieving local variables"))); // if(isInit && state instanceof emission) { // cell[0][0] = (state == Magical) ? 0.0 : NaN; // } else { // cell[0][0].score[i] = cell[0][0].emissions[i] + // sum_j(cell[adv_i_0][adv_i_1] + t_j[i]) // } // cell_00 = cell[0][0]; // cell_01 = cell[0][1]; // cell_10 = cell[1][0]; // cell_11 = cell[1][1]; LocalVariable[][] cell = new LocalVariable[2][2]; cell[0][0] = new LocalVariable(_Cell, "cell_00"); cell[0][1] = new LocalVariable(_Cell, "cell_01"); cell[1][0] = new LocalVariable(_Cell, "cell_10"); cell[1][1] = new LocalVariable(_Cell, "cell_11"); ccV.add( ByteCode.make_aload (method.getVariable("cells"))); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[0][0])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[0][1])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_dup ()); ccV.add( ByteCode.make_iconst (0)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[1][0])); ccV.add( ByteCode.make_iconst (1)); ccV.add( ByteCode.make_aaload ()); ccV.add( ByteCode.make_astore (cell[1][1])); // score_00 = cell[0][0].score; // score_01 = cell[0][1].score; // score_10 = cell[1][0].score; // score_11 = cell[1][1].score; LocalVariable[][] score = new LocalVariable[2][2]; score[0][0] = new LocalVariable(_double_A, "score_00"); score[0][1] = new LocalVariable(_double_A, "score_01"); score[1][0] = new LocalVariable(_double_A, "score_10"); score[1][1] = new LocalVariable(_double_A, "score_11"); ccV.add( ByteCode.make_aload (cell[0][0])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[0][0])); ccV.add( ByteCode.make_aload (cell[0][1])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[0][1])); ccV.add( ByteCode.make_aload (cell[1][0])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[1][0])); ccV.add( ByteCode.make_aload (cell[1][1])); ccV.add( ByteCode.make_getfield ( _Cell_score)); ccV.add( ByteCode.make_astore (score[1][1])); LocalVariable emissions = new LocalVariable(_double_A, "emissions"); ccV.add( ByteCode.make_aload (cell[0][0] )); ccV.add( ByteCode.make_getfield (_Cell_emissions)); ccV.add( ByteCode.make_astore (emissions)); LocalVariable max = new LocalVariable(CodeUtils.TYPE_DOUBLE, "max"); for(int i = 0; i < states.length; i++) { State state = states[i]; InstructionVector stateV = new InstructionVector(); // we need to push score & i onto the stack so that after finding the sum // we can just push it back into the array stateV.add( ByteCode.make_aload (score[0][0])); stateV.add( ByteCode.make_iconst (i)); if(isInit && state instanceof EmissionState) { if(state instanceof MagicalState) { stateV.add( ByteCode.make_dconst (0.0)); } else { stateV.add( ByteCode.make_dconst (Double.NaN)); } } else { int[] advance = getAdvance(state); FiniteAlphabet trans = model.transitionsFrom(state); LocalVariable j_scores = getAdvanced(score, advance); if(trans.size() == 1) { State state_j = (State) trans.iterator().next(); int state_jIndx = stateIndex.indexForSymbol(state_j); // only one source. F[i] = trans_j[i] + F[j] + e[i] stateV.add( ByteCode.make_aload (method.getThis())); stateV.add( ByteCode.make_getfield (transitionFields[state_jIndx])); stateV.add( ByteCode.make_iconst (transitionIndexers[state_jIndx].indexForSymbol(state))); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_aload (j_scores)); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dadd ()); if(state instanceof EmissionState) { stateV.add( ByteCode.make_aload (emissions)); stateV.add( ByteCode.make_iconst (i)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dadd ()); } } else { // f[i] = emission[i] + log( sum_j [ // exp( (j_scores[j] - max_j_score) + t_j[i] + e) // ]) + max_j_score // find max j_scores stateV.add( ByteCode.make_dconst (Double.NEGATIVE_INFINITY)); stateV.add( ByteCode.make_dstore (max)); Iterator each_j = trans.iterator(); while(each_j.hasNext()) { State state_j = (State) each_j.next(); int state_jIndx = stateIndex.indexForSymbol(state_j); stateV.add( ByteCode.make_aload (j_scores)); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); stateV.add( ByteCode.make_dup2 ()); stateV.add( ByteCode.make_dload (max)); stateV.add( ByteCode.make_dcmpl ()); // puts -1 if max > this one InstructionVector ifLargerThanMax = new InstructionVector(); ifLargerThanMax.add( ByteCode.make_dstore (max)); InstructionVector ifSmallerThanMax = new InstructionVector(); ifSmallerThanMax.add( ByteCode.make_pop2 ()); stateV.add( new IfExpression( ByteCode.op_ifge, // branch if int on stack >= 0 ifLargerThanMax, ifSmallerThanMax )); } // sum logs of exponents - prime sum with zero stateV.add( ByteCode.make_dconst (0.0)); each_j = trans.iterator(); while(each_j.hasNext()) { State state_j = (State) each_j.next(); int state_jIndx = stateIndex.indexForSymbol(state_j); // score stateV.add( ByteCode.make_aload (j_scores)); stateV.add( ByteCode.make_iconst (state_jIndx)); stateV.add( ByteCode.make_daload ()); // is score NaN? stateV.add( ByteCode.make_dup2()); stateV.add( ByteCode.make_dup2()); stateV.add( ByteCode.make_dcmpl()); InstructionVector scoreNotNaN = new InstructionVector(); // load max & subtract it from score, then exponentiate scoreNotNaN.add( ByteCode.make_dload (max)); scoreNotNaN.add( ByteCode.make_dsub ()); // exp( (j_score - max) + transition) scoreNotNaN.add( ByteCode.make_aload (method.getThis())); scoreNotNaN.add( ByteCode.make_getfield (transitionFields[state_jIndx])); scoreNotNaN.add( ByteCode.make_iconst (transitionIndexers[state_jIndx].indexForSymbol(state))); scoreNotNaN.add( ByteCode.make_daload ()); scoreNotNaN.add( ByteCode.make_dadd()); scoreNotNaN.add( ByteCode.make_invokestatic (_Math_exp)); // sum this and current sum scoreNotNaN.add( ByteCode.make_dadd()); InstructionVector scoreIsNaN = new InstructionVector(); scoreIsNaN.add( ByteCode.make_pop2()); stateV.add( new IfExpression( ByteCode.op_ifge, scoreNotNaN, scoreIsNaN )); } // log sum stateV.add( ByteCode.make_invokestatic (_Math_log)); if(state instanceof EmissionState) { // emissions[i] stateV.add( ByteCode.make_aload (emissions)); stateV.add( ByteCode.make_iconst (i)); stateV.add( ByteCode.make_daload ()); // sum emission with j sum stateV.add( ByteCode.make_dadd ()); } // lastly add on a factor of max - added here for maximum numerical stability stateV.add( ByteCode.make_dload (max)); stateV.add( ByteCode.make_dadd ()); } } // store score on stack into scores array stateV.add( ByteCode.make_dastore ()); ccV.add( stateV ); } // dump out state scores LocalVariable sc = new LocalVariable(CodeUtils.TYPE_DOUBLE, "score_i"); InstructionVector dbi = new InstructionVector(); for(int i = 0; i < states.length; i++) { dbi.add( ByteCode.make_aload (score[0][0])); dbi.add( ByteCode.make_iconst (i)); dbi.add( ByteCode.make_daload ()); dbi.add( ByteCode.make_dstore (sc)); dbi.add( message("Score " + i + " = ", sc)); } ccV.add( debug(dbi)); ccV.add( ByteCode.make_return ()); return ccV; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/16e211b30f2de853621b0c083c1e7d659c54cfd1/DPCompiler.java/buggy/src/org/biojava/bio/dp/twohead/DPCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3566, 3092, 943, 2290, 273, 394, 3566, 3092, 12, 1085, 1989, 18, 2399, 67, 17088, 16, 315, 1896, 8863, 24605, 5018, 1319, 77, 273, 394, 24605, 5018, 5621, 1319, 77, 18, 1289, 12, 3506, 1085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3566, 3092, 943, 2290, 273, 394, 3566, 3092, 12, 1085, 1989, 18, 2399, 67, 17088, 16, 315, 1896, 8863, 24605, 5018, 1319, 77, 273, 394, 24605, 5018, 5621, 1319, 77, 18, 1289, 12, 3506, 1085, ...
public CDIException(String s) { super(s);
public CDIException() { super();
public CDIException(String s) { super(s); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/CDIException.java/buggy/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/CDIException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 2565, 503, 12, 780, 272, 13, 288, 202, 202, 9565, 12, 87, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 2565, 503, 12, 780, 272, 13, 288, 202, 202, 9565, 12, 87, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (valueList != null) { for (int i = 0; i < valueList.size(); i += 2) { if (((String)valueList.get(i)).equals(displayedString)) { return (String)valueList.get(i+1); } } } return null;
if (valueList != null) { for (int i = 0; i < valueList.size(); i += 2) { if (((String) valueList.get(i)).equals(displayedString)) { return (String) valueList.get(i + 1); } } } return null;
public String getStoredString(String pairTypeName, String displayedString) { if (valueList != null) { for (int i = 0; i < valueList.size(); i += 2) { if (((String)valueList.get(i)).equals(displayedString)) { return (String)valueList.get(i+1); } } } return null; }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/09b200a563efc77be8bd8eceb05423772e261e18/DCInput.java/buggy/dspace/src/org/dspace/app/webui/util/DCInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 15818, 72, 780, 12, 780, 3082, 7947, 16, 514, 10453, 780, 13, 565, 288, 377, 202, 430, 261, 1132, 682, 480, 446, 13, 377, 202, 95, 377, 202, 202, 1884, 261, 474, 277, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 15818, 72, 780, 12, 780, 3082, 7947, 16, 514, 10453, 780, 13, 565, 288, 377, 202, 430, 261, 1132, 682, 480, 446, 13, 377, 202, 95, 377, 202, 202, 1884, 261, 474, 277, 273, ...
long[] data = { -4057250683051573248L, 9166696611554996165L, 100728768L, 0L, 0L, 0L};
long[] data = { -4039236284542091264L, 9166696611554996165L, 100728768L, 0L, 0L, 0L};
private static final long[] mk_tokenSet_3() { long[] data = { -4057250683051573248L, 9166696611554996165L, 100728768L, 0L, 0L, 0L}; return data; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ee368109786d93e0255b0c3298fb3bbb22ab63d7/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 23, 1435, 288, 202, 202, 5748, 8526, 501, 273, 288, 300, 24, 6260, 27, 2947, 7677, 28, 5082, 25, 27985, 1578, 8875, 48, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 23, 1435, 288, 202, 202, 5748, 8526, 501, 273, 288, 300, 24, 6260, 27, 2947, 7677, 28, 5082, 25, 27985, 1578, 8875, 48, 16, 2...
if ( metadataType.equals( GROUP_TYPE ) )
if ( metadataType.equals( MetadataRepositoryIndex.GROUP_METADATA ) )
private RepositoryMetadata getMetadata( String groupId, String artifactId, String version, String filename, String metadataType ) throws Exception { RepositoryMetadata repoMetadata = null; URL url; InputStream is = null; MetadataXpp3Reader metadataReader = new MetadataXpp3Reader(); //group metadata if ( metadataType.equals( GROUP_TYPE ) ) { url = new File( repository.getBasedir() + groupId.replace( '.', '/' ) + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new GroupRepositoryMetadata( groupId ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } //artifact metadata else if ( metadataType.equals( ARTIFACT_TYPE ) ) { url = new File( repository.getBasedir() + groupId.replace( '.', '/' ) + "/" + artifactId + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new ArtifactRepositoryMetadata( getArtifact( groupId, artifactId, version ) ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } //snapshot/version metadata else if ( metadataType.equals( SNAPSHOT_TYPE ) ) { url = new File( repository.getBasedir() + groupId.replace( '.', '/' ) + "/" + artifactId + "/" + version + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new SnapshotArtifactRepositoryMetadata( getArtifact( groupId, artifactId, version ) ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } return repoMetadata; }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/05e7c800b0e3a3c8a950ed6af517f24cb6a58325/MetadataRepositoryIndexingTest.java/clean/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/MetadataRepositoryIndexingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6281, 2277, 11159, 12, 514, 6612, 16, 514, 25496, 16, 514, 1177, 16, 514, 1544, 16, 4766, 5411, 514, 1982, 559, 262, 3639, 1216, 1185, 565, 288, 3639, 6281, 2277, 3538, 2277, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6281, 2277, 11159, 12, 514, 6612, 16, 514, 25496, 16, 514, 1177, 16, 514, 1544, 16, 4766, 5411, 514, 1982, 559, 262, 3639, 1216, 1185, 565, 288, 3639, 6281, 2277, 3538, 2277, 273, ...
HttpServletResponse response) throws FenixActionException, FenixFilterException {
HttpServletResponse response) throws FenixActionException, FenixServiceException, FenixFilterException {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); Object[] args = { userView.getUtilizador() }; List allInfoExecutionCourses = null; try { allInfoExecutionCourses = (List) ServiceUtils.executeService(userView, "ReadEnroledExecutionCourses", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } List infoExecutionCourses = new ArrayList(); if (allInfoExecutionCourses.size() != 0) { infoExecutionCourses.add(new LabelValueBean("[Escolha a Disciplina]", "")); Iterator iter = allInfoExecutionCourses.iterator(); String label, value; while (iter.hasNext()) { InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) iter.next(); value = infoExecutionCourse.getIdInternal().toString(); label = infoExecutionCourse.getNome(); infoExecutionCourses.add(new LabelValueBean(label, value)); } } request.setAttribute("infoExecutionCourses", infoExecutionCourses); return mapping.findForward("sucess"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b7f726134ce029e2dca438e00666d8a9a42fc1cd/ViewEnroledExecutionCoursesAction.java/buggy/src/ServidorApresentacao/Action/student/ViewEnroledExecutionCoursesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 15133, 16, 478, 275, 697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 15133, 16, 478, 275, 697, ...
} else if(charTable.containsKey(new Character(c))){ sb.append('&').append((String) charTable.get(new Character(c))).append(';'); }else
} else if(charTable.containsKey(c)){ sb.append('&'); sb.append(charTable.get(c)); sb.append(';'); } else{
public static String encode(String s) { int n = s.length(); StringBuffer sb = new StringBuffer(n); for (int i = 0; i < n; i++) { char c = s.charAt(i); if(Character.isLetterOrDigit(c)){ //only special characters need checking sb.append(c); } else if(charTable.containsKey(new Character(c))){ sb.append('&').append((String) charTable.get(new Character(c))).append(';'); }else sb.append(c); } return sb.toString(); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/e34fd1c94d89a24695f666d5d231c8ddb97022ac/HTMLEncoder.java/clean/src/freenet/support/HTMLEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2017, 12, 780, 272, 13, 288, 202, 202, 474, 290, 273, 272, 18, 2469, 5621, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 82, 1769, 202, 202, 1884, 261, 474, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2017, 12, 780, 272, 13, 288, 202, 202, 474, 290, 273, 272, 18, 2469, 5621, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 82, 1769, 202, 202, 1884, 261, 474, 277, ...
if (output_rowset_nr < 0) {
if (output_rowset_nr < 0) {
public synchronized void putRowTo(Row row, String to) throws KettleStepException { output_rowset_nr = findOutputRowSetNumber(stepname, getCopy(), to, 0); if (output_rowset_nr < 0) { // // No rowset found: normally it can't happen: // we deleted the rowset because it was // finished // throw new KettleStepException(Messages.getString("BaseStep.Exception.UnableToFindRowset",to)); //$NON-NLS-1$ //$NON-NLS-2$ } putRowTo(row, output_rowset_nr); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/82f517dadfef099f4d5dcbaf1f1676a345fa6d79/BaseStep.java/buggy/src/be/ibridge/kettle/trans/step/BaseStep.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1378, 1999, 774, 12, 1999, 1027, 16, 514, 358, 13, 1216, 1475, 278, 5929, 4160, 503, 565, 288, 3639, 876, 67, 492, 542, 67, 11611, 273, 1104, 1447, 1999, 694, 1854, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1378, 1999, 774, 12, 1999, 1027, 16, 514, 358, 13, 1216, 1475, 278, 5929, 4160, 503, 565, 288, 3639, 876, 67, 492, 542, 67, 11611, 273, 1104, 1447, 1999, 694, 1854, 12,...
public char[][] getQualifiedNameCharArray() throws DOMException { return null;
public char[][] getQualifiedNameCharArray() { return CPPVisitor.getQualifiedNameCharArray( this );
public char[][] getQualifiedNameCharArray() throws DOMException { // TODO Auto-generated method stub return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/220206d7e9ee657637fc444e850a9db387e7298c/CPPSpecialization.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSpecialization.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1149, 63, 6362, 65, 26661, 15936, 1435, 1216, 4703, 503, 288, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1149, 63, 6362, 65, 26661, 15936, 1435, 1216, 4703, 503, 288, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -10...
IConfiguration config = getDefaultConfiguration((ITarget)targ); if (config != null) { defaultConfigs.append(targ.getId()); defaultConfigs.append(MINOR_SEPERATOR); defaultConfigs.append(config.getId()); defaultConfigs.append(MAJOR_SEPERATOR); }
public void serialize(Document doc, Element element) { // Create a buffer of the default configuration IDs StringBuffer defaultConfigs = new StringBuffer(); // Write out each target and their default config Iterator iter = targetList.listIterator(); while (iter.hasNext()) { // Get the target Target targ = (Target)iter.next(); // Create an XML element to hold the target settings Element targetElement = doc.createElement(ITarget.TARGET_ELEMENT_NAME); element.appendChild(targetElement); targ.serialize(doc, targetElement); // Persist the default target configuration pair as <targ_ID>::<conf_ID> IConfiguration config = getDefaultConfiguration((ITarget)targ); if (config != null) { defaultConfigs.append(targ.getId()); defaultConfigs.append(MINOR_SEPERATOR); defaultConfigs.append(config.getId()); defaultConfigs.append(MAJOR_SEPERATOR); } } /* for (int i = 0; i < targets.size(); ++i) { Element targetElement = doc.createElement(ITarget.TARGET_ELEMENT_NAME); element.appendChild(targetElement); ((Target)targets.get(i)).serialize(doc, targetElement); IConfiguration config = getDefaultConfiguration((ITarget)targets.get(i)); if (config != null) { Element configEl = doc.createElement(DEFAULT_CONFIGURATION); element.appendChild(configEl); configEl.setAttribute(IConfiguration.ID, config.getId()); } }*/ // Persist the default target as a project setting IProject project = (IProject) getOwner(); ITarget defTarget = getDefaultTarget(); if (defTarget != null){ try { project.setPersistentProperty(defaultTargetProperty, defTarget.getId()); } catch (CoreException e) { // There is no point in storing the default configurations return; } } try { // Persist the default configurations project.setPersistentProperty(defaultConfigProperty, defaultConfigs.toString().trim()); } catch (CoreException e) { // Too bad } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1661bb802280c66eb06adca1ff4d5b1bdbabccc2/ManagedBuildInfo.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4472, 12, 2519, 997, 16, 3010, 930, 13, 288, 202, 202, 759, 1788, 279, 1613, 434, 326, 805, 1664, 7115, 202, 202, 780, 1892, 805, 8062, 273, 394, 6674, 5621, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4472, 12, 2519, 997, 16, 3010, 930, 13, 288, 202, 202, 759, 1788, 279, 1613, 434, 326, 805, 1664, 7115, 202, 202, 780, 1892, 805, 8062, 273, 394, 6674, 5621, 9506, 202, ...
else { while (splitPoint>start) { char c = input.charAt(splitPoint); Matcher m = p.matcher(""+c); if (m.matches()) break; splitPoint--; } if (splitPoint==start) splitPoint = start+width; }
if (splitPoint==start) splitPoint = start+width;
public static String[] writeWordWrap(String input, String sepRegex, int width) { List lines = new ArrayList(); Pattern p = Pattern.compile(sepRegex); int start = 0; while (start < input.length()) { if (input.charAt(start)=='\n') start++; //go from start+width int splitPoint = start+width; // easy case if (splitPoint > input.length()) splitPoint=input.length(); else { //if has newline before end, use it int newline = input.indexOf('\n',start); if (newline>start && newline<splitPoint) { splitPoint = newline; } //if not match sep, find splitPoint first point that does (min=start) else { while (splitPoint>start) { char c = input.charAt(splitPoint); Matcher m = p.matcher(""+c); if (m.matches()) break; splitPoint--; } //if ended up at splitPoint=start, splitPoint=start+width if (splitPoint==start) splitPoint = start+width; } } //output chunk from start to splitPoint lines.add(input.substring(start, splitPoint).trim()); //start = splitPoint start=splitPoint; } return (String[])lines.toArray(new String[0]); }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/7f6263d48e5e92105519f20f1960eaa5a1562a6b/StringTools.java/buggy/src/org/biojavax/utils/StringTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1045, 3944, 2964, 12, 780, 810, 16, 514, 5478, 6628, 16, 509, 1835, 13, 288, 3639, 987, 2362, 273, 394, 2407, 5621, 3639, 6830, 293, 273, 6830, 18, 11100, 12, 1081...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1045, 3944, 2964, 12, 780, 810, 16, 514, 5478, 6628, 16, 509, 1835, 13, 288, 3639, 987, 2362, 273, 394, 2407, 5621, 3639, 6830, 293, 273, 6830, 18, 11100, 12, 1081...
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArray();
zeroCol = new double[numStates]; zeroECol = new double[getDotStatesIndex()]; for (int i = 0; i < zeroCol.length; ++i) { zeroCol[i] = Double.NEGATIVE_INFINITY; } for (int i = 0; i < zeroECol.length; i++) { zeroECol[i] = Double.NEGATIVE_INFINITY; }
public BackMatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length; zeroCol = new double[numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArray(); pos = new int[2]; pos[0] = seq1.length() + 1; pos[1] = seq2.length() + 1; seqs = new ResidueList[2]; seqs[0] = seq1; seqs[1] = seq2; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/dc7b3edc7f85e7b94903a263787fdbfcd26d71e3/PairwiseDP.java/buggy/src/org/biojava/bio/dp/PairwiseDP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4297, 4635, 4154, 8640, 6688, 12, 607, 23965, 682, 3833, 21, 16, 9506, 377, 1124, 23965, 682, 3833, 22, 16, 9506, 377, 8599, 8640, 4635, 3148, 13, 288, 202, 2107, 7629, 273, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4297, 4635, 4154, 8640, 6688, 12, 607, 23965, 682, 3833, 21, 16, 9506, 377, 1124, 23965, 682, 3833, 22, 16, 9506, 377, 8599, 8640, 4635, 3148, 13, 288, 202, 2107, 7629, 273, 3148, ...
ObjectInputStream objectInputStream=
ObjectInputStream objectInputStream =
public void run() { while ( registration.runThread ) { try { Socket clientSocket = registration.serverSocket.accept(); ObjectInputStream objectInputStream= new ObjectInputStream( clientSocket.getInputStream() ); try { while ( registration.runThread ) { LogEvent logEvent = ( LogEvent ) objectInputStream.readObject(); target.processEvent( logEvent ); } } catch ( Exception e ) {} } catch ( Exception e ) {} } };
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b202206daf5b02a0cc0966d3c4ccad1fb439ea66/LogConfiguration.java/buggy/src/org/jacorb/notification/util/LogConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 12900, 1071, 918, 1086, 1435, 7682, 288, 11794, 1323, 261, 7914, 18, 2681, 3830, 262, 11794, 288, 4766, 775, 4766, 288, 19694, 8758, 1004, 4534, 273, 29159, 7914, 18, 3567, 4534, 18, 9436, 5621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 12900, 1071, 918, 1086, 1435, 7682, 288, 11794, 1323, 261, 7914, 18, 2681, 3830, 262, 11794, 288, 4766, 775, 4766, 288, 19694, 8758, 1004, 4534, 273, 29159, 7914, 18, 3567, 4534, 18, 9436, 5621,...
UIUtil.bindHelp( parent,IHelpContextIds.GROUP_DIALOG_ID );
UIUtil.bindHelp( parent, IHelpContextIds.GROUP_DIALOG_ID );
protected Control createDialogArea( Composite parent ) { // Assert.isNotNull( dataSetList ); Composite topComposite = (Composite) super.createDialogArea( parent ); createTitleArea( topComposite ); Composite composite = new Composite( topComposite, SWT.NONE ); composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); composite.setLayout( new GridLayout( 2, true ) ); createFieldArea( composite ); createGroupArea( composite ); createTOCArea( composite ); createFilterSortingArea( topComposite ); UIUtil.bindHelp( parent,IHelpContextIds.GROUP_DIALOG_ID ); return topComposite; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8062f646e1bfa2a19213849ca49e5be100056a20/GroupDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 5452, 18, 291, 5962, 12, 14837, 682, 11272, 202, 202, 9400, 1760, 9400, 273, 261, 9400, 13, 2240, 18, 2640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 5452, 18, 291, 5962, 12, 14837, 682, 11272, 202, 202, 9400, 1760, 9400, 273, 261, 9400, 13, 2240, 18, 2640...
this.graphics = graphics;
public DebugGraphics(Graphics graphics) { this.graphics = graphics; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4015, 17558, 12, 17558, 17313, 13, 225, 288, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4015, 17558, 12, 17558, 17313, 13, 225, 288, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public User getUser( String loginName) {
public User getUser( String loginName ) {
public User getUser( String loginName) { loginName = loginName.trim(); User result = null; String[] user_data = service.sqlProcedure( "GetUserByLogin", new String[]{loginName} ); // if resultSet > 0 a result is found if( user_data.length > 0 ) { result = staticExtractUserFromStringArray( user_data ); if (null == result.getLangPrefix()) { result.setLangPrefix(service.getLanguage()) ; } String[][] phoneNbr = service.sqlProcedureMulti( "GetUserPhoneNumbers " + user_data[0] ); String workPhone = ""; String mobilePhone = ""; String homePhone = ""; if( phoneNbr != null ) { for( int i = 0; i < phoneNbr.length; i++ ) { if( ("2").equals( phoneNbr[i][3] ) ) { workPhone = phoneNbr[i][1]; } else if( ("3").equals( phoneNbr[i][3] ) ) { mobilePhone = phoneNbr[i][1]; } else if( ("1").equals( phoneNbr[i][3] ) ) { homePhone = phoneNbr[i][1]; } } } result.setWorkPhone( workPhone ); result.setMobilePhone( mobilePhone ); result.setHomePhone( homePhone ); } else { mainLog.info( "->User " + (loginName) + " tried to logged in: User not found!" ); result = null; } return result; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6178cec25ebf2f8a8572d75f4d29d3b552383539/ImcmsAuthenticatorAndUserMapper.java/clean/server/src/imcode/server/user/ImcmsAuthenticatorAndUserMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2177, 4735, 12, 514, 3925, 461, 262, 288, 1377, 3925, 461, 273, 3925, 461, 18, 5290, 5621, 1377, 2177, 563, 273, 446, 31, 1377, 514, 8526, 729, 67, 892, 273, 1156, 18, 4669, 17213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2177, 4735, 12, 514, 3925, 461, 262, 288, 1377, 3925, 461, 273, 3925, 461, 18, 5290, 5621, 1377, 2177, 563, 273, 446, 31, 1377, 514, 8526, 729, 67, 892, 273, 1156, 18, 4669, 17213...
writeEnd(ElementTags.SECTION);
writeEnd(HtmlTags.DIV);
private void write(Element element, int indent) throws IOException { switch(element.type()) { case Element.CHUNK: { Chunk chunk = (Chunk) element; // if the chunk contains an image, return the image representation try { Image image = chunk.getImage(); write(image, indent); return; } catch(NullPointerException npe) { } HashMap attributes = chunk.getAttributes(); if (chunk.font().isStandardFont() && attributes == null) { addTabs(indent); write(HtmlEncoder.encode(chunk.content())); os.write(NEWLINE); return; } else { if (attributes != null && attributes.get(Chunk.NEWPAGE) != null) { return; } addTabs(indent); writeStart(HtmlTags.CHUNK); if (! chunk.font().isStandardFont()) { write(chunk.font()); } os.write(GT); writeFontStyleStart(chunk.font().style()); if (attributes != null && attributes.get(Chunk.SUBSUPSCRIPT) != null) { if (((Float)attributes.get(Chunk.SUBSUPSCRIPT)).floatValue() > 0) { writeStart(HtmlTags.SUP); } else { writeStart(HtmlTags.SUB); } os.write(GT); } write(HtmlEncoder.encode(chunk.content())); if (attributes != null && attributes.get(Chunk.SUBSUPSCRIPT) != null) { os.write(LT); os.write(FORWARD); if (((Float)attributes.get(Chunk.SUBSUPSCRIPT)).floatValue() > 0) { write(HtmlTags.SUP); } else { write(HtmlTags.SUB); } os.write(GT); } writeFontStyleEnd(chunk.font().style()); writeEnd(HtmlTags.CHUNK); } return; } case Element.PHRASE: { Phrase phrase = (Phrase) element; addTabs(indent); writeStart(HtmlTags.PHRASE); write(phrase.font()); os.write(GT); if (phrase.font().style() != Font.UNDEFINED && phrase.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleStart(phrase.font().style()); os.write(NEWLINE); } os.write(NEWLINE); for (Iterator i = phrase.iterator(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } if (phrase.font().style() != Font.UNDEFINED && phrase.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleEnd(phrase.font().style()); os.write(NEWLINE); } addTabs(indent); writeEnd(HtmlTags.PHRASE); return; } case Element.ANCHOR: { Anchor anchor = (Anchor) element; addTabs(indent); writeStart(HtmlTags.ANCHOR); if (anchor.name() != null) { write(HtmlTags.NAME, anchor.name()); } if (anchor.reference() != null) { write(HtmlTags.REFERENCE, anchor.reference()); } os.write(GT); os.write(NEWLINE); if (!anchor.font().isStandardFont()) { addTabs(indent); writeStart(HtmlTags.PHRASE); write(anchor.font()); os.write(GT); os.write(NEWLINE); } if (anchor.font().style() != Font.UNDEFINED && anchor.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleStart(anchor.font().style()); os.write(NEWLINE); } for (Iterator i = anchor.iterator(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } if (anchor.font().style() != Font.UNDEFINED && anchor.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleEnd(anchor.font().style()); os.write(NEWLINE); } if (!anchor.font().isStandardFont()) { addTabs(indent); writeEnd(HtmlTags.PHRASE);; } addTabs(indent); writeEnd(HtmlTags.ANCHOR); return; } case Element.PARAGRAPH: { Paragraph paragraph = (Paragraph) element; addTabs(indent); writeStart(HtmlTags.PARAGRAPH); write(HtmlTags.ALIGN, HtmlEncoder.getAlignment(paragraph.alignment())); os.write(GT); os.write(NEWLINE); if (!paragraph.font().isStandardFont()) { addTabs(indent); writeStart(HtmlTags.PHRASE); write(paragraph.font()); os.write(GT); os.write(NEWLINE); } if (paragraph.font().style() != Font.UNDEFINED && paragraph.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleStart(paragraph.font().style()); os.write(NEWLINE); } for (Iterator i = paragraph.iterator(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } if (paragraph.font().style() != Font.UNDEFINED && paragraph.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleEnd(paragraph.font().style()); os.write(NEWLINE); } if (!paragraph.font().isStandardFont()) { addTabs(indent); writeEnd(HtmlTags.PHRASE); } addTabs(indent); writeEnd(HtmlTags.PARAGRAPH); return; } case Element.SECTION: case Element.CHAPTER: { Section section = (Section) element; addTabs(indent); writeStart(ElementTags.SECTION); writeSection(section, indent); writeEnd(ElementTags.SECTION); return; } case Element.LIST: { List list = (List) element; addTabs(indent); if (list.isNumbered()) { writeStart(HtmlTags.ORDEREDLIST); } else { writeStart(HtmlTags.UNORDEREDLIST); } os.write(GT); os.write(NEWLINE); for (Iterator i = list.getItems().iterator(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } addTabs(indent); if (list.isNumbered()) { writeEnd(HtmlTags.ORDEREDLIST); } else { writeEnd(HtmlTags.UNORDEREDLIST); } return; } case Element.LISTITEM: { ListItem listItem = (ListItem) element; addTabs(indent); writeStart(HtmlTags.LISTITEM); os.write(GT); os.write(NEWLINE); if (!listItem.font().isStandardFont()) { addTabs(indent); writeStart(HtmlTags.PHRASE); write(listItem.font()); os.write(GT); os.write(NEWLINE); } if (listItem.font().style() != Font.UNDEFINED && listItem.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleStart(listItem.font().style()); os.write(NEWLINE); } for (Iterator i = listItem.iterator(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } if (listItem.font().style() != Font.UNDEFINED && listItem.font().style() != Font.NORMAL) { addTabs(indent); writeFontStyleEnd(listItem.font().style()); os.write(NEWLINE); } if (!listItem.font().isStandardFont()) { addTabs(indent); writeEnd(HtmlTags.PHRASE); } addTabs(indent); writeEnd(HtmlTags.LISTITEM); return; } case Element.CELL: { Cell cell = (Cell) element; addTabs(indent); if (cell.header()) { writeStart(HtmlTags.HEADERCELL); } else { writeStart(HtmlTags.CELL); } if (cell.borderWidth() != Rectangle.UNDEFINED) { write(HtmlTags.BORDERWIDTH, String.valueOf(cell.borderWidth())); } if (cell.borderColor() != null) { write(HtmlTags.BORDERCOLOR, HtmlEncoder.encode(cell.borderColor())); } if (cell.backgroundColor() != null) { write(HtmlTags.BACKGROUNDCOLOR, HtmlEncoder.encode(cell.backgroundColor())); } write(HtmlTags.HORIZONTALALIGN, HtmlEncoder.getAlignment(cell.horizontalAlignment())); write(HtmlTags.VERTICALALIGN, HtmlEncoder.getAlignment(cell.verticalAlignment())); if (cell.cellWidth() != null) { write(HtmlTags.WIDTH, cell.cellWidth()); } if (cell.colspan() != 1) { write(HtmlTags.COLSPAN, String.valueOf(cell.colspan())); } if (cell.rowspan() != 1) { write(HtmlTags.ROWSPAN, String.valueOf(cell.rowspan())); } if (cell.noWrap()) { write(HtmlTags.NOWRAP, String.valueOf(true)); } os.write(GT); os.write(NEWLINE); for (Iterator i = cell.getElements(); i.hasNext(); ) { write((Element) i.next(), indent + 1); } addTabs(indent); if (cell.header()) { writeEnd(HtmlTags.HEADERCELL); } else { writeEnd(HtmlTags.CELL); } return; } case Element.ROW: { Row row = (Row) element; addTabs(indent); writeStart(HtmlTags.ROW); os.write(GT); os.write(NEWLINE); Element cell; for (int i = 0; i < row.columns(); i++) { if ((cell = (Element)row.getCell(i)) != null) { write(cell, indent + 1); } } addTabs(indent); writeEnd(HtmlTags.ROW); return; } case Element.TABLE: { Table table = (Table) element; addTabs(indent); writeStart(HtmlTags.TABLE); write(HtmlTags.COLUMNS, String.valueOf(table.columns())); os.write(SPACE); write(HtmlTags.WIDTH); os.write(EQUALS); os.write(QUOTE); if (! "".equals(table.absWidth())){ write(table.absWidth()); } else{ write(String.valueOf(table.widthPercentage())); write("%"); } os.write(QUOTE); write(HtmlTags.ALIGN, HtmlEncoder.getAlignment(table.alignment())); write(HtmlTags.CELLPADDING, String.valueOf(table.cellpadding())); write(HtmlTags.CELLSPACING, String.valueOf(table.cellspacing())); if (table.borderWidth() != Rectangle.UNDEFINED) { write(HtmlTags.BORDERWIDTH, String.valueOf(table.borderWidth())); } if (table.borderColor() != null) { write(HtmlTags.BORDERCOLOR, HtmlEncoder.encode(table.borderColor())); } if (table.backgroundColor() != null) { write(HtmlTags.BACKGROUNDCOLOR, HtmlEncoder.encode(table.backgroundColor())); } os.write(GT); os.write(NEWLINE); Row row; for (Iterator iterator = table.iterator(); iterator.hasNext(); ) { row = (Row) iterator.next(); write(row, indent + 1); } addTabs(indent); writeEnd(HtmlTags.TABLE); return; } case Element.ANNOTATION: { Annotation annotation = (Annotation) element; writeComment(annotation.title() + ": " + annotation.content()); return; } case Element.GIF: case Element.JPEG: case Element.PNG: { Image image = (Image) element; if (image.url() == null) { return; } addTabs(indent); writeStart(HtmlTags.IMAGE); String path = image.url().toString(); if (imagepath != null) { if (path.indexOf("/") > 0) { path = imagepath + path.substring(path.lastIndexOf("/") + 1); } else { path = imagepath + path; } } write(HtmlTags.URL, path); if ((image.alignment() & Image.LEFT) > 0) { write(HtmlTags.ALIGN, HtmlTags.ALIGN_LEFT); } else if ((image.alignment() & Image.RIGHT) > 0) { write(HtmlTags.ALIGN, HtmlTags.ALIGN_RIGHT); } else if ((image.alignment() & Image.MIDDLE) > 0) { write(HtmlTags.ALIGN, HtmlTags.ALIGN_MIDDLE); } if (image.alt() != null) { write(HtmlTags.ALT, image.alt()); } write(HtmlTags.PLAINWIDTH, String.valueOf(image.scaledWidth())); write(HtmlTags.PLAINHEIGHT, String.valueOf(image.scaledHeight())); writeEnd(); return; } default: return; } }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/23af9fcc8766d9bfa8334b03ea13db6c263d4c25/HtmlWriter.java/clean/src/com/lowagie/text/html/HtmlWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12, 1046, 930, 16, 509, 3504, 13, 1216, 1860, 288, 3639, 1620, 12, 2956, 18, 723, 10756, 288, 5411, 648, 3010, 18, 26464, 30, 5411, 288, 7734, 13021, 2441, 273, 261, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12, 1046, 930, 16, 509, 3504, 13, 1216, 1860, 288, 3639, 1620, 12, 2956, 18, 723, 10756, 288, 5411, 648, 3010, 18, 26464, 30, 5411, 288, 7734, 13021, 2441, 273, 261, 55...
System.err.println(messagePrefix + lineSource); System.err.println(messagePrefix + buildIndicator(lineOffset));
err.println(messagePrefix + lineSource); err.println(messagePrefix + buildIndicator(lineOffset));
public void error(String message, String sourceName, int line, String lineSource, int lineOffset) { hasReportedErrorFlag = true; message = formatMessage(message, sourceName, line); System.err.println(messagePrefix + message); if (null != lineSource) { System.err.println(messagePrefix + lineSource); System.err.println(messagePrefix + buildIndicator(lineOffset)); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/de8bedf312b2fad23c19d3781ea5e0b40c31a314/ToolErrorReporter.java/buggy/js/rhino/org/mozilla/javascript/tools/ToolErrorReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 555, 12, 780, 883, 16, 514, 28337, 16, 509, 980, 16, 8227, 514, 980, 1830, 16, 509, 980, 2335, 13, 565, 288, 3639, 711, 426, 1798, 668, 4678, 273, 638, 31, 3639, 883, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 555, 12, 780, 883, 16, 514, 28337, 16, 509, 980, 16, 8227, 514, 980, 1830, 16, 509, 980, 2335, 13, 565, 288, 3639, 711, 426, 1798, 668, 4678, 273, 638, 31, 3639, 883, 273, ...
for (int i = 0; i < nListeners; i++) { if (record.equals(listeners[i])) { return; } } listeners [nListeners++] = record;
listeners.add(record); nListeners = listeners.size();
public final void addEventListener(String type, EventListener listener, boolean useCapture) { if (listeners == null) { listeners = new ListenerRecord[1]; } else if (nListeners == listeners.length) { ListenerRecord[] newListeners = new ListenerRecord[listeners.length + NKIDS_DELTA]; System.arraycopy(listeners, 0, newListeners, 0, nListeners); listeners = newListeners; } // prune duplicates ListenerRecord record; record = new ListenerRecord(type, listener, useCapture); for (int i = 0; i < nListeners; i++) { if (record.equals(listeners[i])) { return; } } listeners [nListeners++] = record; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/19a8732f646579af0546076d9a11f640ab3a1a2f/DomNode.java/buggy/gnu/xml/dom/DomNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 11888, 12, 780, 618, 16, 19694, 22090, 2991, 16, 19694, 1250, 999, 12372, 13, 225, 288, 565, 309, 261, 16072, 422, 446, 13, 1377, 288, 3639, 4679, 273, 394, 10652, 2115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 11888, 12, 780, 618, 16, 19694, 22090, 2991, 16, 19694, 1250, 999, 12372, 13, 225, 288, 565, 309, 261, 16072, 422, 446, 13, 1377, 288, 3639, 4679, 273, 394, 10652, 2115, ...
throw new RuntimeException("Failed to set value with method " + myMethod + " on " + _instance + ".");
throw new RuntimeException("Failed to set value with method " + myMethod + " on " + _instance + ".", t);
public void setValue(Object _instance, Object _value) { try { myMethod.invoke(_instance, new Object[] { _value }); } catch (Throwable t) { throw new RuntimeException("Failed to set value with method " + myMethod + " on " + _instance + "."); } }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/0b3371f9954f17403da5e25363e71350cc422d19/MethodKey.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/kvc/MethodKey.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5524, 12, 921, 389, 1336, 16, 1033, 389, 1132, 13, 288, 565, 775, 288, 1377, 3399, 1305, 18, 14407, 24899, 1336, 16, 394, 1033, 8526, 288, 389, 1132, 15549, 565, 289, 565, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5524, 12, 921, 389, 1336, 16, 1033, 389, 1132, 13, 288, 565, 775, 288, 1377, 3399, 1305, 18, 14407, 24899, 1336, 16, 394, 1033, 8526, 288, 389, 1132, 15549, 565, 289, 565, 10...
SVNStatus status = createStatus(path, file, dir, parentEntry, entry, false, fileType, Collections.unmodifiableMap(entry.asMap()));
SVNStatus status = createStatus(entry.getURL(), file, dir, parentEntry, entry, false, fileType, Collections.unmodifiableMap(entry.asMap()));
private void sendVersionedStatus(SVNDirectory dir, String name) throws SVNException { File file; SVNEntry parentEntry; SVNDirectory parentDir = null; SVNEntry entry = dir.getEntries().getEntry(name, true); String path = null; if (entry.isDirectory() && !"".equals(name)) { DebugLog.log("fetching parent dir 0"); // we are in the parent dir, with 'short' entry parentDir = dir; dir = dir.getChildDirectory(name); if (dir == null) { // why no through wc access??? dir = new SVNDirectory(myWCAccess, "".equals(parentDir.getPath()) ? name : PathUtil.append(parentDir.getPath(), name), parentDir.getFile(name, false)); } SVNEntry fullEntry = dir.getEntries().getEntry("", false); if (fullEntry != null) { entry = fullEntry; } path = dir.getPath(); } else if (entry.isDirectory() && "".equals(name)) { DebugLog.log("fetching parent dir 1"); // we are in the dir itself already, try to get parent dir. path = dir.getPath(); if (!"".equals(dir.getPath())) { // there is parent dir String parentPath = PathUtil.removeTail(dir.getPath()); parentDir = myWCAccess.getDirectory(parentPath); } else { // it is a root of wc. parentDir = null; } } else if (entry.isFile()) { // it is a file, dir and parentDir are the same. DebugLog.log("fetching parent dir 2"); parentDir = dir; path = "".equals(dir.getPath()) ? name : PathUtil.append(dir.getPath(), name); } SVNEntry entryInParent = entry; DebugLog.log("lock path: " + path); // we have to use url for lock path, not wc path!!! DebugLog.log("found parent dir: " + parentDir.getRoot()); DebugLog.log("our dir: " + dir.getRoot()); if (entry != null) { DebugLog.log("our entry: " + entry.asMap()); } if (dir == parentDir) { file = dir.getFile(name, false); entry = dir.getEntries().getEntry(name, true); parentEntry = dir.getEntries().getEntry("", true); } else { file = dir.getRoot(); entry = dir.getEntries().getEntry("", true); if (entry == null) { // probably missing dir. entry = entryInParent; dir = parentDir; } parentEntry = parentDir != null ? parentDir.getEntries().getEntry("", true) : null; } if (parentEntry != null) { DebugLog.log("parent entry: " + parentEntry.asMap()); } SVNFileType fileType = SVNFileType.getType(file); DebugLog.log("passing as entry: " + entry.asMap()); if (parentEntry != null) { DebugLog.log("passing as parent entry: " + parentEntry.asMap()); } SVNStatus status = createStatus(path, file, dir, parentEntry, entry, false, fileType, Collections.unmodifiableMap(entry.asMap())); if (status != null) { myHandler.handleStatus(status); } }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/f51922f479ef91eb9ae047d5c29430b1eade7a16/SVNStatusEditor.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNStatusEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 23676, 1482, 12, 23927, 50, 2853, 1577, 16, 514, 508, 13, 1216, 29537, 50, 503, 288, 3639, 1387, 585, 31, 3639, 29537, 50, 1622, 982, 1622, 31, 3639, 29537, 50, 2853, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 23676, 1482, 12, 23927, 50, 2853, 1577, 16, 514, 508, 13, 1216, 29537, 50, 503, 288, 3639, 1387, 585, 31, 3639, 29537, 50, 1622, 982, 1622, 31, 3639, 29537, 50, 2853, 9...
DimensionView channelView = connection.createDimensionView(); channelView.setDimension(getDimension(salesCube, "Promotions" /*"Channel"*/)); DimensionView productView = connection.createDimensionView(); productView.setDimension(getDimension(salesCube, "Product")); DimensionView geographyView = connection.createDimensionView(); geographyView.setDimension(getDimension(salesCube, "Gender" /*"Geography"*/)); DimensionView timeView = connection.createDimensionView(); timeView.setDimension(getDimension(salesCube, "Marital Status"/*"Time"*/)); MeasureView measView = connection.createMeasureView();
final Dimension channel = getDimension(salesCube, "Promotions" /*"Channel"*/); DimensionView channelView = connection.createDimensionView(channel); final Dimension prod = getDimension(salesCube, "Product"); DimensionView productView = connection.createDimensionView(prod); final Dimension geog = getDimension(salesCube, "Gender" /*"Geography"*/); DimensionView geographyView = connection.createDimensionView(geog); final Dimension time = getDimension(salesCube, "Marital Status"/*"Time"*/); DimensionView timeView = connection.createDimensionView(time); final Dimension meas = getDimension(salesCube, "Measures"); MeasureView measView = (MeasureView) connection.createDimensionView(meas);
private CubeCursor foo() throws OLAPException { // Create a DimensionView for each dimension Connection connection = getConnection(); Cube salesCube = getCube(connection, "Sales"); DimensionView channelView = connection.createDimensionView(); channelView.setDimension(getDimension(salesCube, "Promotions" /*"Channel"*/)); DimensionView productView = connection.createDimensionView(); productView.setDimension(getDimension(salesCube, "Product")); DimensionView geographyView = connection.createDimensionView(); geographyView.setDimension(getDimension(salesCube, "Gender" /*"Geography"*/)); DimensionView timeView = connection.createDimensionView(); timeView.setDimension(getDimension(salesCube, "Marital Status"/*"Time"*/)); MeasureView measView = connection.createMeasureView(); // jhyde added CubeView query = connection.createCubeView(salesCube); // Create a columns edge and add the time and geography views //EdgeView columns = connection.createEdgeView(); EdgeView columns = query.createOrdinateEdge(); columns.addDimensionView(timeView); columns.addDimensionView(geographyView); // Create a rows edge and add the product view //EdgeView rows = connection.createEdgeView(); EdgeView rows = query.createOrdinateEdge(); rows.addDimensionView(productView); // Create a pages edge and add the channel dimension view //EdgeCursor pages = connection.createDimensionView(); EdgeView pages = query.createPageEdge(); pages.addDimensionView(channelView); pages.addDimensionView(measView); // Create the query cube view and add edges and the measure //CubeView query = connection.createCubeView(); //query.addOrdinateEdge(rows); //query.addOrdinateEdge(columns); //query.addPageEdge(pages); CubeCursor dataCursor = query.createCursor(); //EdgeCursor pageCursor=(List)dataCursor.getPageEdge().elementAt(0); EdgeCursor pageCursor=(EdgeCursor) dataCursor.getPageEdge().iterator().next(); //EdgeCursor rowCursor=(List)dataCursor.getOrdinateEdge().elementAt(0); EdgeCursor columnCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(0); EdgeCursor rowCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(1); DimensionCursor measureCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(0); DimensionCursor channelCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(1); DimensionCursor productCursor = (DimensionCursor) rowCursor.getDimensionCursor().get(0); DimensionCursor geographyCursor =(DimensionCursor) columnCursor.getDimensionCursor().get(0); DimensionCursor timeCursor = (DimensionCursor) columnCursor.getDimensionCursor().get(1); columnCursor.setFetchSize(6); rowCursor.setFetchSize(4); return dataCursor; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/7d6a0c3d02156aab207b5017ce3ba65883fef640/JolapTest.java/clean/src/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 385, 4895, 6688, 8431, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 759, 1788, 279, 13037, 1767, 364, 1517, 4968, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 39, 4895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 385, 4895, 6688, 8431, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 759, 1788, 279, 13037, 1767, 364, 1517, 4968, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 39, 4895, ...
AbstractConnectorUi connectorUi = TasksUiPlugin.getRepositoryManager().getRepositoryConnectorUi(
AbstractRepositoryUi connectorUi = TasksUiPlugin.getRepositoryManager().getRepositoryUi(
public void setVisible(boolean visible) { if (firstView) { List<TaskRepository> repositories = TasksUiPlugin.getRepositoryManager().getAllRepositories(); List<TaskRepository> searchableRepositories = new ArrayList<TaskRepository>(); for (TaskRepository repository : repositories) { AbstractConnectorUi connectorUi = TasksUiPlugin.getRepositoryManager().getRepositoryConnectorUi( repository.getKind()); if (connectorUi != null && connectorUi.hasSearchPage()) { searchableRepositories.add(repository); } } String[] repositoryUrls = new String[searchableRepositories.size()]; int i = 0; int indexToSelect = 0; for (Iterator<TaskRepository> iter = searchableRepositories.iterator(); iter.hasNext();) { TaskRepository currRepsitory = iter.next(); if (repository != null && repository.equals(currRepsitory)) { indexToSelect = i; } repositoryUrls[i] = currRepsitory.getUrl(); i++; } IDialogSettings settings = getDialogSettings(); if (repositoryCombo != null) { repositoryCombo.setItems(repositoryUrls); if (repositoryUrls.length == 0) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), TITLE_REPOSITORY_SEARCH, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); } else { String selectRepo = settings.get(STORE_REPO_ID); if (selectRepo != null && repositoryCombo.indexOf(selectRepo) > -1) { repositoryCombo.select(repositoryCombo.indexOf(selectRepo)); repository = TasksUiPlugin.getRepositoryManager().getRepository(repositoryCombo.getText()); if (repository == null) { // TODO: Display no repository error // repository = // TasksUiPlugin.getRepositoryManager().getDefaultRepository( // BugzillaCorePlugin.REPOSITORY_KIND); } } else { repositoryCombo.select(indexToSelect); } // TODO: Create one page per connector and repopulate based // on // repository queryPages = new AbstractRepositoryQueryPage[repositoryUrls.length]; displayQueryPage(repositoryCombo.getSelectionIndex()); // updateAttributesFromRepository(repositoryCombo.getText(), // null, false); } } firstView = false; } if(queryPages == null) { pageContainer.setPerformActionEnabled(false); } super.setVisible(visible); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/cf0b994bf1db9c3d120f04e07595d8f6cec4520f/RepositorySearchPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/RepositorySearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16697, 12, 6494, 6021, 13, 288, 202, 202, 430, 261, 3645, 1767, 13, 288, 1082, 202, 682, 32, 2174, 3305, 34, 14531, 273, 20350, 13943, 3773, 18, 588, 3305, 1318, 7675, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16697, 12, 6494, 6021, 13, 288, 202, 202, 430, 261, 3645, 1767, 13, 288, 1082, 202, 682, 32, 2174, 3305, 34, 14531, 273, 20350, 13943, 3773, 18, 588, 3305, 1318, 7675, 58...
case Token.REF_CALL :
private static int bytecodeSpan(int bytecode) { switch (bytecode) { case Token.THROW : // source line return 1 + 2; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : case Icode_IFEQ_POP : case Icode_LEAVEDQ : // target pc offset return 1 + 2; case Icode_CALLSPECIAL : // call type // is new // line number return 1 + 1 + 1 + 2; case Token.CALL : case Token.NEW : case Token.REF_CALL : // index of potential function name for debugging return 1 + 2; case Icode_VAR_INC_DEC: case Icode_NAME_INC_DEC: case Icode_PROP_INC_DEC: case Icode_ELEM_INC_DEC: case Icode_REF_INC_DEC: // type of ++/-- return 1 + 1; case Icode_SHORTNUMBER : // short number return 1 + 2; case Icode_INTNUMBER : // int number return 1 + 4; case Icode_REG_IND1: // ubyte index return 1 + 1; case Icode_REG_IND2: // ushort index return 1 + 2; case Icode_REG_IND4: // int index return 1 + 4; case Icode_REG_STR1: // ubyte string index return 1 + 1; case Icode_REG_STR2: // ushort string index return 1 + 2; case Icode_REG_STR4: // int string index return 1 + 4; case Icode_GETVAR1: case Icode_SETVAR1: // byte var index return 1 + 1; case Icode_LINE : // line number return 1 + 2; } if (!validBytecode(bytecode)) throw Kit.codeBug(); return 1; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/11ce08544db8e939610fd279089ebe3b0ecc910a/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 22801, 6952, 12, 474, 22801, 13, 565, 288, 3639, 1620, 261, 1637, 16651, 13, 288, 5411, 648, 3155, 18, 2455, 11226, 294, 7734, 368, 1084, 980, 7734, 327, 404, 397, 576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 22801, 6952, 12, 474, 22801, 13, 565, 288, 3639, 1620, 261, 1637, 16651, 13, 288, 5411, 648, 3155, 18, 2455, 11226, 294, 7734, 368, 1084, 980, 7734, 327, 404, 397, 576, ...