rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count);
|
stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg);
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + slot]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_LOAD_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_LOAD_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_LOAD_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; continue Loop; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; continue Loop; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_AND_THIS : { boolean skipGetThis = (0 != iCode[pc]); stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, skipGetThis); ++pc; continue Loop; } case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; continue Loop; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; continue Loop; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; continue Loop; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; continue Loop; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/322032e9bdde8c45b3a5e17221474a0b17f7034b/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
NumberExpander.expandLetters(tokenVal, wordRelation);
|
NumberExpander.expandLetters(tokenVal, wordRelation,tokenItem);
|
private void tokenToWords(WordRelation wordRelation, Item tokenItem, String tokenVal) { FeatureSet tokenFeatures = tokenItem.getFeatures(); String itemName = tokenFeatures.getString("name"); int tokenLength = tokenVal.length(); if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenItem, tokenVal); } else if ((tokenVal.equals("a") || tokenVal.equals("A")) && ((tokenItem.getNext() == null) || !(tokenVal.equals(itemName)) || !(((String) tokenItem .findFeature("punc")).equals("")))) { /* if A is a sub part of a token, then its ey not ah */ wordRelation.addWord(tokenItem, "_a"); } else if (matches(alphabetPattern, tokenVal)) { if (matches(romanNumbersPattern, tokenVal)) { /* XVIII */ romanToWords(tokenVal); } else if (matches(illionPattern, tokenVal) && matches(usMoneyPattern, (String) tokenItem .findFeature("p.name"))) { /* $ X -illion */ wordRelation.addWord(tokenItem, tokenVal); wordRelation.addWord(tokenItem, "dollars"); } else if (matches(drStPattern, tokenVal)) { /* St Andrew's St, Dr King Dr */ drStToWords(tokenVal); } else if (tokenVal.equals("Mr")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord(tokenItem, "mister"); } else if (tokenVal.equals("Mrs")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord(tokenItem, "missus"); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String) tokenItem.findFeature("n.whitespace")) .equals(" ") && isUppercaseLetter(((String) tokenItem .findFeature("n.name")).charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord(tokenItem, "_a"); } else { wordRelation.addWord(tokenItem, aaa); } } else if (isStateName(tokenVal)) { /* * The name of a US state isStateName() has already added the * full name of the state, so we're all set. */ } else if (tokenLength > 1 && !isPronounceable(tokenVal)) { /* Need common exception list */ /* unpronouncable list of alphas */ NumberExpander.expandLetters(tokenVal, wordRelation); } else { /* just a word */ wordRelation.addWord(tokenItem, tokenVal.toLowerCase()); } } else if (matches(dottedAbbrevPattern, tokenVal)) { /* U.S.A. */ // remove all dots String aaa = Utilities.deleteChar(tokenVal, '.'); NumberExpander.expandLetters(aaa, wordRelation); } else if (matches(commaIntPattern, tokenVal)) { /* 99,999,999 */ String aaa = Utilities.deleteChar(tokenVal, ','); NumberExpander.expandReal(aaa, wordRelation); } else if (matches(sevenPhoneNumberPattern, tokenVal)) { /* 234-3434 telephone numbers */ int dashIndex = tokenVal.indexOf('-'); String aaa = tokenVal.substring(0, dashIndex); String bbb = tokenVal.substring(dashIndex + 1); NumberExpander.expandDigits(aaa, wordRelation); wordRelation.addBreak(); NumberExpander.expandDigits(bbb, wordRelation); } else if (matchesPartPhoneNumber(tokenVal)) { /* part of a telephone number */ String punctuation = (String) tokenItem.findFeature("punc"); if (punctuation.equals("")) { tokenItem.getFeatures().setString("punc", ","); } NumberExpander.expandDigits(tokenVal, wordRelation); wordRelation.addBreak(); } else if (matches(numberTimePattern, tokenVal)) { /* 12:35 */ int colonIndex = tokenVal.indexOf(':'); String aaa = tokenVal.substring(0, colonIndex); String bbb = tokenVal.substring(colonIndex + 1); NumberExpander.expandNumber(aaa, wordRelation); if (!(bbb.equals("00"))) { NumberExpander.expandID(bbb, wordRelation); } } else if (matches(digits2DashPattern, tokenVal)) { /* 999-999-999 */ digitsDashToWords(wordRelation, tokenVal); } else if (matches(digitsPattern, tokenVal)) { digitsToWords(tokenVal); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String) tokenItem.findFeature("n.whitespace")).equals(" ") && isUppercaseLetter(((String) tokenItem.findFeature("n.name")) .charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord(tokenItem, "_a"); } else { wordRelation.addWord(tokenItem, aaa); } } else if (matches(doublePattern, tokenVal)) { NumberExpander.expandReal(tokenVal, wordRelation); } else if (matches(ordinalPattern, tokenVal)) { /* explicit ordinals */ String aaa = tokenVal.substring(0, tokenLength - 2); NumberExpander.expandOrdinal(aaa, wordRelation); } else if (matches(usMoneyPattern, tokenVal)) { /* US money */ usMoneyToWords(tokenVal); } else if (tokenLength > 0 && tokenVal.charAt(tokenLength - 1) == '%') { /* Y% */ tokenToWords(wordRelation, tokenItem, tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord(tokenItem, "per"); wordRelation.addWord(tokenItem, "cent"); } else if (matches(numessPattern, tokenVal)) { /* 60s and 7s and 9s */ tokenToWords(wordRelation, tokenItem, tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord(tokenItem, "'s"); } else if (tokenVal.indexOf('\'') != -1) { postropheToWords(tokenVal); } else if (matches(digitsSlashDigitsPattern, tokenVal) && tokenVal.equals(itemName)) { digitsSlashDigitsToWords(tokenVal); } else if (tokenVal.indexOf('-') != -1) { dashToWords(tokenVal); } else if (tokenLength > 1 && !matches(alphabetPattern, tokenVal)) { notJustAlphasToWords(tokenVal); } else { /* just a word */ wordRelation.addWord(tokenItem, tokenVal.toLowerCase()); } }
|
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/460d07833503253a5c476790f8921bd1e3c702a9/TokenToWords.java/clean/java/de/dfki/lt/mary/modules/en/TokenToWords.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1147,
774,
7363,
12,
3944,
3963,
2076,
3963,
16,
4342,
1147,
1180,
16,
5411,
514,
1147,
3053,
13,
288,
3639,
7881,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
3639,
514,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
529,
8863,
3639,
509,
1147,
1782,
273,
1147,
3053,
18,
2469,
5621,
3639,
309,
261,
2316,
8696,
18,
291,
6351,
2932,
844,
5322,
6,
3719,
288,
5411,
2076,
3963,
18,
1289,
3944,
12,
2316,
1180,
16,
1147,
3053,
1769,
3639,
289,
469,
309,
14015,
2316,
3053,
18,
14963,
2932,
69,
7923,
747,
1147,
3053,
18,
14963,
2932,
37,
6,
3719,
7734,
597,
14015,
2316,
1180,
18,
588,
2134,
1435,
422,
446,
13,
13491,
747,
401,
12,
2316,
3053,
18,
14963,
12,
1726,
461,
3719,
747,
401,
12443,
12,
780,
13,
1147,
1180,
13491,
263,
4720,
4595,
2932,
84,
551,
7923,
2934,
14963,
2932,
6,
3719,
3719,
288,
5411,
1748,
309,
432,
353,
279,
720,
1087,
434,
279,
1147,
16,
1508,
2097,
12739,
486,
279,
76,
1195,
5411,
2076,
3963,
18,
1289,
3944,
12,
2316,
1180,
16,
4192,
69,
8863,
3639,
289,
469,
309,
261,
8436,
12,
287,
8907,
3234,
16,
1147,
3053,
3719,
288,
5411,
309,
261,
8436,
12,
520,
304,
10072,
3234,
16,
1147,
3053,
3719,
288,
7734,
1748,
1139,
4136,
6954,
1195,
7734,
24137,
304,
774,
7363,
12,
2316,
3053,
1769,
5411,
289,
469,
309,
261,
8436,
12,
737,
285,
3234,
16,
1147,
3053,
13,
10792,
597,
1885,
12,
407,
23091,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
774,
7363,
12,
3944,
3963,
2076,
3963,
16,
4342,
1147,
1180,
16,
5411,
514,
1147,
3053,
13,
288,
3639,
7881,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
3639,
514,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
529,
8863,
3639,
509,
1147,
1782,
273,
1147,
3053,
18,
2469,
5621,
3639,
309,
261,
2316,
8696,
18,
291,
6351,
2932,
844,
5322,
6,
3719,
288,
5411,
2076,
3963,
18,
1289,
3944,
12,
2316,
1180,
16,
1147,
3053,
1769,
3639,
289,
469,
309,
14015,
2316,
3053,
18,
14963,
2932,
69,
7923,
747,
1147,
3053,
18,
14963,
2932,
37,
6,
3719,
7734,
597,
14015,
2316,
1180,
18,
588,
2134,
1435,
422,
446,
13,
13491,
747,
401,
2
] |
push(fnClassName);
|
aload(contextLocal); addSpecialInvoke(fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Context;)", "V"); if (inFunction) { addByteCode(ByteCode.ALOAD_0); } else { aload(variableObjectLocal); }
|
private void generateFunctionInits(Vector fns) { // make an array to put them in, so they're available // for decompilation. push(fns.size()); addByteCode(ByteCode.ANEWARRAY, "org/mozilla/javascript/NativeFunction"); /* note that nested function decompilation currently * depends on the elements of the nestedFunctions array * being defined in source order. (per function/script, * starting from 0.) Change Parser and NativeFunction if * changing ordering. */ for (short i = 0; i < fns.size(); i++) { addByteCode(ByteCode.DUP); // make another reference to the array push(i); // to set up for aastore at end of loop Node def = (Node) fns.elementAt(i); Codegen codegen = new Codegen(); String fnClassName = codegen.generateCode(def, results, itsNameHelper); // initialize a property by that name, and push the object // as a result if (inFunction) { addByteCode(ByteCode.ALOAD_0); // load "this" argument } else { aload(variableObjectLocal); } push(fnClassName); String str = def.getString(); if (str != null) { push(str); } else { addByteCode(ByteCode.ACONST_NULL); } addByteCode(ByteCode.ALOAD_0); // load 'this' aload(contextLocal); // load 'cx' addScriptRuntimeInvoke("defineFunction", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;" + "Ljava/lang/String;" + "Ljava/lang/Object;" + "Lorg/mozilla/javascript/Context;)", "Lorg/mozilla/javascript/NativeFunction;"); def.putProp(Node.FUNCTION_PROP, new Short(i)); addByteCode(ByteCode.AASTORE); // store NativeFunction // instance to array } // add the array as the nestedFunctions field; array should // still be on the stack. addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.SWAP); // swap with original array reference classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "nestedFunctions", "[Lorg/mozilla/javascript/NativeFunction;"); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3700676b23de6f5e245970aae9264c23d9eb2b4c/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2083,
382,
1282,
12,
5018,
21930,
13,
288,
3639,
368,
1221,
392,
526,
358,
1378,
2182,
316,
16,
1427,
2898,
4565,
2319,
3639,
368,
364,
443,
2919,
6613,
18,
3639,
1817,
12,
74,
2387,
18,
1467,
10663,
3639,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
9220,
2083,
8863,
3639,
1748,
4721,
716,
4764,
445,
443,
2919,
6613,
4551,
540,
380,
10935,
603,
326,
2186,
434,
326,
4764,
7503,
526,
540,
380,
3832,
2553,
316,
1084,
1353,
18,
225,
261,
457,
445,
19,
4263,
16,
540,
380,
5023,
628,
374,
12998,
225,
7576,
6783,
471,
16717,
2083,
309,
540,
380,
12770,
9543,
18,
540,
1195,
3639,
364,
261,
6620,
277,
273,
374,
31,
277,
411,
21930,
18,
1467,
5621,
277,
27245,
288,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
30387,
1769,
368,
1221,
4042,
2114,
358,
326,
526,
5411,
1817,
12,
77,
1769,
5411,
368,
358,
444,
731,
364,
279,
689,
479,
622,
679,
434,
2798,
5411,
2029,
1652,
273,
261,
907,
13,
21930,
18,
2956,
861,
12,
77,
1769,
5411,
3356,
4507,
23198,
273,
394,
3356,
4507,
5621,
5411,
514,
2295,
3834,
273,
23198,
18,
7163,
1085,
12,
536,
16,
1686,
16,
2097,
461,
2276,
1769,
5411,
368,
4046,
279,
1272,
635,
716,
508,
16,
471,
1817,
326,
733,
5411,
368,
225,
487,
279,
563,
5411,
309,
261,
267,
2083,
13,
288,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
2083,
382,
1282,
12,
5018,
21930,
13,
288,
3639,
368,
1221,
392,
526,
358,
1378,
2182,
316,
16,
1427,
2898,
4565,
2319,
3639,
368,
364,
443,
2919,
6613,
18,
3639,
1817,
12,
74,
2387,
18,
1467,
10663,
3639,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
9220,
2083,
8863,
3639,
1748,
4721,
716,
4764,
445,
443,
2919,
6613,
4551,
540,
380,
10935,
603,
326,
2186,
434,
326,
4764,
7503,
526,
540,
380,
3832,
2553,
316,
1084,
1353,
18,
225,
261,
457,
445,
19,
4263,
16,
540,
380,
5023,
628,
374,
12998,
225,
7576,
6783,
471,
16717,
2083,
309,
540,
380,
12770,
9543,
18,
540,
2
] |
int nProductionStartPos = text.lastIndexOf("sp ",caretPos); if (nProductionStartPos == -1) { return null; } int nFirstOpenBrace=text.indexOf('{', nProductionStartPos); if (nFirstOpenBrace == -1) { return null; } int nNumOpenBraces=1; int nCurrentSearchPos=nFirstOpenBrace+1; while (nCurrentSearchPos < text.length() && nNumOpenBraces > 0) { if (text.charAt(nCurrentSearchPos) == '{') { nNumOpenBraces++; } if (text.charAt(nCurrentSearchPos) == '}') { nNumOpenBraces--; } nCurrentSearchPos++; } if (nNumOpenBraces != 0) { return null; } int nProductionEndPos=nCurrentSearchPos; if (nProductionEndPos < caretPos) { return null; } String sProductionString=text.substring(nProductionStartPos, nProductionEndPos); return sProductionString; }
|
int nProductionStartPos = text.lastIndexOf("sp ",caretPos); if (nProductionStartPos == -1) { return null; } int nFirstOpenBrace=text.indexOf('{', nProductionStartPos); if (nFirstOpenBrace == -1) { return null; } int nNumOpenBraces=1; int nCurrentSearchPos=nFirstOpenBrace+1; while (nCurrentSearchPos < text.length() && nNumOpenBraces > 0) { if (text.charAt(nCurrentSearchPos) == '{') { nNumOpenBraces++; } if (text.charAt(nCurrentSearchPos) == '}') { nNumOpenBraces--; } nCurrentSearchPos++; } if (nNumOpenBraces != 0) { return null; } int nProductionEndPos=nCurrentSearchPos; if (nProductionEndPos < caretPos) { return null; } String sProductionString=text.substring(nProductionStartPos, nProductionEndPos); return sProductionString; }
|
public String GetProductionStringUnderCaret() { // Get the current position of the cursor in the editor pane int caretPos = editorPane.getCaretPosition(); // Get the text in the editor String text = editorPane.getText(); // Search backwards for the "sp " string which marks // the start of a production. int nProductionStartPos = text.lastIndexOf("sp ",caretPos); if (nProductionStartPos == -1) { return null; } // Now search for the first opening brace for this production int nFirstOpenBrace=text.indexOf('{', nProductionStartPos); if (nFirstOpenBrace == -1) { return null; } // Go through the string looking for the closing brace int nNumOpenBraces=1; int nCurrentSearchPos=nFirstOpenBrace+1; while (nCurrentSearchPos < text.length() && nNumOpenBraces > 0) { // Keep track of our open brace count if (text.charAt(nCurrentSearchPos) == '{') { nNumOpenBraces++; } if (text.charAt(nCurrentSearchPos) == '}') { nNumOpenBraces--; } // Advance to the next character nCurrentSearchPos++; } // We should have zero open braces if (nNumOpenBraces != 0) { return null; } // The last brace marks the end of the production int nProductionEndPos=nCurrentSearchPos; // Our cursor position should not be past the last brace. If this is // the case, it means that our cursor is not really inside of a production. if (nProductionEndPos < caretPos) { return null; } // Get the production substring String sProductionString=text.substring(nProductionStartPos, nProductionEndPos); // Return the string to the caller return sProductionString; }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/410012748e80bb0d59859c62c7bf66beef8f5397/RuleEditor.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/ruleeditor/RuleEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
968,
31590,
780,
14655,
39,
20731,
1435,
288,
202,
202,
759,
968,
326,
783,
1754,
434,
326,
3347,
316,
326,
4858,
13618,
202,
202,
474,
21683,
1616,
273,
4858,
8485,
18,
588,
39,
20731,
2555,
5621,
9506,
202,
759,
968,
326,
977,
316,
326,
4858,
202,
202,
780,
977,
273,
4858,
8485,
18,
588,
1528,
5621,
202,
202,
759,
5167,
12727,
364,
326,
315,
1752,
315,
533,
1492,
13999,
202,
202,
759,
326,
787,
434,
279,
12449,
18,
202,
202,
474,
290,
31590,
1685,
1616,
273,
977,
18,
2722,
31985,
2932,
1752,
3104,
71,
20731,
1616,
1769,
202,
202,
430,
261,
82,
31590,
1685,
1616,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
759,
4494,
1623,
364,
326,
1122,
10890,
22500,
364,
333,
12449,
202,
202,
474,
290,
3759,
3678,
21965,
33,
955,
18,
31806,
2668,
95,
2187,
290,
31590,
1685,
1616,
1769,
202,
202,
430,
261,
82,
3759,
3678,
21965,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
759,
4220,
3059,
326,
533,
7849,
364,
326,
7647,
22500,
202,
202,
474,
290,
2578,
3678,
38,
354,
764,
33,
21,
31,
202,
202,
474,
290,
3935,
2979,
1616,
33,
82,
3759,
3678,
21965,
15,
21,
31,
202,
202,
17523,
261,
82,
3935,
2979,
1616,
411,
977,
18,
2469,
1435,
597,
290,
2578,
3678,
38,
354,
764,
405,
374,
13,
202,
202,
95,
1082,
202,
759,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
31590,
780,
14655,
39,
20731,
1435,
288,
202,
202,
759,
968,
326,
783,
1754,
434,
326,
3347,
316,
326,
4858,
13618,
202,
202,
474,
21683,
1616,
273,
4858,
8485,
18,
588,
39,
20731,
2555,
5621,
9506,
202,
759,
968,
326,
977,
316,
326,
4858,
202,
202,
780,
977,
273,
4858,
8485,
18,
588,
1528,
5621,
202,
202,
759,
5167,
12727,
364,
326,
315,
1752,
315,
533,
1492,
13999,
202,
202,
759,
326,
787,
434,
279,
12449,
18,
202,
202,
474,
290,
31590,
1685,
1616,
273,
977,
18,
2722,
31985,
2932,
1752,
3104,
71,
20731,
1616,
1769,
202,
202,
430,
261,
82,
31590,
1685,
1616,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
2463,
2
] |
return (EReference)chartEClass.getEStructuralFeatures().get(12);
|
return (EReference) chartEClass.getEStructuralFeatures().get(12);
|
public EReference getChart_SampleData() { return (EReference)chartEClass.getEStructuralFeatures().get(12); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ModelPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
512,
2404,
336,
7984,
67,
8504,
751,
1435,
565,
288,
3639,
327,
261,
41,
2404,
13,
4980,
5720,
18,
588,
41,
14372,
8696,
7675,
588,
12,
2138,
1769,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
377,
1071,
512,
2404,
336,
7984,
67,
8504,
751,
1435,
565,
288,
3639,
327,
261,
41,
2404,
13,
4980,
5720,
18,
588,
41,
14372,
8696,
7675,
588,
12,
2138,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public FileView() { }
|
public FileView() { }
|
public FileView() { // TODO } // FileView()
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/clean/core/src/classpath/javax/javax/swing/filechooser/FileView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1387,
1767,
1435,
288,
202,
202,
759,
2660,
202,
97,
368,
1387,
1767,
1435,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
1387,
1767,
1435,
288,
202,
202,
759,
2660,
202,
97,
368,
1387,
1767,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assertEquals(0.5f, editRatioCollector.getBaselineRatio(-1));
|
assertEquals(0.25f, editRatioCollector.getBaselineRatio(-1));
|
public void testEditRatio() { mockExplorerSelection("A.java"); mockExplorerSelection("A.java"); mockEdit("A.java"); MylarPlugin.getDefault().notifyInteractionObserved( InteractionEvent.makeCommand(TaskActivateAction.ID, "") ); mockExplorerSelection("A.java"); mockEdit("A.java"); mockEdit("A.java"); logger.stop(); report.getStatisticsFromInteractionHistory(logger.getOutputFile()); assertEquals(0.5f, editRatioCollector.getBaselineRatio(-1)); assertEquals(2f, editRatioCollector.getMylarRatio(-1)); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/48c7e124471ffda1ab7cb126b2b01e90374a6f3a/StatisticsReportingTest.java/buggy/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/StatisticsReportingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4666,
8541,
1435,
288,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
25083,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
12336,
17419,
9013,
2155,
12,
9506,
202,
17419,
1133,
18,
6540,
2189,
12,
2174,
21370,
1803,
18,
734,
16,
1408,
13,
377,
202,
1769,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
9506,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
25083,
202,
4901,
18,
5681,
5621,
202,
202,
6006,
18,
588,
8569,
1265,
17419,
5623,
12,
4901,
18,
588,
1447,
812,
10663,
9506,
202,
11231,
8867,
12,
20,
18,
25,
74,
16,
3874,
8541,
7134,
18,
588,
16635,
8541,
19236,
21,
10019,
202,
202,
11231,
8867,
12,
22,
74,
16,
3874,
8541,
7134,
18,
588,
12062,
7901,
8541,
19236,
21,
10019,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4666,
8541,
1435,
288,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
25083,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
12336,
17419,
9013,
2155,
12,
9506,
202,
17419,
1133,
18,
6540,
2189,
12,
2174,
21370,
1803,
18,
734,
16,
1408,
13,
377,
202,
1769,
202,
202,
22851,
20938,
6233,
2932,
37,
18,
6290,
8863,
202,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
9506,
202,
22851,
4666,
2932,
37,
18,
6290,
8863,
25083,
202,
4901,
18,
5681,
5621,
202,
202,
6006,
18,
588,
8569,
1265,
17419,
5623,
12,
4901,
18,
588,
1447,
2
] |
public String getBestFragments(String text, int fragmentSize, int maxNumFragments, String separator) throws IOException {
|
public String[] getBestFragments(String text, int fragmentSize, int maxNumFragments) throws IOException {
|
public String getBestFragments(String text, int fragmentSize, int maxNumFragments, String separator) throws IOException { String[] sections = getBestFragments(text, fragmentSize, maxNumFragments); StringBuffer result = new StringBuffer(); for (int i = 0; i < sections.length; i++) { if (i > 0) { result.append(separator); } result.append(sections[i]); } return result.toString(); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsHighlightFinder.java/buggy/src/org/opencms/search/documents/CmsHighlightFinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
28782,
27588,
12,
780,
977,
16,
509,
5481,
1225,
16,
509,
943,
2578,
27588,
16,
514,
4182,
13,
565,
1216,
1860,
288,
3639,
514,
8526,
7178,
273,
28782,
27588,
12,
955,
16,
5481,
1225,
16,
943,
2578,
27588,
1769,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7178,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
77,
405,
374,
13,
288,
7734,
563,
18,
6923,
12,
11287,
1769,
5411,
289,
5411,
563,
18,
6923,
12,
11657,
63,
77,
19226,
3639,
289,
3639,
327,
563,
18,
10492,
5621,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
514,
28782,
27588,
12,
780,
977,
16,
509,
5481,
1225,
16,
509,
943,
2578,
27588,
16,
514,
4182,
13,
565,
1216,
1860,
288,
3639,
514,
8526,
7178,
273,
28782,
27588,
12,
955,
16,
5481,
1225,
16,
943,
2578,
27588,
1769,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7178,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
77,
405,
374,
13,
288,
7734,
563,
18,
6923,
12,
11287,
1769,
5411,
289,
5411,
563,
18,
6923,
12,
11657,
63,
77,
19226,
3639,
289,
3639,
327,
563,
18,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
len += attributes[i].attribute_length();
|
len += (6 + attributes[i].attribute_length() );
|
public long attribute_length() { long len = 12 + code_length() + 8*exception_table_length(); for (int i=0; i < attributes.length; i++) len += attributes[i].attribute_length(); return len; }
|
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/87eea7099584bcc0b6c65ddbe5159af1c9187df2/AttributeCode.java/clean/ClassFile/Raw/Attribute/AttributeCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
1566,
67,
2469,
1435,
288,
565,
1525,
562,
273,
2593,
397,
981,
67,
2469,
1435,
397,
1725,
14,
4064,
67,
2121,
67,
2469,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
277,
411,
1677,
18,
2469,
31,
277,
27245,
1377,
562,
1011,
261,
26,
397,
1677,
63,
77,
8009,
4589,
67,
2469,
1435,
11272,
565,
327,
562,
31,
225,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
1566,
67,
2469,
1435,
288,
565,
1525,
562,
273,
2593,
397,
981,
67,
2469,
1435,
397,
1725,
14,
4064,
67,
2121,
67,
2469,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
277,
411,
1677,
18,
2469,
31,
277,
27245,
1377,
562,
1011,
261,
26,
397,
1677,
63,
77,
8009,
4589,
67,
2469,
1435,
11272,
565,
327,
562,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case TypePackage.SCATTER_SERIES__DATA_POINT : setDataPoint( (DataPoint) null );
|
case TypePackage.SCATTER_SERIES__DATA_POINT: setDataPoint((DataPoint)null);
|
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.SCATTER_SERIES__VISIBLE : unsetVisible( ); return; case TypePackage.SCATTER_SERIES__LABEL : setLabel( (Label) null ); return; case TypePackage.SCATTER_SERIES__DATA_DEFINITION : getDataDefinition( ).clear( ); return; case TypePackage.SCATTER_SERIES__SERIES_IDENTIFIER : setSeriesIdentifier( SERIES_IDENTIFIER_EDEFAULT ); return; case TypePackage.SCATTER_SERIES__DATA_POINT : setDataPoint( (DataPoint) null ); return; case TypePackage.SCATTER_SERIES__DATA_SET : setDataSet( (DataSet) null ); return; case TypePackage.SCATTER_SERIES__LABEL_POSITION : unsetLabelPosition( ); return; case TypePackage.SCATTER_SERIES__STACKED : unsetStacked( ); return; case TypePackage.SCATTER_SERIES__TRIGGERS : getTriggers( ).clear( ); return; case TypePackage.SCATTER_SERIES__TRANSLUCENT : unsetTranslucent( ); return; case TypePackage.SCATTER_SERIES__MARKER : setMarker( (Marker) null ); return; case TypePackage.SCATTER_SERIES__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) null ); return; case TypePackage.SCATTER_SERIES__CURVE : unsetCurve( ); return; case TypePackage.SCATTER_SERIES__SHADOW_COLOR : setShadowColor( (ColorDefinition) null ); return; } eDynamicUnset( eFeature ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/ScatterSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
29588,
294,
9506,
202,
18579,
6207,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
4883,
67,
25312,
294,
9506,
202,
588,
751,
1852,
12,
262,
18,
8507,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
2123,
8805,
67,
16606,
294,
9506,
202,
542,
6485,
3004,
12,
7758,
8805,
67,
16606,
67,
11236,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
4883,
67,
8941,
294,
9506,
202,
542,
751,
2148,
12,
261,
751,
2148,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
4883,
67,
4043,
294,
9506,
202,
542,
13676,
12,
261,
13676,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
13545,
67,
15258,
294,
9506,
202,
18579,
2224,
2555,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
29588,
294,
9506,
202,
18579,
6207,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
1412,
2261,
18,
2312,
789,
2560,
67,
2123,
8805,
972,
4883,
67,
25312,
294,
9506,
202,
588,
751,
1852,
12,
262,
18,
8507,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
2
] |
table.add(IWDeveloper.getText("Set BundleProperty"),1,1); table.add(IWDeveloper.getText("Bundle:"),1,2); table.add(bundles,2,2);
|
table.add(IWDeveloper.getText("Set BundleProperty"), 1, 1); table.add(IWDeveloper.getText("Bundle:"), 1, 2); table.add(bundles, 2, 2);
|
public void main(IWContext iwc){ iwb = getBundle(iwc); add(IWDeveloper.getTitleTable(this.getClass())); getParentPage().setBackgroundColor("#FFFFFF"); IWMainApplication iwma = iwc.getApplication(); DropdownMenu bundles = getRegisteredBundlesDropdown(iwma,BUNDLE_PARAMETER); bundles.keepStatusOnAction(); bundles.setToSubmit(); Form form = new Form(); form.maintainParameter(IWDeveloper.actionParameter); add(form); table = new Table(2,5); table.setWidth(1,"160"); table.mergeCells(1,1,2,1); table.setAlignment(2,5,"right"); form.add(table); //form.setMethod("GET"); TextInput name = new TextInput(this.PROPERTY_KEY_NAME_PARAMETER); TextInput value = new TextInput(this.PROPERTY_VALUE_PARAMETER); table.add(IWDeveloper.getText("Set BundleProperty"),1,1); table.add(IWDeveloper.getText("Bundle:"),1,2); table.add(bundles,2,2); table.add(IWDeveloper.getText("Property Key Name:"),1,3); table.add(name,2,3); table.add(IWDeveloper.getText("Property Key Value:"),1,4); table.add(value,2,4); table.add(new SubmitButton("Save","save"),2,5); table.add(new SubmitButton("Reload","reload"),2,5); doBusiness(iwc); }
|
11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/3ca1d274c003725a3259e54bc06f6d9925e3fd23/BundlePropertySetter.java/buggy/src/java/com/idega/development/presentation/BundlePropertySetter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2774,
12,
45,
59,
1042,
25522,
71,
15329,
565,
277,
9464,
273,
10946,
12,
22315,
71,
1769,
565,
527,
12,
45,
59,
28145,
18,
588,
4247,
1388,
12,
2211,
18,
588,
797,
1435,
10019,
1377,
5089,
1964,
7675,
542,
21699,
2932,
7,
18343,
8863,
565,
467,
59,
6376,
3208,
25522,
2540,
273,
25522,
71,
18,
588,
3208,
5621,
565,
10895,
2378,
4599,
11408,
273,
336,
10868,
16151,
23947,
12,
22315,
2540,
16,
30245,
67,
9819,
1769,
565,
11408,
18,
10102,
1482,
1398,
1803,
5621,
565,
11408,
18,
542,
774,
11620,
5621,
565,
2748,
646,
273,
394,
2748,
5621,
565,
646,
18,
81,
1598,
530,
1662,
12,
45,
59,
28145,
18,
1128,
1662,
1769,
565,
527,
12,
687,
1769,
565,
1014,
273,
394,
3555,
12,
22,
16,
25,
1769,
1377,
1014,
18,
542,
2384,
12,
21,
10837,
16874,
8863,
1377,
1014,
18,
2702,
10505,
12,
21,
16,
21,
16,
22,
16,
21,
1769,
1377,
1014,
18,
542,
11535,
12,
22,
16,
25,
10837,
4083,
8863,
565,
646,
18,
1289,
12,
2121,
1769,
565,
368,
687,
18,
542,
1305,
2932,
3264,
8863,
565,
3867,
1210,
508,
273,
394,
3867,
1210,
12,
2211,
18,
9900,
67,
3297,
67,
1985,
67,
9819,
1769,
565,
3867,
1210,
460,
273,
394,
3867,
1210,
12,
2211,
18,
9900,
67,
4051,
67,
9819,
1769,
565,
1014,
18,
1289,
12,
45,
59,
28145,
18,
588,
1528,
2932,
694,
8539,
1396,
6,
3631,
21,
16,
21,
1769,
565,
1014,
18,
1289,
12,
45,
59,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
12,
45,
59,
1042,
25522,
71,
15329,
565,
277,
9464,
273,
10946,
12,
22315,
71,
1769,
565,
527,
12,
45,
59,
28145,
18,
588,
4247,
1388,
12,
2211,
18,
588,
797,
1435,
10019,
1377,
5089,
1964,
7675,
542,
21699,
2932,
7,
18343,
8863,
565,
467,
59,
6376,
3208,
25522,
2540,
273,
25522,
71,
18,
588,
3208,
5621,
565,
10895,
2378,
4599,
11408,
273,
336,
10868,
16151,
23947,
12,
22315,
2540,
16,
30245,
67,
9819,
1769,
565,
11408,
18,
10102,
1482,
1398,
1803,
5621,
565,
11408,
18,
542,
774,
11620,
5621,
565,
2748,
646,
273,
394,
2748,
5621,
565,
646,
18,
81,
1598,
530,
1662,
12,
45,
59,
28145,
18,
1128,
1662,
1769,
565,
527,
12,
2
] |
return super.toString()+"\n"+ " index: 0x"+Integer.toHexString(index);
|
return super.toString() + "\n" + " index: 0x" + Integer.toHexString(index);
|
public String toString() { return super.toString()+"\n"+ " index: 0x"+Integer.toHexString(index); }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/DeleteObject.java/buggy/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/DeleteObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
2240,
18,
10492,
1435,
9078,
64,
82,
6,
15,
5411,
315,
225,
770,
30,
374,
92,
6,
15,
4522,
18,
869,
14866,
12,
1615,
1769,
565,
289,
565,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
514,
1762,
1435,
288,
3639,
327,
2240,
18,
10492,
1435,
9078,
64,
82,
6,
15,
5411,
315,
225,
770,
30,
374,
92,
6,
15,
4522,
18,
869,
14866,
12,
1615,
1769,
565,
289,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (cmd.equals("f") || cmd.equals("}f")) { int confNo = 0; try { confNo = parseNameArgs(st.nextToken(), true, true); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett mte eller brevlda"); } if (confNo < 1) return 1; consoleWriteLn("terse FAQ fr mte " + confNoToName(confNo)); AuxItem[] confAuxItems = foo.getConfStat(confNo).getAuxItems(); for (int i=0; i < confAuxItems.length; i++) { if (confAuxItems[i].getTag() == AuxItem.tagFaqText) { displayText(foo.getText(confAuxItems[i].getData().intValue())); } } return 1; } if (cmd.equals("f")) { int confNo = 0; try { confNo = parseNameArgs(st.nextToken(), true, true); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett mte eller brevlda"); } if (confNo < 1) return 1; consoleWriteLn("ndra FAQ fr mte " + confNoToName(confNo)); AuxItem[] confAuxItems = foo.getConfStat(confNo).getAuxItems(); List oldFaqItems = new LinkedList(); for (int i=0; i < confAuxItems.length; i++) { if (confAuxItems[i].getTag() == AuxItem.tagFaqText) oldFaqItems.add(new Integer(confAuxItems[i].getNo())); } int[] oldFaqAux = new int[oldFaqItems.size()]; for (int i=0; i < oldFaqAux.length; i++) oldFaqAux[i] = ((Integer) oldFaqItems.get(i)).intValue(); String faqText = crtReadLine("Ange textnummer fr FAQ> "); int faq; try { faq = Integer.parseInt(faqText); } catch (NumberFormatException e) { throw new CmdErrException("Felaktigt textnummer"); } try { foo.modifyAuxInfo(true, confNo, oldFaqAux, new AuxItem[] { new AuxItem(AuxItem.tagFaqText, new Bitstring("00000000"), 0, new Hollerith(""+faq)) }); consoleWriteLn("OK: FAQ satt till text " + faq); } catch (RpcFailure ex1) { consoleWrite("%Fel: gick inte att ndra FAQ: "); switch (ex1.getError()) { case Rpc.E_aux_item_permission: consoleWriteLn("otillrcklig behrighet"); break; case Rpc.E_illegal_aux_item: consoleWriteLn("felaktigt aux-item"); break; default: consoleWriteLn("felkod " + ex1.getError()); } } return 1; }
|
int doCommand(Text t, String s) throws CmdErrException, IOException { if (s == null) return -1; if (s.equals("")) return 0; StringTokenizer st = new StringTokenizer(s); String cmd = st.nextToken(); if (cmd.equals("?")) { consoleWriteLn("-- kommandon\n" + "\tbn <mtesnamn> -- byt namn\n" + "\tf [inlggsnummer] -- fotnotera inlgg\n" + "\tg <mtesnamn> -- g till mte\n" + "\ti -- skriv inlgg\n" + "\tk [inlggsnummer] -- kommentera text\n" + "\tlm [substrng] -- lista mten\n" + "\tlmt -- lista markerade texter\n" + "\tln -- lista nyheter\n" + "\tmt [text] -- markera text\n" + "\tnm -- nsta mte med olsta\n" + "\tq -- avsluta TestKOM\n" + //"\trm <mtesnamn> -- radera mte\n" + "\trt <text> -- radera text\n" + "\ts [mtesnamn] -- skicka meddelande\n" + "\tsm <mtesnamn> -- skapa (publikt) mte\n" + "\tss <sessionsnr.> -- visa sessions- och klientinformation\n" + "\tuo -- uppdatera olsta (typ omstart)\n" + "\tv -- lista inloggade aktiva anvndare\n" + "\t <inlggsnummer> -- terse text\n" + "\tf <mtesnamn> -- terse FAQ\n" + "\tk -- terse (frsta) kommentaren\n" + "\tp <mtesnamn> -- terse presentation fr person eller mte\n" + "\tu -- terse (frsta) urinlgget\n" + "\tf <mtesnamn> -- ndra FAQ\n" + "\tp [mtesnamn] -- ndra/skriv presentation\n" + "\trpc <#> [data] -- skicka RPC-kommando (svaret ignoreras) (farligt)\n" + "\n Mtesnamn kan fr det mesta bytas ut mot \"m <nummer>\"\n"); return 1; } if (cmd.equals("uo")) { foo.updateUnreads(); return 1; } if (cmd.equals("rpc")) { // skicka RPC-kommando till servern int rno = 0; String params = null; try { rno = Integer.parseInt(st.nextToken()); params = st.nextToken("").substring(1); } catch (NoSuchElementException ex1) { if (rno == 0) throw new CmdErrException("parameter saknas"); } foo.writeRaw(rno, params); return 1; } if (cmd.equals("f") || cmd.equals("}f")) { // terse FAQ int confNo = 0; try { confNo = parseNameArgs(st.nextToken(), true, true); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett mte eller brevlda"); } if (confNo < 1) return 1; consoleWriteLn("terse FAQ fr mte " + confNoToName(confNo)); AuxItem[] confAuxItems = foo.getConfStat(confNo).getAuxItems(); for (int i=0; i < confAuxItems.length; i++) { if (confAuxItems[i].getTag() == AuxItem.tagFaqText) { displayText(foo.getText(confAuxItems[i].getData().intValue())); } } return 1; } if (cmd.equals("f")) { // ndra FAQ int confNo = 0; try { confNo = parseNameArgs(st.nextToken(), true, true); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett mte eller brevlda"); } if (confNo < 1) return 1; consoleWriteLn("ndra FAQ fr mte " + confNoToName(confNo)); AuxItem[] confAuxItems = foo.getConfStat(confNo).getAuxItems(); List oldFaqItems = new LinkedList(); for (int i=0; i < confAuxItems.length; i++) { if (confAuxItems[i].getTag() == AuxItem.tagFaqText) oldFaqItems.add(new Integer(confAuxItems[i].getNo())); } int[] oldFaqAux = new int[oldFaqItems.size()]; for (int i=0; i < oldFaqAux.length; i++) oldFaqAux[i] = ((Integer) oldFaqItems.get(i)).intValue(); String faqText = crtReadLine("Ange textnummer fr FAQ> "); int faq; try { faq = Integer.parseInt(faqText); } catch (NumberFormatException e) { throw new CmdErrException("Felaktigt textnummer"); } try { foo.modifyAuxInfo(true, confNo, oldFaqAux, new AuxItem[] { new AuxItem(AuxItem.tagFaqText, new Bitstring("00000000"), 0, new Hollerith(""+faq)) }); consoleWriteLn("OK: FAQ satt till text " + faq); } catch (RpcFailure ex1) { consoleWrite("%Fel: gick inte att ndra FAQ: "); switch (ex1.getError()) { case Rpc.E_aux_item_permission: consoleWriteLn("otillrcklig behrighet"); break; case Rpc.E_illegal_aux_item: consoleWriteLn("felaktigt aux-item"); break; default: consoleWriteLn("felkod " + ex1.getError()); } } return 1; } if (cmd.equals("") || cmd.equals("}")) { // terse inlgg ( <txtno>) String txt = st.hasMoreTokens() ? st.nextToken() : null; if (txt == null) throw new CmdErrException("du mste ange inlggsnummer"); int txtNo = 0; try { txtNo = Integer.parseInt(txt); } catch (NumberFormatException ex) { throw(new CmdErrException("trasigt inlggsnummer: " + txt)); } lastText = foo.getText(txtNo); displayText(txtNo); return 1; } if (cmd.equals("ln")) { // lista nyheter int[] conferences = foo.getUnreadConfs(foo.getMyPerson().getNo()); int sum = 0; int confsum = 0; for (int i=0; i < conferences.length; i++) { int unreads = foo.getUnreadCount(conferences[i]); sum += unreads; confsum++; consoleWriteLn("Du har " + unreads + " " + (unreads > 1 ? "olsta" : "olst") + " i " + confNoToName(conferences[i])); } if (confsum == 0) { consoleWriteLn("Du har lst alla inlgg."); } else { consoleWriteLn(""); consoleWriteLn("Du har totalt " + sum + " " + (sum > 1 ? "olsta" : "olst") + " inlgg i " + confsum + " " + (confsum > 1 ? "mten" : "mte")); } return 1; } if (cmd.equals("rm")) { // radera mte consoleWriteLn("-- Den hr funktionen r inte implementerad nnu."); return 1; } if (cmd.equals("rt")) { // radera inlgg int textNo = 0; try { textNo = Integer.parseInt(st.nextToken()); } catch (NoSuchElementException ex1) { throw new CmdErrException("du mste ange ett inlggsnummer"); } catch (NumberFormatException ex2) { throw new CmdErrException("kunde inte tolka inlggsnummer"); } if (textNo == 0) throw new CmdErrException("du kan inte ta bort text 0"); try { foo.deleteText(textNo); consoleWriteLn("OK: text " + textNo + " raderad."); return 1; } catch (RpcFailure ex1) { switch (ex1.getError()) { case Rpc.E_no_such_text: consoleWriteLn("%Fel: det finns ingen text med nummer " + textNo); break; case Rpc.E_not_author: consoleWriteLn("%Fel: du har inte rtt att ta bort text " + textNo); break; default: consoleWriteLn("%Fel: felkod " + ex1.getError()); break; } } } if (cmd.equals("f")) { // fotnotera String opt = null; if (st.hasMoreTokens()) opt = st.nextToken(); if (opt != null) { try { t = foo.getText(Integer.parseInt(opt)); } catch (NumberFormatException ex) { throw new CmdErrException("trasigt inlggsnummer: " + opt); } } if (t == null) { consoleWriteLn("Hittar inget inlgg att fotnotera"); return 1; } setStatus("Skriver en fotnot."); consoleWriteLn("-- Fotnot till text " + t.getNo() + "."); consoleWriteLn("-- Skriv din fotnot, avsluta med \".\" p tom rad."); Text nText = new Text(bytesToString(t.getSubject()), ""); nText.addFootnoted(t.getNo()); nText.addRecipients(t.getRecipients()); nText.addCcRecipients(t.getCcRecipients()); nText = editText(nText); if (nText == null) { consoleWriteLn("Editeringen avbruten."); return 1; } consoleWrite("\nSkapar fotnot... "); int newText = foo.createText(nText); if (newText > 0) { consoleWriteLn("text nummer " + newText + " skapad."); if (!dontMarkOwnTextsAsRead) { markAsRead(newText); } } return 1; } if (cmd.equals("k")) { // kommentera (k [txtno]) String opt = null; if (st.hasMoreTokens()) opt = st.nextToken(); if (opt != null) { try { t = foo.getText(Integer.parseInt(opt)); } catch (NumberFormatException ex) { throw new CmdErrException("trasigt inlggsnummer: " + opt); } } if (t == null) consoleWriteLn("Hittar inget inlgg att kommentera"); setStatus("Skriver en kommentar"); consoleWriteLn("-- Kommentar till text " + t.getNo() + "."); consoleWriteLn("-- Skriv din kommentar, avsluta med \".\" p tom rad."); Text nText = new Text(bytesToString(t.getSubject()), ""); nText.addCommented(t.getNo()); int[] recipients = t.getRecipients(); for (int i=0; i < recipients.length; i++) { Conference conf = foo.getConfStat(recipients[i]); if (conf.getType().original()) { int superconf = conf.getSuperConf(); if (superconf > 0) { nText.addRecipient(superconf); } else { consoleWriteLn("Du fr inte skriva kommentarer i " + conf.getNameString()); } } else { nText.addRecipient(recipients[i]); } } nText = editText(nText); if (nText == null) { consoleWrite("Avbruten."); return 1; } consoleWrite("\nSkapar kommentar... "); int newText = 0; try { newText = foo.createText(nText); } catch (RpcFailure ex1) { consoleWrite("%Fel: kunde inte skapa fotnot: "); switch (ex1.getError()) { case Rpc.E_not_author: consoleWriteLn("du r inte frfattare till texten"); break; default: consoleWriteLn(ex1.getMessage()); } return 1; } if (newText > 0) { consoleWriteLn("text nummer " + newText + " skapad."); if (!dontMarkOwnTextsAsRead) { markAsRead(newText); t = foo.getText(newText); } } return 1; } if (cmd.equals("lmt")) { consoleWriteLn("Markerade inlgg:"); Mark[] marks = foo.getMarks(); for (int i=0; i < marks.length; i++) { consoleWrite("Markering " + (i+1) + ": " + marks[i].getText() + " (" + marks[i].getType() + ")"); TextStat ts = foo.getTextStat(marks[i].getText()); if (ts != null) { consoleWriteLn(" av " + confNoToName(ts.getAuthor())); } else { consoleWriteLn(""); } } consoleWriteLn(""); return 1; } if (cmd.equals("mt")) { try { int textNo = (t != null ? t.getNo() : 0); if (st.hasMoreTokens()) { textNo = Integer.parseInt(st.nextToken()); } else if (textNo == 0) { textNo = Integer.parseInt(crtReadLine("Ange textnummer att markera: ")); } int markType = 0; if (st.hasMoreTokens()) { markType = Integer.parseInt(st.nextToken()); } else { markType = 100; markType = Integer.parseInt(crtReadLine("Ange markeringstyp (0-255): ")); } foo.markText(textNo, markType); consoleWriteLn("OK, text " + textNo + " r markerad"); } catch (NumberFormatException ex1) { consoleWriteLn("Ogiltigt vrde: " + ex1.getMessage()); } catch (RpcFailure ex1) { throw new CmdErrException(ex1.getMessage()); } return 1; } if (cmd.equals("v")) { DynamicSessionInfo[] vilka = foo.whoIsOnDynamic(true, false, 30*60); consoleWriteLn("Listar " + vilka.length + " aktiva anvndare:"); consoleWriteLn("----------------------------------------------------------------"); for (int i=0; i < vilka.length; i++) { String personName = confNoToName(vilka[i].getPerson()); String conferenceName = confNoToName(vilka[i].getWorkingConference()); consoleWrite(vilka[i].getSession() + " " + personName); if (vilka[i].getWorkingConference() != 0) { consoleWrite(" i mte " + conferenceName); } consoleWriteLn("\n\t(" + bytesToString(vilka[i].getWhatAmIDoing()) + ")"); } consoleWriteLn("----------------------------------------------------------------"); return 1; } if (cmd.equals("i")) { // skriv inlgg i nuvarande mte if (foo.getCurrentConference() == -1) { throw new CmdErrException("Du mste vara i ett mte fr att kunna skriva ett inlgg."); } setStatus("Skriver ett inlgg"); StringBuffer textb = new StringBuffer(); consoleWriteLn("-- Inlgg i mte " + confNoToName(foo.getCurrentConference())); consoleWriteLn("Avsluta med \".\" p tom rad."); Text nText = new Text(); nText.addRecipient(foo.getCurrentConference()); nText = editText(nText); int newText = foo.createText(nText); if (newText > 0) { consoleWriteLn("text nummer " + newText + " skapad."); markAsRead(newText); } else consoleWriteLn("misslyckades att skapa inlgg."); return 1; } if (cmd.equals("p") || cmd.equals("}p")) { if (!st.hasMoreElements()) throw new CmdErrException("Du mste ange ett mte eller en person"); int confNo = parseNameArgs(st.nextToken(), true, true); if (confNo < 1) return 1; int presNo = foo.getConfStat(confNo).getPresentation(); if (presNo < 1) { throw new CmdErrException("Hittade ingen presentation fr " + confNoToName(confNo)); } Text presText = foo.getText(presNo); if (presText == null) throw new CmdErrException("Kunde inte hmta text " + presNo); displayText(presText); return 1; } if (cmd.equals("p")) { int confNo = foo.getMyPerson().getNo(); if (st.hasMoreTokens()) { confNo = parseNameArgs(st.nextToken(), true, true); } if (confNo < 1) return 1; consoleWriteLn("ndrar presentation fr " + confNoToName(confNo)); Conference myConf = foo.getConfStat(confNo); int myPresentationNo = myConf.getPresentation(); Text myPresentation = null; if (myPresentationNo > 0) { Text oldPresentation = foo.getText(myPresentationNo); myPresentation = (Text) oldPresentation.clone(); } else { myPresentation = new Text(confNoToName(confNo), ""); myPresentation.addRecipient(2); // pres memb } myPresentation = editText(myPresentation); if (myPresentation == null) { throw new CmdErrException("Editeringen avbruten"); } int newText = foo.createText(myPresentation); if (newText > 0) { consoleWriteLn("text nummer " + newText + " skapad."); markAsRead(newText); try { foo.setPresentation(confNo, newText); consoleWriteLn("OK, text " + newText + " r ny presentation fr " + confNoToName(confNo)); } catch (RpcFailure ex1) { consoleWriteLn("%Fel: kunde inte stta presentation fr " + confNoToName(confNo) + ": " + ex1.getMessage()); } } return 1; } if (cmd.equals("ss")) { // status (fr) session try { int sessionNo = Integer.parseInt(st.nextToken()); SessionInfo si = foo.getStaticSessionInfo(sessionNo); consoleWriteLn("Status fr session " + sessionNo + ":"); consoleWriteLn(" Anvndarnamn : " + bytesToString(si.getUsername())); consoleWriteLn(" Vrddator : " + bytesToString(si.getHostname())); String ident = bytesToString(si.getIdentUser()); if (!ident.equals("unknown")) { consoleWriteLn(" Ident : " + ident); } consoleWriteLn(" Starttid : " + timestampFormat.format(si.getConnectionTime().getTime())); String clientName = bytesToString(foo.getClientName(sessionNo)); String clientVersion = bytesToString(foo.getClientVersion(sessionNo)); if (!clientName.equals("")) consoleWriteLn(" Klientnamn : " + clientName); if (!clientVersion.equals("")) consoleWriteLn(" Klientversion: " + clientVersion); } catch (RpcFailure ex0) { throw new CmdErrException(ex0.getMessage()); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett sessionsnummer"); } catch (NumberFormatException ex2) { throw new CmdErrException("Kunde inte tolka sessionsnummer " + ex2.getMessage()); } return 1; } if (cmd.equals("k") || cmd.equals("}k")) { // terse (det) kommenterade int[] commented = t.getCommented(); if (commented.length == 0) { commented = t.getFootnoted(); if (commented.length == 0) throw(new CmdErrException("Texten r ingen kommentar")); } consoleWriteLn("terse det kommenterade (text " + commented[0] + ")"); lastText = foo.getText(commented[0]); displayText(commented[0]); return 1; } if (cmd.equals("u") || cmd.equals("}u")) { // terse urinlgg // * does not treat footnotes as comments // * does not handle multiple original texts (only looks at forst comm-to) consoleWrite("Sker efter urinlgg fr text " + t.getNo() + "... "); TextStat ts = foo.getTextStat(t.getNo()); while (ts.getStatInts(TextStat.miscCommTo).length > 0) { ts = foo.getTextStat(ts.getStatInts(TextStat.miscCommTo)[0]); } consoleWriteLn("hittade text " + ts.getNo()); displayText(lastText = t = foo.getText(ts.getNo())); return 1; } if (cmd.equals("e")) { // endast String antal = st.nextToken(); try { foo.endast(Integer.parseInt(antal)); foo.updateUnreads(); } catch (NumberFormatException ex) { throw new CmdErrException("Kunde inte parsa " + antal); } return 1; } if (cmd.equals("bn")) { // byt namn int confNo = 0; try { confNo = parseNameArgs(st.nextToken("").substring(1), true, true); } catch (NoSuchElementException ex1) { confNo = foo.getMyPerson().getNo(); } if (confNo < 1) return 1; consoleWriteLn("Byta namn p " + confNoToName(confNo)); try { foo.changeName(confNo, crtReadLine("Nytt namn> ")); } catch (RpcFailure ex1) { consoleWrite("Det gick inte att byta namn: "); switch (ex1.getError()) { case Rpc.E_permission_denied: consoleWriteLn("du saknar behrighet fr operationen"); break; case Rpc.E_conference_exists: consoleWriteLn("det finns redan ett mte med detta namn"); break; case Rpc.E_string_too_long: consoleWriteLn("det nya namnet r fr lngt"); break; case Rpc.E_bad_name: consoleWriteLn("det nya namnet innehller ogiltiga tecken"); break; default: consoleWriteLn("felkod " + ex1.getError()); break; } } return 1; } if (cmd.equals("s")) { // snda meddelande int confNo = 0; try { confNo = parseNameArgs(st.nextToken("").substring(1), true, true); } catch (NoSuchElementException ex1) { if (!crtReadLine("Vill du skicka ett alarmmeddelande? (j/N) ").equals("j")) return 1; } if (confNo > 0) { consoleWriteLn("Skicka meddelande till " + confNoToName(confNo)); } else if (confNo == -1) { return 1; } String message = crtReadLine("Text att skicka> "); try { foo.sendMessage(confNo, message); if (confNo == 0) consoleWriteLn("Ditt alarmmeddelande har skickats."); else consoleWriteLn("Ditt meddelande har skickats till " + confNoToName(confNo)); } catch (RpcFailure ex1) { consoleWriteLn("Det gick inte att skicka meddelandet. Felkod: " + ex1.getError()); } return 1; } if (cmd.equals("g")) { // g (till mte) (g <mtesnamn>) int confNo = 0; try { confNo = parseNameArgs(st.nextToken("").substring(1), true, true); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett mte att g till."); } if (confNo == 0) return 1; consoleWriteLn("-- g till mte: " + confNoToName(confNo)); try { foo.changeConference(confNo); foo.updateUnreads(); // tm att-lsa-listan while (!toread.isEmpty()) toread.pop(); return 1; } catch (RpcFailure failed) { consoleWrite("-- mtesbytet misslyckades: "); switch (failed.getError()) { case Rpc.E_not_member: consoleWriteLn("du r inte med i det mtet"); String wantsChange = crtReadLine("Vill du g med i mtet? (j/N) "); if (wantsChange.equals("j")) { try { foo.joinConference(confNo); doCommand(t, "g m " + confNo); } catch (RpcFailure failed2) { consoleWrite("Det gick inte att g med i mtet: "); switch (failed2.getError()) { case Rpc.E_access_denied: consoleWriteLn("du fick inte"); break; case Rpc.E_permission_denied: consoleWriteLn("du fr inte ndra p detta medlemskap"); break; default: consoleWriteLn("oknd anledning " + failed2.getError()); } } } break; default: consoleWriteLn("oknd anledning " + failed.getError()); } } return 1; } if (cmd.equals("nm")) { // nsta mte int nextConf = foo.nextUnreadConference(true); if (nextConf != -1) { while (!toread.isEmpty()) toread.pop(); // tm att-lsa-listan hr ocks consoleWriteLn("nsta mte - " + confNoToName(nextConf)); } else { consoleWriteLn("Det finns inga fler olsta mten."); } return 1; } if (cmd.equals("sm")) { // skapa mte String name = null; try { name = st.nextToken("").substring(1); } catch (NoSuchElementException ex1) { throw new CmdErrException("Du mste ange ett namn p mtet."); } consoleWrite("Frsker skapa mte \"" + name + "\"..."); int confNo = foo.createConf(name, false, false, false); if (confNo > 0) consoleWriteLn(" lyckades: mtet fick nummer " + confNo); else consoleWriteLn(" det gick inte."); return 1; } if (cmd.equals("lm")) { // lista mten String substring = null; try { substring = st.nextToken("").substring(1); } catch (NoSuchElementException ex1) { substring = ""; } ConfInfo[] confs = foo.lookupName(substring, false, true); consoleWriteLn("Hittade " + confs.length + " mten"); MessageFormat form = new MessageFormat(" {0,number}\t{2} {1}"); for (int i=0; i < confs.length; i++) { boolean memberOf = foo.isMemberOf(confs[i].getNo()); consoleWriteLn(form.format(new Object[] {new Integer(confs[i].getNo()), confs[i].getNameString(), (memberOf ? " " : "*") })); } consoleWriteLn("-- Slut p listningen"); return 1; } if (cmd.equals("q") || cmd.equals(".")) return -1; // avsluta throw(new CmdErrException("Frstod inte \"" + cmd + "\"")); }
|
3721 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3721/db20f64f49cb94f75e12b042330722224aa1b1b7/Test2.java/buggy/nu/dll/app/test/Test2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
741,
2189,
12,
1528,
268,
16,
514,
272,
13,
565,
1216,
13328,
2524,
503,
16,
1860,
288,
202,
430,
261,
87,
422,
446,
13,
327,
300,
21,
31,
202,
430,
261,
87,
18,
14963,
2932,
6,
3719,
327,
374,
31,
202,
780,
10524,
384,
273,
394,
16370,
12,
87,
1769,
202,
780,
1797,
273,
384,
18,
4285,
1345,
5621,
202,
430,
261,
4172,
18,
14963,
2932,
7225,
3719,
288,
202,
565,
2983,
3067,
13780,
2932,
413,
417,
362,
889,
265,
64,
82,
6,
397,
9506,
282,
1548,
88,
13392,
411,
1010,
281,
17808,
82,
34,
565,
1493,
635,
88,
15135,
82,
64,
82,
6,
397,
4697,
282,
1548,
6632,
306,
267,
23623,
564,
2107,
6592,
65,
1493,
284,
352,
902,
6070,
316,
80,
14253,
64,
82,
6,
397,
4697,
282,
1548,
88,
75,
411,
1010,
281,
17808,
82,
34,
377,
1493,
314,
21364,
312,
736,
64,
82,
6,
397,
9506,
282,
1548,
9096,
1171,
1493,
4343,
86,
427,
316,
80,
14253,
64,
82,
6,
397,
9506,
282,
1548,
16099,
306,
267,
23623,
564,
2107,
6592,
65,
1493,
417,
362,
475,
6070,
977,
64,
82,
6,
397,
9506,
282,
1548,
6172,
81,
306,
10706,
3368,
65,
565,
1493,
17822,
312,
2253,
64,
82,
6,
397,
9506,
282,
1548,
6172,
1010,
9079,
1493,
17822,
5373,
2486,
16573,
387,
64,
82,
6,
397,
9506,
282,
1548,
88,
2370,
7734,
1493,
17822,
15308,
76,
847,
64,
82,
6,
397,
9506,
282,
1548,
88,
1010,
306,
955,
65,
540,
1493,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
741,
2189,
12,
1528,
268,
16,
514,
272,
13,
565,
1216,
13328,
2524,
503,
16,
1860,
288,
202,
430,
261,
87,
422,
446,
13,
327,
300,
21,
31,
202,
430,
261,
87,
18,
14963,
2932,
6,
3719,
327,
374,
31,
202,
780,
10524,
384,
273,
394,
16370,
12,
87,
1769,
202,
780,
1797,
273,
384,
18,
4285,
1345,
5621,
202,
430,
261,
4172,
18,
14963,
2932,
7225,
3719,
288,
202,
565,
2983,
3067,
13780,
2932,
413,
417,
362,
889,
265,
64,
82,
6,
397,
9506,
282,
1548,
88,
13392,
411,
1010,
281,
17808,
82,
34,
565,
1493,
635,
88,
15135,
82,
64,
82,
6,
397,
4697,
282,
1548,
6632,
306,
267,
23623,
564,
2107,
6592,
65,
1493,
2
] |
|
g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD + dH * i + ins.getTop( ) ) );
|
if ( !bEmptyText ) { g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD + dH * i + ins.getTop( ) ) ); }
|
private final void showBottomValue( IPrimitiveRenderer ipr, Location lo, Label la, boolean bShadow ) { Graphics2D g2d = (Graphics2D) ( (IDeviceRenderer) ipr ).getGraphicsContext( ); double dX = lo.getX( ), dY = lo.getY( ); FontDefinition fd = la.getCaption( ).getFont( ); // Color clrShadow = bShadow ? (Color) // _sxs.getColor(la.getShadowColor()) : null; double dAngleInDegrees = fd.getRotation( ); Color clrText = (Color) _sxs.getColor( la.getCaption( ).getColor( ) ); Color clrBackground = null; if ( la.getBackground( ) != null ) { clrBackground = (Color) _sxs.getColor( (ColorDefinition) la.getBackground( ) ); } double dAngleInRadians = ( ( -dAngleInDegrees * Math.PI ) / 180.0 ); final ITextMetrics itm = new SwingTextMetrics( _sxs, la ); final double dFW = itm.getFullWidth( ); final double dH = itm.getHeight( ); final double dD = itm.getDescent( ); final double dFH = itm.getFullHeight( ); double dXOffset = 0, dW = 0; final int iLC = itm.getLineCount( ); final Insets ins = la.getInsets( ) .scaledInstance( _sxs.getDpiResolution( ) / 72d ); final double shadowness = 3 * _sxs.getDpiResolution( ) / 72d; TextLayout tl; final HorizontalAlignment ha = la.getCaption( ) .getFont( ) .getAlignment( ) .getHorizontalAlignment( ); final boolean bRightAligned = ha.getValue( ) == HorizontalAlignment.RIGHT; final boolean bCenterAligned = ha.getValue( ) == HorizontalAlignment.CENTER; dX -= dFW / 2; dY += dH; // HORIZONTAL TEXT if ( dAngleInDegrees == 0 ) { if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD + dH * i + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // crossHairs(g2d, (int)dX, (int)dY); } // DRAW IT AT A POSITIVE ANGLE else if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dDeltaX = dFW * dCosTheta - dH * dSineTheta - dFW / 2.0; double dDeltaY = dH * dCosTheta + dFW * dSineTheta - dH; dX -= dDeltaX; dY += dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD + dH * i + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); } // DRAW IT AT A NEGATIVE ANGLE else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { dX += dFW / 2; g2d.rotate( dAngleInRadians, dX, dY - dH ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD + dH * i + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY - dH ); } // VERTICALLY UP else if ( dAngleInDegrees == 90 ) { double dYHalfOffset = ( dFH + dH ) / 2.0; double dDeltaX = ( dFW + dH ) / 2; double dDeltaY = ( dFW - dH ); dX += dDeltaX; dY += dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dYHalfOffset ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) - ( ( iLC - i ) * dH - ( iLC + 1 ) * dH / 2 ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } // VERTICALLY DOWN else if ( dAngleInDegrees == -90 ) { dX += dFW / 2; dY -= dH; double dYHalfOffset = ( dFH + dH ) / 2d; double dDeltaX = dYHalfOffset - dFH / 2d; dX -= dDeltaX; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dYHalfOffset ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( dY - dD ) - dYHalfOffset + dH * ( i + 1 ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); } itm.dispose( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/965db3fb082531b7248f7576d1afac6784a91423/SwingTextRenderer.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2405,
10393,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72,
273,
261,
17558,
22,
40,
13,
261,
261,
734,
73,
633,
6747,
13,
277,
683,
262,
18,
588,
17558,
1042,
12,
11272,
202,
202,
9056,
302,
60,
273,
437,
18,
588,
60,
12,
262,
16,
302,
61,
273,
437,
18,
588,
61,
12,
11272,
202,
202,
5711,
1852,
5194,
273,
7125,
18,
588,
21158,
12,
262,
18,
588,
5711,
12,
11272,
202,
202,
759,
5563,
927,
86,
12957,
273,
324,
12957,
692,
261,
2957,
13,
202,
202,
759,
389,
87,
13713,
18,
588,
2957,
12,
11821,
18,
588,
12957,
2957,
10756,
294,
446,
31,
202,
202,
9056,
302,
8467,
382,
24400,
273,
5194,
18,
588,
14032,
12,
11272,
202,
202,
2957,
927,
86,
1528,
273,
261,
2957,
13,
389,
87,
13713,
18,
588,
2957,
12,
7125,
18,
588,
21158,
12,
262,
18,
588,
2957,
12,
262,
11272,
202,
202,
2957,
927,
86,
8199,
273,
446,
31,
202,
202,
430,
261,
7125,
18,
588,
8199,
12,
262,
480,
446,
262,
202,
202,
95,
1082,
202,
830,
86,
8199,
273,
261,
2957,
13,
389,
87,
13713,
18,
588,
2957,
12,
261,
2957,
1852,
13,
7125,
18,
588,
8199,
12,
262,
11272,
202,
202,
97,
202,
202,
9056,
302,
8467,
382,
25140,
273,
261,
261,
300,
72,
8467,
382,
24400,
380,
2361,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
2405,
10393,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72,
273,
261,
17558,
22,
40,
13,
261,
261,
734,
73,
633,
6747,
13,
277,
683,
262,
18,
588,
17558,
1042,
12,
11272,
202,
202,
9056,
302,
60,
273,
437,
18,
588,
60,
12,
262,
16,
302,
61,
273,
437,
18,
588,
61,
12,
11272,
202,
202,
5711,
1852,
5194,
273,
7125,
18,
588,
21158,
12,
262,
18,
588,
5711,
12,
11272,
202,
202,
759,
5563,
927,
86,
12957,
273,
324,
12957,
692,
261,
2957,
13,
202,
202,
759,
389,
87,
13713,
18,
2
] |
ContributionManager mgr = menuService.getManagerForURI(uri); int insertionIndex = getInsertionIndexForURI(mgr, uri);
|
MenuAddition additionCache = menuService.getManagerForURI(uri); if (additionCache == null) { String p = uri.getQuery(); if (p.length() == 0) { additionCache = new MenuAddition(addition); menuService.registerAdditionCache(uri, additionCache); } else { retryList.add(addition); } } int insertionIndex = getInsertionIndexForURI(additionCache, uri);
|
private static void readMenuAddition(IMenuService menuService, IConfigurationElement addition) { // Determine the insertio location by parsing the URI String locationURI = addition.getAttribute(TAG_LOCATION_URI); MenuLocationURI uri = new MenuLocationURI(locationURI); if (uri != null) { ContributionManager mgr = menuService.getManagerForURI(uri); int insertionIndex = getInsertionIndexForURI(mgr, uri); // Read teh child additions readAdditions(mgr, addition, insertionIndex); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0d7d22af66a4176cb9c5b45fa20f3d5eb11eefb2/MenuPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuPersistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
855,
4599,
30296,
12,
3445,
2104,
1179,
3824,
1179,
16,
1082,
202,
45,
1750,
1046,
2719,
13,
288,
202,
202,
759,
10229,
326,
2243,
1594,
2117,
635,
5811,
326,
3699,
202,
202,
780,
2117,
3098,
273,
2719,
18,
588,
1499,
12,
7927,
67,
15277,
67,
3098,
1769,
202,
202,
4599,
2735,
3098,
2003,
273,
394,
9809,
2735,
3098,
12,
3562,
3098,
1769,
202,
202,
430,
261,
1650,
480,
446,
13,
288,
1082,
202,
442,
4027,
1318,
13333,
273,
3824,
1179,
18,
588,
1318,
1290,
3098,
12,
1650,
1769,
1082,
202,
474,
12626,
1016,
273,
336,
29739,
1016,
1290,
3098,
12,
13552,
16,
2003,
1769,
1082,
202,
759,
2720,
6489,
76,
1151,
26260,
1082,
202,
896,
986,
5029,
12,
13552,
16,
2719,
16,
12626,
1016,
1769,
202,
202,
97,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
1152,
760,
918,
855,
4599,
30296,
12,
3445,
2104,
1179,
3824,
1179,
16,
1082,
202,
45,
1750,
1046,
2719,
13,
288,
202,
202,
759,
10229,
326,
2243,
1594,
2117,
635,
5811,
326,
3699,
202,
202,
780,
2117,
3098,
273,
2719,
18,
588,
1499,
12,
7927,
67,
15277,
67,
3098,
1769,
202,
202,
4599,
2735,
3098,
2003,
273,
394,
9809,
2735,
3098,
12,
3562,
3098,
1769,
202,
202,
430,
261,
1650,
480,
446,
13,
288,
1082,
202,
442,
4027,
1318,
13333,
273,
3824,
1179,
18,
588,
1318,
1290,
3098,
12,
1650,
1769,
1082,
202,
474,
12626,
1016,
273,
336,
29739,
1016,
1290,
3098,
12,
13552,
16,
2003,
1769,
1082,
202,
759,
2720,
6489,
76,
1151,
26260,
1082,
202,
2
] |
request.addCookie( new Cookie( ServletUnitHttpSession.SESSION_COOKIE_NAME, originalID ) );
|
public void testSessionInvalidation() throws Exception { WebRequest wr = new GetMethodWebRequest( "http://localhost/simple" ); ServletUnitContext context = new ServletUnitContext(); HttpSession originalSession = context.newSession(); String originalID = originalSession.getId(); ServletUnitHttpRequest request = new ServletUnitHttpRequest( NULL_SERVLET_REQUEST, wr, context, new Hashtable(), NO_MESSAGE_BODY ); request.addCookie( new Cookie( ServletUnitHttpSession.SESSION_COOKIE_NAME, originalID ) ); originalSession.setAttribute( "Initial", new Integer( 1 ) ); Enumeration attributeNames = originalSession.getAttributeNames(); assertTrue( attributeNames.hasMoreElements() ); assertEquals( "Initial", attributeNames.nextElement() ); originalSession.invalidate(); assertNull( "Invalidated session returned", request.getSession( false ) ); HttpSession newSession = request.getSession( true ); assertNotNull( "getSession(true) did not return a session", newSession ); assertNotSame( "getSession(true) returned the original invalidated session", originalSession, newSession ); assertSame( "session returned by getSession(false)", newSession, request.getSession( false ) ); assertSame( "Session in context with new ID", newSession, context.getSession( newSession.getId() ) ); }
|
5961 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5961/f28ca936ac88e34657446309a09dcc9e3fc0d1ea/HttpServletRequestTest.java/buggy/test/com/meterware/servletunit/HttpServletRequestTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2157,
27946,
1435,
1216,
1185,
288,
3639,
2999,
691,
12408,
273,
394,
968,
1305,
4079,
691,
12,
315,
2505,
2207,
13014,
19,
9647,
6,
11272,
3639,
7971,
2802,
1042,
819,
273,
394,
7971,
2802,
1042,
5621,
3639,
26166,
2282,
2157,
273,
819,
18,
2704,
2157,
5621,
3639,
514,
2282,
734,
273,
2282,
2157,
18,
26321,
5621,
3639,
7971,
2802,
8988,
590,
273,
394,
7971,
2802,
8988,
12,
3206,
67,
31066,
15146,
67,
5519,
16,
12408,
16,
819,
16,
394,
18559,
9334,
3741,
67,
8723,
67,
16691,
11272,
9079,
2282,
2157,
18,
542,
1499,
12,
315,
4435,
3113,
394,
2144,
12,
404,
262,
11272,
3639,
13864,
1566,
1557,
273,
2282,
2157,
18,
588,
26080,
5621,
3639,
1815,
5510,
12,
1566,
1557,
18,
5332,
7417,
3471,
1435,
11272,
3639,
1815,
8867,
12,
315,
4435,
3113,
1566,
1557,
18,
4285,
1046,
1435,
11272,
3639,
2282,
2157,
18,
5387,
340,
5621,
3639,
1815,
2041,
12,
315,
1941,
690,
1339,
2106,
3113,
590,
18,
588,
2157,
12,
629,
262,
11272,
3639,
26166,
394,
2157,
273,
590,
18,
588,
2157,
12,
638,
11272,
3639,
25395,
12,
315,
588,
2157,
12,
3767,
13,
5061,
486,
327,
279,
1339,
3113,
394,
2157,
11272,
3639,
1815,
1248,
8650,
12,
315,
588,
2157,
12,
3767,
13,
2106,
326,
2282,
28711,
1339,
3113,
2282,
2157,
16,
394,
2157,
11272,
3639,
1815,
8650,
12,
315,
3184,
2106,
635,
7183,
12,
5743,
2225,
16,
394,
2157,
16,
590,
18,
588,
2157,
12,
629,
262,
11272,
3639,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2157,
27946,
1435,
1216,
1185,
288,
3639,
2999,
691,
12408,
273,
394,
968,
1305,
4079,
691,
12,
315,
2505,
2207,
13014,
19,
9647,
6,
11272,
3639,
7971,
2802,
1042,
819,
273,
394,
7971,
2802,
1042,
5621,
3639,
26166,
2282,
2157,
273,
819,
18,
2704,
2157,
5621,
3639,
514,
2282,
734,
273,
2282,
2157,
18,
26321,
5621,
3639,
7971,
2802,
8988,
590,
273,
394,
7971,
2802,
8988,
12,
3206,
67,
31066,
15146,
67,
5519,
16,
12408,
16,
819,
16,
394,
18559,
9334,
3741,
67,
8723,
67,
16691,
11272,
9079,
2282,
2157,
18,
542,
1499,
12,
315,
4435,
3113,
394,
2144,
12,
404,
262,
11272,
3639,
13864,
1566,
1557,
273,
2282,
2157,
18,
588,
26080,
5621,
3639,
2
] |
|
switch (methodId) {
|
switch (f.methodId) {
|
public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case ConstructorId_fromCharCode: return 1; case Id_constructor: return 1; case Id_toString: return 0; case Id_toSource: return 0; case Id_valueOf: return 0; case Id_charAt: return 1; case Id_charCodeAt: return 1; case Id_indexOf: return 1; case Id_lastIndexOf: return 1; case Id_split: return 2; case Id_substring: return 2; case Id_toLowerCase: return 0; case Id_toUpperCase: return 0; case Id_substr: return 2; case Id_concat: return 1; case Id_slice: return 2; case Id_bold: return 0; case Id_italics: return 0; case Id_fixed: return 0; case Id_strike: return 0; case Id_small: return 0; case Id_big: return 0; case Id_blink: return 0; case Id_sup: return 0; case Id_sub: return 0; case Id_fontsize: return 0; case Id_fontcolor: return 0; case Id_link: return 0; case Id_anchor: return 0; case Id_equals: return 1; case Id_equalsIgnoreCase: return 1; case Id_match: return 1; case Id_search: return 1; case Id_replace: return 1; } } return super.methodArity(methodId); }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
74,
18,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
30,
282,
327,
404,
31,
7734,
648,
3124,
67,
12316,
30,
9079,
327,
404,
31,
7734,
648,
3124,
67,
10492,
30,
5375,
327,
374,
31,
7734,
648,
3124,
67,
869,
1830,
30,
5375,
327,
374,
31,
7734,
648,
3124,
67,
1132,
951,
30,
10402,
327,
374,
31,
7734,
648,
3124,
67,
3001,
861,
30,
10792,
327,
404,
31,
7734,
648,
3124,
67,
3001,
1085,
861,
30,
7734,
327,
404,
31,
7734,
648,
3124,
67,
31806,
30,
10402,
327,
404,
31,
7734,
648,
3124,
67,
2722,
31985,
30,
9079,
327,
404,
31,
7734,
648,
3124,
67,
4939,
30,
5397,
327,
576,
31,
7734,
648,
3124,
67,
28023,
30,
1171,
327,
576,
31,
7734,
648,
3124,
67,
869,
5630,
30,
9079,
327,
374,
31,
7734,
648,
3124,
67,
869,
8915,
30,
9079,
327,
374,
31,
7734,
648,
3124,
67,
10706,
30,
10792,
327,
576,
31,
7734,
648,
3124,
67,
16426,
30,
10792,
327,
404,
31,
7734,
648,
3124,
67,
6665,
30,
5397,
327,
576,
31,
7734,
648,
3124,
67,
16390,
30,
8227,
327,
374,
31,
7734,
648,
3124,
67,
7053,
2102,
30,
10402,
327,
374,
31,
7734,
648,
3124,
67,
12429,
30,
5397,
327,
374,
31,
7734,
648,
3124,
67,
701,
2547,
30,
10792,
327,
374,
31,
7734,
648,
3124,
67,
12019,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
74,
18,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
30,
282,
327,
404,
31,
7734,
648,
3124,
67,
12316,
30,
9079,
327,
404,
31,
7734,
648,
3124,
67,
10492,
30,
5375,
327,
374,
31,
7734,
648,
3124,
67,
869,
1830,
30,
5375,
327,
374,
31,
7734,
648,
3124,
67,
1132,
951,
30,
10402,
327,
374,
31,
7734,
648,
3124,
67,
3001,
861,
30,
10792,
327,
404,
31,
7734,
648,
3124,
67,
3001,
1085,
861,
30,
7734,
327,
404,
31,
7734,
648,
3124,
67,
31806,
30,
10402,
327,
404,
31,
7734,
648,
3124,
2
] |
public void setOutput(Writer writer) { this.writer = writer; // elementStack = new String[12]; //nsp/prefix/name //nspCounts = new int[4]; //nspStack = new String[8]; //prefix/nsp //indent = new boolean[4]; nspCounts[0] = 2; nspCounts[1] = 2; nspStack[1] = ""; nspStack[0] = null; nspStack[2] = "xml"; nspStack[3] = "http://www.w3.org/XML/1998/namespace"; pending = false; auto = 0; depth = 0; unicode = false; }
|
4761 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4761/ab1bcf8e42e2ffec243c01f4f30b04fb36404adf/KXmlSerializer.java/clean/src/org/kxml2/io/KXmlSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
542,
1447,
12,
2289,
6299,
15329,
2211,
18,
6299,
33,
6299,
31,
759,
2956,
2624,
33,
2704,
780,
63,
2138,
15533,
759,
82,
1752,
19,
3239,
19,
529,
759,
82,
1752,
9211,
33,
2704,
474,
63,
24,
15533,
759,
82,
1752,
2624,
33,
2704,
780,
63,
28,
15533,
759,
3239,
19,
82,
1752,
759,
9355,
33,
2704,
6494,
63,
24,
15533,
82,
1752,
9211,
63,
20,
65,
33,
22,
31,
82,
1752,
9211,
63,
21,
65,
33,
22,
31,
82,
1752,
2624,
63,
21,
65,
1546,
14432,
82,
1752,
2624,
63,
20,
65,
33,
2011,
31,
82,
1752,
2624,
63,
22,
65,
1546,
2902,
14432,
82,
1752,
2624,
63,
23,
65,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4201,
19,
19818,
28,
19,
4937,
14432,
9561,
33,
5743,
31,
6079,
33,
20,
31,
5979,
33,
20,
31,
9124,
33,
5743,
31,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
1071,
6459,
542,
1447,
12,
2289,
6299,
15329,
2211,
18,
6299,
33,
6299,
31,
759,
2956,
2624,
33,
2704,
780,
63,
2138,
15533,
759,
82,
1752,
19,
3239,
19,
529,
759,
82,
1752,
9211,
33,
2704,
474,
63,
24,
15533,
759,
82,
1752,
2624,
33,
2704,
780,
63,
28,
15533,
759,
3239,
19,
82,
1752,
759,
9355,
33,
2704,
6494,
63,
24,
15533,
82,
1752,
9211,
63,
20,
65,
33,
22,
31,
82,
1752,
9211,
63,
21,
65,
33,
22,
31,
82,
1752,
2624,
63,
21,
65,
1546,
14432,
82,
1752,
2624,
63,
20,
65,
33,
2011,
31,
82,
1752,
2624,
63,
22,
65,
1546,
2902,
14432,
82,
1752,
2624,
63,
23,
65,
1546,
2505,
2207,
5591,
18,
91,
2
] |
||
widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } } while( proxyWidth[0] == 0 );
|
gl.glGetTexLevelParameteriv( proxyTarget, 1, GL.GL_TEXTURE_WIDTH, proxyWidth ); if( proxyWidth[0] == 0 ) { if( widthPowerOf2 == 1 && heightPowerOf2 == 1 ) { /* A 1x1 texture couldn't fit for some reason so break out. This * should never happen. But things happen. The disadvantage with * this if-statement is that we will never be aware of when this * happens since it will silently branch out. */ noProxyTextures = true; break; } widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } } while( proxyWidth[0] == 0 ); } catch (GLException e) { noProxyTextures = true; }
|
public static void closestFit( GL gl, int target, int width, int height, int internalFormat, int format, int type, int[] newWidth, int[] newHeight ) { // Use proxy textures if OpenGL version >= 1.1 if( Double.parseDouble( gl.glGetString( GL.GL_VERSION ).trim().substring( 0, 3 ) ) >= 1.1 ) { int widthPowerOf2 = nearestPower( width ); int heightPowerOf2 = nearestPower( height ); int[] proxyWidth = new int[1]; boolean noProxyTextures = false; do { // compute level 1 width & height, clamping each at 1 int widthAtLevelOne = ( ( width > 1 ) ? (widthPowerOf2 >> 1) : widthPowerOf2 ); int heightAtLevelOne = ( ( height > 1 ) ? (heightPowerOf2 >> 1) : heightPowerOf2 ); int proxyTarget; assert( widthAtLevelOne > 0 ); assert( heightAtLevelOne > 0 ); // does width x height at level 1 & all their mipmaps fit? if( target == GL.GL_TEXTURE_2D || target == GL.GL_PROXY_TEXTURE_2D ) { proxyTarget = GL.GL_PROXY_TEXTURE_2D; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else if( (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB) ) { proxyTarget = GL.GL_PROXY_TEXTURE_CUBE_MAP_ARB; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else { assert( target == GL.GL_TEXTURE_1D || target == GL.GL_PROXY_TEXTURE_1D ); proxyTarget = GL.GL_PROXY_TEXTURE_1D; gl.glTexImage1D( proxyTarget, 1, internalFormat, widthAtLevelOne, 0, format, type, (double[])null ); } gl.glGetTexLevelParameteriv( proxyTarget, 1, GL.GL_TEXTURE_WIDTH, proxyWidth ); // does it fit? if( proxyWidth[0] == 0 ) { // nope, so try again with theses sizes if( widthPowerOf2 == 1 && heightPowerOf2 == 1 ) { /* A 1x1 texture couldn't fit for some reason so break out. This * should never happen. But things happen. The disadvantage with * this if-statement is that we will never be aware of when this * happens since it will silently branch out. */ noProxyTextures = true; break; } widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } // else it doese fit } while( proxyWidth[0] == 0 ); // loop must terminate // return the width & height at level 0 that fits if( !noProxyTextures ) { newWidth[0] = widthPowerOf2; newHeight[0] = heightPowerOf2; return; } } int[] maxsize = new int[1]; gl.glGetIntegerv( GL.GL_MAX_TEXTURE_SIZE, maxsize ); // clamp user's texture sizes to maximum sizes, if necessary newWidth[0] = nearestPower( width ); if( newWidth[0] > maxsize[0] ) { newWidth[0] = maxsize[0]; } newHeight[0] = nearestPower( height ); if( newHeight[0] > maxsize[0] ) { newHeight[0] = maxsize[0]; } }
|
46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/d34ebafbd61123d369a1657b8e9bb2db5d45ba6a/Mipmap.java/clean/src/net/java/games/jogl/impl/mipmap/Mipmap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
24104,
262,
288,
565,
368,
2672,
2889,
977,
1823,
309,
3502,
11261,
1177,
1545,
404,
18,
21,
565,
309,
12,
3698,
18,
2670,
5265,
12,
5118,
18,
7043,
967,
780,
12,
10252,
18,
11261,
67,
5757,
262,
18,
5290,
7675,
28023,
12,
374,
16,
890,
262,
262,
1545,
404,
18,
21,
262,
288,
1377,
509,
1835,
13788,
951,
22,
273,
11431,
13788,
12,
1835,
11272,
1377,
509,
2072,
13788,
951,
22,
273,
11431,
13788,
12,
2072,
11272,
1377,
509,
8526,
2889,
2384,
273,
394,
509,
63,
21,
15533,
1377,
1250,
1158,
3886,
1528,
1823,
273,
629,
31,
5411,
741,
288,
3639,
368,
3671,
1801,
404,
1835,
473,
2072,
16,
19049,
310,
1517,
622,
404,
3639,
509,
1835,
861,
2355,
3335,
273,
261,
261,
1835,
405,
404,
262,
692,
261,
2819,
13788,
951,
22,
1671,
404,
13,
294,
1835,
13788,
951,
22,
11272,
3639,
509,
2072,
861,
2355,
3335,
273,
261,
261,
2072,
405,
404,
262,
692,
261,
4210,
13788,
951,
22,
1671,
404,
13,
294,
2072,
13788,
951,
22,
11272,
3639,
509,
2889,
2326,
31,
7734,
1815,
12,
1835,
861,
2355,
3335,
405,
374,
11272,
3639,
1815,
12,
2072,
861,
2355,
3335,
405,
374,
11272,
7734,
368,
1552,
1835,
619,
2072,
622,
1801,
404,
473,
777,
3675,
312,
625,
10711,
4845,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
24104,
262,
288,
565,
368,
2672,
2889,
977,
1823,
309,
3502,
11261,
1177,
1545,
404,
18,
21,
565,
309,
12,
3698,
18,
2670,
5265,
12,
5118,
18,
7043,
967,
780,
12,
10252,
18,
11261,
67,
5757,
262,
18,
5290,
7675,
28023,
12,
374,
16,
890,
262,
262,
1545,
404,
18,
21,
262,
288,
1377,
509,
1835,
13788,
951,
22,
273,
11431,
13788,
12,
1835,
11272,
1377,
509,
2072,
13788,
951,
22,
273,
11431,
13788,
12,
2072,
11272,
1377,
509,
8526,
2889,
2384,
273,
2
] |
storeResult("testMessageSizeThroughput_" + msgSize, totalTimeTaken);
|
Measurement measure = new Measurement("throughput", 1000 * (double)numMessages / totalTimeTaken); measure.setVariableValue("messageSize", msgSize); execution.addMeasurement(measure);
|
public void testMessageSizeThroughput() { log.info("Running test testMessageSizeThroughput"); int[] msgsSize = new int[] {0, 1024, 16384, 65536, 262144, 1048576, 8388608}; for (int i = 0; i < msgsSize.length; i++) { int msgSize = msgsSize[i]; SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); sender.setMf(new BytesMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ReceiverJob receiver = createDefaultReceiverJob(testTopicName); receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setTransacted(false); JobTimings[] results = runJobs(new Job[] {sender, receiver}); /* * NB. * When we calculating the total time taken from first send to last receive, there is some * error involved due to the differences in network latency and other remoting overhead * when sending the jobs to be executed on potentially different remote machines. * We make the assumption that this this difference is very small compared with time taken * to run the tests as to be negligible. */ long totalTimeTaken = results[1].getTestTime() + results[1].getInitTime() - results[0].getInitTime(); storeResult("testMessageSizeThroughput_" + msgSize, totalTimeTaken); } log.info("Test testMessageSizeThroughput finished"); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/PerfRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1079,
1225,
24478,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
1079,
1225,
24478,
8863,
5411,
509,
8526,
8733,
1225,
273,
394,
509,
8526,
288,
20,
16,
6250,
16,
2872,
17295,
16,
28652,
16,
576,
8898,
25339,
16,
21856,
7140,
6669,
16,
26232,
5482,
4848,
28,
20451,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8733,
1225,
18,
2469,
31,
277,
27245,
1377,
288,
1171,
509,
1234,
1225,
273,
8733,
1225,
63,
77,
15533,
9079,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
540,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
540,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
540,
5793,
18,
542,
49,
74,
12,
2704,
5985,
1079,
1079,
1733,
10663,
540,
5793,
18,
542,
1429,
25487,
12,
5743,
1769,
540,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3993,
67,
3194,
28175,
1769,
5375,
31020,
2278,
5971,
273,
27346,
12952,
2278,
12,
3813,
6657,
461,
1769,
5375,
5971,
18,
542,
11931,
2309,
12,
2157,
18,
18909,
67,
3649,
27091,
6687,
7113,
1769,
540,
5971,
18,
542,
1429,
25487,
12,
5743,
1769,
5375,
3956,
10178,
899,
8526,
1686,
273,
1086,
7276,
12,
2704,
3956,
8526,
288,
15330,
16,
5971,
22938,
5375,
1748,
1850,
380,
20096,
18,
1850,
380,
5203,
732,
21046,
326,
2078,
813,
9830,
628,
1122,
1366,
358,
1142,
6798,
16,
1915,
353,
2690,
1850,
380,
555,
24589,
6541,
358,
326,
16440,
316,
2483,
19518,
471,
1308,
849,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
1079,
1225,
24478,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
1079,
1225,
24478,
8863,
5411,
509,
8526,
8733,
1225,
273,
394,
509,
8526,
288,
20,
16,
6250,
16,
2872,
17295,
16,
28652,
16,
576,
8898,
25339,
16,
21856,
7140,
6669,
16,
26232,
5482,
4848,
28,
20451,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
8733,
1225,
18,
2469,
31,
277,
27245,
1377,
288,
1171,
509,
1234,
1225,
273,
8733,
1225,
63,
77,
15533,
9079,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
540,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
540,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
540,
5793,
18,
542,
2
] |
Driver.debug("supportsOrderByUnrelated " + supportsOrderByUnrelated);
|
if (Driver.logDebug) Driver.debug("supportsOrderByUnrelated " + supportsOrderByUnrelated);
|
public boolean supportsOrderByUnrelated() throws SQLException { boolean supportsOrderByUnrelated = connection.haveMinimumServerVersion("6.4"); Driver.debug("supportsOrderByUnrelated " + supportsOrderByUnrelated); return supportsOrderByUnrelated; }
|
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
15658,
984,
9243,
1435,
1216,
6483,
202,
95,
202,
202,
6494,
6146,
15658,
984,
9243,
273,
1459,
18,
21516,
13042,
2081,
1444,
2932,
26,
18,
24,
8863,
202,
202,
4668,
18,
4148,
2932,
28064,
15658,
984,
9243,
315,
397,
6146,
15658,
984,
9243,
1769,
202,
202,
2463,
6146,
15658,
984,
9243,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
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,
6146,
15658,
984,
9243,
1435,
1216,
6483,
202,
95,
202,
202,
6494,
6146,
15658,
984,
9243,
273,
1459,
18,
21516,
13042,
2081,
1444,
2932,
26,
18,
24,
8863,
202,
202,
4668,
18,
4148,
2932,
28064,
15658,
984,
9243,
315,
397,
6146,
15658,
984,
9243,
1769,
202,
202,
2463,
6146,
15658,
984,
9243,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (f.methodId == Id_JavaAdapter) {
|
if (f.methodId() == Id_JavaAdapter) {
|
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { if (f.methodId == Id_JavaAdapter) { return js_createAdpter(cx, scope, args); } } throw f.unknown(); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/204d41ff43a8af9396620af92205c720e2d60c5c/JavaAdapter.java/buggy/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
548,
2083,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
261,
74,
18,
5332,
1805,
12,
4464,
1781,
3719,
288,
5411,
309,
261,
74,
18,
2039,
548,
1435,
422,
3124,
67,
5852,
4216,
13,
288,
7734,
327,
3828,
67,
2640,
1871,
337,
264,
12,
71,
92,
16,
2146,
16,
833,
1769,
5411,
289,
3639,
289,
3639,
604,
284,
18,
8172,
5621,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
1033,
1196,
1305,
12,
548,
2083,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
261,
74,
18,
5332,
1805,
12,
4464,
1781,
3719,
288,
5411,
309,
261,
74,
18,
2039,
548,
1435,
422,
3124,
67,
5852,
4216,
13,
288,
7734,
327,
3828,
67,
2640,
1871,
337,
264,
12,
71,
92,
16,
2146,
16,
833,
1769,
5411,
289,
3639,
289,
3639,
604,
284,
18,
8172,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println("WOClasspathContainer.getClasspathEntries: " + allClasspathEntries);
|
public IClasspathEntry[] getClasspathEntries() { System.out.println("WOClasspathContainer.getClasspathEntries: " + allClasspathEntries); if (classpathEntries == null) { initPath(); } return classpathEntries; }
|
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/abab8038e3e5abd61fba7bfb4b69e5b0c863aec2/WOClasspathContainer.java/clean/wolips/plugins/org.objectstyle.wolips.jdt/java/org/objectstyle/wolips/jdt/classpath/WOClasspathContainer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
17461,
1622,
8526,
2900,
803,
5400,
1435,
288,
565,
2332,
18,
659,
18,
8222,
2932,
59,
51,
17461,
2170,
18,
588,
17461,
5400,
30,
315,
397,
777,
17461,
5400,
1769,
202,
202,
430,
261,
26302,
5400,
422,
446,
13,
288,
1082,
202,
2738,
743,
5621,
202,
202,
97,
202,
202,
2463,
10006,
5400,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
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,
467,
17461,
1622,
8526,
2900,
803,
5400,
1435,
288,
565,
2332,
18,
659,
18,
8222,
2932,
59,
51,
17461,
2170,
18,
588,
17461,
5400,
30,
315,
397,
777,
17461,
5400,
1769,
202,
202,
430,
261,
26302,
5400,
422,
446,
13,
288,
1082,
202,
2738,
743,
5621,
202,
202,
97,
202,
202,
2463,
10006,
5400,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource();
|
public quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { quickfix.field.PartyIDSource value = new quickfix.field.PartyIDSource();
|
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelRequest.java/clean/src/java/src/quickfix/fix43/CrossOrderCancelRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
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,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
1689,
7325,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
734,
1830,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (baos != null) { ByteBuffer bb = ByteBuffer.wrap(baos.toByteArray()); mConnection.write(bb); ZimbraLog.imap.debug(" S: " + baos);
|
baos.close(); if (baosDebug != null) { ZimbraLog.imap.debug(" S: " + baosDebug);
|
boolean doFETCH(String tag, String sequenceSet, int attributes, List<ImapPartSpecifier> parts, boolean byUID) throws IOException, ImapParseException { if (!checkState(tag, ImapSession.STATE_SELECTED)) return CONTINUE_PROCESSING; // 6.4.8: "However, server implementations MUST implicitly include the UID message // data item as part of any FETCH response caused by a UID command, regardless // of whether a UID was specified as a message data item to the FETCH." if (byUID) attributes |= FETCH_UID; String command = (byUID ? "UID FETCH" : "FETCH"); boolean markRead = mSession.getFolder().isWritable() && (attributes & FETCH_MARK_READ) != 0; List<ImapPartSpecifier> fullMessage = new ArrayList<ImapPartSpecifier>(); if (parts != null && !parts.isEmpty()) for (Iterator it = parts.iterator(); it.hasNext(); ) { ImapPartSpecifier pspec = (ImapPartSpecifier) it.next(); if (pspec.isEntireMessage()) { it.remove(); fullMessage.add(pspec); } } Set<ImapMessage> i4set; synchronized (mMailbox) { i4set = mSession.getFolder().getSubsequence(sequenceSet, byUID); } boolean allPresent = byUID || !i4set.contains(null); i4set.remove(null); for (ImapMessage i4msg : i4set) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream result = new PrintStream(baos, false, "utf-8"); try { boolean markMessage = markRead && (i4msg.flags & Flag.BITMASK_UNREAD) != 0; boolean empty = true; byte[] raw = null; MailItem item = null; MimeMessage mm = null; if (!fullMessage.isEmpty() || !parts.isEmpty() || (attributes & ~FETCH_FROM_CACHE) != 0) { GetItemOperation op = new GetItemOperation(mSession, getContext(), mMailbox, Requester.IMAP, i4msg.msgId, i4msg.getType()); op.schedule(); item = op.getItem(); } result.print("* " + i4msg.sequence + " FETCH ("); if ((attributes & FETCH_UID) != 0) { result.print((empty ? "" : " ") + "UID " + i4msg.imapUid); empty = false; } if ((attributes & FETCH_INTERNALDATE) != 0) { result.print((empty ? "" : " ") + "INTERNALDATE \"" + mTimeFormat.format(new Date(item.getDate())) + '"'); empty = false; } if ((attributes & FETCH_RFC822_SIZE) != 0) { result.print((empty ? "" : " ") + "RFC822.SIZE " + i4msg.getSize(item)); empty = false; } if ((attributes & FETCH_BINARY_SIZE) != 0) { result.print((empty ? "" : " ") + "BINARY.SIZE[] " + i4msg.getSize(item)); empty = false; } if (!fullMessage.isEmpty()) { raw = ImapMessage.getContent(item); for (ImapPartSpecifier pspec : fullMessage) { result.print(empty ? "" : " "); pspec.write(result, baos, raw); empty = false; } } if (!parts.isEmpty() || (attributes & ~FETCH_FROM_MIME) != 0) { try { // don't use msg.getMimeMessage() because it implicitly expands TNEF attachments InputStream is = raw != null ? new ByteArrayInputStream(raw) : ImapMessage.getContentStream(item); mm = new Mime.FixedMimeMessage(JMSession.getSession(), is); is.close(); } catch (IOException e) { throw ServiceException.FAILURE("error closing stream for message " + i4msg.msgId, e); } } if ((attributes & FETCH_BODY) != 0) { result.print((empty ? "" : " ") + "BODY "); i4msg.serializeStructure(result, mm, false); empty = false; } if ((attributes & FETCH_BODYSTRUCTURE) != 0) { result.print((empty ? "" : " ") + "BODYSTRUCTURE "); i4msg.serializeStructure(result, mm, true); empty = false; } if ((attributes & FETCH_ENVELOPE) != 0) { result.print((empty ? "" : " ") + "ENVELOPE "); i4msg.serializeEnvelope(result, mm); empty = false; } for (ImapPartSpecifier pspec: parts) { result.print(empty ? "" : " "); pspec.write(result, mm); empty = false; } // FIXME: optimize by doing a single mark-read op on multiple messages if (markMessage) { AlterTagOperation op = new AlterTagOperation(mSession, getContext(), mMailbox, Requester.IMAP, i4msg.msgId, i4msg.getType(), Flag.ID_FLAG_UNREAD, false); op.schedule(); } // 6.4.5: "The \Seen flag is implicitly set; if this causes the flags to // change, they SHOULD be included as part of the FETCH responses." if ((attributes & FETCH_FLAGS) != 0 || markMessage) { mSession.getFolder().undirtyMessage(i4msg); result.print((empty ? "" : " ") + i4msg.getFlags(mSession)); empty = false; } } catch (ImapPartSpecifier.BinaryDecodingException e) { // don't write this response line if we're returning NO baos = null; throw new ImapParseException(tag, "UNKNOWN-CTE", command + "failed: unknown content-type-encoding", false); } catch (ServiceException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } catch (MessagingException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } finally { result.write(')'); result.write(LINE_SEPARATOR_BYTES, 0, LINE_SEPARATOR_BYTES.length); if (baos != null) { ByteBuffer bb = ByteBuffer.wrap(baos.toByteArray()); mConnection.write(bb); ZimbraLog.imap.debug(" S: " + baos); } } } sendNotifications(false, false); if (allPresent) sendOK(tag, command + " completed"); else { // RFC 2180 4.1.2: "The server MAY allow the EXPUNGE of a multi-accessed mailbox, // and on subsequent FETCH commands return FETCH responses only // for non-expunged messages and a tagged NO." sendNO(tag, "some of the requested messages no longer exist"); } return CONTINUE_PROCESSING; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/47a3677dc57d108c2649ca94ff1fb9e79593e987/OzImapConnectionHandler.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/OzImapConnectionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4803,
2056,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
368,
1666,
18,
24,
18,
28,
30,
315,
44,
543,
6084,
16,
1438,
16164,
10685,
24682,
2341,
326,
10034,
883,
3639,
368,
540,
501,
761,
487,
1087,
434,
1281,
10994,
766,
15848,
635,
279,
10034,
1296,
16,
15255,
3639,
368,
540,
434,
2856,
279,
10034,
1703,
1269,
487,
279,
883,
501,
761,
358,
326,
10994,
1199,
3639,
309,
261,
1637,
3060,
13,
5411,
1677,
5626,
10994,
67,
3060,
31,
3639,
514,
1296,
273,
261,
1637,
3060,
692,
315,
3060,
10994,
6,
294,
315,
20231,
8863,
3639,
1250,
2267,
1994,
273,
312,
2157,
18,
588,
3899,
7675,
291,
12061,
1435,
597,
261,
4350,
473,
10994,
67,
12693,
67,
6949,
13,
480,
374,
31,
3639,
987,
32,
20827,
1988,
21416,
34,
1983,
1079,
273,
394,
2407,
32,
20827,
1988,
21416,
34,
5621,
3639,
309,
261,
6019,
480,
446,
597,
401,
6019,
18,
291,
1921,
10756,
5411,
364,
261,
3198,
518,
273,
2140,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
7734,
467,
1458,
1988,
21416,
293,
2793,
273,
261,
20827,
1988,
21416,
13,
518,
18,
4285,
5621,
7734,
309,
261,
1121,
705,
18,
291,
14199,
577,
1079,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4803,
2056,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
368,
1666,
18,
24,
18,
28,
30,
315,
44,
543,
6084,
16,
1438,
16164,
10685,
24682,
2341,
326,
10034,
883,
3639,
368,
540,
501,
761,
487,
1087,
434,
1281,
10994,
766,
15848,
635,
279,
10034,
1296,
16,
15255,
3639,
368,
540,
434,
2856,
279,
10034,
1703,
1269,
487,
279,
883,
501,
761,
358,
326,
10994,
1199,
3639,
309,
261,
2
] |
return peerID.hashCode();
|
return peerID.hashCode() ^ (2 << _id);
|
public int hashCode() { return peerID.hashCode(); }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/98277d3b646cb163de319ccb977f49a8c7c158f3/Peer.java/clean/apps/i2psnark/java/src/org/klomp/snark/Peer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
13374,
1435,
225,
288,
565,
327,
4261,
734,
18,
2816,
1085,
1435,
3602,
261,
22,
2296,
389,
350,
1769,
225,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
13374,
1435,
225,
288,
565,
327,
4261,
734,
18,
2816,
1085,
1435,
3602,
261,
22,
2296,
389,
350,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ResourceBundle.getBundle( Messages.ENGINE, Locale.getDefault( ) ) );
|
ResourceBundle.getBundle( Messages.ENGINE ) );
|
private static final Object getPluginXmlObject( String sXsdListName, String sXsdComplexName, String sXsdElementName, String sXsdElementValue, String sLookupName ) throws ChartException { final IExtensionRegistry ier = Platform.getExtensionRegistry( ); final IExtensionPoint iep = ier.getExtensionPoint( PLUGIN, sXsdListName ); if ( iep == null ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.PLUGIN, "exception.cannot.find.plugin.entry", //$NON-NLS-1$ new Object[]{ sLookupName, sXsdElementName, sXsdElementValue }, ResourceBundle.getBundle( Messages.ENGINE, Locale.getDefault( ) ) ); } final IExtension[] iea = iep.getExtensions( ); IConfigurationElement[] icea; for ( int i = 0; i < iea.length; i++ ) { icea = iea[i].getConfigurationElements( ); for ( int j = 0; j < icea.length; j++ ) { if ( icea[j].getName( ).equals( sXsdComplexName ) ) { if ( icea[j].getAttribute( sXsdElementName ) .equals( sLookupName ) ) { try { return icea[j].createExecutableExtension( sXsdElementValue ); } catch ( FrameworkException cex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.PLUGIN, cex ); } } } } } return null; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/PluginSettings.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/PluginSettings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
1033,
16319,
4432,
921,
12,
514,
272,
60,
6427,
682,
461,
16,
1082,
202,
780,
272,
60,
6427,
12795,
461,
16,
514,
272,
60,
6427,
30584,
16,
1082,
202,
780,
272,
60,
6427,
1046,
620,
16,
514,
272,
6609,
461,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
467,
3625,
4243,
277,
264,
273,
11810,
18,
588,
3625,
4243,
12,
11272,
202,
202,
6385,
467,
3625,
2148,
277,
881,
273,
277,
264,
18,
588,
3625,
2148,
12,
22704,
16,
272,
60,
6427,
682,
461,
11272,
202,
202,
430,
261,
277,
881,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
19415,
16,
6862,
202,
6,
4064,
18,
12892,
18,
4720,
18,
4094,
18,
4099,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
6862,
1082,
202,
87,
6609,
461,
16,
272,
60,
6427,
30584,
16,
272,
60,
6427,
1046,
620,
6862,
202,
5779,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
6862,
1082,
202,
3916,
18,
588,
1868,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
467,
3625,
8526,
9228,
69,
273,
277,
881,
18,
588,
7513,
12,
11272,
202,
202,
45,
1750,
1046,
8526,
277,
311,
69,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
9228,
69,
18,
2469,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
1812,
69,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
16319,
4432,
921,
12,
514,
272,
60,
6427,
682,
461,
16,
1082,
202,
780,
272,
60,
6427,
12795,
461,
16,
514,
272,
60,
6427,
30584,
16,
1082,
202,
780,
272,
60,
6427,
1046,
620,
16,
514,
272,
6609,
461,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
467,
3625,
4243,
277,
264,
273,
11810,
18,
588,
3625,
4243,
12,
11272,
202,
202,
6385,
467,
3625,
2148,
277,
881,
273,
277,
264,
18,
588,
3625,
2148,
12,
22704,
16,
272,
60,
6427,
682,
461,
11272,
202,
202,
430,
261,
277,
881,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
2
] |
"Press yes if the jobs should be run one at a time, and no otherwise",
|
"Press yes if the jobs should be run one at a time, and no otherwise",
|
private boolean askForExclusive() { MessageDialog dialog = new MessageDialog( window.getShell(), "Likes to be left alone?", null, "Press yes if the jobs should be run one at a time, and no otherwise", MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 1 // no is the default ); return dialog.open() == 0; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c96c4f274dd5c81e1339f85c32a8a6669c73643f/CreateJobsAction.java/buggy/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/actions/CreateJobsAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
2002,
24068,
35,
3113,
9506,
202,
2011,
16,
9506,
202,
6,
11840,
12465,
309,
326,
6550,
1410,
506,
1086,
1245,
622,
279,
813,
16,
471,
1158,
3541,
3113,
9506,
202,
1079,
6353,
18,
4740,
1146,
16,
9506,
202,
2704,
514,
8526,
288,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
1599,
3529,
2918,
18,
3417,
67,
13545,
19879,
9506,
202,
21,
368,
1158,
353,
326,
805,
202,
202,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
374,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6827,
1290,
17075,
1435,
288,
202,
202,
1079,
6353,
6176,
273,
1082,
202,
2704,
2350,
6353,
12,
9506,
202,
5668,
18,
588,
13220,
9334,
9506,
202,
6,
48,
25235,
358,
506,
2002,
24068,
35,
3113,
9506,
202,
2011,
16,
9506,
202,
6,
11840,
12465,
309,
326,
6550,
1410,
506,
1086,
1245,
622,
279,
813,
16,
471,
1158,
3541,
3113,
9506,
202,
1079,
6353,
18,
4740,
1146,
16,
9506,
202,
2704,
514,
8526,
288,
1599,
3529,
2918,
18,
29081,
67,
13545,
16,
1599,
3529,
2918,
18,
3417,
67,
13545,
19879,
9506,
202,
21,
368,
1158,
353,
326,
805,
202,
202,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
374,
31,
202,
97,
2,
-100,
-100,
-100
] |
BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID())
|
BitstreamFormat unknown = null;; try { unknown = findUnknown(bfContext); } catch (IllegalStateException e) { } if (unknown == null || unknown.getID() != getID()) {
|
public void setShortDescription(String s) throws SQLException { // You can not reset the unknown's registry's name BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID()) bfRow.setColumn("short_description", s); }
|
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/b1f9fd2d4f8f5a194f5770c224795f089f004bd4/BitstreamFormat.java/clean/dspace/src/org/dspace/content/BitstreamFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4897,
3291,
12,
780,
272,
13,
4202,
1216,
6483,
565,
288,
3639,
368,
4554,
848,
486,
2715,
326,
5917,
1807,
4023,
1807,
508,
3639,
6539,
3256,
1630,
5917,
273,
1104,
4874,
12,
17156,
1042,
1769,
3639,
309,
261,
8172,
18,
588,
734,
1435,
480,
14744,
10756,
5411,
16222,
1999,
18,
542,
1494,
2932,
6620,
67,
3384,
3113,
272,
1769,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4897,
3291,
12,
780,
272,
13,
4202,
1216,
6483,
565,
288,
3639,
368,
4554,
848,
486,
2715,
326,
5917,
1807,
4023,
1807,
508,
3639,
6539,
3256,
1630,
5917,
273,
1104,
4874,
12,
17156,
1042,
1769,
3639,
309,
261,
8172,
18,
588,
734,
1435,
480,
14744,
10756,
5411,
16222,
1999,
18,
542,
1494,
2932,
6620,
67,
3384,
3113,
272,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else
|
} else
|
private void initDropCellsInGroup( ) { dropCellsInGroup = new boolean[table.getGroupCount( )]; for ( int i = 0; i < table.getGroupCount( ); i++ ) { TableGroupDesign group = table.getGroup( i ); if ( group != null && hasDropCellsInGroup( group ) ) { dropCellsInGroup[i] = true; } else { dropCellsInGroup[i] = false; } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3ff8c8c7dcc1456137e4ae046739e5dc4d3f729d/TableItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
1208,
7544,
10505,
31138,
12,
262,
202,
202,
95,
1082,
202,
7285,
10505,
31138,
273,
394,
1250,
63,
2121,
18,
588,
1114,
1380,
12,
262,
15533,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1114,
1380,
12,
11272,
277,
9904,
262,
1082,
202,
95,
9506,
202,
1388,
1114,
15478,
1041,
273,
1014,
18,
588,
1114,
12,
277,
11272,
9506,
202,
430,
261,
1041,
480,
446,
597,
711,
7544,
10505,
31138,
12,
1041,
262,
262,
9506,
202,
95,
6862,
202,
7285,
10505,
31138,
63,
77,
65,
273,
638,
31,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
7285,
10505,
31138,
63,
77,
65,
273,
629,
31,
9506,
202,
97,
1082,
202,
97,
202,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
3196,
202,
1152,
918,
1208,
7544,
10505,
31138,
12,
262,
202,
202,
95,
1082,
202,
7285,
10505,
31138,
273,
394,
1250,
63,
2121,
18,
588,
1114,
1380,
12,
262,
15533,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1014,
18,
588,
1114,
1380,
12,
11272,
277,
9904,
262,
1082,
202,
95,
9506,
202,
1388,
1114,
15478,
1041,
273,
1014,
18,
588,
1114,
12,
277,
11272,
9506,
202,
430,
261,
1041,
480,
446,
597,
711,
7544,
10505,
31138,
12,
1041,
262,
262,
9506,
202,
95,
6862,
202,
7285,
10505,
31138,
63,
77,
65,
273,
638,
31,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
7285,
10505,
31138,
63,
77,
65,
273,
629,
31,
9506,
2
] |
toCopy = size - numRead; } System.arraycopy(smallBlockArray, ndx*smallBlock, file,
|
toCopy = size - numRead; } System.arraycopy(smallBlockArray, ndx*smallBlock, file,
|
public Vector[] getFiles() throws IOException { Vector leaves = fileSystem.getLeaf(); Vector names = new Vector(); // should be the full path through the tree Vector files = new Vector(); for (int i=0; i<leaves.size(); i++) { RedBlackTreeNode node = (RedBlackTreeNode) leaves.get(i); names.add(node.getName()); int start = node.getFirstBlock(); int size = node.getSize() + bigBlock; byte[] file = new byte[size]; int numRead = 0; // if the size of the file is less than 4096, use the SBAT // otherwise, use the BAT if (size < 4096) { // offset is start * smallBlock int ndx = start; while ((numRead < size) && (ndx >= 0)) { int toCopy = smallBlock; if ((size - numRead) < smallBlock) { toCopy = size - numRead; } System.arraycopy(smallBlockArray, ndx*smallBlock, file, numRead, toCopy); numRead += toCopy; int old = ndx; if (ndx < sbat.length) ndx = sbat[ndx]; else ndx++; if (ndx * smallBlock >= smallBlockArray.length || (ndx*smallBlock < 0)) { ndx = old + 1; } } } else { start++; while ((numRead < size) && (start < (in.length() / bigBlock))) { in.seek(bigBlock * start); read.add(new Integer(bigBlock)); int toCopy = bigBlock; if ((size - numRead) < bigBlock) { toCopy = size - numRead; } in.read(file, numRead, toCopy); numRead += toCopy; if (start < bat.length) { start = bat[start]; } else { start++; while (inBat(start - 1) && !read.contains(new Integer(start))) { start++; } } } } files.add(file); } return new Vector[] {names, files}; }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/e1c1aa6cc0c7d00068e668cc26f365c20679cd01/OLEParser.java/clean/loci/formats/OLEParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5589,
8526,
18262,
1435,
1216,
1860,
288,
565,
5589,
15559,
273,
18458,
18,
588,
9858,
5621,
565,
5589,
1257,
273,
394,
5589,
5621,
225,
368,
1410,
506,
326,
1983,
589,
3059,
326,
2151,
565,
5589,
1390,
273,
394,
5589,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
298,
6606,
18,
1467,
5621,
277,
27245,
288,
1377,
4621,
13155,
12513,
756,
273,
261,
3715,
13155,
12513,
13,
15559,
18,
588,
12,
77,
1769,
1377,
1257,
18,
1289,
12,
2159,
18,
17994,
10663,
1377,
509,
787,
273,
756,
18,
588,
3759,
1768,
5621,
1377,
509,
963,
273,
756,
18,
588,
1225,
1435,
397,
5446,
1768,
31,
1377,
1160,
8526,
585,
273,
394,
1160,
63,
1467,
15533,
1377,
509,
818,
1994,
273,
374,
31,
1377,
368,
309,
326,
963,
434,
326,
585,
353,
5242,
2353,
16797,
16,
999,
326,
348,
38,
789,
1377,
368,
3541,
16,
999,
326,
605,
789,
1377,
309,
261,
1467,
411,
16797,
13,
288,
3639,
368,
1384,
353,
787,
380,
5264,
1768,
3639,
509,
5346,
92,
273,
787,
31,
3639,
1323,
14015,
2107,
1994,
411,
963,
13,
597,
261,
4880,
92,
1545,
374,
3719,
288,
1850,
509,
358,
2951,
273,
5264,
1768,
31,
1850,
309,
14015,
1467,
300,
818,
1994,
13,
411,
5264,
1768,
13,
288,
5411,
358,
2951,
273,
963,
300,
818,
1994,
31,
1850,
289,
1850,
2332,
18,
1126,
3530,
12,
12019,
1768,
1076,
16,
5346,
92,
14,
12019,
1768,
16,
585,
16,
5411,
818,
1994,
16,
358,
2951,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
8526,
18262,
1435,
1216,
1860,
288,
565,
5589,
15559,
273,
18458,
18,
588,
9858,
5621,
565,
5589,
1257,
273,
394,
5589,
5621,
225,
368,
1410,
506,
326,
1983,
589,
3059,
326,
2151,
565,
5589,
1390,
273,
394,
5589,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
298,
6606,
18,
1467,
5621,
277,
27245,
288,
1377,
4621,
13155,
12513,
756,
273,
261,
3715,
13155,
12513,
13,
15559,
18,
588,
12,
77,
1769,
1377,
1257,
18,
1289,
12,
2159,
18,
17994,
10663,
1377,
509,
787,
273,
756,
18,
588,
3759,
1768,
5621,
1377,
509,
963,
273,
756,
18,
588,
1225,
1435,
397,
5446,
1768,
31,
1377,
1160,
8526,
585,
273,
394,
1160,
63,
1467,
15533,
2
] |
return runtimestrategyadapter.getJobID();
|
return vmInformation.getJobID();
|
public String getJobID() { return runtimestrategyadapter.getJobID(); }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/357764c2a251c0b33eaf7a3e70482a8b3630d475/HttpRuntimeAdapter.java/clean/src/org/objectweb/proactive/core/runtime/http/HttpRuntimeAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13024,
734,
1435,
288,
3639,
327,
4268,
5369,
18,
588,
2278,
734,
5621,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
514,
13024,
734,
1435,
288,
3639,
327,
4268,
5369,
18,
588,
2278,
734,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Application.removeCurrentUser(session);
|
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String referer = request.getHeader("REFERER"); if (referer == null || referer.length() == 0) { Configuration config = Application.get().getConfiguration(); referer = config.getSnipUrl(config.getStartSnip()); } if ("true".equals(request.getParameter("logoff"))) { HttpSession session = request.getSession(); SessionService service = (SessionService) Components.getComponent(SessionService.class); service.removeCookie(request, response);// Application.removeCurrentUser(session); Application.get().setUser(null); session.invalidate(); } else if ("true".equals(request.getParameter("timeout"))) { HttpSession session = request.getSession(); //Application.removeCurrentUser(session); session.invalidate(); } response.sendRedirect(referer); }
|
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/314050a57f5cb0f35769eeecc67b4b7e4363490f/LoginServlet.java/buggy/src/org/snipsnap/net/LoginServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4750,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
918,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
23611,
12,
2940,
18572,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
590,
16,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
12446,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
766,
13,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
1216,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
16517,
16,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
1860,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
288,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
514,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
18068,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
273,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
590,
18,
588,
1864,
2932,
30269,
654,
8863,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
309,
3208,
18,
4479,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4750,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
918,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
23611,
12,
2940,
18572,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
590,
16,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
12446,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
766,
13,
3208,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
4257,
18,
4479,
3935,
1299,
12,
3184,
1769,
1216,
3208,
18,
4479,
2
] |
|
{ try { DOMWrapper[] children = _def.getChildren(); NodeDef[] a = new NodeDef[children.length]; for (int i = 0; i < a.length; i++) { a[i] = ElementDef.constructElement( children[i], enclosure, prefix); } return a; } catch (XOMException e) { throw new AssertFailure(e, "in WrapperElementDef.getChildren"); } }
|
{ try { DOMWrapper[] children = _def.getChildren(); NodeDef[] a = new NodeDef[children.length]; for (int i = 0; i < a.length; i++) { a[i] = ElementDef.constructElement( children[i], enclosure, prefix); } return a; } catch (XOMException e) { throw new AssertFailure(e, "in WrapperElementDef.getChildren"); } }
|
public NodeDef[] getChildren() { try { DOMWrapper[] children = _def.getChildren(); NodeDef[] a = new NodeDef[children.length]; for (int i = 0; i < a.length; i++) { a[i] = ElementDef.constructElement( children[i], enclosure, prefix); } return a; } catch (XOMException e) { throw new AssertFailure(e, "in WrapperElementDef.getChildren"); } }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/WrapperElementDef.java/buggy/src/main/mondrian/xom/WrapperElementDef.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
3262,
8526,
10268,
1435,
202,
95,
202,
202,
698,
288,
1082,
202,
8168,
3611,
8526,
2325,
273,
389,
536,
18,
588,
4212,
5621,
1082,
202,
907,
3262,
8526,
279,
273,
394,
2029,
3262,
63,
5906,
18,
2469,
15533,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
279,
18,
2469,
31,
277,
27245,
288,
9506,
202,
69,
63,
77,
65,
273,
3010,
3262,
18,
10062,
1046,
12,
6862,
202,
5906,
63,
77,
6487,
23423,
16,
1633,
1769,
1082,
202,
97,
1082,
202,
2463,
279,
31,
202,
202,
97,
1044,
261,
60,
1872,
503,
425,
13,
288,
1082,
202,
12849,
394,
5452,
5247,
12,
73,
16,
315,
267,
18735,
1046,
3262,
18,
588,
4212,
8863,
202,
202,
97,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
2029,
3262,
8526,
10268,
1435,
202,
95,
202,
202,
698,
288,
1082,
202,
8168,
3611,
8526,
2325,
273,
389,
536,
18,
588,
4212,
5621,
1082,
202,
907,
3262,
8526,
279,
273,
394,
2029,
3262,
63,
5906,
18,
2469,
15533,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
279,
18,
2469,
31,
277,
27245,
288,
9506,
202,
69,
63,
77,
65,
273,
3010,
3262,
18,
10062,
1046,
12,
6862,
202,
5906,
63,
77,
6487,
23423,
16,
1633,
1769,
1082,
202,
97,
1082,
202,
2463,
279,
31,
202,
202,
97,
1044,
261,
60,
1872,
503,
425,
13,
288,
1082,
202,
12849,
394,
5452,
5247,
12,
73,
16,
315,
267,
18735,
1046,
3262,
18,
588,
4212,
2
] |
if (false && !obj.isFinal()) bugReporter.reportBug(new BugInstance(this, "TESTING",
|
if (!obj.isFinal()) bugReporter.reportBug(new BugInstance(this, "JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS",
|
public void visit(Field obj) { if (false && !obj.isFinal()) bugReporter.reportBug(new BugInstance(this, "TESTING", NORMAL_PRIORITY).addClass(this).addVisitedField(this)); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/14176606926afa7a5b5ca62a37770d670a9864c9/CheckImmutableAnnotation.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/CheckImmutableAnnotation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
12,
974,
1081,
13,
288,
202,
202,
430,
261,
5743,
597,
401,
2603,
18,
291,
7951,
10756,
1082,
202,
925,
13289,
18,
6006,
19865,
12,
2704,
16907,
1442,
12,
2211,
16,
315,
16961,
1360,
3113,
6862,
202,
15480,
67,
19804,
2934,
1289,
797,
12,
2211,
2934,
1289,
30019,
974,
12,
2211,
10019,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
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,
3757,
12,
974,
1081,
13,
288,
202,
202,
430,
261,
5743,
597,
401,
2603,
18,
291,
7951,
10756,
1082,
202,
925,
13289,
18,
6006,
19865,
12,
2704,
16907,
1442,
12,
2211,
16,
315,
16961,
1360,
3113,
6862,
202,
15480,
67,
19804,
2934,
1289,
797,
12,
2211,
2934,
1289,
30019,
974,
12,
2211,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
att.setText(new String(bs));
|
att.setText(new String(bs));
|
public void actionPerformed(ActionEvent ae) { //try to retieve all text from message area. notifySendingMail(); boolean success = false; String messageText = mEditor.getText(); if (messageText == null) { System.err.println("****Null messageText"); } //try to send the message //get the current list of recipients. Addressee[] recipients = mAddressList.getAddresses(); //Check that is at least one recipient. if (0 < recipients.length) { //create a mime message MimeMessage msg = new MimeMessage(mSession); // TD try { IdentityStructure ident = IdentityArray.GetMaster().get( mAddressBar.getOptionsPanel().getSelectedIdentity()); //set who's sending this message. msg.setFrom (new InternetAddress(ident.getEMail(), ident.getName())); //add the recipients one at a time. for (int i = 0; i < recipients.length; i++) { javax.mail.Address[] toAddress = new InternetAddress[1]; toAddress[0] = new InternetAddress(recipients[i].getText()); Message.RecipientType deliverMode = Message.RecipientType.TO; //map grendel.composition.Addressee delivery modes // into javax.mail.Message delivery modes. switch (recipients[i].getDelivery()) { case Addressee.TO: deliverMode = Message.RecipientType.TO; break; case Addressee.CC: deliverMode = Message.RecipientType.CC; break; case Addressee.BCC: deliverMode = Message.RecipientType.BCC; break; } msg.addRecipients(deliverMode, toAddress); } msg.setSubject(mSubject.getText()); //set subject from text //field. msg.setHeader("X-Mailer", "Grendel [development version]"); //and proud of it! msg.setSentDate(new java.util.Date()); //set date to now. String [] attachments = mAttachmentsList.getAttachments(); if (attachments.length == 0) { msg.setContent(messageText, "text/plain"); //contents. } else { MimeMultipart multi = new MimeMultipart(); MimeBodyPart mainText = new MimeBodyPart(); mainText.setText(messageText); multi.addBodyPart(mainText); for (int i = 0; i < attachments.length; ++i) { try { File f = new File(attachments[i]); int len = (int) f.length(); String mimeString = FileTypeMap.getDefaultFileTypeMap().getContentType(f); MimeType mimeType = new MimeType(mimeString); byte [] bs = new byte[len]; FileInputStream fis = new FileInputStream(f); DataInputStream dis = new DataInputStream(fis); dis.readFully(bs); dis.close(); fis.close(); MimeBodyPart att = new MimeBodyPart(); String encName = "7bit"; if (mimeType.getPrimaryType().equalsIgnoreCase("text")) { if (!isCleanText(bs)) { encName = "quoted-printable"; } } else { encName = "base64"; } att.setText(new String(bs)); att.setHeader("Content-Type", mimeString); att.setHeader("Content-Transfer-Encoding", encName); att.setFileName(new File(attachments[i]).getName()); att.setDisposition("Attachment"); multi.addBodyPart(att); } catch (Exception e) { // Could be IOException or MessagingException. For now... e.printStackTrace(); } } msg.setContent(multi); } try { Properties props = mSession.getProperties(); props.put("mail.host", GeneralPrefs.GetMaster().getSMTPServer()); Session newSession = Session.getInstance(props,null); newSession.getTransport("smtp").send(msg); // send the message. } catch (MessagingException exc) { exc.printStackTrace(); } success = true; } catch (javax.mail.SendFailedException sex) { sex.printStackTrace(); Address addr[] = sex.getInvalidAddresses(); if (addr != null) { System.err.println("Addresses: "); for (int i = 0; i < addr.length; i++) { System.err.println(" " + addr[i].toString()); } } } catch (MessagingException mex) { mex.printStackTrace(); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } } if (success) { //hide this frame after sending mail. notifyMailSent(); } else { notifySendFailed(); } }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/CompositionPanel.java/buggy/grendel/sources/grendel/composition/CompositionPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
368,
698,
358,
325,
21271,
777,
977,
628,
883,
5091,
18,
1377,
5066,
16322,
6759,
5621,
1377,
1250,
2216,
273,
629,
31,
1377,
514,
883,
1528,
273,
312,
6946,
18,
588,
1528,
5621,
1377,
309,
261,
2150,
1528,
422,
446,
13,
288,
3639,
2332,
18,
370,
18,
8222,
2932,
1007,
2041,
883,
1528,
8863,
1377,
289,
1377,
368,
698,
358,
1366,
326,
883,
1377,
368,
588,
326,
783,
666,
434,
12045,
18,
1377,
1436,
455,
5946,
8526,
12045,
273,
312,
1887,
682,
18,
588,
7148,
5621,
1377,
368,
1564,
716,
353,
622,
4520,
1245,
8027,
18,
1377,
309,
261,
20,
411,
12045,
18,
2469,
13,
288,
3639,
368,
2640,
279,
4892,
883,
3639,
22059,
1079,
1234,
273,
394,
22059,
1079,
12,
81,
2157,
1769,
368,
29763,
3639,
775,
288,
1850,
7808,
6999,
3390,
273,
7808,
1076,
18,
967,
7786,
7675,
588,
12,
18701,
312,
1887,
5190,
18,
588,
1320,
5537,
7675,
588,
7416,
4334,
10663,
10792,
368,
542,
10354,
1807,
5431,
333,
883,
18,
1850,
1234,
18,
542,
1265,
261,
2704,
21352,
1887,
12,
6392,
18,
588,
3375,
671,
9334,
3390,
18,
17994,
1435,
10019,
1850,
368,
1289,
326,
12045,
1245,
622,
279,
813,
18,
1850,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12045,
18,
2469,
31,
277,
27245,
288,
5411,
6863,
18,
4408,
18,
1887,
8526,
358,
1887,
273,
394,
21352,
1887,
63,
21,
15533,
5411,
358,
1887,
63,
20,
65,
273,
394,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
368,
698,
358,
325,
21271,
777,
977,
628,
883,
5091,
18,
1377,
5066,
16322,
6759,
5621,
1377,
1250,
2216,
273,
629,
31,
1377,
514,
883,
1528,
273,
312,
6946,
18,
588,
1528,
5621,
1377,
309,
261,
2150,
1528,
422,
446,
13,
288,
3639,
2332,
18,
370,
18,
8222,
2932,
1007,
2041,
883,
1528,
8863,
1377,
289,
1377,
368,
698,
358,
1366,
326,
883,
1377,
368,
588,
326,
783,
666,
434,
12045,
18,
1377,
1436,
455,
5946,
8526,
12045,
273,
312,
1887,
682,
18,
588,
7148,
5621,
1377,
368,
1564,
716,
353,
622,
4520,
1245,
8027,
18,
1377,
309,
261,
20,
411,
12045,
18,
2469,
13,
288,
3639,
368,
2
] |
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-1024)/2, (screenSize.height-768)/2, 1024, 768);
|
setSize(new java.awt.Dimension(924, 768));
|
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; mainSplitPane = new javax.swing.JSplitPane(); mainTabbedPane = new javax.swing.JTabbedPane(); jTabbedPane1 = new javax.swing.JTabbedPane(); jScrollPane1 = new javax.swing.JScrollPane(); stdoutTextArea = new javax.swing.JTextArea(); jScrollPane2 = new javax.swing.JScrollPane(); stderrTextArea = new javax.swing.JTextArea(); mainMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newMenuItem = new javax.swing.JMenuItem(); openMenuItem = new javax.swing.JMenuItem(); exitMenuItem = new javax.swing.JMenuItem(); toolsMenu = new javax.swing.JMenu(); proxyMenuItem = new javax.swing.JMenuItem(); optionsMenuItem = new javax.swing.JMenuItem(); cookieJarMenuItem = new javax.swing.JMenuItem(); saveConfigMenuItem = new javax.swing.JMenuItem(); transcoderMenuItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutMenuItem = new javax.swing.JMenuItem(); debugMenu = new javax.swing.JMenu(); proxyDebugMenu = new javax.swing.JMenu(); proxyDebugRequestCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem(); proxyDebugResponseCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem(); manualDebugMenu = new javax.swing.JMenu(); manualDebugRequestCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem(); manualDebugResponseCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); setTitle("WebScarab"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); mainSplitPane.setBorder(null); mainSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); mainSplitPane.setResizeWeight(1.0); mainSplitPane.setContinuousLayout(true); mainSplitPane.setAutoscrolls(true); mainTabbedPane.setMinimumSize(new java.awt.Dimension(300, 100)); mainTabbedPane.setPreferredSize(new java.awt.Dimension(1280, 1024)); mainSplitPane.setLeftComponent(mainTabbedPane); jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT); jTabbedPane1.setMaximumSize(new java.awt.Dimension(2048, 100)); jTabbedPane1.setMinimumSize(new java.awt.Dimension(200, 60)); jTabbedPane1.setPreferredSize(new java.awt.Dimension(200, 100)); jTabbedPane1.setRequestFocusEnabled(false); jScrollPane1.setMinimumSize(new java.awt.Dimension(22, 40)); jScrollPane1.setPreferredSize(new java.awt.Dimension(3, 40)); stdoutTextArea.setBackground(new java.awt.Color(204, 204, 204)); stdoutTextArea.setEditable(false); jScrollPane1.setViewportView(stdoutTextArea); jTabbedPane1.addTab("stdout", jScrollPane1); jScrollPane2.setMinimumSize(new java.awt.Dimension(22, 40)); jScrollPane2.setPreferredSize(new java.awt.Dimension(3, 40)); stderrTextArea.setBackground(new java.awt.Color(204, 204, 204)); stderrTextArea.setEditable(false); jScrollPane2.setViewportView(stderrTextArea); jTabbedPane1.addTab("stderr", jScrollPane2); mainSplitPane.setRightComponent(jTabbedPane1); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(mainSplitPane, gridBagConstraints); fileMenu.setMnemonic('F'); fileMenu.setText("File"); newMenuItem.setMnemonic('N'); newMenuItem.setText("New"); newMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newMenuItemActionPerformed(evt); } }); fileMenu.add(newMenuItem); openMenuItem.setMnemonic('O'); openMenuItem.setText("Open"); openMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openMenuItemActionPerformed(evt); } }); fileMenu.add(openMenuItem); exitMenuItem.setMnemonic('X'); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); fileMenu.add(exitMenuItem); mainMenuBar.add(fileMenu); toolsMenu.setMnemonic('T'); toolsMenu.setText("Tools"); proxyMenuItem.setText("Proxies"); proxyMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { proxyMenuItemActionPerformed(evt); } }); toolsMenu.add(proxyMenuItem); optionsMenuItem.setText("Options"); toolsMenu.add(optionsMenuItem); cookieJarMenuItem.setText("Shared Cookies"); cookieJarMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cookieJarMenuItemActionPerformed(evt); } }); toolsMenu.add(cookieJarMenuItem); saveConfigMenuItem.setText("Save Configuration"); saveConfigMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveConfigMenuItemActionPerformed(evt); } }); toolsMenu.add(saveConfigMenuItem); transcoderMenuItem.setText("Transcoder"); transcoderMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { transcoderMenuItemActionPerformed(evt); } }); toolsMenu.add(transcoderMenuItem); mainMenuBar.add(toolsMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); aboutMenuItem.setMnemonic('A'); aboutMenuItem.setText("About"); aboutMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutMenuItemActionPerformed(evt); } }); helpMenu.add(aboutMenuItem); debugMenu.setText("Debug"); proxyDebugMenu.setText("Proxy"); proxyDebugRequestCheckBoxMenuItem.setText("Requests"); proxyDebugRequestCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to your system TEMP directory"); proxyDebugRequestCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { proxyDebugRequestCheckBoxMenuItemActionPerformed(evt); } }); proxyDebugMenu.add(proxyDebugRequestCheckBoxMenuItem); proxyDebugResponseCheckBoxMenuItem.setText("Responses"); proxyDebugResponseCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to the system TEMP dir"); proxyDebugResponseCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { proxyDebugResponseCheckBoxMenuItemActionPerformed(evt); } }); proxyDebugMenu.add(proxyDebugResponseCheckBoxMenuItem); debugMenu.add(proxyDebugMenu); manualDebugMenu.setText("ManualRequest"); manualDebugRequestCheckBoxMenuItem.setText("Requests"); manualDebugRequestCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to your system TEMP directory"); manualDebugRequestCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { manualDebugRequestCheckBoxMenuItemActionPerformed(evt); } }); manualDebugMenu.add(manualDebugRequestCheckBoxMenuItem); manualDebugResponseCheckBoxMenuItem.setText("Responses"); manualDebugResponseCheckBoxMenuItem.setToolTipText("Enable this to write a byte for byte copy to the system TEMP dir"); manualDebugResponseCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { manualDebugResponseCheckBoxMenuItemActionPerformed(evt); } }); manualDebugMenu.add(manualDebugResponseCheckBoxMenuItem); debugMenu.add(manualDebugMenu); helpMenu.add(debugMenu); mainMenuBar.add(helpMenu); setJMenuBar(mainMenuBar); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-1024)/2, (screenSize.height-768)/2, 1024, 768); }//GEN-END:initComponents
|
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/8401ba854c245409b6a418cee45a489fd622fe28/WebScarab.java/clean/src/org/owasp/webscarab/ui/swing/WebScarab.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
2774,
5521,
8485,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
3639,
2774,
5661,
2992,
8485,
273,
394,
6863,
18,
5328,
310,
18,
46,
5661,
2992,
8485,
5621,
3639,
525,
5661,
2992,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5661,
2992,
8485,
5621,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
3909,
1528,
5484,
273,
394,
6863,
18,
5328,
310,
18,
46,
1528,
5484,
5621,
3639,
525,
26360,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
4514,
1528,
5484,
273,
394,
6863,
18,
5328,
310,
18,
46,
1528,
5484,
5621,
3639,
2774,
4599,
5190,
273,
394,
6863,
18,
5328,
310,
18,
46,
4599,
5190,
5621,
3639,
585,
4599,
273,
394,
6863,
18,
5328,
310,
18,
46,
4599,
5621,
3639,
394,
12958,
273,
394,
6863,
18,
5328,
310,
18,
46,
12958,
5621,
3639,
1696,
12958,
273,
394,
6863,
18,
5328,
310,
18,
46,
12958,
5621,
3639,
2427,
12958,
273,
394,
6863,
18,
5328,
310,
18,
46,
12958,
5621,
3639,
8513,
4599,
273,
394,
6863,
18,
5328,
310,
18,
46,
4599,
5621,
3639,
2889,
12958,
273,
394,
6863,
18,
5328,
310,
18,
46,
12958,
5621,
3639,
702,
12958,
273,
394,
6863,
18,
5328,
310,
18,
46,
12958,
5621,
3639,
3878,
10813,
12958,
273,
394,
6863,
18,
5328,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
2774,
5521,
8485,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
3639,
2774,
5661,
2992,
8485,
273,
394,
6863,
18,
5328,
310,
18,
46,
5661,
2992,
8485,
5621,
3639,
525,
5661,
2992,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5661,
2992,
8485,
5621,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
3909,
1528,
5484,
273,
394,
6863,
18,
5328,
310,
18,
46,
1528,
5484,
5621,
3639,
525,
26360,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
4514,
2
] |
public Node typeCheck(LocalContext c) throws TypeCheckException { // fixme: exceptions ClassType ct; if (target == null) { ct = c.getCurrentClass(); } else if ( target instanceof TypeNode && ((TypeNode)target).getType() instanceof ClassType) { ct = (ClassType) ((TypeNode)target).getType(); } else if( target instanceof Expression) { if( ((Expression)target).getCheckedType() instanceof ClassType) { ct = (ClassType)((Expression)target).getCheckedType(); } else if( ((Expression)target).getCheckedType() instanceof ArrayType) { // FIXME protected methods ct = (ClassType)c.getTypeSystem().getObject(); } else { throw new TypeCheckException( "Cannot invoke method \"" + name + "\" on an expression of primitive type."); } } else { System.out.println("it is of type: " + target); if( target instanceof FieldExpression) { System.out.println(((FieldExpression)target).getName()); } throw new TypeCheckException( "Target of method invocation must be a ClassType"); } List argTypes = new ArrayList(); for ( ListIterator i = arguments.listIterator() ; i.hasNext(); ) { argTypes.add ( ((Expression)i.next()).getCheckedType() ); } MethodTypeInstance mti = c.getMethod ( ct, name, argTypes ); setCheckedType ( mti.getType() ); jltools.util.Annotate.addThrows( this, mti.exceptionTypes () ); List formalTypes = mti.argumentTypes(); for ( ListIterator i = arguments.listIterator(), j = formalTypes.listIterator(); i.hasNext(); ) { ((Expression)i.next()).setExpectedType( (Type)j.next()); } return this; }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/2965ae13e9d838385069f6bbaaa4ebe8a2020706/MethodExpression.java/clean/src/polyglot/ast/MethodExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
50,
369,
5872,
1564,
12,
2042,
1042,
71,
13,
15069,
559,
1564,
503,
95,
759,
904,
3501,
30,
11855,
18328,
299,
31,
430,
12,
3299,
631,
2011,
15329,
299,
33,
71,
18,
588,
3935,
797,
5621,
97,
12107,
430,
12,
3299,
1336,
792,
559,
907,
10,
10,
12443,
559,
907,
13,
3299,
2934,
588,
559,
1435,
1336,
792,
18328,
15329,
299,
28657,
18328,
13,
12443,
559,
907,
13,
3299,
2934,
588,
559,
5621,
97,
12107,
430,
12,
3299,
1336,
792,
2300,
15329,
430,
12443,
12,
2300,
13,
3299,
2934,
588,
11454,
559,
1435,
1336,
792,
18328,
15329,
299,
28657,
18328,
13,
12443,
2300,
13,
3299,
2934,
588,
11454,
559,
5621,
97,
12107,
430,
12443,
12,
2300,
13,
3299,
2934,
588,
11454,
559,
1435,
1336,
792,
27182,
15329,
759,
25810,
1117,
5163,
299,
28657,
18328,
13,
71,
18,
588,
559,
3163,
7675,
588,
921,
5621,
97,
12107,
95,
12849,
2704,
559,
1564,
503,
2932,
4515,
5768,
601,
351,
572,
8530,
15,
529,
9078,
2412,
265,
304,
8692,
792,
683,
1038,
427,
5872,
1199,
1769,
9090,
12107,
95,
3163,
18,
659,
18,
8222,
2932,
305,
291,
792,
723,
2773,
15,
3299,
1769,
430,
12,
3299,
1336,
792,
974,
2300,
15329,
3163,
18,
659,
18,
8222,
12443,
12,
974,
2300,
13,
3299,
2934,
17994,
10663,
97,
12849,
2704,
559,
1564,
503,
2932,
2326,
792,
2039,
5768,
4431,
11926,
2196,
69,
18328,
8863,
97,
682,
3175,
2016,
33,
2704,
19558,
5621,
1884,
12,
682,
3198,
77,
33,
7099,
18,
1098,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
50,
369,
5872,
1564,
12,
2042,
1042,
71,
13,
15069,
559,
1564,
503,
95,
759,
904,
3501,
30,
11855,
18328,
299,
31,
430,
12,
3299,
631,
2011,
15329,
299,
33,
71,
18,
588,
3935,
797,
5621,
97,
12107,
430,
12,
3299,
1336,
792,
559,
907,
10,
10,
12443,
559,
907,
13,
3299,
2934,
588,
559,
1435,
1336,
792,
18328,
15329,
299,
28657,
18328,
13,
12443,
559,
907,
13,
3299,
2934,
588,
559,
5621,
97,
12107,
430,
12,
3299,
1336,
792,
2300,
15329,
430,
12443,
12,
2300,
13,
3299,
2934,
588,
11454,
559,
1435,
1336,
792,
18328,
15329,
299,
28657,
18328,
13,
12443,
2300,
13,
3299,
2934,
588,
11454,
559,
5621,
97,
12107,
430,
12443,
12,
2300,
13,
3299,
2
] |
||
label = ParameterAccessor.htmlEncode( label );
|
private List doQueryCascadeParameterSelectionList( String paramName, IViewerReportDesignHandle design, String groupName, Object[] groupKeys, InputOptions options, ViewerAttributeBean attrBean ) throws RemoteException, ReportServiceException { List selectionList = new ArrayList( ); Collection list = getReportService( ) .getSelectionListForCascadingGroup( design, groupName, groupKeys, options ); if ( list != null && list.size( ) > 0 ) { // Get Scalar parameter handle ScalarParameterHandle parameterHandle = (ScalarParameterHandle) attrBean .findParameter( paramName ); Iterator iList = list.iterator( ); int index = 0; while ( iList != null && iList.hasNext( ) ) { ParameterSelectionChoice item = (ParameterSelectionChoice) iList .next( ); if ( item != null && item.getValue( ) != null ) { SelectItemChoice selectItemChoice = new SelectItemChoice( ); Object value = item.getValue( ); String label = item.getLabel( ); if ( label == null || label.length( ) <= 0 ) { // If label is null or blank, then use the format // parameter // value for display label = ParameterValidationUtil.getDisplayValue( null, parameterHandle.getPattern( ), value, attrBean .getLocale( ) ); } label = ParameterAccessor.htmlEncode( label ); selectItemChoice.setLabel( label ); selectItemChoice.setValue( ParameterValidationUtil .getDisplayValue( value ) ); selectionList.add( index++, selectItemChoice ); } } } return selectionList; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c34ba72ac6210f50a1bab6d43fcba56518733cf2/BirtGetCascadeParameterActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetCascadeParameterActionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
741,
1138,
39,
10963,
1662,
6233,
682,
12,
514,
11466,
16,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
514,
11619,
16,
1082,
202,
921,
8526,
1041,
2396,
16,
2741,
1320,
702,
16,
1082,
202,
18415,
1499,
3381,
1604,
3381,
262,
1216,
18361,
16,
1082,
202,
4820,
15133,
202,
95,
202,
202,
682,
4421,
682,
273,
394,
2407,
12,
11272,
202,
202,
2532,
666,
273,
22452,
1179,
12,
262,
9506,
202,
18,
588,
6233,
682,
1290,
39,
3691,
14968,
1114,
12,
8281,
16,
11619,
16,
25083,
202,
1655,
2396,
16,
702,
11272,
202,
202,
430,
261,
666,
480,
446,
597,
666,
18,
1467,
12,
262,
405,
374,
262,
202,
202,
95,
1082,
202,
759,
968,
15791,
1569,
1640,
1082,
202,
13639,
1662,
3259,
1569,
3259,
273,
261,
13639,
1662,
3259,
13,
1604,
3381,
6862,
202,
18,
4720,
1662,
12,
11466,
11272,
1082,
202,
3198,
277,
682,
273,
666,
18,
9838,
12,
11272,
1082,
202,
474,
770,
273,
374,
31,
1082,
202,
17523,
261,
277,
682,
480,
446,
597,
277,
682,
18,
5332,
2134,
12,
262,
262,
1082,
202,
95,
9506,
202,
1662,
6233,
10538,
761,
273,
261,
1662,
6233,
10538,
13,
277,
682,
25083,
202,
18,
4285,
12,
11272,
9506,
202,
430,
261,
761,
480,
446,
597,
761,
18,
24805,
12,
262,
480,
446,
262,
9506,
202,
95,
6862,
202,
3391,
1180,
10538,
2027,
1180,
10538,
273,
394,
6766,
1180,
10538,
12,
11272,
6862,
202,
921,
460,
273,
761,
18,
24805,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
741,
1138,
39,
10963,
1662,
6233,
682,
12,
514,
11466,
16,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
514,
11619,
16,
1082,
202,
921,
8526,
1041,
2396,
16,
2741,
1320,
702,
16,
1082,
202,
18415,
1499,
3381,
1604,
3381,
262,
1216,
18361,
16,
1082,
202,
4820,
15133,
202,
95,
202,
202,
682,
4421,
682,
273,
394,
2407,
12,
11272,
202,
202,
2532,
666,
273,
22452,
1179,
12,
262,
9506,
202,
18,
588,
6233,
682,
1290,
39,
3691,
14968,
1114,
12,
8281,
16,
11619,
16,
25083,
202,
1655,
2396,
16,
702,
11272,
202,
202,
430,
261,
666,
480,
446,
597,
666,
18,
1467,
12,
262,
405,
374,
262,
202,
202,
95,
1082,
202,
759,
2
] |
|
System.out.println("thumbnail size: " + xsize + ", " + ysize);
|
System.out.println("created thumbnail size: " + xsize + ", " + ysize);
|
public InputStream getDestinationStream(InputStream source) throws Exception { // read in bitstream's image BufferedImage buf = ImageIO.read(source); // get config params float xmax = (float) ConfigurationManager .getIntProperty("thumbnail.maxwidth"); float ymax = (float) ConfigurationManager .getIntProperty("thumbnail.maxheight"); Image thumb = null; // now get the image dimensions float xsize = (float) buf.getWidth(null); float ysize = (float) buf.getHeight(null); // if verbose flag is set, print out dimensions // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("original size: " + xsize + "," + ysize); } // scale by x first if needed if (xsize > xmax) { // calculate scaling factor so that xsize * scale = new size (max) float scale_factor = xmax / xsize; // if verbose flag is set, print out extracted text // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("x scale factor: " + scale_factor); } // now reduce x size // and y size xsize = xsize * scale_factor; ysize = ysize * scale_factor; // if verbose flag is set, print out extracted text // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("new size: " + xsize + "," + ysize); } } // scale by y if needed if (ysize > ymax) { float scale_factor = ymax / ysize; // now reduce x size // and y size xsize = xsize * scale_factor; ysize = ysize * scale_factor; } // if verbose flag is set, print details to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("thumbnail size: " + xsize + ", " + ysize); } thumb = buf.getScaledInstance((int) xsize, (int) ysize, Image.SCALE_SMOOTH); // create a BufferedImage to draw this image into... BufferedImage thumbnail = new BufferedImage(thumb.getWidth(null), thumb .getHeight(null), BufferedImage.TYPE_3BYTE_BGR); Graphics2D g2d = thumbnail.createGraphics(); // draw thumb into thumbnail g2d.drawImage(thumb, null, null); // now create an input stream and return it // there has got to be a better way than this! ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write(thumbnail, "jpeg", baos); // now get the array ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); return bais; // will this work? or will the byte array be out of scope? }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c990a6440036176c6567fc880fb6705834055c36/JPEGFilter.java/clean/dspace/src/org/dspace/app/mediafilter/JPEGFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5037,
17611,
1228,
12,
4348,
1084,
13,
5411,
1216,
1185,
565,
288,
3639,
368,
855,
316,
28640,
1807,
1316,
3639,
12362,
1681,
273,
3421,
4294,
18,
896,
12,
3168,
1769,
3639,
368,
336,
642,
859,
3639,
1431,
14016,
273,
261,
5659,
13,
4659,
1318,
7734,
263,
588,
1702,
1396,
2932,
14904,
18,
1896,
2819,
8863,
3639,
1431,
15275,
273,
261,
5659,
13,
4659,
1318,
7734,
263,
588,
1702,
1396,
2932,
14904,
18,
1896,
4210,
8863,
3639,
3421,
11156,
273,
446,
31,
3639,
368,
2037,
336,
326,
1316,
5769,
3639,
1431,
619,
1467,
273,
261,
5659,
13,
1681,
18,
588,
2384,
12,
2011,
1769,
3639,
1431,
677,
1467,
273,
261,
5659,
13,
1681,
18,
588,
2686,
12,
2011,
1769,
3639,
368,
309,
3988,
2982,
353,
444,
16,
1172,
596,
5769,
3639,
368,
358,
19331,
3639,
309,
261,
5419,
1586,
1318,
18,
291,
14489,
13,
3639,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
8830,
963,
30,
315,
397,
619,
1467,
397,
5753,
397,
677,
1467,
1769,
3639,
289,
3639,
368,
3159,
635,
619,
1122,
309,
3577,
3639,
309,
261,
92,
1467,
405,
14016,
13,
3639,
288,
5411,
368,
4604,
10612,
5578,
1427,
716,
619,
1467,
380,
3159,
273,
394,
963,
261,
1896,
13,
5411,
1431,
3159,
67,
6812,
273,
14016,
342,
619,
1467,
31,
5411,
368,
309,
3988,
2982,
353,
444,
16,
1172,
596,
9438,
977,
5411,
368,
358,
19331,
5411,
309,
261,
5419,
1586,
1318,
18,
291,
14489,
13,
5411,
288,
7734,
2332,
18,
659,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5037,
17611,
1228,
12,
4348,
1084,
13,
5411,
1216,
1185,
565,
288,
3639,
368,
855,
316,
28640,
1807,
1316,
3639,
12362,
1681,
273,
3421,
4294,
18,
896,
12,
3168,
1769,
3639,
368,
336,
642,
859,
3639,
1431,
14016,
273,
261,
5659,
13,
4659,
1318,
7734,
263,
588,
1702,
1396,
2932,
14904,
18,
1896,
2819,
8863,
3639,
1431,
15275,
273,
261,
5659,
13,
4659,
1318,
7734,
263,
588,
1702,
1396,
2932,
14904,
18,
1896,
4210,
8863,
3639,
3421,
11156,
273,
446,
31,
3639,
368,
2037,
336,
326,
1316,
5769,
3639,
1431,
619,
1467,
273,
261,
5659,
13,
1681,
18,
588,
2384,
12,
2011,
1769,
3639,
1431,
677,
1467,
273,
261,
5659,
13,
1681,
18,
588,
2686,
12,
2011,
2
] |
Assert.that(out.isOpen()); Assert.that(! out.runnerDied());
|
assertTrue("connection should be open", out.isOpen()); assertTrue("runner should not be dead", !out.runnerDied());
|
public static void testClose() { try { ManagedConnection out=null; Connection in=null; com.limegroup.gnutella.MiniAcceptor acceptor=null; //When receive() or sendQueued() gets IOException, it calls //ConnectionManager.remove(). This in turn calls //ManagedConnection.close(). Our stub does this. ConnectionManager manager=new ConnectionManagerStub(true); //1. Locally closed acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); out.close(); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); try { Thread.sleep(1000); } catch (InterruptedException e) { } in.close(); //needed to ensure connect below works //2. Remote close: discovered on read acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); try { out.receive(); Assert.that(false); } catch (BadPacketException e) { Assert.that(false); } catch (IOException e) { } sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); //3. Remote close: discovered on write. Because of TCP's half-close //semantics, we need TWO writes to discover this. (See unit tests //for Connection.) acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); out.send(new PingRequest((byte)3)); out.send(new PingRequest((byte)3)); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); } catch (IOException e) { fail("Unexpected IO problem"); e.printStackTrace(); } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c53e29de6f0dbeee98c7a594140c2c57c0ec69a8/ManagedConnectionTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ManagedConnectionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1842,
4605,
1435,
288,
3639,
775,
288,
5411,
10024,
1952,
596,
33,
2011,
31,
5411,
4050,
316,
33,
2011,
31,
5411,
532,
18,
80,
494,
1655,
18,
1600,
322,
1165,
69,
18,
2930,
77,
5933,
280,
2791,
280,
33,
2011,
31,
18701,
368,
9434,
6798,
1435,
578,
1366,
21039,
1435,
5571,
1860,
16,
518,
4097,
5411,
368,
1952,
1318,
18,
4479,
7675,
225,
1220,
316,
7005,
4097,
5411,
368,
10055,
1952,
18,
4412,
7675,
225,
29613,
7168,
1552,
333,
18,
5411,
4050,
1318,
3301,
33,
2704,
4050,
1318,
11974,
12,
3767,
1769,
5411,
368,
21,
18,
2851,
1230,
4375,
5411,
2791,
280,
33,
2704,
532,
18,
80,
494,
1655,
18,
1600,
322,
1165,
69,
18,
2930,
77,
5933,
280,
12,
2011,
16,
20987,
1769,
5411,
596,
33,
2704,
1952,
2932,
13014,
3113,
20987,
16,
3301,
1769,
5411,
596,
18,
11160,
5621,
13491,
316,
33,
1077,
6757,
18,
9436,
5621,
2398,
5452,
18,
19056,
12,
659,
18,
291,
3678,
10663,
5411,
5452,
18,
19056,
12,
5,
596,
18,
18156,
40,
2092,
10663,
5411,
596,
18,
4412,
5621,
5411,
5329,
12,
6625,
1769,
5411,
5452,
18,
19056,
12,
5,
596,
18,
291,
3678,
10663,
5411,
5452,
18,
19056,
12,
659,
18,
18156,
40,
2092,
10663,
5411,
775,
288,
4884,
18,
19607,
12,
18088,
1769,
289,
1044,
261,
24485,
503,
425,
13,
288,
289,
5411,
316,
18,
4412,
5621,
368,
17471,
358,
3387,
3077,
5712,
6330,
5411,
368,
22,
18,
6304,
1746,
30,
18238,
603,
855,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
4605,
1435,
288,
3639,
775,
288,
5411,
10024,
1952,
596,
33,
2011,
31,
5411,
4050,
316,
33,
2011,
31,
5411,
532,
18,
80,
494,
1655,
18,
1600,
322,
1165,
69,
18,
2930,
77,
5933,
280,
2791,
280,
33,
2011,
31,
18701,
368,
9434,
6798,
1435,
578,
1366,
21039,
1435,
5571,
1860,
16,
518,
4097,
5411,
368,
1952,
1318,
18,
4479,
7675,
225,
1220,
316,
7005,
4097,
5411,
368,
10055,
1952,
18,
4412,
7675,
225,
29613,
7168,
1552,
333,
18,
5411,
4050,
1318,
3301,
33,
2704,
4050,
1318,
11974,
12,
3767,
1769,
5411,
368,
21,
18,
2851,
1230,
4375,
5411,
2791,
280,
33,
2704,
532,
18,
80,
494,
1655,
18,
1600,
322,
1165,
69,
18,
2
] |
throws InvocationTargetException{
|
throws InvocationTargetException {
|
protected void refresh() { if (uiJob == null) createUIJob(); if (refreshJob == null) { refreshJob = new RestartableJob( NLS.bind(MarkerMessages.MarkerView_refreshTitle, getTitle()), new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException{ internalRefresh(monitor); } }, getProgressService()); } refreshJob.restart(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
1435,
288,
202,
202,
430,
261,
4881,
2278,
422,
446,
13,
1082,
202,
2640,
5370,
2278,
5621,
202,
202,
430,
261,
9144,
2278,
422,
446,
13,
288,
1082,
202,
9144,
2278,
273,
394,
20709,
429,
2278,
12,
6862,
202,
5106,
18,
4376,
12,
7078,
5058,
18,
7078,
1767,
67,
9144,
4247,
16,
10786,
1435,
3631,
6862,
202,
2704,
467,
20013,
1190,
5491,
1435,
288,
25083,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
6862,
9506,
202,
15069,
15342,
95,
6862,
1082,
202,
7236,
8323,
12,
10259,
1769,
25083,
202,
97,
6862,
202,
5779,
3570,
2329,
1179,
10663,
202,
202,
97,
202,
202,
9144,
2278,
18,
19164,
5621,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
1435,
288,
202,
202,
430,
261,
4881,
2278,
422,
446,
13,
1082,
202,
2640,
5370,
2278,
5621,
202,
202,
430,
261,
9144,
2278,
422,
446,
13,
288,
1082,
202,
9144,
2278,
273,
394,
20709,
429,
2278,
12,
6862,
202,
5106,
18,
4376,
12,
7078,
5058,
18,
7078,
1767,
67,
9144,
4247,
16,
10786,
1435,
3631,
6862,
202,
2704,
467,
20013,
1190,
5491,
1435,
288,
25083,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
6862,
9506,
202,
15069,
15342,
95,
6862,
1082,
202,
7236,
8323,
12,
10259,
1769,
25083,
202,
97,
6862,
202,
5779,
3570,
2329,
1179,
10663,
202,
202,
97,
202,
202,
9144,
2278,
18,
19164,
5621,
202,
97,
2,
-100,
-100,
-100
] |
void visitChildren(NodeVisitor vis) { expr = (Expression)expr.visit(vis); }
|
Object visitChildren(NodeVisitor vis) { expr = (Expression)expr.visit(vis); return vis.mergeVisitorInfo( Annotate.getVisitorInfo( this), Annotate.getVisitorInfo( expr)); }
|
void visitChildren(NodeVisitor vis) { expr = (Expression)expr.visit(vis); }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/46f164284b4c476b23700f47d7d82a18a0c7d4f0/UnaryExpression.java/buggy/src/polyglot/ast/UnaryExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
3757,
4212,
12,
907,
7413,
2281,
13,
282,
288,
1377,
3065,
273,
261,
2300,
13,
8638,
18,
11658,
12,
3516,
1769,
282,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
3757,
4212,
12,
907,
7413,
2281,
13,
282,
288,
1377,
3065,
273,
261,
2300,
13,
8638,
18,
11658,
12,
3516,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String role = request.getRole();
|
String roleStr = request.getRole();
|
public void populate(XmlaResponse response, List rows) throws XmlaException { DataSourcesConfig.DataSource ds = handler.getDataSource(request); DataSourcesConfig.Catalog[] catalogs = handler.getCatalogs(request, ds); String role = request.getRole(); for (int h = 0; h < catalogs.length; h++) { DataSourcesConfig.Catalog dsCatalog = catalogs[h]; if (dsCatalog == null || dsCatalog.definition == null) { continue; } Connection connection = handler.getConnection(dsCatalog, role); if (connection == null) { continue; } String catalogName = dsCatalog.name; //String catalogName = schema.getName(); final RolapSchema schema = (RolapSchema) connection.getSchema(); final Cube[] cubes = schema.getCubes(); for (int i = 0; i < cubes.length; i++) { Cube cube = cubes[i]; // Access control if (!canAccess(connection, cube)) { continue; } String desc = cube.getDescription(); if (desc == null) { desc = catalogName + " Schema - " + cube.getName() + " Cube"; } Row row = new Row(); row.set(CatalogName.name, catalogName); //row.set(SchemaName.name, catalogName); row.set(CubeName.name, cube.getName()); row.set(CubeType.name, ((RolapCube) cube).isVirtual() ? MD_CUBTYPE_VIRTUAL_CUBE : MD_CUBTYPE_CUBE); //row.set(CubeGuid.name, ""); //row.set(CreatedOn.name, ""); //row.set(LastSchemaUpdate.name, ""); //row.set(SchemaUpdatedBy.name, ""); //row.set(LastDataUpdate.name, ""); //row.set(DataUpdatedBy.name, ""); row.set(IsDrillthroughEnabled.name, true); row.set(IsWriteEnabled.name, false); row.set(IsLinkable.name, false); row.set(IsSqlEnabled.name, false); row.set(Description.name, desc); addRow(row, rows); } } }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/dd3619858adf8a80618b1c4b570c84445dc1e849/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
6490,
12,
4432,
69,
1064,
766,
16,
987,
2595,
13,
1216,
5714,
69,
503,
288,
5411,
1910,
8628,
809,
18,
8597,
3780,
273,
1838,
18,
588,
8597,
12,
2293,
1769,
5411,
1910,
8628,
809,
18,
9769,
8526,
26455,
273,
18701,
1838,
18,
588,
39,
21836,
12,
2293,
16,
3780,
1769,
5411,
514,
2478,
1585,
273,
590,
18,
588,
2996,
5621,
5411,
364,
261,
474,
366,
273,
374,
31,
366,
411,
26455,
18,
2469,
31,
366,
27245,
288,
7734,
1910,
8628,
809,
18,
9769,
3780,
9769,
273,
26455,
63,
76,
15533,
7734,
309,
261,
2377,
9769,
422,
446,
747,
3780,
9769,
18,
6907,
422,
446,
13,
288,
5397,
1324,
31,
7734,
289,
7734,
4050,
1459,
273,
1838,
18,
588,
1952,
12,
2377,
9769,
16,
2478,
1769,
7734,
309,
261,
4071,
422,
446,
13,
288,
10792,
1324,
31,
7734,
289,
7734,
514,
6222,
461,
273,
3780,
9769,
18,
529,
31,
7734,
368,
780,
6222,
461,
273,
1963,
18,
17994,
5621,
7734,
727,
11714,
438,
3078,
1963,
273,
261,
4984,
438,
3078,
13,
1459,
18,
588,
3078,
5621,
7734,
727,
385,
4895,
8526,
276,
23317,
273,
1963,
18,
588,
39,
23317,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
276,
23317,
18,
2469,
31,
277,
27245,
288,
10792,
385,
4895,
18324,
273,
276,
23317,
63,
77,
15533,
10792,
368,
5016,
3325,
10792,
309,
16051,
4169,
1862,
12,
4071,
16,
18324,
3719,
288,
13491,
1324,
31,
10792,
289,
10792,
514,
3044,
273,
18324,
18,
588,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
12,
4432,
69,
1064,
766,
16,
987,
2595,
13,
1216,
5714,
69,
503,
288,
5411,
1910,
8628,
809,
18,
8597,
3780,
273,
1838,
18,
588,
8597,
12,
2293,
1769,
5411,
1910,
8628,
809,
18,
9769,
8526,
26455,
273,
18701,
1838,
18,
588,
39,
21836,
12,
2293,
16,
3780,
1769,
5411,
514,
2478,
1585,
273,
590,
18,
588,
2996,
5621,
5411,
364,
261,
474,
366,
273,
374,
31,
366,
411,
26455,
18,
2469,
31,
366,
27245,
288,
7734,
1910,
8628,
809,
18,
9769,
3780,
9769,
273,
26455,
63,
76,
15533,
7734,
309,
261,
2377,
9769,
422,
446,
747,
3780,
9769,
18,
6907,
422,
446,
13,
288,
5397,
1324,
31,
7734,
289,
7734,
4050,
1459,
273,
1838,
2
] |
result.setQuerySize( Integer.parseInt( f[QSIZE_FIELD] ) );
|
result.setQuerySequence( BioSequence.Factory.newInstance() ); result.getQuerySequence().setLength( Integer.parseInt( f[QSIZE_FIELD] ) );
|
public Object parseOneLine( String line ) { try { String[] f = line.split( "\t" ); if ( f.length == 0 ) return null; if ( f.length != NUM_BLAT_FIELDS ) throw new IllegalArgumentException( "Only" + f.length + " fields in row" ); // BlatResult result = BlatResult.Factory.newInstance(); BlatResultImpl result = new BlatResultImpl(); // FIXME this should not be an Impl. String name = ( "BlatResult:" + f[QNAME_FIELD] + ":" + f[QSTART_FIELD] + ":" + f[TSTART_FIELD] + ":" + f[TNAME_FIELD] ); result.setId( new Long( name.hashCode() ) ); result.setQuerySize( Integer.parseInt( f[QSIZE_FIELD] ) ); result.setMatches( Integer.parseInt( f[MATCHES_FIELD] ) ); result.setMismatches( Integer.parseInt( f[MISMATCHES_FIELD] ) ); result.setRepMatches( Integer.parseInt( f[REPMATCHES_FIELD] ) ); result.setNs( Integer.parseInt( f[NS_FIELD] ) ); result.setQueryGapCount( Integer.parseInt( f[QGAPCOUNT_FIELD] ) ); result.setQueryGapBases( Integer.parseInt( f[QGAPBASES_FIELD] ) ); result.setTargetGapBases( Integer.parseInt( f[TGAPBASES_FIELD] ) ); result.setTargetGapCount( Integer.parseInt( f[TGAPCOUNT_FIELD] ) ); result.setStrand( f[STRAND_FIELD] ); // result.setTargetChromosome( // ); // FIXME result.setQueryStart( Integer.parseInt( f[QSTART_FIELD] ) ); result.setQueryEnd( Integer.parseInt( f[QEND_FIELD] ) ); result.setTargetStart( Integer.parseInt( f[TSTART_FIELD] ) ); result.setTargetEnd( Integer.parseInt( f[TEND_FIELD] ) ); result.setBlockCount( Integer.parseInt( f[BLOCKCOUNT_FIELD] ) ); result.setBlockSizes( f[BLOCKSIZES_FIELD] ); // FIXME result.setQueryStarts( f[QSTARTS_FIELD] ); result.setTargetStarts( f[TSTARTS_FIELD] ); result.setQueryName( f[QNAME_FIELD] ); String chrom = f[TNAME_FIELD]; if ( chrom.startsWith( "chr" ) ) chrom = chrom.substring( chrom.indexOf( "chr" ) + 3 ); result.setTargetName( chrom ); return result; } catch ( NumberFormatException e ) { log.error( "Invalid number format", e ); return null; } catch ( IllegalArgumentException e ) { throw new RuntimeException( e ); } }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/d6951f9d2a3965122ca592cc81d6b26ff0f0239a/BlatResultParser.java/buggy/src/impl/edu/columbia/gemma/loader/genome/BlatResultParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1109,
3335,
1670,
12,
514,
980,
262,
288,
3639,
775,
288,
5411,
514,
8526,
284,
273,
980,
18,
4939,
12,
1548,
88,
6,
11272,
5411,
309,
261,
284,
18,
2469,
422,
374,
262,
327,
446,
31,
5411,
309,
261,
284,
18,
2469,
480,
9443,
67,
38,
12190,
67,
12683,
262,
7734,
604,
394,
2754,
12,
315,
3386,
6,
397,
284,
18,
2469,
397,
315,
1466,
316,
1027,
6,
11272,
5411,
368,
605,
4801,
1253,
563,
273,
605,
4801,
1253,
18,
1733,
18,
2704,
1442,
5621,
5411,
605,
4801,
1253,
2828,
563,
273,
394,
605,
4801,
1253,
2828,
5621,
368,
9852,
333,
1410,
486,
506,
392,
28025,
18,
5411,
514,
508,
273,
261,
315,
38,
4801,
1253,
2773,
397,
284,
63,
16032,
67,
6776,
65,
397,
6153,
397,
284,
63,
53,
7570,
67,
6776,
65,
397,
6153,
397,
284,
63,
56,
7570,
67,
6776,
65,
397,
6153,
397,
284,
63,
56,
1985,
67,
6776,
65,
11272,
5411,
563,
18,
542,
548,
12,
394,
3407,
12,
508,
18,
2816,
1085,
1435,
262,
11272,
5411,
563,
18,
542,
1138,
4021,
12,
21209,
4021,
18,
1733,
18,
2704,
1442,
1435,
11272,
563,
18,
588,
1138,
4021,
7675,
542,
1782,
12,
2144,
18,
2670,
1702,
12,
284,
63,
53,
4574,
67,
6776,
65,
262,
11272,
5411,
563,
18,
542,
6869,
12,
2144,
18,
2670,
1702,
12,
284,
63,
11793,
3991,
67,
6776,
65,
262,
11272,
5411,
563,
18,
542,
11729,
8436,
12,
2144,
18,
2670,
1702,
12,
284,
63,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1109,
3335,
1670,
12,
514,
980,
262,
288,
3639,
775,
288,
5411,
514,
8526,
284,
273,
980,
18,
4939,
12,
1548,
88,
6,
11272,
5411,
309,
261,
284,
18,
2469,
422,
374,
262,
327,
446,
31,
5411,
309,
261,
284,
18,
2469,
480,
9443,
67,
38,
12190,
67,
12683,
262,
7734,
604,
394,
2754,
12,
315,
3386,
6,
397,
284,
18,
2469,
397,
315,
1466,
316,
1027,
6,
11272,
5411,
368,
605,
4801,
1253,
563,
273,
605,
4801,
1253,
18,
1733,
18,
2704,
1442,
5621,
5411,
605,
4801,
1253,
2828,
563,
273,
394,
605,
4801,
1253,
2828,
5621,
368,
9852,
333,
1410,
486,
506,
392,
28025,
18,
5411,
514,
508,
273,
261,
315,
38,
4801,
1253,
2
] |
EMIT(MIR_BinaryAcc.create(IA32_AND, R(addee), R(isNegative))); EMIT(MIR_BinaryAcc.create(IA32_AND, R(subtractee), R(isPositive)));
|
EMIT(MIR_BinaryAcc.create(IA32_AND, new OPT_RegisterOperand(addee, VM_TypeReference.Int), new OPT_RegisterOperand(isNegative, VM_TypeReference.Int))); EMIT(MIR_BinaryAcc.create(IA32_AND, new OPT_RegisterOperand(subtractee, VM_TypeReference.Int), new OPT_RegisterOperand(isPositive, VM_TypeReference.Int)));
|
protected final void FPR_2INT(OPT_Instruction s, OPT_RegisterOperand result, OPT_Operand value) { OPT_MemoryOperand M; // Step 1: Get value to be converted into myFP0 // and in 'strict' IEEE mode. if (value instanceof OPT_MemoryOperand) { // value is in memory, all we have to do is load it EMIT(MIR_Move.create(IA32_FLD, myFP0(), value)); } else { // sigh. value is an FP register. Unfortunately, // SPECjbb requires some 'strict' FP semantics. Naturally, we don't // normally implement strict semantics, but we try to slide by in // order to pass the benchmark. // In order to pass SPECjbb, it turns out we need to enforce 'strict' // semantics before doing a particular f2int conversion. To do this // we must have a store/load sequence to cause IEEE rounding. if (value instanceof OPT_BURSManagedFPROperand) { if (VM.VerifyAssertions) VM._assert(value.similar(myFP0())); EMIT(MIR_Move.create(IA32_FSTP, MO_CONV(DW), value)); EMIT(MIR_Move.create(IA32_FLD, myFP0(), MO_CONV(DW))); } else { EMIT(MIR_Move.create(IA32_FMOV, MO_CONV(DW), value)); EMIT(MIR_Move.create(IA32_FLD, myFP0(), MO_CONV(DW))); } } // FP Stack: myFP0 = value EMIT(MIR_Move.create(IA32_FIST, MO_CONV(DW), myFP0())); // MO_CONV now holds myFP0 converted to an integer (round-toward nearest) // FP Stack: myFP0 == value // isPositive == 1 iff 0.0 < value // isNegative == 1 iff 0.0 > value OPT_Register one = regpool.getInteger(); OPT_Register isPositive = regpool.getInteger(); OPT_Register isNegative = regpool.getInteger(); EMIT(MIR_Move.create(IA32_MOV, R(one), IC(1))); EMIT(MIR_Move.create(IA32_MOV, R(isPositive), IC(0))); EMIT(MIR_Move.create(IA32_MOV, R(isNegative), IC(0))); EMIT(MIR_Nullary.create(IA32_FLDZ, myFP0())); // FP Stack: myFP0 = 0.0; myFP1 = value EMIT(MIR_Compare.create(IA32_FCOMIP, myFP0(), myFP1())); // FP Stack: myFP0 = value EMIT(MIR_CondMove.create(IA32_CMOV, R(isPositive), R(one), OPT_IA32ConditionOperand.LLT())); EMIT(MIR_CondMove.create(IA32_CMOV, R(isNegative), R(one), OPT_IA32ConditionOperand.LGT())); EMIT(MIR_Move.create(IA32_FILD, myFP0(), MO_CONV(DW))); // FP Stack: myFP0 = round(value), myFP1 = value // addee = 1 iff round(x) < x // subtractee = 1 iff round(x) > x OPT_Register addee = regpool.getInteger(); OPT_Register subtractee = regpool.getInteger(); EMIT(MIR_Compare.create(IA32_FCOMIP, myFP0(), myFP1())); // FP Stack: myFP0 = value EMIT(MIR_Move.create(IA32_MOV, R(addee) , IC(0))); EMIT(MIR_Move.create(IA32_MOV, R(subtractee) , IC(0))); EMIT(MIR_CondMove.create(IA32_CMOV, R(addee), R(one), OPT_IA32ConditionOperand.LLT())); EMIT(MIR_CondMove.create(IA32_CMOV, R(subtractee), R(one), OPT_IA32ConditionOperand.LGT())); // Now a little tricky part. // We will add 1 iff isNegative and x > round(x) // We will subtract 1 iff isPositive and x < round(x) EMIT(MIR_BinaryAcc.create(IA32_AND, R(addee), R(isNegative))); EMIT(MIR_BinaryAcc.create(IA32_AND, R(subtractee), R(isPositive))); EMIT(MIR_Move.create(IA32_MOV, result.copy(), MO_CONV(DW))); EMIT(MIR_BinaryAcc.create(IA32_ADD, result.copy(), R(addee))); EMIT(MIR_BinaryAcc.create(IA32_SUB, result.copy(), R(subtractee))); // Acquire the JTOC in a register OPT_Register jtoc = null; if (!burs.ir.options.FIXED_JTOC) { jtoc = regpool.getInteger(); EMIT(MIR_Move.create(IA32_MOV, R(jtoc), MO_BD(R(regpool.getPhysicalRegisterSet().getPR()), VM_Entrypoints.jtocField.getOffset(), DW, null, null))); } // Compare myFP0 with (double)Integer.MAX_VALUE if (burs.ir.options.FIXED_JTOC) { M = OPT_MemoryOperand.D(VM_Magic.getTocPointer().add(VM_Entrypoints.maxintField.getOffset()), QW, null, null); } else { M = OPT_MemoryOperand.BD(R(jtoc), VM_Entrypoints.maxintField.getOffset(), QW, null, null); } EMIT(MIR_Move.create(IA32_FLD, myFP0(), M)); // FP Stack: myFP0 = (double)Integer.MAX_VALUE; myFP1 = value EMIT(MIR_Compare.create(IA32_FCOMIP, myFP0(), myFP1())); // FP Stack: myFP0 = value // If MAX_VALUE < value, then result := MAX_INT OPT_Register maxInt = regpool.getInteger(); EMIT(MIR_Move.create(IA32_MOV, R(maxInt), IC(Integer.MAX_VALUE))); EMIT(MIR_CondMove.create(IA32_CMOV, result.copy(), R(maxInt), OPT_IA32ConditionOperand.LLT())); // Compare myFP0 with (double)Integer.MIN_VALUE if (burs.ir.options.FIXED_JTOC) { M = OPT_MemoryOperand.D(VM_Magic.getTocPointer().add(VM_Entrypoints.minintField.getOffset()), QW, null, null); } else { M = OPT_MemoryOperand.BD(R(jtoc), VM_Entrypoints.minintField.getOffset(), QW, null, null); } EMIT(MIR_Move.create(IA32_FLD, myFP0(), M)); // FP Stack: myFP0 = (double)Integer.MIN_VALUE; myFP1 = value EMIT(MIR_Compare.create(IA32_FCOMIP, myFP0(), myFP1())); // FP Stack: myFP0 = value // If MIN_VALUE > value, then result := MIN_INT OPT_Register minInt = regpool.getInteger(); EMIT(MIR_Move.create(IA32_MOV, R(minInt), IC(Integer.MIN_VALUE))); EMIT(MIR_CondMove.create(IA32_CMOV, result.copy(), R(minInt), OPT_IA32ConditionOperand.LGT())); // Set condition flags: set PE iff myFP0 is a NaN EMIT(MIR_Compare.create(IA32_FCOMIP, myFP0(), myFP0())); // FP Stack: back to original level (all BURS managed slots freed) // If FP0 was classified as a NaN, then result := 0 OPT_Register zero = regpool.getInteger(); EMIT(MIR_Move.create(IA32_MOV, R(zero), IC(0))); EMIT(MIR_CondMove.create(IA32_CMOV, result.copy(), R(zero), OPT_IA32ConditionOperand.PE())); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/34d593e20db098ebb2906460112536d78ee1592a/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
478,
8025,
67,
22,
3217,
12,
15620,
67,
11983,
272,
16,
27573,
16456,
67,
3996,
10265,
563,
16,
27573,
16456,
67,
10265,
460,
13,
288,
565,
16456,
67,
6031,
10265,
490,
31,
565,
368,
8693,
404,
30,
968,
460,
358,
506,
5970,
1368,
3399,
30246,
20,
565,
368,
540,
471,
316,
296,
13948,
11,
467,
9383,
41,
1965,
18,
565,
309,
261,
1132,
1276,
16456,
67,
6031,
10265,
13,
288,
1377,
368,
460,
353,
316,
3778,
16,
777,
732,
1240,
358,
741,
353,
1262,
518,
1377,
512,
6068,
12,
7492,
54,
67,
7607,
18,
2640,
12,
15188,
1578,
67,
42,
12069,
16,
3399,
30246,
20,
9334,
460,
10019,
565,
289,
469,
288,
1377,
368,
272,
2031,
18,
225,
460,
353,
392,
28740,
1744,
18,
1351,
24233,
16,
1377,
368,
22872,
78,
9897,
4991,
2690,
296,
13948,
11,
28740,
17267,
18,
225,
423,
270,
295,
1230,
16,
732,
2727,
1404,
1377,
368,
15849,
2348,
5490,
17267,
16,
1496,
732,
775,
358,
12701,
635,
316,
1377,
368,
1353,
358,
1342,
326,
14128,
18,
3639,
368,
657,
1353,
358,
1342,
22872,
78,
9897,
16,
518,
20748,
596,
732,
1608,
358,
12980,
296,
13948,
11,
1377,
368,
17267,
1865,
9957,
279,
6826,
284,
22,
474,
4105,
18,
225,
2974,
741,
333,
1377,
368,
732,
1297,
1240,
279,
1707,
19,
945,
3102,
358,
4620,
467,
9383,
41,
13885,
18,
1377,
309,
261,
1132,
1276,
16456,
67,
38,
1099,
7303,
4184,
42,
3373,
457,
464,
13,
288,
3639,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
478,
8025,
67,
22,
3217,
12,
15620,
67,
11983,
272,
16,
27573,
16456,
67,
3996,
10265,
563,
16,
27573,
16456,
67,
10265,
460,
13,
288,
565,
16456,
67,
6031,
10265,
490,
31,
565,
368,
8693,
404,
30,
968,
460,
358,
506,
5970,
1368,
3399,
30246,
20,
565,
368,
540,
471,
316,
296,
13948,
11,
467,
9383,
41,
1965,
18,
565,
309,
261,
1132,
1276,
16456,
67,
6031,
10265,
13,
288,
1377,
368,
460,
353,
316,
3778,
16,
777,
732,
1240,
358,
741,
353,
1262,
518,
1377,
512,
6068,
12,
7492,
54,
67,
7607,
18,
2640,
12,
15188,
1578,
67,
42,
12069,
16,
3399,
30246,
20,
9334,
460,
10019,
565,
289,
469,
288,
1377,
368,
272,
2
] |
jsi.itsData = new InterpreterData(0, 0, 0, securityDomain);
|
jsi.itsData = new InterpreterData(0, 0, 0, securityDomain, cx.hasCompileFunctionsWithDynamicScope());
|
private void generateNestedFunctions(Scriptable scope, Context cx, Object securityDomain) { itsNestedFunctions = new InterpretedFunction[itsFunctionList.size()]; for (short i = 0; i < itsFunctionList.size(); i++) { FunctionNode def = (FunctionNode)itsFunctionList.elementAt(i); Interpreter jsi = new Interpreter(); jsi.itsSourceFile = itsSourceFile; jsi.itsData = new InterpreterData(0, 0, 0, securityDomain); jsi.itsInFunctionFlag = true; itsNestedFunctions[i] = jsi.generateFunctionICode(cx, scope, def, securityDomain); def.putProp(Node.FUNCTION_PROP, new Short(i)); } }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3a479188da44f3c7dec47edf7224c5be9738dae8/Interpreter.java/buggy/js/rhino/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
8649,
7503,
12,
3651,
429,
2146,
16,
29159,
1772,
9494,
16,
4766,
1850,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
8649,
7503,
273,
394,
5294,
15089,
329,
2083,
63,
1282,
2083,
682,
18,
1467,
1435,
15533,
3639,
364,
261,
6620,
277,
273,
374,
31,
277,
411,
2097,
2083,
682,
18,
1467,
5621,
277,
27245,
288,
5411,
4284,
907,
1652,
273,
261,
2083,
907,
13,
1282,
2083,
682,
18,
2956,
861,
12,
77,
1769,
5411,
5294,
11599,
3828,
77,
273,
394,
5294,
11599,
5621,
5411,
3828,
77,
18,
1282,
31150,
273,
2097,
31150,
31,
5411,
3828,
77,
18,
1282,
751,
273,
394,
5294,
11599,
751,
12,
20,
16,
374,
16,
374,
16,
4373,
3748,
16,
9494,
18,
5332,
9937,
7503,
1190,
9791,
3876,
10663,
5411,
3828,
77,
18,
1282,
382,
2083,
4678,
273,
638,
31,
5411,
2097,
8649,
7503,
63,
77,
65,
273,
3828,
77,
18,
7163,
2083,
45,
1085,
12,
71,
92,
16,
2146,
16,
1652,
16,
4766,
1171,
9079,
4373,
3748,
1769,
5411,
1652,
18,
458,
4658,
12,
907,
18,
7788,
67,
15811,
16,
394,
7925,
12,
77,
10019,
3639,
289,
565,
289,
540,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3238,
918,
2103,
8649,
7503,
12,
3651,
429,
2146,
16,
29159,
1772,
9494,
16,
4766,
1850,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
8649,
7503,
273,
394,
5294,
15089,
329,
2083,
63,
1282,
2083,
682,
18,
1467,
1435,
15533,
3639,
364,
261,
6620,
277,
273,
374,
31,
277,
411,
2097,
2083,
682,
18,
1467,
5621,
277,
27245,
288,
5411,
4284,
907,
1652,
273,
261,
2083,
907,
13,
1282,
2083,
682,
18,
2956,
861,
12,
77,
1769,
5411,
5294,
11599,
3828,
77,
273,
394,
5294,
11599,
5621,
5411,
3828,
77,
18,
1282,
31150,
273,
2097,
31150,
31,
5411,
3828,
77,
18,
1282,
751,
273,
394,
5294,
11599,
751,
12,
20,
16,
374,
16,
374,
16,
4373,
3748,
16,
2
] |
return new Integer(fieldOrder[i.doc]);
|
return terms[fieldOrder[i.doc]];
|
static ScoreDocLookupComparator comparator (final IndexReader reader, final String field) throws IOException { return new ScoreDocLookupComparator() { /** The sort information being used by this instance */ protected final int[] fieldOrder = generateSortIndex(); private final int[] generateSortIndex() throws IOException { final int[] retArray = new int[reader.maxDoc()]; TermEnum enumerator = reader.terms (new Term (field, "")); TermDocs termDocs = reader.termDocs(); if (enumerator.term() == null) { throw new RuntimeException ("no terms in field " + field); } // NOTE: the contract for TermEnum says the // terms will be in natural order (which is // ordering by field name, term text). The // contract for TermDocs says the docs will // be ordered by document number. So the // following loop will automatically sort the // terms in the correct order. try { int t = 0; // current term number do { Term term = enumerator.term(); if (term.field() != field) break; t++; termDocs.seek (enumerator); while (termDocs.next()) { retArray[termDocs.doc()] = t; } } while (enumerator.next()); } finally { enumerator.close(); termDocs.close(); } return retArray; } public final int compare (final ScoreDoc i, final ScoreDoc j) { final int fi = fieldOrder[i.doc]; final int fj = fieldOrder[j.doc]; if (fi < fj) return -1; if (fi > fj) return 1; return 0; } public final int compareReverse (final ScoreDoc i, final ScoreDoc j) { final int fi = fieldOrder[i.doc]; final int fj = fieldOrder[j.doc]; if (fi > fj) return -1; if (fi < fj) return 1; return 0; } public final boolean sizeMatches (final int n) { return fieldOrder.length == n; } public Object sortValue (final ScoreDoc i) { return new Integer(fieldOrder[i.doc]); } public int sortType() { return SortField.INT; } }; }
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/31974f29f0ce1012cdc7befba276b833da22ada2/StringSortedHitQueue.java/buggy/src/java/org/apache/lucene/search/StringSortedHitQueue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
20671,
1759,
6609,
5559,
8862,
261,
6385,
3340,
2514,
2949,
16,
727,
514,
652,
13,
202,
15069,
1860,
288,
202,
202,
2463,
394,
20671,
1759,
6609,
5559,
1435,
288,
1082,
202,
26873,
1021,
1524,
1779,
3832,
1399,
635,
333,
791,
1195,
1082,
202,
1117,
727,
509,
8526,
652,
2448,
273,
2103,
4416,
1016,
5621,
1082,
202,
1152,
727,
509,
8526,
2103,
4416,
1016,
1435,
1082,
202,
15069,
1860,
288,
9506,
202,
6385,
509,
8526,
325,
1076,
273,
394,
509,
63,
10530,
18,
1896,
1759,
1435,
15533,
9506,
202,
4065,
3572,
24679,
273,
2949,
18,
10112,
261,
2704,
6820,
261,
1518,
16,
1408,
10019,
9506,
202,
4065,
12656,
2481,
12656,
273,
2949,
18,
6408,
12656,
5621,
9506,
202,
430,
261,
7924,
7385,
18,
6408,
1435,
422,
446,
13,
288,
6862,
202,
12849,
394,
3235,
7566,
2135,
6548,
316,
652,
315,
397,
652,
1769,
9506,
202,
97,
9506,
202,
759,
5219,
30,
326,
6835,
364,
6820,
3572,
20185,
326,
9506,
202,
759,
6548,
903,
506,
316,
15145,
1353,
261,
12784,
353,
9506,
202,
759,
9543,
635,
652,
508,
16,
2481,
977,
2934,
225,
1021,
9506,
202,
759,
6835,
364,
6820,
12656,
20185,
326,
3270,
903,
9506,
202,
759,
506,
5901,
635,
1668,
1300,
18,
225,
6155,
326,
9506,
202,
759,
3751,
2798,
903,
6635,
1524,
326,
9506,
202,
759,
6548,
316,
326,
3434,
1353,
18,
9506,
202,
698,
288,
6862,
202,
474,
268,
273,
374,
31,
225,
368,
783,
2481,
1300,
6862,
202,
2896,
288,
25083,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20671,
1759,
6609,
5559,
8862,
261,
6385,
3340,
2514,
2949,
16,
727,
514,
652,
13,
202,
15069,
1860,
288,
202,
202,
2463,
394,
20671,
1759,
6609,
5559,
1435,
288,
1082,
202,
26873,
1021,
1524,
1779,
3832,
1399,
635,
333,
791,
1195,
1082,
202,
1117,
727,
509,
8526,
652,
2448,
273,
2103,
4416,
1016,
5621,
1082,
202,
1152,
727,
509,
8526,
2103,
4416,
1016,
1435,
1082,
202,
15069,
1860,
288,
9506,
202,
6385,
509,
8526,
325,
1076,
273,
394,
509,
63,
10530,
18,
1896,
1759,
1435,
15533,
9506,
202,
4065,
3572,
24679,
273,
2949,
18,
10112,
261,
2704,
6820,
261,
1518,
16,
1408,
10019,
9506,
202,
4065,
12656,
2481,
12656,
273,
2949,
18,
6408,
12656,
5621,
9506,
2
] |
assertNotNull("Errors should be found.", ctx.getValidationError().getValue());
|
assertErrorsFound();
|
public void testStringToFloatPrimitiveConverter() { ctx.bindValue(BeansObservables.observeValue(dataObject, "stringVal"), BeansObservables.observeValue(dataObject, "floatPrimitiveVal"), null); dataObject.setFloatPrimitiveVal((float) 789.5); assertEquals("float value does not match", 789.5, dataObject.getFloatPrimitiveVal(), .001); assertEquals("String value does not match", "789.5", dataObject.getStringVal()); assertNull("No errors should be found.", ctx.getValidationError().getValue()); dataObject.setStringVal("910.5"); assertEquals("float value does not match", 910.5, dataObject.getFloatPrimitiveVal(), .001); assertEquals("String value does not match", "910.5", dataObject.getStringVal()); assertNull("No errors should be found.", ctx.getValidationError().getValue()); dataObject.setStringVal(""); assertEquals("float value does not match", 910.5, dataObject.getFloatPrimitiveVal(), .001); assertEquals("String value does not match", "", dataObject.getStringVal()); assertNotNull("Errors should be found.", ctx.getValidationError().getValue()); dataObject.setStringVal(null); assertEquals("float value does not match", 910.5, dataObject.getFloatPrimitiveVal(), .001); assertNull("String value does not match", dataObject.getStringVal()); assertNotNull("Errors should be found.", ctx.getValidationError().getValue()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/DefaultBindSupportFactoryFloatPrimitiveTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/internal/databinding/provisional/factories/DefaultBindSupportFactoryFloatPrimitiveTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
23282,
4723,
9840,
5072,
1435,
288,
3639,
1103,
18,
4376,
620,
12,
14495,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
315,
1080,
3053,
6,
3631,
4823,
634,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
7734,
315,
5659,
9840,
3053,
6,
3631,
446,
1769,
3639,
31796,
18,
542,
4723,
9840,
3053,
12443,
5659,
13,
2371,
6675,
18,
25,
1769,
3639,
1815,
8867,
2932,
5659,
460,
1552,
486,
845,
3113,
2371,
6675,
18,
25,
16,
31796,
18,
588,
4723,
9840,
3053,
9334,
263,
11664,
1769,
3639,
1815,
8867,
2932,
780,
460,
1552,
486,
845,
3113,
315,
27,
6675,
18,
25,
3113,
31796,
18,
588,
780,
3053,
10663,
3639,
1815,
2041,
2932,
2279,
1334,
1410,
506,
1392,
1199,
16,
1103,
18,
588,
12101,
7675,
24805,
10663,
3639,
31796,
18,
542,
780,
3053,
2932,
29,
2163,
18,
25,
8863,
3639,
1815,
8867,
2932,
5659,
460,
1552,
486,
845,
3113,
2468,
2163,
18,
25,
16,
31796,
18,
588,
4723,
9840,
3053,
9334,
263,
11664,
1769,
3639,
1815,
8867,
2932,
780,
460,
1552,
486,
845,
3113,
315,
29,
2163,
18,
25,
3113,
31796,
18,
588,
780,
3053,
10663,
3639,
1815,
2041,
2932,
2279,
1334,
1410,
506,
1392,
1199,
16,
1103,
18,
588,
12101,
7675,
24805,
10663,
3639,
31796,
18,
542,
780,
3053,
2932,
8863,
3639,
1815,
8867,
2932,
5659,
460,
1552,
486,
845,
3113,
2468,
2163,
18,
25,
16,
31796,
18,
588,
4723,
9840,
3053,
9334,
263,
11664,
1769,
3639,
1815,
8867,
2932,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23282,
4723,
9840,
5072,
1435,
288,
3639,
1103,
18,
4376,
620,
12,
14495,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
315,
1080,
3053,
6,
3631,
4823,
634,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
7734,
315,
5659,
9840,
3053,
6,
3631,
446,
1769,
3639,
31796,
18,
542,
4723,
9840,
3053,
12443,
5659,
13,
2371,
6675,
18,
25,
1769,
3639,
1815,
8867,
2932,
5659,
460,
1552,
486,
845,
3113,
2371,
6675,
18,
25,
16,
31796,
18,
588,
4723,
9840,
3053,
9334,
263,
11664,
1769,
3639,
1815,
8867,
2932,
780,
460,
1552,
486,
845,
3113,
315,
27,
6675,
18,
25,
3113,
31796,
18,
588,
780,
3053,
10663,
3639,
1815,
2041,
2932,
2
] |
URL resource = cloader.getResource( pluginConfigResource );
|
File pluginConfigFile = new File( getBasedir(), "src/test/plugin-configs/" + pluginConfigResource );
|
private void testDependencyMapping( String pluginConfig, List requiredDependencies ) throws Exception { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); String pluginConfigResource = "basicAbstractAssemblyMojoFeaturesTest/" + pluginConfig; URL resource = cloader.getResource( pluginConfigResource ); assertNotNull( "Cannot find plugin-configuration: \'" + pluginConfigResource + "\' in context-classloader\'s classpath.", resource ); // TODO: Need to replace this with test-only mojos... DirectoryMojo mojo = (DirectoryMojo) lookupMojo( "directory", resource.getPath() ); FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" ); archiverManager.clearArchiver(); mojo.execute(); FileLoggingArchiverStub archiver = (FileLoggingArchiverStub) archiverManager.getArchiver( null ); Set addedFiles = archiver.getAddedFiles(); System.out.println( "The following files were added to the test assembly:\n" + addedFiles.toString().replace(',', '\n' ) ); for ( Iterator it = requiredDependencies.iterator(); it.hasNext(); ) { String targetPath = (String) it.next(); assertTrue( "Required dependency path missing: \'" + targetPath + "\'", addedFiles.contains( targetPath ) ); } }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/9bbf4a5e4ef6893d3bcab1dd542c87f5327b02dc/BasicAbstractAssemblyMojoFeaturesTest.java/buggy/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/BasicAbstractAssemblyMojoFeaturesTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
7787,
3233,
12,
514,
1909,
809,
16,
987,
1931,
8053,
262,
1216,
1185,
565,
288,
3639,
9403,
276,
6714,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
7734,
514,
1909,
809,
1420,
273,
315,
13240,
7469,
24368,
49,
10007,
8696,
4709,
4898,
397,
1909,
809,
31,
7734,
1387,
1909,
13705,
273,
394,
1387,
12,
8297,
1214,
9334,
315,
4816,
19,
3813,
19,
4094,
17,
10955,
4898,
397,
1909,
809,
1420,
11272,
7734,
25395,
12,
315,
4515,
1104,
1909,
17,
7025,
30,
521,
4970,
397,
1909,
809,
1420,
397,
1548,
11,
316,
819,
17,
1106,
6714,
3730,
87,
10006,
1199,
16,
1058,
11272,
7734,
368,
2660,
30,
12324,
358,
1453,
333,
598,
1842,
17,
3700,
312,
6311,
538,
2777,
3639,
8930,
49,
10007,
312,
10007,
273,
261,
2853,
49,
10007,
13,
3689,
49,
10007,
12,
315,
5149,
3113,
1058,
18,
588,
743,
1435,
11272,
3639,
1387,
7735,
12269,
1667,
1318,
11974,
6637,
1667,
1318,
273,
261,
812,
7735,
12269,
1667,
1318,
11974,
13,
13522,
620,
29484,
12,
312,
10007,
16,
315,
991,
1667,
1318,
6,
11272,
3639,
6637,
1667,
1318,
18,
8507,
12269,
1667,
5621,
7734,
312,
10007,
18,
8837,
5621,
3639,
1387,
7735,
12269,
1667,
11974,
6637,
1667,
273,
261,
812,
7735,
12269,
1667,
11974,
13,
6637,
1667,
1318,
18,
588,
12269,
1667,
12,
446,
11272,
7734,
1000,
3096,
2697,
273,
6637,
1667,
18,
588,
8602,
2697,
5621,
7734,
2332,
18,
659,
18,
8222,
12,
315,
1986,
3751,
1390,
4591,
3096,
358,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
7787,
3233,
12,
514,
1909,
809,
16,
987,
1931,
8053,
262,
1216,
1185,
565,
288,
3639,
9403,
276,
6714,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
7734,
514,
1909,
809,
1420,
273,
315,
13240,
7469,
24368,
49,
10007,
8696,
4709,
4898,
397,
1909,
809,
31,
7734,
1387,
1909,
13705,
273,
394,
1387,
12,
8297,
1214,
9334,
315,
4816,
19,
3813,
19,
4094,
17,
10955,
4898,
397,
1909,
809,
1420,
11272,
7734,
25395,
12,
315,
4515,
1104,
1909,
17,
7025,
30,
521,
4970,
397,
1909,
809,
1420,
397,
1548,
11,
316,
819,
17,
1106,
6714,
3730,
87,
10006,
1199,
16,
1058,
11272,
7734,
368,
2660,
30,
12324,
358,
1453,
333,
598,
1842,
17,
3700,
2
] |
public void setDefaultCommentPreference(){ getPreferenceStore( ).setDefault(COMMENT_PREFERENCE, Messages .getString( "org.eclipse.birt.report.designer.ui.preference.commenttemplates.defaultcomment" ));
|
public void setDefaultCommentPreference( ) { getPreferenceStore( ).setDefault( COMMENT_PREFERENCE, Messages.getString( "org.eclipse.birt.report.designer.ui.preference.commenttemplates.defaultcomment" ) );
|
public void setDefaultCommentPreference(){ getPreferenceStore( ).setDefault(COMMENT_PREFERENCE, Messages .getString( "org.eclipse.birt.report.designer.ui.preference.commenttemplates.defaultcomment" )); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fdee5ff6e49704a6be97e36cc62463f0d1c1e5b5/ReportPlugin.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
4469,
9624,
1435,
95,
202,
565,
336,
9624,
2257,
12,
262,
18,
542,
1868,
12,
12200,
67,
3670,
10830,
16,
4838,
202,
565,
263,
588,
780,
12,
315,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
16934,
264,
18,
4881,
18,
19141,
18,
3469,
8502,
18,
1886,
3469,
6,
262,
1769,
202,
5375,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
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,
9277,
4469,
9624,
1435,
95,
202,
565,
336,
9624,
2257,
12,
262,
18,
542,
1868,
12,
12200,
67,
3670,
10830,
16,
4838,
202,
565,
263,
588,
780,
12,
315,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
16934,
264,
18,
4881,
18,
19141,
18,
3469,
8502,
18,
1886,
3469,
6,
262,
1769,
202,
5375,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public BaseDescr lhs_unary() throws RecognitionException { BaseDescr d = null; BaseDescr u = null; FromDescr fm = null; AccumulateDescr ac = null; CollectDescr cs = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1204:4: ( ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1204:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) opt_semicolon { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1204:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' ) int alt44=5; switch ( input.LA(1) ) { case 70: alt44=1; break; case 71: alt44=2; break; case 72: alt44=3; break; case ID: alt44=4; break; case LEFT_PAREN: alt44=5; break; default: if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("1204:4: ( ( lhs_exist )=>u= lhs_exist | ( lhs_not )=>u= lhs_not | ( lhs_eval )=>u= lhs_eval | ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? | '(' u= lhs ')' )", 44, 0, input); throw nvae; } switch (alt44) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1204:6: ( lhs_exist )=>u= lhs_exist { pushFollow(FOLLOW_lhs_exist_in_lhs_unary2851); u=lhs_exist(); _fsp--; if (failed) return d; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1205:5: ( lhs_not )=>u= lhs_not { pushFollow(FOLLOW_lhs_not_in_lhs_unary2859); u=lhs_not(); _fsp--; if (failed) return d; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1206:5: ( lhs_eval )=>u= lhs_eval { pushFollow(FOLLOW_lhs_eval_in_lhs_unary2867); u=lhs_eval(); _fsp--; if (failed) return d; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1207:5: ( lhs_column ( ( ( from_statement ) )=> ( from_statement ) | ( ( accumulate_statement ) )=> ( accumulate_statement ) | ( ( collect_statement ) )=> ( collect_statement ) )? )=>u= lhs_column ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? { pushFollow(FOLLOW_lhs_column_in_lhs_unary2875); u=lhs_column(); _fsp--; if (failed) return d; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1207:18: ( ( ( from_statement ) )=> (fm= from_statement ) | ( ( accumulate_statement ) )=> (ac= accumulate_statement ) | ( ( collect_statement ) )=> (cs= collect_statement ) )? int alt43=4; int LA43_0 = input.LA(1); if ( (LA43_0==47) ) { switch ( input.LA(2) ) { case 48: alt43=2; break; case 52: alt43=3; break; case ID: alt43=1; break; } } switch (alt43) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1208:14: ( ( from_statement ) )=> (fm= from_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1208:14: (fm= from_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1208:15: fm= from_statement { pushFollow(FOLLOW_from_statement_in_lhs_unary2895); fm=from_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { fm.setColumn((ColumnDescr) u); u=fm; } } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1209:14: ( ( accumulate_statement ) )=> (ac= accumulate_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1209:14: (ac= accumulate_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1209:15: ac= accumulate_statement { pushFollow(FOLLOW_accumulate_statement_in_lhs_unary2917); ac=accumulate_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { ac.setResultColumn((ColumnDescr) u); u=ac; } } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1210:14: ( ( collect_statement ) )=> (cs= collect_statement ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1210:14: (cs= collect_statement ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1210:15: cs= collect_statement { pushFollow(FOLLOW_collect_statement_in_lhs_unary2938); cs=collect_statement(); _fsp--; if (failed) return d; if ( backtracking==0 ) { cs.setResultColumn((ColumnDescr) u); u=cs; } } } break; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1212:5: '(' u= lhs ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_unary2961); if (failed) return d; pushFollow(FOLLOW_lhs_in_lhs_unary2965); u=lhs(); _fsp--; if (failed) return d; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_unary2967); if (failed) return d; } break; } if ( backtracking==0 ) { d = u; } pushFollow(FOLLOW_opt_semicolon_in_lhs_unary2977); opt_semicolon(); _fsp--; if (failed) return d; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3360,
16198,
582,
273,
446,
31,
3639,
6338,
16198,
10940,
273,
446,
31,
3639,
15980,
31284,
16198,
1721,
273,
446,
31,
3639,
9302,
16198,
2873,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
3028,
30,
24,
30,
261,
261,
261,
8499,
67,
7398,
13216,
89,
33,
8499,
67,
7398,
571,
261,
8499,
67,
902,
13216,
89,
33,
8499,
67,
902,
571,
261,
8499,
67,
8622,
13216,
89,
33,
8499,
67,
8622,
571,
261,
8499,
67,
2827,
261,
261,
261,
628,
67,
11516,
262,
13216,
261,
628,
67,
11516,
262,
571,
261,
261,
21757,
67,
11516,
262,
13216,
261,
21757,
67,
11516,
262,
571,
261,
261,
3274,
67,
11516,
262,
13216,
261,
3274,
67,
11516,
262,
7851,
13216,
89,
33,
8499,
67,
2827,
261,
261,
261,
628,
67,
11516,
262,
13216,
261,
25089,
33,
628,
67,
11516,
262,
571,
261,
261,
21757,
67,
11516,
262,
13216,
261,
1077,
33,
21757,
67,
11516,
262,
571,
261,
261,
3274,
67,
11516,
262,
13216,
261,
2143,
33,
3274,
67,
11516,
262,
7851,
571,
7321,
582,
33,
8499,
5777,
262,
2153,
67,
12000,
17280,
262,
5411,
368,
463,
31027,
14915,
1695,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3360,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3360,
16198,
582,
273,
446,
31,
3639,
6338,
16198,
10940,
273,
446,
31,
3639,
15980,
31284,
16198,
1721,
273,
446,
31,
3639,
9302,
16198,
2873,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
3028,
30,
24,
30,
261,
261,
261,
8499,
67,
7398,
13216,
89,
33,
8499,
67,
7398,
571,
261,
8499,
67,
902,
13216,
89,
33,
8499,
2
] |
||
if (fnCurrent.isTargetOfDirectCall()) {
|
if (inDirectCallFunction) {
|
private void generateCode(Context cx, ScriptOrFnNode scriptOrFn, ObjArray names, ObjArray classFiles) { String superClassName; this.scriptOrFn = scriptOrFn; if (scriptOrFn.getType() == TokenStream.FUNCTION) { inFunction = true; fnCurrent = (OptFunctionNode)scriptOrFn; inDirectCallFunction = fnCurrent.isTargetOfDirectCall(); generatedClassName = fnCurrent.getClassName(); superClassName = FUNCTION_SUPER_CLASS_NAME; } else { // better be a script if (scriptOrFn.getType() != TokenStream.SCRIPT) badTree(); inFunction = false; boolean isPrimary = (nameHelper.getTargetExtends() == null && nameHelper.getTargetImplements() == null); generatedClassName = getScriptClassName(null, isPrimary); superClassName = SCRIPT_SUPER_CLASS_NAME; } itsUseDynamicScope = cx.hasCompileFunctionsWithDynamicScope(); itsSourceFile = null; // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { itsSourceFile = scriptOrFn.getSourceName(); } version = cx.getLanguageVersion(); optLevel = cx.getOptimizationLevel(); // Generate nested function code int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; ++i) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); Codegen codegen = new Codegen(mainCodegen); codegen.generateCode(cx, fn, names, classFiles); } classFile = new ClassFileWriter(generatedClassName, superClassName, itsSourceFile); Node codegenBase; if (inFunction) { generateInit(cx, superClassName); if (fnCurrent.isTargetOfDirectCall()) { classFile.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.ALOAD_1); addByteCode(ByteCode.ALOAD_2); addByteCode(ByteCode.ALOAD_3); for (int i = 0; i < scriptOrFn.getParamCount(); i++) { push(i); addByteCode(ByteCode.ALOAD, 4); addByteCode(ByteCode.ARRAYLENGTH); int undefArg = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, undefArg); addByteCode(ByteCode.ALOAD, 4); push(i); addByteCode(ByteCode.AALOAD); push(0.0); addByteCode(ByteCode.GOTO, beyond); markLabel(undefArg); pushUndefined(); push(0.0); markLabel(beyond); } addByteCode(ByteCode.ALOAD, 4); addVirtualInvoke(generatedClassName, "callDirect", fnCurrent.getDirectCallParameterSignature(), "Ljava/lang/Object;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)5, null); // 1 for this, 1 for js this, 1 for args[] emitDirectConstructor(); startCodeBodyMethod("callDirect", fnCurrent.getDirectCallParameterSignature() +"Ljava/lang/Object;"); assignParameterJRegs(fnCurrent); if (!fnCurrent.getParameterNumberContext()) { // make sure that all parameters are objects itsForcedObjectParameters = true; for (int i = 0; i < fnCurrent.getParamCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isObjectLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, isObjectLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); dload((short)(lVar.getJRegister() + 1)); addDoubleConstructor(); astore(lVar.getJRegister()); markLabel(isObjectLabel); } } generatePrologue(cx, scriptOrFn.getParamCount()); } else { startCodeBodyMethod("call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"); generatePrologue(cx, -1); } codegenBase = scriptOrFn.getLastChild(); } else { // script classFile.addInterface("org/mozilla/javascript/Script"); generateInit(cx, superClassName); generateScriptCtor(cx, superClassName); generateMain(cx); generateExecute(cx); startCodeBodyMethod("call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"); generatePrologue(cx, -1); int linenum = scriptOrFn.getEndLineno(); if (linenum != -1) classFile.addLineNumberEntry((short)linenum); scriptOrFn.addChildToBack(new Node(TokenStream.RETURN)); codegenBase = scriptOrFn; } generateCodeFromNode(codegenBase, null, -1, -1); generateEpilogue(); finishMethod(cx, debugVars); emitConstantDudeInitializers(); byte[] bytes = classFile.toByteArray(); names.add(generatedClassName); classFiles.add(bytes); classFile = null; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/254d313fa4af2fecbee1dfc1461584e0bc2ecad6/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
12,
1042,
9494,
16,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
17311,
18760,
1076,
1257,
16,
18760,
1076,
667,
2697,
13,
565,
288,
3639,
514,
2240,
3834,
31,
3639,
333,
18,
4263,
1162,
5372,
273,
2728,
1162,
5372,
31,
3639,
309,
261,
4263,
1162,
5372,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
13,
288,
5411,
316,
2083,
273,
638,
31,
5411,
2295,
3935,
273,
261,
6179,
2083,
907,
13,
4263,
1162,
5372,
31,
5411,
316,
5368,
1477,
2083,
273,
2295,
3935,
18,
291,
2326,
951,
5368,
1477,
5621,
5411,
4374,
3834,
273,
2295,
3935,
18,
588,
3834,
5621,
5411,
2240,
3834,
273,
13690,
67,
13272,
654,
67,
5237,
67,
1985,
31,
3639,
289,
469,
288,
5411,
368,
7844,
506,
279,
2728,
5411,
309,
261,
4263,
1162,
5372,
18,
588,
559,
1435,
480,
3155,
1228,
18,
10885,
13,
5570,
2471,
5621,
5411,
316,
2083,
273,
629,
31,
5411,
1250,
353,
6793,
273,
261,
529,
2276,
18,
588,
2326,
19581,
1435,
422,
446,
4766,
597,
508,
2276,
18,
588,
2326,
17516,
1435,
422,
446,
1769,
5411,
4374,
3834,
273,
22611,
3834,
12,
2011,
16,
353,
6793,
1769,
5411,
2240,
3834,
273,
22812,
67,
13272,
654,
67,
5237,
67,
1985,
31,
3639,
289,
3639,
2097,
3727,
9791,
3876,
273,
9494,
18,
5332,
9937,
7503,
1190,
9791,
3876,
5621,
3639,
2097,
31150,
273,
446,
31,
3639,
368,
805,
353,
358,
2103,
1198,
1123,
3639,
309,
16051,
71,
92,
18,
291,
21755,
2829,
5033,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1085,
12,
1042,
9494,
16,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
17311,
18760,
1076,
1257,
16,
18760,
1076,
667,
2697,
13,
565,
288,
3639,
514,
2240,
3834,
31,
3639,
333,
18,
4263,
1162,
5372,
273,
2728,
1162,
5372,
31,
3639,
309,
261,
4263,
1162,
5372,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
13,
288,
5411,
316,
2083,
273,
638,
31,
5411,
2295,
3935,
273,
261,
6179,
2083,
907,
13,
4263,
1162,
5372,
31,
5411,
316,
5368,
1477,
2083,
273,
2295,
3935,
18,
291,
2326,
951,
5368,
1477,
5621,
5411,
4374,
3834,
273,
2295,
3935,
18,
588,
3834,
5621,
5411,
2240,
3834,
273,
13690,
67,
13272,
654,
67,
5237,
67,
1985,
31,
2
] |
ArrayList al;
|
List al;
|
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = getDeviceScale( ); Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; /* --- Start bound computing --- */ // TODO Refactoring: create function double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { int iAnchor = lg.getAnchor( ).getValue( ); // swap west/east if ( isRightToLeft( ) ) { if ( iAnchor == Anchor.EAST ) { iAnchor = Anchor.WEST; } else if ( iAnchor == Anchor.NORTH_EAST ) { iAnchor = Anchor.NORTH_WEST; } else if ( iAnchor == Anchor.SOUTH_EAST ) { iAnchor = Anchor.SOUTH_WEST; } else if ( iAnchor == Anchor.WEST ) { iAnchor = Anchor.EAST; } else if ( iAnchor == Anchor.NORTH_WEST ) { iAnchor = Anchor.NORTH_EAST; } else if ( iAnchor == Anchor.SOUTH_WEST ) { iAnchor = Anchor.SOUTH_EAST; } } switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else { // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND // 'INSIDE' PLOT dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); } // get cached legend info. final LegendLayoutHints lilh = rtc.getLegendLayoutHints( ); // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; final boolean bRenderLegendTitle = lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ); int iTitlePos = Position.ABOVE; if ( bRenderLegendTitle ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); if ( lilh != null ) { // use cached value Size titleSize = lilh.getTitleSize( ); lgTitleWidth = titleSize.getWidth( ); lgTitleHeight = titleSize.getHeight( ); } else { BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); } iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); /* --- End of bounds computing --- */ final double dBaseX = dX; final double dBaseY = dY; final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = LineAttributesImpl.copyInstance( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE LineAttributes liSep = lg.getSeparator( ) == null ? lia : lg.getSeparator( ); final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); final double maxWrappingSize = lg.getWrappingSize( ); final double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; ArrayList al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); // Calculate if minSlice applicable. String sMinSliceLabel = null; boolean bMinSliceApplied = false; if ( lilh != null ) { // use cached value. sMinSliceLabel = lilh.getMinSliceText( ); bMinSliceApplied = lilh.isMinSliceApplied( ); } else { boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; Map columnCache = searchMaxColumnWidth( liha ); for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dY += insCA.getTop( ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; double dFullWidth = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } // Render legend title if defined. if ( bRenderLegendTitle ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( iTitlePos ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/77cd1486b3c02afdf48daa502282ec72dded2287/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
19512,
5587,
12,
11272,
202,
202,
5694,
800,
273,
15266,
18,
588,
5694,
12,
262,
18,
20665,
1442,
12,
302,
5587,
11272,
202,
202,
1225,
11262,
273,
446,
31,
202,
202,
20308,
9948,
3603,
2489,
20303,
9948,
1195,
202,
202,
759,
2660,
868,
3493,
6053,
30,
752,
445,
202,
202,
9056,
302,
60,
16,
302,
61,
31,
202,
202,
430,
261,
15266,
18,
588,
2555,
12,
262,
480,
11010,
18,
706,
26498,
67,
23225,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
24575,
273,
15266,
18,
588,
16028,
1225,
12,
9280,
16,
5003,
16,
436,
5111,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
1185,
431,
262,
1082,
202,
95,
9506,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
25083,
202,
7984,
503,
18,
25230,
1360,
16,
25083,
202,
338,
11272,
1082,
202,
97,
1082,
202,
24575,
18,
5864,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
19512,
5587,
12,
11272,
202,
202,
5694,
800,
273,
15266,
18,
588,
5694,
12,
262,
18,
20665,
1442,
12,
302,
2
] |
/* this will select the active document in the navigator, which * will signal a listener to call _setActiveDoc(...) */
|
/* selects the active document in the navigator, which signals a listener to call _setActiveDoc(...) */
|
public void setActivePreviousDocument() { INavigatorItem key = _activeDocument; OpenDefinitionsDocument prevKey = (OpenDefinitionsDocument) _documentNavigator.getPrevious(key); if (key != prevKey) setActiveDocument(prevKey); /* this will select the active document in the navigator, which * will signal a listener to call _setActiveDoc(...) */ }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/d1ffac675273323f7a1b9777462d16896d09a1af/DefaultSingleDisplayModel.java/clean/drjava/src/edu/rice/cs/drjava/model/DefaultSingleDisplayModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20669,
8351,
2519,
1435,
288,
565,
2120,
13061,
1180,
498,
273,
389,
3535,
2519,
31,
565,
3502,
7130,
2519,
2807,
653,
273,
261,
3678,
7130,
2519,
13,
389,
5457,
22817,
18,
588,
8351,
12,
856,
1769,
565,
309,
261,
856,
480,
2807,
653,
13,
20669,
2519,
12,
10001,
653,
1769,
1377,
1748,
333,
903,
2027,
326,
2695,
1668,
316,
326,
19796,
16,
1492,
4202,
380,
903,
4277,
279,
2991,
358,
745,
389,
542,
3896,
1759,
5825,
13,
1195,
225,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
918,
20669,
8351,
2519,
1435,
288,
565,
2120,
13061,
1180,
498,
273,
389,
3535,
2519,
31,
565,
3502,
7130,
2519,
2807,
653,
273,
261,
3678,
7130,
2519,
13,
389,
5457,
22817,
18,
588,
8351,
12,
856,
1769,
565,
309,
261,
856,
480,
2807,
653,
13,
20669,
2519,
12,
10001,
653,
1769,
1377,
1748,
333,
903,
2027,
326,
2695,
1668,
316,
326,
19796,
16,
1492,
4202,
380,
903,
4277,
279,
2991,
358,
745,
389,
542,
3896,
1759,
5825,
13,
1195,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (cls == null) { return !(toClass.isPrimitive());
|
if (classArray == null) { classArray = ArrayUtils.EMPTY_CLASS_ARRAY;
|
public static boolean isAssignable(Class cls, Class toClass) { if (toClass == null) { return false; } // have to check for null, as isAssignableFrom doesn't if (cls == null) { return !(toClass.isPrimitive()); } if (cls.equals(toClass)) { return true; } if (cls.isPrimitive()) { if (toClass.isPrimitive() == false) { return false; } if (Integer.TYPE.equals(cls)) { return Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Long.TYPE.equals(cls)) { return Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Boolean.TYPE.equals(cls)) { return false; } if (Double.TYPE.equals(cls)) { return false; } if (Float.TYPE.equals(cls)) { return Double.TYPE.equals(toClass); } if (Character.TYPE.equals(cls)) { return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Short.TYPE.equals(cls)) { return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Byte.TYPE.equals(cls)) { return Short.TYPE.equals(toClass) || Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } // should never get here return false; } return toClass.isAssignableFrom(cls); }
|
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/0eeb7c904c84d44bab0101d568e22bfa8177c34c/ClassUtils.java/clean/src/java/org/apache/commons/lang/ClassUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
8540,
12,
797,
2028,
16,
1659,
358,
797,
13,
288,
3639,
309,
261,
869,
797,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1240,
358,
866,
364,
446,
16,
487,
8917,
3302,
1404,
3639,
309,
261,
6429,
422,
446,
13,
288,
5411,
327,
401,
12,
869,
797,
18,
291,
9840,
10663,
3639,
289,
3639,
309,
261,
6429,
18,
14963,
12,
869,
797,
3719,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
6429,
18,
291,
9840,
10756,
288,
5411,
309,
261,
869,
797,
18,
291,
9840,
1435,
422,
629,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
4522,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
327,
3407,
18,
2399,
18,
14963,
12,
869,
797,
13,
10792,
747,
5450,
18,
2399,
18,
14963,
12,
869,
797,
13,
10792,
747,
3698,
18,
2399,
18,
14963,
12,
869,
797,
1769,
5411,
289,
5411,
309,
261,
3708,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
327,
5450,
18,
2399,
18,
14963,
12,
869,
797,
13,
10792,
747,
3698,
18,
2399,
18,
14963,
12,
869,
797,
1769,
5411,
289,
5411,
309,
261,
5507,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
5265,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
4723,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
327,
3698,
18,
2399,
18,
14963,
12,
869,
797,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
8540,
12,
797,
2028,
16,
1659,
358,
797,
13,
288,
3639,
309,
261,
869,
797,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
1240,
358,
866,
364,
446,
16,
487,
8917,
3302,
1404,
3639,
309,
261,
6429,
422,
446,
13,
288,
5411,
327,
401,
12,
869,
797,
18,
291,
9840,
10663,
3639,
289,
3639,
309,
261,
6429,
18,
14963,
12,
869,
797,
3719,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
6429,
18,
291,
9840,
10756,
288,
5411,
309,
261,
869,
797,
18,
291,
9840,
1435,
422,
629,
13,
288,
7734,
327,
629,
31,
5411,
289,
5411,
309,
261,
4522,
18,
2399,
18,
14963,
12,
6429,
3719,
288,
7734,
2
] |
ContentAssistProcessor singleLineProcessor= new JavaCompletionProcessor(getEditor(), IJavaPartitions.JAVA_SINGLE_LINE_COMMENT);
|
ContentAssistProcessor singleLineProcessor= new JavaCompletionProcessor(getEditor(), assistant, IJavaPartitions.JAVA_SINGLE_LINE_COMMENT);
|
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) { if (getEditor() != null) { ContentAssistant assistant= new ContentAssistant(); assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); assistant.setRestoreCompletionProposalSize(getSettings("completion_proposal_size")); //$NON-NLS-1$ IContentAssistProcessor javaProcessor= new JavaCompletionProcessor(getEditor(), IDocument.DEFAULT_CONTENT_TYPE); assistant.setContentAssistProcessor(javaProcessor, IDocument.DEFAULT_CONTENT_TYPE); ContentAssistProcessor singleLineProcessor= new JavaCompletionProcessor(getEditor(), IJavaPartitions.JAVA_SINGLE_LINE_COMMENT); assistant.setContentAssistProcessor(singleLineProcessor, IJavaPartitions.JAVA_SINGLE_LINE_COMMENT); ContentAssistProcessor stringProcessor= new JavaCompletionProcessor(getEditor(), IJavaPartitions.JAVA_STRING); assistant.setContentAssistProcessor(stringProcessor, IJavaPartitions.JAVA_STRING); ContentAssistProcessor multiLineProcessor= new JavaCompletionProcessor(getEditor(), IJavaPartitions.JAVA_MULTI_LINE_COMMENT); assistant.setContentAssistProcessor(multiLineProcessor, IJavaPartitions.JAVA_MULTI_LINE_COMMENT); ContentAssistProcessor javadocProcessor= new JavadocCompletionProcessor(getEditor()); assistant.setContentAssistProcessor(javadocProcessor, IJavaPartitions.JAVA_DOC); ContentAssistPreference.configure(assistant, fPreferenceStore); assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE); assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer)); return assistant; } return null; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/5bf80e2f51330b82217ce9b9a01e470170bf1744/JavaSourceViewerConfiguration.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1350,
2610,
17175,
5154,
2610,
17175,
12,
45,
1830,
18415,
1084,
18415,
13,
288,
202,
202,
430,
261,
588,
6946,
1435,
480,
446,
13,
288,
1082,
202,
1350,
2610,
17175,
28779,
33,
394,
3697,
2610,
17175,
5621,
1082,
202,
428,
17175,
18,
542,
2519,
7003,
310,
12,
588,
15334,
2519,
7003,
310,
12,
3168,
18415,
10019,
1082,
202,
428,
17175,
18,
542,
10874,
11238,
14592,
1225,
12,
588,
2628,
2932,
11469,
67,
685,
8016,
67,
1467,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
1350,
2610,
376,
5164,
2252,
5164,
33,
394,
5110,
11238,
5164,
12,
588,
6946,
9334,
1599,
504,
650,
18,
5280,
67,
9689,
67,
2399,
1769,
1082,
202,
428,
17175,
18,
542,
1350,
2610,
376,
5164,
12,
6290,
5164,
16,
1599,
504,
650,
18,
5280,
67,
9689,
67,
2399,
1769,
1082,
202,
1350,
2610,
376,
5164,
2202,
1670,
5164,
33,
394,
5110,
11238,
5164,
12,
588,
6946,
9334,
467,
5852,
13738,
18,
27264,
67,
20184,
67,
5997,
67,
12200,
1769,
1082,
202,
428,
17175,
18,
542,
1350,
2610,
376,
5164,
12,
7526,
1670,
5164,
16,
467,
5852,
13738,
18,
27264,
67,
20184,
67,
5997,
67,
12200,
1769,
1082,
202,
1350,
2610,
376,
5164,
533,
5164,
33,
394,
5110,
11238,
5164,
12,
588,
6946,
9334,
467,
5852,
13738,
18,
27264,
67,
5804,
1769,
1082,
202,
428,
17175,
18,
542,
1350,
2610,
376,
5164,
12,
1080,
5164,
16,
467,
5852,
13738,
18,
27264,
67,
5804,
1769,
25083,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1350,
2610,
17175,
5154,
2610,
17175,
12,
45,
1830,
18415,
1084,
18415,
13,
288,
202,
202,
430,
261,
588,
6946,
1435,
480,
446,
13,
288,
1082,
202,
1350,
2610,
17175,
28779,
33,
394,
3697,
2610,
17175,
5621,
1082,
202,
428,
17175,
18,
542,
2519,
7003,
310,
12,
588,
15334,
2519,
7003,
310,
12,
3168,
18415,
10019,
1082,
202,
428,
17175,
18,
542,
10874,
11238,
14592,
1225,
12,
588,
2628,
2932,
11469,
67,
685,
8016,
67,
1467,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
45,
1350,
2610,
376,
5164,
2252,
5164,
33,
394,
5110,
11238,
5164,
12,
588,
6946,
9334,
1599,
504,
650,
18,
5280,
67,
9689,
67,
2399,
1769,
1082,
202,
2
] |
suite.addTestSuite(ConnectionPoolTest.class);
|
suite.addTestSuite(PoolingDataSourceTest.class);
|
public static TestSuite suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(SimpleDataSourceTest.class); suite.addTestSuite(ConnectionPoolTest.class); suite.addTestSuite(ConnectionPoolTest.class); return suite; }
|
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/1a4431777bf398efbc3fcf430ba6573655510d26/OptionalTestSuite.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
13587,
11371,
1435,
202,
95,
202,
202,
4709,
13587,
11371,
273,
394,
7766,
13587,
5621,
202,
202,
30676,
18,
1289,
4709,
13587,
12,
5784,
8597,
4709,
18,
1106,
1769,
202,
202,
30676,
18,
1289,
4709,
13587,
12,
2864,
310,
8597,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
1952,
2864,
4709,
18,
1106,
1769,
202,
202,
2463,
11371,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
13587,
11371,
1435,
202,
95,
202,
202,
4709,
13587,
11371,
273,
394,
7766,
13587,
5621,
202,
202,
30676,
18,
1289,
4709,
13587,
12,
5784,
8597,
4709,
18,
1106,
1769,
202,
202,
30676,
18,
1289,
4709,
13587,
12,
2864,
310,
8597,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
1952,
2864,
4709,
18,
1106,
1769,
202,
202,
2463,
11371,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String noWordSep = (String)buffer.getProperty("noWordSep");
|
String noWordSep = buffer.getStringProperty("noWordSep");
|
public void goToNextWord(boolean select) { int lineStart = getLineStartOffset(caretLine); int newCaret = caret - lineStart; String lineText = getLineText(caretLine); if(newCaret == lineText.length()) { int nextLine = foldVisibilityManager.getNextVisibleLine(caretLine); if(nextLine == -1) { getToolkit().beep(); return; } newCaret = getLineStartOffset(nextLine); } else { String noWordSep = (String)buffer.getProperty("noWordSep"); newCaret = TextUtilities.findWordEnd(lineText,newCaret + 1,noWordSep) + lineStart; } if(select) extendSelection(caret,newCaret); else if(!multi) selectNone(); moveCaretPosition(newCaret); } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/1fe4a43530f83f888069da4316c096eb942308c5/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1960,
774,
2134,
3944,
12,
6494,
2027,
13,
202,
95,
202,
202,
474,
29208,
273,
9851,
1685,
2335,
12,
71,
20731,
1670,
1769,
202,
202,
474,
394,
39,
20731,
273,
21683,
300,
29208,
31,
202,
202,
780,
980,
1528,
273,
9851,
1528,
12,
71,
20731,
1670,
1769,
202,
202,
430,
12,
2704,
39,
20731,
422,
980,
1528,
18,
2469,
10756,
202,
202,
95,
1082,
202,
474,
26638,
273,
11590,
10135,
1318,
18,
588,
2134,
6207,
1670,
12,
71,
20731,
1670,
1769,
1082,
202,
430,
12,
4285,
1670,
422,
300,
21,
13,
1082,
202,
95,
9506,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
2704,
39,
20731,
273,
9851,
1685,
2335,
12,
4285,
1670,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
780,
1158,
3944,
5097,
273,
261,
780,
13,
4106,
18,
588,
1396,
2932,
2135,
3944,
5097,
8863,
1082,
202,
2704,
39,
20731,
273,
3867,
11864,
18,
4720,
3944,
1638,
12,
1369,
1528,
16,
2704,
39,
20731,
397,
404,
16,
2135,
3944,
5097,
13,
9506,
202,
15,
29208,
31,
202,
202,
97,
202,
202,
430,
12,
4025,
13,
1082,
202,
14313,
6233,
12,
71,
20731,
16,
2704,
39,
20731,
1769,
202,
202,
12107,
309,
12,
5,
7027,
13,
1082,
202,
4025,
7036,
5621,
202,
202,
8501,
39,
20731,
2555,
12,
2704,
39,
20731,
1769,
202,
97,
368,
9090,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1960,
774,
2134,
3944,
12,
6494,
2027,
13,
202,
95,
202,
202,
474,
29208,
273,
9851,
1685,
2335,
12,
71,
20731,
1670,
1769,
202,
202,
474,
394,
39,
20731,
273,
21683,
300,
29208,
31,
202,
202,
780,
980,
1528,
273,
9851,
1528,
12,
71,
20731,
1670,
1769,
202,
202,
430,
12,
2704,
39,
20731,
422,
980,
1528,
18,
2469,
10756,
202,
202,
95,
1082,
202,
474,
26638,
273,
11590,
10135,
1318,
18,
588,
2134,
6207,
1670,
12,
71,
20731,
1670,
1769,
1082,
202,
430,
12,
4285,
1670,
422,
300,
21,
13,
1082,
202,
95,
9506,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
2704,
39,
20731,
2
] |
} catch (ReturnJump rExcptn) { return rExcptn.getReturnValue();
|
} catch (BreakJump rExcptn) { throw new ReturnJump(ruby.getNil());
|
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Namespace oldNamespace = ruby.getNamespace(); ruby.setNamespace(getCurrentFrame().getNamespace()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); getDynamicVarsStack().push(currentBlock.getDynamicVariables()); ruby.pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } if (value == null) { value = RubyArray.newArray(ruby, 0); } ICallable method = currentBlock.getMethod(); if (method == null) { return ruby.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments); try { while (true) { try { return method.call(ruby, self, null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { return ruby.getNil(); } catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); } finally { getIterStack().pop(); ruby.popClass(); getDynamicVarsStack().pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); ruby.setNamespace(oldNamespace); getScopeStack().setTop(oldScope); getDynamicVarsStack().pop(); } }
|
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/7677ca971349ae5011a3a094c25cc087b47cfaa4/ThreadContext.java/clean/org/jruby/runtime/ThreadContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2824,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
866,
4628,
13,
288,
3639,
309,
16051,
22155,
18,
291,
1768,
6083,
10756,
288,
5411,
604,
394,
20539,
503,
12,
27768,
16,
22155,
18,
588,
11416,
7675,
588,
2042,
26743,
668,
9334,
315,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
3639,
1817,
9791,
5555,
5621,
3639,
3914,
30610,
273,
11902,
2624,
7675,
588,
3935,
5621,
3639,
25396,
2624,
7675,
6206,
12,
2972,
1768,
18,
588,
3219,
10663,
3639,
6005,
1592,
3402,
273,
22155,
18,
588,
3402,
5621,
3639,
22155,
18,
542,
3402,
12,
588,
3935,
3219,
7675,
588,
3402,
10663,
3639,
5468,
1592,
3876,
273,
261,
3876,
13,
19203,
2624,
7675,
588,
3401,
5621,
3639,
19203,
2624,
7675,
542,
3401,
12,
2972,
1768,
18,
588,
3876,
10663,
3639,
11902,
2624,
7675,
5120,
5621,
3639,
2343,
3920,
5555,
2624,
7675,
6206,
12,
2972,
1768,
18,
588,
9791,
6158,
10663,
3639,
22155,
18,
6206,
797,
12443,
22626,
480,
446,
13,
692,
7352,
294,
30610,
18,
588,
47,
459,
10663,
3639,
309,
261,
22626,
422,
446,
13,
288,
5411,
365,
273,
30610,
18,
588,
10084,
5621,
3639,
289,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
460,
273,
19817,
1076,
18,
2704,
1076,
12,
27768,
16,
374,
1769,
3639,
289,
3639,
467,
11452,
707,
273,
30610,
18,
588,
1305,
5621,
3639,
309,
261,
2039,
422,
446,
13,
288,
5411,
327,
22155,
18,
588,
12616,
5621,
3639,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
2824,
12,
7937,
10340,
921,
460,
16,
15908,
10340,
921,
365,
16,
19817,
3120,
7352,
16,
1250,
866,
4628,
13,
288,
3639,
309,
16051,
22155,
18,
291,
1768,
6083,
10756,
288,
5411,
604,
394,
20539,
503,
12,
27768,
16,
22155,
18,
588,
11416,
7675,
588,
2042,
26743,
668,
9334,
315,
23604,
2566,
596,
434,
1203,
8863,
3639,
289,
3639,
1817,
9791,
5555,
5621,
3639,
3914,
30610,
273,
11902,
2624,
7675,
588,
3935,
5621,
3639,
25396,
2624,
7675,
6206,
12,
2972,
1768,
18,
588,
3219,
10663,
3639,
6005,
1592,
3402,
273,
22155,
18,
588,
3402,
5621,
3639,
22155,
18,
542,
3402,
12,
588,
3935,
3219,
7675,
588,
3402,
10663,
3639,
5468,
1592,
3876,
273,
261,
2
] |
VALUE rb_str_concat(VALUE v, VALUE w) {
|
RubyObject rb_str_concat(VALUE v, VALUE w) {
|
VALUE rb_str_concat(VALUE v, VALUE w) { //XXX need to keep identity and tainting RubyString vs = (RubyString)v; if (FIXNUM_P(w)) vs.setString(vs.getString() + (char)FIX2INT(w)); else vs.setString(vs.getString() + ((RubyString)w).getString()); return vs; }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
19817,
921,
7138,
67,
701,
67,
16426,
12,
4051,
331,
16,
5848,
341,
13,
288,
3639,
368,
15639,
1608,
358,
3455,
4215,
471,
22664,
310,
3639,
19817,
780,
6195,
273,
261,
54,
10340,
780,
13,
90,
31,
3639,
309,
261,
4563,
6069,
67,
52,
12,
91,
3719,
5411,
6195,
18,
542,
780,
12,
6904,
18,
588,
780,
1435,
397,
261,
3001,
13,
4563,
22,
3217,
12,
91,
10019,
3639,
469,
5411,
6195,
18,
542,
780,
12,
6904,
18,
588,
780,
1435,
397,
14015,
54,
10340,
780,
13,
91,
2934,
588,
780,
10663,
3639,
327,
6195,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
19817,
921,
7138,
67,
701,
67,
16426,
12,
4051,
331,
16,
5848,
341,
13,
288,
3639,
368,
15639,
1608,
358,
3455,
4215,
471,
22664,
310,
3639,
19817,
780,
6195,
273,
261,
54,
10340,
780,
13,
90,
31,
3639,
309,
261,
4563,
6069,
67,
52,
12,
91,
3719,
5411,
6195,
18,
542,
780,
12,
6904,
18,
588,
780,
1435,
397,
261,
3001,
13,
4563,
22,
3217,
12,
91,
10019,
3639,
469,
5411,
6195,
18,
542,
780,
12,
6904,
18,
588,
780,
1435,
397,
14015,
54,
10340,
780,
13,
91,
2934,
588,
780,
10663,
3639,
327,
6195,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
doTestAdd(100);
|
doTestAddFast(100);
|
public void testAddHundred() throws CoreException { tagIfNecessary("Add 100 items to tree", Dimension.ELAPSED_PROCESS); doTestAdd(100); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e3c24fd1af227ec02fdbfe7eead3fd24abb45128/TreeTest.java/clean/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/performance/TreeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
986,
44,
1074,
1118,
1435,
1216,
30015,
288,
202,
202,
2692,
26034,
2932,
986,
2130,
1516,
358,
2151,
3113,
13037,
18,
2247,
2203,
18204,
67,
16560,
1769,
9506,
202,
2896,
4709,
986,
12,
6625,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
918,
1842,
986,
44,
1074,
1118,
1435,
1216,
30015,
288,
202,
202,
2692,
26034,
2932,
986,
2130,
1516,
358,
2151,
3113,
13037,
18,
2247,
2203,
18204,
67,
16560,
1769,
9506,
202,
2896,
4709,
986,
12,
6625,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (elementDescriptor != null) {
|
if (elementDescriptor != null && !(elementDescriptor instanceof AnyXmlElementDescriptor)) {
|
public XmlElementDescriptor getDescriptor() { final String namespace = getNamespace(); XmlElementDescriptor elementDescriptor; if (XmlUtil.EMPTY_URI.equals(namespace)) { //nonqualified items final PsiElement parent = getParent(); if (parent instanceof XmlTag) { final XmlElementDescriptor descriptor = ((XmlTag)parent).getDescriptor(); if (descriptor != null) { elementDescriptor = descriptor.getElementDescriptor(this); if (elementDescriptor != null) { return elementDescriptor; } } } } final XmlNSDescriptor nsDescriptor = getNSDescriptor(namespace, false); elementDescriptor = (nsDescriptor != null) ? nsDescriptor.getElementDescriptor(this) : null; if(elementDescriptor == null){ elementDescriptor = XmlUtil.findXmlDescriptorByType(this); } return elementDescriptor; }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/cae9af018ed4226ea58734fb30b3fbc4988e4629/XmlTagImpl.java/clean/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15412,
3187,
22161,
1435,
288,
565,
727,
514,
1981,
273,
11153,
5621,
565,
15412,
3187,
930,
3187,
31,
3639,
309,
261,
4432,
1304,
18,
13625,
67,
3098,
18,
14963,
12,
4937,
3719,
288,
368,
5836,
19724,
1516,
1377,
727,
453,
7722,
1046,
982,
273,
5089,
5621,
5411,
309,
261,
2938,
1276,
5714,
1805,
13,
288,
3639,
727,
15412,
3187,
4950,
273,
14015,
4432,
1805,
13,
2938,
2934,
588,
3187,
5621,
7734,
309,
261,
12628,
480,
446,
13,
288,
1850,
930,
3187,
273,
4950,
18,
21336,
3187,
12,
2211,
1769,
10792,
309,
261,
2956,
3187,
480,
446,
597,
401,
12,
2956,
3187,
1276,
5502,
4432,
1046,
3187,
3719,
288,
5411,
327,
930,
3187,
31,
1850,
289,
3639,
289,
1377,
289,
565,
289,
3639,
727,
5714,
3156,
3187,
3153,
3187,
273,
336,
3156,
3187,
12,
4937,
16,
629,
1769,
565,
930,
3187,
273,
261,
2387,
3187,
480,
446,
13,
692,
3153,
3187,
18,
21336,
3187,
12,
2211,
13,
294,
446,
31,
565,
309,
12,
2956,
3187,
422,
446,
15329,
1377,
930,
3187,
273,
5714,
1304,
18,
4720,
4432,
3187,
14145,
12,
2211,
1769,
565,
289,
565,
327,
930,
3187,
31,
225,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
15412,
3187,
22161,
1435,
288,
565,
727,
514,
1981,
273,
11153,
5621,
565,
15412,
3187,
930,
3187,
31,
3639,
309,
261,
4432,
1304,
18,
13625,
67,
3098,
18,
14963,
12,
4937,
3719,
288,
368,
5836,
19724,
1516,
1377,
727,
453,
7722,
1046,
982,
273,
5089,
5621,
5411,
309,
261,
2938,
1276,
5714,
1805,
13,
288,
3639,
727,
15412,
3187,
4950,
273,
14015,
4432,
1805,
13,
2938,
2934,
588,
3187,
5621,
7734,
309,
261,
12628,
480,
446,
13,
288,
1850,
930,
3187,
273,
4950,
18,
21336,
3187,
12,
2211,
1769,
10792,
309,
261,
2956,
3187,
480,
446,
597,
401,
12,
2956,
3187,
1276,
5502,
4432,
1046,
3187,
3719,
288,
5411,
327,
930,
3187,
31,
1850,
289,
3639,
289,
2
] |
ConfigurationService configurationService) { synchronized (this.syncRoot_Config) { if (this.configurationService == configurationService) { this.configurationService = null; log.debug("Configuration service unregistered."); } } }
|
ConfigurationService configurationService) { synchronized (this.syncRoot_Config) { if (this.configurationService == configurationService) { this.configurationService = null; log.debug("Configuration service unregistered."); } } }
|
public void unsetConfigurationService( ConfigurationService configurationService) { synchronized (this.syncRoot_Config) { if (this.configurationService == configurationService) { this.configurationService = null; log.debug("Configuration service unregistered."); } } }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/HistoryServiceImpl.java/clean/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2646,
1750,
1179,
12,
1082,
202,
1750,
1179,
1664,
1179,
13,
288,
202,
202,
22043,
261,
2211,
18,
8389,
2375,
67,
809,
13,
288,
1082,
202,
430,
261,
2211,
18,
7025,
1179,
422,
1664,
1179,
13,
288,
9506,
202,
2211,
18,
7025,
1179,
273,
446,
31,
9506,
202,
1330,
18,
4148,
2932,
1750,
1156,
24352,
1199,
1769,
1082,
202,
97,
202,
202,
97,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2646,
1750,
1179,
12,
1082,
202,
1750,
1179,
1664,
1179,
13,
288,
202,
202,
22043,
261,
2211,
18,
8389,
2375,
67,
809,
13,
288,
1082,
202,
430,
261,
2211,
18,
7025,
1179,
422,
1664,
1179,
13,
288,
9506,
202,
2211,
18,
7025,
1179,
273,
446,
31,
9506,
202,
1330,
18,
4148,
2932,
1750,
1156,
24352,
1199,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ConflictsDialog dialog = new ConflictsDialog(myProject);
|
ConflictsDialog dialog = new ConflictsDialog(myProject, conflicts);
|
private boolean canRefactor() { final String[] conflicts = analyzeMoveConflicts(myMembersToMove, myTargetClass, myNewVisibility); if (conflicts.length > 0) { ConflictsDialog dialog = new ConflictsDialog(myProject); dialog.show(); return dialog.isOK(); } return true; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/413999cb6b9d69b19798528a6066ceba40f68c3c/MoveMembersProcessor.java/clean/refactoring/impl/com/intellij/refactoring/move/moveMembers/MoveMembersProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
848,
426,
6812,
1435,
288,
565,
727,
514,
8526,
14450,
273,
12375,
7607,
30897,
12,
4811,
6918,
774,
7607,
16,
3399,
2326,
797,
16,
3399,
1908,
10135,
1769,
565,
309,
261,
20340,
87,
18,
2469,
405,
374,
13,
288,
1377,
23460,
87,
6353,
6176,
273,
394,
23460,
87,
6353,
12,
4811,
4109,
16,
14450,
1769,
1377,
6176,
18,
4500,
5621,
1377,
327,
6176,
18,
291,
3141,
5621,
565,
289,
565,
327,
638,
31,
225,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
3238,
1250,
848,
426,
6812,
1435,
288,
565,
727,
514,
8526,
14450,
273,
12375,
7607,
30897,
12,
4811,
6918,
774,
7607,
16,
3399,
2326,
797,
16,
3399,
1908,
10135,
1769,
565,
309,
261,
20340,
87,
18,
2469,
405,
374,
13,
288,
1377,
23460,
87,
6353,
6176,
273,
394,
23460,
87,
6353,
12,
4811,
4109,
16,
14450,
1769,
1377,
6176,
18,
4500,
5621,
1377,
327,
6176,
18,
291,
3141,
5621,
565,
289,
565,
327,
638,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (getTypingTarget() != null) { editor().toolDone();
|
public void mouseDown(MouseEvent e, int x, int y) { setView((DrawingView)e.getSource()); Figure pressedFigure = drawing().findFigureInside(x, y); TextHolder textHolder = null; if (pressedFigure != null) { textHolder = pressedFigure.getTextHolder(); } if ((textHolder != null) && textHolder.acceptsTyping()) { beginEdit(textHolder); } else if (getTypingTarget() != null) { editor().toolDone(); } else { super.mouseDown(e, x, y); // update view so the created figure is drawn before the floating text // figure is overlaid. (Note, fDamage should be null in StandardDrawingView // when the overlay figure is drawn because a JTextField cannot be scrolled) view().checkDamage(); beginEdit(getCreatedFigure().getTextHolder()); } }
|
5626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5626/fd6141583eb286d7a0c6fb88b32b06eb519af75e/TextTool.java/clean/jhotdraw6/src/org/jhotdraw/figures/TextTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
4164,
12,
9186,
1133,
425,
16,
509,
619,
16,
509,
677,
13,
202,
95,
202,
202,
542,
1767,
12443,
26885,
1767,
13,
73,
18,
588,
1830,
10663,
202,
202,
42,
15906,
19504,
42,
15906,
273,
16327,
7675,
4720,
42,
15906,
18619,
12,
92,
16,
677,
1769,
202,
202,
1528,
6064,
977,
6064,
273,
446,
31,
202,
202,
430,
261,
10906,
42,
15906,
480,
446,
13,
288,
1082,
202,
955,
6064,
273,
19504,
42,
15906,
18,
588,
1528,
6064,
5621,
202,
202,
97,
202,
202,
430,
14015,
955,
6064,
480,
446,
13,
597,
977,
6064,
18,
9436,
87,
18488,
310,
10756,
288,
1082,
202,
10086,
4666,
12,
955,
6064,
1769,
202,
202,
97,
202,
202,
12107,
309,
261,
588,
18488,
310,
2326,
1435,
480,
446,
13,
288,
1082,
202,
9177,
7675,
6738,
7387,
5621,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
9565,
18,
11697,
4164,
12,
73,
16,
619,
16,
677,
1769,
1082,
202,
759,
1089,
1476,
1427,
326,
2522,
7837,
353,
19377,
1865,
326,
13861,
977,
1082,
202,
759,
7837,
353,
1879,
11821,
350,
18,
261,
8067,
16,
284,
40,
301,
410,
1410,
506,
446,
316,
8263,
26885,
1767,
1082,
202,
759,
1347,
326,
9218,
7837,
353,
19377,
2724,
279,
804,
16157,
2780,
506,
888,
25054,
13,
1082,
202,
1945,
7675,
1893,
40,
301,
410,
5621,
1082,
202,
10086,
4666,
12,
588,
6119,
42,
15906,
7675,
588,
1528,
6064,
10663,
202,
202,
97,
202,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
7644,
4164,
12,
9186,
1133,
425,
16,
509,
619,
16,
509,
677,
13,
202,
95,
202,
202,
542,
1767,
12443,
26885,
1767,
13,
73,
18,
588,
1830,
10663,
202,
202,
42,
15906,
19504,
42,
15906,
273,
16327,
7675,
4720,
42,
15906,
18619,
12,
92,
16,
677,
1769,
202,
202,
1528,
6064,
977,
6064,
273,
446,
31,
202,
202,
430,
261,
10906,
42,
15906,
480,
446,
13,
288,
1082,
202,
955,
6064,
273,
19504,
42,
15906,
18,
588,
1528,
6064,
5621,
202,
202,
97,
202,
202,
430,
14015,
955,
6064,
480,
446,
13,
597,
977,
6064,
18,
9436,
87,
18488,
310,
10756,
288,
1082,
202,
10086,
4666,
12,
955,
6064,
1769,
202,
202,
97,
202,
202,
2
] |
|
jjCheckNAddStates(40, 42);
|
jjCheckNAddStates(34, 36);
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 30; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(5); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 45) jjCheckNAdd(5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 30: if ((0x3ff000000000000L & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if ((0x2400L & l) != 0L) { if (kind > 49) kind = 49; } else if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; case 22: case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 28: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if (curChar == 45) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(5); break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; case 18: if ((0x100000200L & l) != 0L) jjAddStates(43, 45); break; case 19: if ((0x2400L & l) != 0L && kind > 46) kind = 46; break; case 20: if (curChar == 10 && kind > 46) kind = 46; break; case 21: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 20; break; case 24: if ((0x100000200L & l) != 0L) jjCheckNAddStates(40, 42); break; case 25: if ((0x2400L & l) != 0L && kind > 49) kind = 49; break; case 26: if (curChar == 10 && kind > 49) kind = 49; break; case 27: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 26; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } else if (curChar == 92) jjCheckNAddStates(46, 49); if (curChar == 101) jjAddStates(50, 51); break; case 30: case 7: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 22: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; else if (curChar == 110) jjstateSet[jjnewStateCnt++] = 17; break; case 28: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 115) jjstateSet[jjnewStateCnt++] = 23; break; case 23: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(7); } if (curChar == 101) { if (kind > 49) kind = 49; jjAddStates(40, 42); } break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(7); break; case 8: if (curChar == 92) jjCheckNAddStates(46, 49); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(52, 53); break; case 16: if (curChar == 101) jjAddStates(50, 51); break; case 17: if (curChar != 100) break; if (kind > 46) kind = 46; jjAddStates(43, 45); break; case 29: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 28; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 30 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
890,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
18106,
13,
13491,
3846,
273,
18106,
31,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
5958,
13,
13491,
3846,
273,
5958,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
3437,
16,
5045,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
12292,
13,
5397,
10684,
1564,
50,
986,
12,
25,
1769,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
5196,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
os.vendorVersion = os.version.substring(ix);
|
os.vendorVersion = os.version.substring(ix+1);
|
public static synchronized OperatingSystem getInstance() { if (instance == null) { OperatingSystem os = new OperatingSystem(); Properties props = System.getProperties(); os.name = props.getProperty("os.name"); os.vendorName = os.name; os.version = props.getProperty("os.version"); os.arch = props.getProperty("os.arch"); os.patchLevel = props.getProperty("sun.os.patch.level"); os.dataModel = props.getProperty("sun.arch.data.model"); os.cpuEndian = props.getProperty("sun.cpu.endian"); if (os.name.equals(NAME_LINUX)) { os.type = TYPE_LINUX; os.getLinuxInfo(); } else if (os.name.indexOf("Windows") > -1) { os.type = TYPE_WIN32; os.vendor = "Microsoft"; if (os.name.endsWith("XP")) { os.vendorVersion = "XP"; } else if (os.name.indexOf("2003") != -1) { os.vendorVersion = "2003"; } else if (os.name.indexOf("2000") != -1) { os.vendorVersion = "2000"; } else if (os.name.indexOf("NT") != -1) { os.vendorVersion = "NT"; } os.name = "Win32"; if (os.vendorVersion.equals("XP")) { os.vendorCodeName = "Whistler"; } else if (os.vendorVersion.equals("2003")) { os.vendorCodeName = "Whistler Server"; } } else if (os.name.equals("SunOS")) { os.type = TYPE_SOLARIS; os.vendor = "Sun Microsystems"; int ix = os.version.indexOf("."); //5.8 == solaris 8, etc. os.vendorVersion = os.version.substring(ix); os.name = NAME_SOLARIS; } else if (os.name.equals("HP-UX")) { os.type = TYPE_HPUX; os.name = NAME_HPUX; os.vendor = "Hewlett-Packard"; if (os.version.indexOf(".11.") != -1) { os.vendorVersion = "11"; } } else if (os.name.equals(NAME_OSF1)) { os.type = TYPE_OSF1; //HP acquired DEC os.vendor = "Hewlett-Packard"; } else if (os.name.equals(NAME_AIX)) { os.type = TYPE_AIX; os.vendor = "IBM"; } else if (os.name.equals("Mac OS X")) { os.type = TYPE_MACOSX; os.name = NAME_MACOSX; os.vendor = "Apple"; if (os.version.equals("10.4")) { os.vendorCodeName = "Tiger"; } else if (os.version.equals("10.3")) { os.vendorCodeName = "Panther"; } } else if (os.name.equals(NAME_FREEBSD)) { os.type = TYPE_FREEBSD; os.vendor = NAME_FREEBSD; } else { os.vendor = "Unknown"; } if (os.vendorVersion == null) { os.vendorVersion = os.version; } instance = os; } return instance; }
|
47455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47455/6debd2feface1265a12494661d0f75dfc0fe74b3/OperatingSystem.java/clean/bindings/java/src/net/hyperic/sigar/OperatingSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
7692,
24811,
3694,
1435,
288,
3639,
309,
261,
1336,
422,
446,
13,
288,
5411,
7692,
24811,
1140,
273,
394,
7692,
24811,
5621,
5411,
6183,
3458,
273,
2332,
18,
588,
2297,
5621,
5411,
1140,
18,
529,
273,
3458,
18,
588,
1396,
2932,
538,
18,
529,
8863,
5411,
1140,
18,
10645,
461,
273,
1140,
18,
529,
31,
5411,
1140,
18,
1589,
273,
3458,
18,
588,
1396,
2932,
538,
18,
1589,
8863,
5411,
1140,
18,
991,
273,
3458,
18,
588,
1396,
2932,
538,
18,
991,
8863,
5411,
1140,
18,
2272,
2355,
273,
3458,
18,
588,
1396,
2932,
16924,
18,
538,
18,
2272,
18,
2815,
8863,
5411,
1140,
18,
892,
1488,
273,
3458,
18,
588,
1396,
2932,
16924,
18,
991,
18,
892,
18,
2284,
8863,
5411,
1140,
18,
11447,
7583,
273,
3458,
18,
588,
1396,
2932,
16924,
18,
11447,
18,
22910,
8863,
5411,
309,
261,
538,
18,
529,
18,
14963,
12,
1985,
67,
20663,
57,
60,
3719,
288,
7734,
1140,
18,
723,
273,
3463,
67,
20663,
57,
60,
31,
7734,
1140,
18,
588,
19475,
966,
5621,
5411,
289,
5411,
469,
309,
261,
538,
18,
529,
18,
31806,
2932,
10399,
7923,
405,
300,
21,
13,
288,
7734,
1140,
18,
723,
273,
3463,
67,
24572,
1578,
31,
7734,
1140,
18,
10645,
273,
315,
22350,
14432,
7734,
309,
261,
538,
18,
529,
18,
5839,
1190,
2932,
60,
52,
6,
3719,
288,
10792,
1140,
18,
10645,
1444,
273,
315,
60,
52,
14432,
7734,
289,
7734,
469,
309,
261,
538,
18,
529,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
7692,
24811,
3694,
1435,
288,
3639,
309,
261,
1336,
422,
446,
13,
288,
5411,
7692,
24811,
1140,
273,
394,
7692,
24811,
5621,
5411,
6183,
3458,
273,
2332,
18,
588,
2297,
5621,
5411,
1140,
18,
529,
273,
3458,
18,
588,
1396,
2932,
538,
18,
529,
8863,
5411,
1140,
18,
10645,
461,
273,
1140,
18,
529,
31,
5411,
1140,
18,
1589,
273,
3458,
18,
588,
1396,
2932,
538,
18,
1589,
8863,
5411,
1140,
18,
991,
273,
3458,
18,
588,
1396,
2932,
538,
18,
991,
8863,
5411,
1140,
18,
2272,
2355,
273,
3458,
18,
588,
1396,
2932,
16924,
18,
538,
18,
2272,
18,
2815,
8863,
5411,
1140,
18,
892,
1488,
273,
3458,
18,
588,
1396,
2932,
16924,
18,
2
] |
List shifts = queryList(Turno.class, criteria);
|
List shifts = queryList(Turno.class, criteria, true);
|
public List readByExecutionPeriodAndExecutionDegreeAndCurricularYear(IExecutionPeriod executionPeriod, ICursoExecucao executionDegree, ICurricularYear curricularYear) throws ExcepcaoPersistencia { Criteria criteria = new Criteria(); criteria.addEqualTo("disciplinaExecucao.associatedCurricularCourses.scopes.curricularSemester.curricularYear.idInternal", curricularYear.getIdInternal()); criteria.addEqualTo("disciplinaExecucao.associatedCurricularCourses.degreeCurricularPlan.idInternal", executionDegree.getCurricularPlan().getIdInternal()); criteria.addEqualTo("disciplinaExecucao.executionPeriod.idInternal", executionPeriod.getIdInternal()); List shifts = queryList(Turno.class, criteria); return shifts; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6cd0a93b04e1f9e62220f864ef10473f89f2ffe6/TurnoOJB.java/buggy/src/ServidorPersistente/OJB/TurnoOJB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
855,
858,
3210,
5027,
1876,
3210,
22885,
1876,
2408,
1512,
2490,
5593,
12,
45,
3210,
5027,
4588,
5027,
16,
467,
2408,
2048,
1905,
5286,
6033,
4588,
22885,
16,
467,
2408,
1512,
2490,
5593,
662,
1512,
2490,
5593,
13,
202,
202,
15069,
1312,
311,
2436,
6033,
12771,
28115,
288,
202,
202,
7231,
3582,
273,
394,
8356,
5621,
202,
202,
9714,
18,
1289,
5812,
774,
2932,
2251,
8450,
412,
15314,
1905,
5286,
6033,
18,
28441,
2408,
1512,
2490,
39,
10692,
18,
17915,
18,
1397,
1512,
2490,
13185,
7654,
18,
1397,
1512,
2490,
5593,
18,
350,
3061,
3113,
662,
1512,
2490,
5593,
18,
26321,
3061,
10663,
202,
202,
9714,
18,
1289,
5812,
774,
2932,
2251,
8450,
412,
15314,
1905,
5286,
6033,
18,
28441,
2408,
1512,
2490,
39,
10692,
18,
21361,
2408,
1512,
2490,
5365,
18,
350,
3061,
3113,
4588,
22885,
18,
588,
2408,
1512,
2490,
5365,
7675,
26321,
3061,
10663,
202,
202,
9714,
18,
1289,
5812,
774,
2932,
2251,
8450,
412,
15314,
1905,
5286,
6033,
18,
16414,
5027,
18,
350,
3061,
3113,
4588,
5027,
18,
26321,
3061,
10663,
202,
202,
682,
27552,
273,
843,
682,
12,
15858,
83,
18,
1106,
16,
3582,
1769,
202,
202,
2463,
27552,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
855,
858,
3210,
5027,
1876,
3210,
22885,
1876,
2408,
1512,
2490,
5593,
12,
45,
3210,
5027,
4588,
5027,
16,
467,
2408,
2048,
1905,
5286,
6033,
4588,
22885,
16,
467,
2408,
1512,
2490,
5593,
662,
1512,
2490,
5593,
13,
202,
202,
15069,
1312,
311,
2436,
6033,
12771,
28115,
288,
202,
202,
7231,
3582,
273,
394,
8356,
5621,
202,
202,
9714,
18,
1289,
5812,
774,
2932,
2251,
8450,
412,
15314,
1905,
5286,
6033,
18,
28441,
2408,
1512,
2490,
39,
10692,
18,
17915,
18,
1397,
1512,
2490,
13185,
7654,
18,
1397,
1512,
2490,
5593,
18,
350,
3061,
3113,
662,
1512,
2490,
5593,
18,
26321,
3061,
10663,
202,
202,
9714,
18,
1289,
5812,
774,
2932,
2251,
8450,
412,
15314,
2
] |
this.loginTimeout = loginTimeout;
|
this.loginTimeout = String.valueOf(loginTimeout);
|
public void setLoginTimeout(int loginTimeout) throws SQLException { this.loginTimeout = loginTimeout; }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/6c539003cf42e74bacd7a990ca8bacfc43aad57f/JtdsDataSource.java/buggy/src/main/net/sourceforge/jtds/jdbcx/JtdsDataSource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5358,
2694,
12,
474,
3925,
2694,
13,
1216,
6483,
288,
3639,
333,
18,
5819,
2694,
273,
514,
18,
1132,
951,
12,
5819,
2694,
1769,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5358,
2694,
12,
474,
3925,
2694,
13,
1216,
6483,
288,
3639,
333,
18,
5819,
2694,
273,
514,
18,
1132,
951,
12,
5819,
2694,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void parseElements (char saved [])
|
private void parseElements(char[] saved)
|
private void parseElements (char saved []) throws Exception { char c; char sep; // Parse the first content particle skipWhitespace (); parseCp (); // Check for end or for a separator. skipWhitespace (); c = readCh (); switch (c) { case ')': // VC: Proper Group/PE Nesting if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (')'); c = readCh (); switch (c) { case '*': case '+': case '?': dataBufferAppend (c); break; default: unread (c); } return; case ',': // Register the separator. case '|': sep = c; dataBufferAppend (c); break; default: error ("bad separator in content model", c, null); return; } // Parse the rest of the content model. while (true) { skipWhitespace (); parseCp (); skipWhitespace (); c = readCh (); if (c == ')') { // VC: Proper Group/PE Nesting if (readBuffer != saved) handler.verror ("Illegal Group/PE nesting"); dataBufferAppend (')'); break; } else if (c != sep) { error ("bad separator in content model", c, null); return; } else { dataBufferAppend (c); } } // Check for the occurrence indicator. c = readCh (); switch (c) { case '?': case '*': case '+': dataBufferAppend (c); return; default: unread (c); return; } }
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
3471,
12,
3001,
8526,
5198,
13,
565,
1216,
1185,
565,
288,
202,
3001,
276,
31,
202,
3001,
5478,
31,
202,
759,
2884,
326,
1122,
913,
20036,
202,
7457,
9431,
261,
1769,
202,
2670,
28954,
261,
1769,
202,
759,
2073,
364,
679,
578,
364,
279,
4182,
18,
202,
7457,
9431,
261,
1769,
202,
71,
273,
855,
782,
261,
1769,
202,
9610,
261,
71,
13,
288,
202,
3593,
5777,
30,
202,
565,
368,
776,
39,
30,
1186,
457,
3756,
19,
1423,
423,
10100,
202,
565,
309,
261,
896,
1892,
480,
5198,
13,
202,
202,
4176,
18,
1107,
280,
7566,
12195,
3756,
19,
1423,
17174,
8863,
202,
565,
501,
1892,
5736,
7707,
2506,
1769,
202,
565,
276,
273,
855,
782,
261,
1769,
202,
565,
1620,
261,
71,
13,
288,
202,
565,
648,
5306,
30,
202,
565,
648,
15126,
4278,
202,
565,
648,
13023,
4278,
202,
202,
892,
1892,
5736,
261,
71,
1769,
202,
202,
8820,
31,
202,
565,
805,
30,
202,
202,
318,
896,
261,
71,
1769,
202,
565,
289,
202,
565,
327,
31,
202,
3593,
3316,
30,
1875,
202,
759,
5433,
326,
4182,
18,
202,
3593,
6699,
4278,
202,
565,
5478,
273,
276,
31,
202,
565,
501,
1892,
5736,
261,
71,
1769,
202,
565,
898,
31,
202,
1886,
30,
202,
565,
555,
7566,
8759,
4182,
316,
913,
938,
3113,
276,
16,
446,
1769,
202,
565,
327,
31,
202,
97,
202,
759,
2884,
326,
3127,
434,
326,
913,
938,
18,
202,
17523,
261,
3767,
13,
288,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
3471,
12,
3001,
8526,
5198,
13,
565,
1216,
1185,
565,
288,
202,
3001,
276,
31,
202,
3001,
5478,
31,
202,
759,
2884,
326,
1122,
913,
20036,
202,
7457,
9431,
261,
1769,
202,
2670,
28954,
261,
1769,
202,
759,
2073,
364,
679,
578,
364,
279,
4182,
18,
202,
7457,
9431,
261,
1769,
202,
71,
273,
855,
782,
261,
1769,
202,
9610,
261,
71,
13,
288,
202,
3593,
5777,
30,
202,
565,
368,
776,
39,
30,
1186,
457,
3756,
19,
1423,
423,
10100,
202,
565,
309,
261,
896,
1892,
480,
5198,
13,
202,
202,
4176,
18,
1107,
280,
7566,
12195,
3756,
19,
1423,
17174,
8863,
202,
565,
501,
1892,
5736,
7707,
2506,
1769,
202,
565,
276,
273,
2
] |
RuntimeException exception;
|
Exception exception;
|
public boolean prepare(Transaction txn) { logger.log(Level.FINER, "prepare txn:{0}", txn); RuntimeException exception; try { if (txn == null) { throw new NullPointerException("Transaction must not be null"); } TxnInfo txnInfo = threadTxnInfo.get(); if (txnInfo == null) { throw new IllegalStateException("Transaction is not active"); } else if (!txnInfo.txn.equals(txn)) { throw new IllegalStateException("Wrong transaction"); } else if (txnInfo.prepared) { throw new IllegalStateException( "Transaction has already been prepared"); } if (txnInfo.modified) { byte[] oid = txn.getId(); /* * Berkeley DB requires transaction IDs to be at least 128 * bytes long. -tjb@sun.com (11/07/2006) */ byte[] gid = new byte[128]; System.arraycopy(oid, 0, gid, 128 - oid.length, oid.length); txnInfo.bdbTxn.prepare(gid); txnInfo.prepared = true; } else { /* * Make sure to clear the transaction information, regardless * of whether the Berkeley DB commit operation succeeds, since * Berkeley DB doesn't permit operating on its transaction * object after commit is called. */ threadTxnInfo.set(null); txnInfo.bdbTxn.commit(); } boolean result = !txnInfo.modified; if (logger.isLoggable(Level.FINER)) { logger.log( Level.FINER, "prepare txn:{0} returns {1}", txn, result); } return result; } catch (DatabaseException e) { exception = convertDatabaseException(e); } catch (RuntimeException e) { exception = e; } logger.logThrow(Level.FINER, exception, "prepare txn:{0} throws", txn); throw exception; }
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/f2409e3df45755d1dd89cfe075471660b1ad584d/DataStoreImpl.java/buggy/src/server/j2se/com/sun/sgs/impl/service/data/store/DataStoreImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2911,
12,
3342,
7827,
13,
288,
202,
4901,
18,
1330,
12,
2355,
18,
7263,
654,
16,
315,
9366,
7827,
18611,
20,
1532,
16,
7827,
1769,
202,
11949,
1520,
31,
202,
698,
288,
202,
565,
309,
261,
24790,
422,
446,
13,
288,
202,
202,
12849,
394,
10108,
2932,
3342,
1297,
486,
506,
446,
8863,
202,
565,
289,
202,
565,
20496,
966,
7827,
966,
273,
2650,
13789,
966,
18,
588,
5621,
202,
565,
309,
261,
24790,
966,
422,
446,
13,
288,
202,
202,
12849,
394,
5477,
2932,
3342,
353,
486,
2695,
8863,
202,
565,
289,
469,
309,
16051,
24790,
966,
18,
24790,
18,
14963,
12,
24790,
3719,
288,
202,
202,
12849,
394,
5477,
2932,
13634,
2492,
8863,
202,
565,
289,
469,
309,
261,
24790,
966,
18,
9366,
72,
13,
288,
202,
202,
12849,
394,
5477,
12,
1082,
565,
315,
3342,
711,
1818,
2118,
8208,
8863,
202,
565,
289,
202,
565,
309,
261,
24790,
966,
18,
7342,
13,
288,
202,
202,
7229,
8526,
7764,
273,
7827,
18,
26321,
5621,
202,
202,
20308,
1082,
380,
605,
264,
79,
292,
402,
2383,
4991,
2492,
7115,
358,
506,
622,
4520,
8038,
1082,
380,
1731,
1525,
18,
225,
300,
88,
10649,
36,
16924,
18,
832,
261,
2499,
19,
8642,
19,
6976,
26,
13,
1082,
1195,
202,
202,
7229,
8526,
11399,
273,
394,
1160,
63,
10392,
15533,
202,
202,
3163,
18,
1126,
3530,
12,
839,
16,
374,
16,
11399,
16,
8038,
300,
7764,
18,
2469,
16,
7764,
18,
2469,
1769,
202,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2911,
12,
3342,
7827,
13,
288,
202,
4901,
18,
1330,
12,
2355,
18,
7263,
654,
16,
315,
9366,
7827,
18611,
20,
1532,
16,
7827,
1769,
202,
11949,
1520,
31,
202,
698,
288,
202,
565,
309,
261,
24790,
422,
446,
13,
288,
202,
202,
12849,
394,
10108,
2932,
3342,
1297,
486,
506,
446,
8863,
202,
565,
289,
202,
565,
20496,
966,
7827,
966,
273,
2650,
13789,
966,
18,
588,
5621,
202,
565,
309,
261,
24790,
966,
422,
446,
13,
288,
202,
202,
12849,
394,
5477,
2932,
3342,
353,
486,
2695,
8863,
202,
565,
289,
469,
309,
16051,
24790,
966,
18,
24790,
18,
14963,
12,
24790,
3719,
288,
202,
202,
12849,
394,
5477,
2932,
13634,
2492,
8863,
202,
2
] |
LoginConnection loginConn = new LoginConnection("login.oscar.aol.com", 5190, this);
|
LoginConnection loginConn = new LoginConnection(new ConnDescriptor("login.oscar.aol.com", 5190), this);
|
public void logIn(PresenceType presenceType, String verboseStatus) { if (!isLoggedIn()) { LoginConnection loginConn = new LoginConnection("login.oscar.aol.com", 5190, this); loginConn.connect(); loggedIn = true; Presence p = new Presence(); p.setTo(getJID()); p.setFrom(getTransport().getJID()); getTransport().sendPacket(p); this.presenceType = presenceType; this.verboseStatus = verboseStatus; } else { Log.warn(this.jid + " is already logged in"); } }
|
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/4be162472b7372b8098784f3aaf9888753ab0de2/OSCARSession.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/oscar/OSCARSession.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
613,
382,
12,
22590,
559,
9805,
559,
16,
514,
3988,
1482,
13,
288,
3639,
309,
16051,
291,
29327,
10756,
288,
5411,
11744,
1952,
3925,
3543,
273,
394,
11744,
1952,
12,
2704,
6683,
3187,
2932,
5819,
18,
538,
9815,
18,
69,
355,
18,
832,
3113,
1381,
30454,
3631,
333,
1769,
5411,
3925,
3543,
18,
3612,
5621,
5411,
7545,
382,
273,
638,
31,
5411,
31517,
293,
273,
394,
31517,
5621,
5411,
293,
18,
542,
774,
12,
588,
46,
734,
10663,
5411,
293,
18,
542,
1265,
12,
588,
6568,
7675,
588,
46,
734,
10663,
5411,
29801,
7675,
4661,
6667,
12,
84,
1769,
5411,
333,
18,
21731,
559,
273,
9805,
559,
31,
5411,
333,
18,
11369,
1482,
273,
3988,
1482,
31,
3639,
289,
469,
288,
5411,
1827,
18,
8935,
12,
2211,
18,
18252,
397,
315,
353,
1818,
7545,
316,
8863,
3639,
289,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
918,
613,
382,
12,
22590,
559,
9805,
559,
16,
514,
3988,
1482,
13,
288,
3639,
309,
16051,
291,
29327,
10756,
288,
5411,
11744,
1952,
3925,
3543,
273,
394,
11744,
1952,
12,
2704,
6683,
3187,
2932,
5819,
18,
538,
9815,
18,
69,
355,
18,
832,
3113,
1381,
30454,
3631,
333,
1769,
5411,
3925,
3543,
18,
3612,
5621,
5411,
7545,
382,
273,
638,
31,
5411,
31517,
293,
273,
394,
31517,
5621,
5411,
293,
18,
542,
774,
12,
588,
46,
734,
10663,
5411,
293,
18,
542,
1265,
12,
588,
6568,
7675,
588,
46,
734,
10663,
5411,
29801,
7675,
4661,
6667,
12,
84,
1769,
5411,
333,
18,
21731,
559,
273,
9805,
559,
31,
5411,
333,
18,
11369,
1482,
273,
3988,
1482,
2
] |
NodeTypeUtil.locatePropertyDef(session, PropertyType.DOUBLE, false, false, true, false);
|
NodeTypeUtil.locatePropertyDef(superuser, PropertyType.DOUBLE, false, false, true, false);
|
public void testDoubleProperty() throws NotExecutableException, RepositoryException { // locate a PropertyDefinition with ValueConstraints Session session = helper.getReadWriteSession(); PropertyDefinition propDef = NodeTypeUtil.locatePropertyDef(session, PropertyType.DOUBLE, false, false, true, false); if (propDef == null) { throw new NotExecutableException("No double property def with " + "testable value constraints has been found"); } // find a Value that does not satisfy the ValueConstraints of propDef Value valueNotSatisfied = NodeTypeUtil.getValueAccordingToValueConstraints(propDef, false); if (valueNotSatisfied == null) { throw new NotExecutableException("No double property def with " + "testable value constraints has been found"); } // create a sub node of testRootNode of type propDef.getDeclaringNodeType() Node node; try { String nodeType = propDef.getDeclaringNodeType().getName(); node = testRootNode.addNode(nodeName2, nodeType); testRootNode.save(); } catch (ConstraintViolationException e) { // implementation specific constraints do not allow to set up test environment throw new NotExecutableException("Not able to create required test items."); } // test of signature setProperty(String name, double value) try { node.setProperty(propDef.getName(), valueNotSatisfied.getDouble()); node.save(); fail("setProperty(String name, double value) must throw a " + "ConstraintViolationException if the change would violate a " + "node type constraint either immediately or on save"); } catch (ConstraintViolationException e) { // success } // test of signature setProperty(String name, Value value) try { node.setProperty(propDef.getName(), valueNotSatisfied); node.save(); fail("setProperty(String name, Value value) must throw a " + "ConstraintViolationException if the change would violate a " + "node type constraint either immediately or on save"); } catch (ConstraintViolationException e) { // success } }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/5ccda17da27a5f4b68cd1402b8d936c724c7aa46/SetPropertyConstraintViolationExceptionTest.java/clean/src/test/org/apache/jackrabbit/test/api/SetPropertyConstraintViolationExceptionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5265,
1396,
1435,
5411,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
4276,
1852,
598,
1445,
4878,
3639,
3877,
1339,
273,
4222,
18,
588,
1994,
3067,
2157,
5621,
3639,
4276,
1852,
2270,
3262,
273,
7734,
20896,
1304,
18,
25450,
1396,
3262,
12,
9565,
1355,
16,
22983,
18,
17088,
16,
629,
16,
629,
16,
638,
16,
629,
1769,
3639,
309,
261,
5986,
3262,
422,
446,
13,
288,
5411,
604,
394,
2288,
17709,
503,
2932,
2279,
1645,
1272,
1652,
598,
315,
397,
10792,
315,
3813,
429,
460,
6237,
711,
2118,
1392,
8863,
3639,
289,
3639,
368,
1104,
279,
1445,
716,
1552,
486,
18866,
326,
1445,
4878,
434,
2270,
3262,
3639,
1445,
460,
1248,
15163,
21501,
273,
20896,
1304,
18,
24805,
9988,
4643,
31183,
4878,
12,
5986,
3262,
16,
629,
1769,
3639,
309,
261,
1132,
1248,
15163,
21501,
422,
446,
13,
288,
5411,
604,
394,
2288,
17709,
503,
2932,
2279,
1645,
1272,
1652,
598,
315,
397,
10792,
315,
3813,
429,
460,
6237,
711,
2118,
1392,
8863,
3639,
289,
3639,
368,
752,
279,
720,
756,
434,
1842,
29658,
434,
618,
2270,
3262,
18,
588,
3456,
5968,
15101,
1435,
3639,
2029,
756,
31,
3639,
775,
288,
5411,
514,
9507,
273,
2270,
3262,
18,
588,
3456,
5968,
15101,
7675,
17994,
5621,
5411,
756,
273,
1842,
29658,
18,
1289,
907,
12,
2159,
461,
22,
16,
9507,
1769,
5411,
1842,
29658,
18,
5688,
5621,
3639,
289,
1044,
261,
5806,
27052,
425,
13,
288,
5411,
368,
4471,
2923,
6237,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5265,
1396,
1435,
5411,
1216,
2288,
17709,
503,
16,
13367,
288,
3639,
368,
10627,
279,
4276,
1852,
598,
1445,
4878,
3639,
3877,
1339,
273,
4222,
18,
588,
1994,
3067,
2157,
5621,
3639,
4276,
1852,
2270,
3262,
273,
7734,
20896,
1304,
18,
25450,
1396,
3262,
12,
9565,
1355,
16,
22983,
18,
17088,
16,
629,
16,
629,
16,
638,
16,
629,
1769,
3639,
309,
261,
5986,
3262,
422,
446,
13,
288,
5411,
604,
394,
2288,
17709,
503,
2932,
2279,
1645,
1272,
1652,
598,
315,
397,
10792,
315,
3813,
429,
460,
6237,
711,
2118,
1392,
8863,
3639,
289,
3639,
368,
1104,
279,
1445,
716,
1552,
486,
18866,
326,
1445,
4878,
434,
2270,
3262,
3639,
1445,
460,
1248,
15163,
2
] |
repository.getUrl().toExternalForm())) {
|
repository.getUrl())) {
|
public void createAdditionalControls(Composite parent) { Button updateButton = new Button(parent, SWT.LEFT | SWT.PUSH); updateButton.setText(LABEL_UPDATE); updateButton.setLayoutData(new GridData()); updateButton.addMouseListener(new MouseAdapter() { @Override public void mouseUp(MouseEvent e) { monitorDialog.open(); IProgressMonitor monitor = monitorDialog.getProgressMonitor(); monitor.beginTask("Updating search options...", 55); try { BugzillaRepositoryUtil.updateQueryOptions(repository, monitor); products = new ArrayList<String>(); for (String product : BugzillaRepositoryUtil.getQueryOptions(IBugzillaConstants.VALUES_PRODUCT, repository.getUrl().toExternalForm())) { products.add(product); } monitor.worked(1); populateList(false); } catch (LoginException exception) { // we had a problem that seems to have been caused from bad // login info MessageDialog .openError( null, "Login Error", "Bugzilla could not log you in to get the information you requested since login name or password is incorrect.\nPlease check your settings in the bugzilla preferences. "); BugzillaPlugin.log(exception); } catch (IOException exception) { MessageDialog .openError( null, "Connection Error", exception.getMessage()+"\nPlease check your settings in the bugzilla preferences. "); } finally { monitor.done(); monitorDialog.close(); } } }); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/5b50d3afe01b1820190de900979c9823401a70e1/BugzillaProductPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
10552,
16795,
12,
9400,
982,
13,
288,
202,
202,
3616,
1089,
3616,
273,
394,
12569,
12,
2938,
16,
348,
8588,
18,
10066,
571,
348,
8588,
18,
30348,
1769,
202,
202,
2725,
3616,
18,
542,
1528,
12,
13545,
67,
8217,
1769,
202,
202,
2725,
3616,
18,
542,
3744,
751,
12,
2704,
7145,
751,
10663,
202,
202,
2725,
3616,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
1211,
12,
9186,
1133,
425,
13,
288,
9506,
202,
10259,
6353,
18,
3190,
5621,
9506,
202,
45,
5491,
7187,
6438,
273,
6438,
6353,
18,
588,
5491,
7187,
5621,
9506,
202,
10259,
18,
10086,
2174,
2932,
17858,
1623,
702,
7070,
16,
21483,
1769,
9506,
202,
698,
288,
6862,
202,
19865,
15990,
3305,
1304,
18,
2725,
1138,
1320,
12,
9071,
16,
6438,
1769,
6862,
202,
18736,
273,
394,
2407,
32,
780,
34,
5621,
6862,
202,
1884,
261,
780,
3017,
294,
16907,
15990,
3305,
1304,
18,
588,
1138,
1320,
12,
13450,
637,
15990,
2918,
18,
16386,
67,
25883,
16,
6862,
1082,
202,
9071,
18,
588,
1489,
7675,
869,
6841,
1204,
1435,
3719,
288,
25083,
202,
18736,
18,
1289,
12,
5896,
1769,
6862,
202,
97,
6862,
202,
10259,
18,
1252,
329,
12,
21,
1769,
6862,
202,
19936,
682,
12,
5743,
1769,
9506,
202,
97,
1044,
261,
5358,
503,
1520,
13,
288,
6862,
202,
759,
732,
9323,
279,
6199,
716,
12001,
358,
1240,
2118,
15848,
628,
5570,
6862,
202,
759,
3925,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
10552,
16795,
12,
9400,
982,
13,
288,
202,
202,
3616,
1089,
3616,
273,
394,
12569,
12,
2938,
16,
348,
8588,
18,
10066,
571,
348,
8588,
18,
30348,
1769,
202,
202,
2725,
3616,
18,
542,
1528,
12,
13545,
67,
8217,
1769,
202,
202,
2725,
3616,
18,
542,
3744,
751,
12,
2704,
7145,
751,
10663,
202,
202,
2725,
3616,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
1082,
202,
36,
6618,
1082,
202,
482,
918,
7644,
1211,
12,
9186,
1133,
425,
13,
288,
9506,
202,
10259,
6353,
18,
3190,
5621,
9506,
202,
45,
5491,
7187,
6438,
273,
6438,
6353,
18,
588,
5491,
7187,
5621,
9506,
202,
10259,
18,
10086,
2174,
2932,
17858,
1623,
702,
2
] |
return buffer.append("null"); }
|
return buffer.append("null"); }
|
public StringBuffer describeTo( StringBuffer buffer ) { return buffer.append("null"); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/IsNull.java/buggy/jmock/core/src/org/jmock/core/constraint/IsNull.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6674,
6401,
774,
12,
6674,
1613,
262,
288,
202,
202,
2463,
1613,
18,
6923,
2932,
2011,
8863,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6674,
6401,
774,
12,
6674,
1613,
262,
288,
202,
202,
2463,
1613,
18,
6923,
2932,
2011,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (PERM_ALLOWED == hasPermissions(context, res, I_CmsConstants.C_VIEW_ACCESS, CmsResourceFilter.ALL, false)) {
|
if (PERM_ALLOWED == hasPermissions(context, res, I_CmsConstants.C_VIEW_ACCESS, CmsResourceFilter.ALL)) {
|
public Vector readFilesByType(CmsRequestContext context, int projectId, int resourcetype) throws CmsException { Vector resources = new Vector(); resources = m_vfsDriver.readFiles(projectId, resourcetype); Vector retValue = new Vector(resources.size()); // check if the user has view access Enumeration e = resources.elements(); while (e.hasMoreElements()) { CmsFile res = (CmsFile)e.nextElement(); if (PERM_ALLOWED == hasPermissions(context, res, I_CmsConstants.C_VIEW_ACCESS, CmsResourceFilter.ALL, false)) { res.setFullResourceName(readPath(context, res, CmsResourceFilter.ALL)); retValue.addElement(res); updateContextDates(context, res); } } return retValue; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/93407bb1fee28c23f97b5bfe9d6996911adfdd69/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
855,
2697,
14145,
12,
4747,
21426,
819,
16,
509,
9882,
16,
509,
31174,
5872,
13,
1216,
11228,
288,
3639,
5589,
2703,
273,
394,
5589,
5621,
3639,
2703,
273,
312,
67,
90,
2556,
4668,
18,
896,
2697,
12,
4406,
548,
16,
31174,
5872,
1769,
3639,
5589,
21236,
273,
394,
5589,
12,
4683,
18,
1467,
10663,
3639,
368,
866,
309,
326,
729,
711,
1476,
2006,
540,
13864,
425,
273,
2703,
18,
6274,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
28118,
400,
273,
261,
4747,
812,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
261,
3194,
49,
67,
16852,
422,
711,
6521,
12,
2472,
16,
400,
16,
467,
67,
4747,
2918,
18,
39,
67,
12145,
67,
13204,
16,
21082,
18,
4685,
3719,
288,
7734,
400,
18,
542,
5080,
19327,
12,
896,
743,
12,
2472,
16,
400,
16,
21082,
18,
4685,
10019,
7734,
21236,
18,
1289,
1046,
12,
455,
1769,
7734,
1089,
1042,
15578,
12,
2472,
16,
400,
1769,
5411,
289,
3639,
289,
3639,
327,
21236,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
5589,
855,
2697,
14145,
12,
4747,
21426,
819,
16,
509,
9882,
16,
509,
31174,
5872,
13,
1216,
11228,
288,
3639,
5589,
2703,
273,
394,
5589,
5621,
3639,
2703,
273,
312,
67,
90,
2556,
4668,
18,
896,
2697,
12,
4406,
548,
16,
31174,
5872,
1769,
3639,
5589,
21236,
273,
394,
5589,
12,
4683,
18,
1467,
10663,
3639,
368,
866,
309,
326,
729,
711,
1476,
2006,
540,
13864,
425,
273,
2703,
18,
6274,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
28118,
400,
273,
261,
4747,
812,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
261,
3194,
49,
67,
16852,
422,
711,
6521,
12,
2472,
16,
400,
16,
467,
67,
4747,
2918,
18,
39,
67,
2
] |
assertEquals(
|
assertEquals(
|
public void testGetAntLogAsElement() throws Exception { try { Element buildLogElement = new Element("build"); File logFile = new File("_tempAntLog14.xml"); filesToClear.add(logFile); BufferedWriter bw1 = new BufferedWriter(new FileWriter(logFile)); bw1.write( "<?xml:stylesheet type=\"text/xsl\" href=\"log.xsl\"?><build></build>"); bw1.flush(); bw1.close(); File logFile2 = new File("_tempAntLog141.xml"); filesToClear.add(logFile2); BufferedWriter bw2 = new BufferedWriter(new FileWriter(logFile2)); bw2.write( "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><?xml:stylesheet " + "type=\"text/xsl\" href=\"log.xsl\"?><build></build>"); bw2.flush(); bw2.close(); assertEquals( buildLogElement.toString(), AntBuilder.getAntLogAsElement(logFile).toString()); assertEquals( buildLogElement.toString(), AntBuilder.getAntLogAsElement(logFile2).toString()); } catch (IOException ioe) { ioe.printStackTrace(); } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/80d11d8882c32172c46e3d270da0e359e8c3f3de/AntBuilderTest.java/buggy/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
14925,
1343,
1463,
1046,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
3010,
1361,
1343,
1046,
273,
394,
3010,
2932,
3510,
8863,
5411,
1387,
20169,
273,
394,
1387,
2932,
67,
5814,
14925,
1343,
3461,
18,
2902,
8863,
5411,
1390,
774,
9094,
18,
1289,
12,
1330,
812,
1769,
5411,
22490,
12986,
21,
273,
394,
22490,
12,
2704,
24639,
12,
1330,
812,
10019,
5411,
12986,
21,
18,
2626,
12,
7734,
20410,
2902,
30,
19403,
618,
5189,
955,
19,
30903,
2412,
3897,
5189,
1330,
18,
30903,
2412,
35,
4438,
3510,
4695,
3510,
2984,
1769,
5411,
12986,
21,
18,
11330,
5621,
5411,
12986,
21,
18,
4412,
5621,
5411,
1387,
20169,
22,
273,
394,
1387,
2932,
67,
5814,
14925,
1343,
3461,
21,
18,
2902,
8863,
5411,
1390,
774,
9094,
18,
1289,
12,
1330,
812,
22,
1769,
5411,
22490,
12986,
22,
273,
394,
22490,
12,
2704,
24639,
12,
1330,
812,
22,
10019,
5411,
12986,
22,
18,
2626,
12,
7734,
20410,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
5159,
17,
28,
2412,
692,
30935,
2902,
30,
19403,
315,
10792,
397,
315,
723,
5189,
955,
19,
30903,
2412,
3897,
5189,
1330,
18,
30903,
2412,
35,
4438,
3510,
4695,
3510,
2984,
1769,
5411,
12986,
22,
18,
11330,
5621,
5411,
12986,
22,
18,
4412,
5621,
5411,
1815,
8867,
12,
7734,
1361,
1343,
1046,
18,
10492,
9334,
7734,
18830,
1263,
18,
588,
14925,
1343,
1463,
1046,
12,
1330,
812,
2934,
10492,
10663,
5411,
1815,
8867,
12,
7734,
1361,
1343,
1046,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
14925,
1343,
1463,
1046,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
3010,
1361,
1343,
1046,
273,
394,
3010,
2932,
3510,
8863,
5411,
1387,
20169,
273,
394,
1387,
2932,
67,
5814,
14925,
1343,
3461,
18,
2902,
8863,
5411,
1390,
774,
9094,
18,
1289,
12,
1330,
812,
1769,
5411,
22490,
12986,
21,
273,
394,
22490,
12,
2704,
24639,
12,
1330,
812,
10019,
5411,
12986,
21,
18,
2626,
12,
7734,
20410,
2902,
30,
19403,
618,
5189,
955,
19,
30903,
2412,
3897,
5189,
1330,
18,
30903,
2412,
35,
4438,
3510,
4695,
3510,
2984,
1769,
5411,
12986,
21,
18,
11330,
5621,
5411,
12986,
21,
18,
4412,
5621,
5411,
1387,
20169,
22,
273,
394,
1387,
2932,
67,
5814,
14925,
2
] |
private PresentationObject getSingleLineChange( IWContext iwc, boolean ifnew, boolean factor, TariffGroup group) throws java.rmi.RemoteException { int iEditID = -1; String sEditID = iwc.getParameter("the_edit_id"); if(sEditID!=null) iEditID = Integer.parseInt(sEditID); boolean updateIndex = factor; Collection listOfTariffs = null ; //FinanceFinder.getInstance().listOfTariffs(group.getID()); //List listOfIndices = Finder.listOfTypeGroupedIndices(); //Collection listOfIndices = getFinanceService().getTariffIndexHome().findLastTypeGrouped(); //Map mapOfIndices = Finder.mapOfIndicesByTypes(listOfIndices); Map mapOfIndices = null; //List listOfAccountKeys = FinanceFinder.getInstance().listOfAccountKeys(iCategoryId); Collection listOfAccountKeys = null; Map mapOfAccountKeys= null; try { listOfTariffs = getFinanceService().getTariffHome().findByTariffGroup((Integer)group.getPrimaryKey()); listOfAccountKeys = getFinanceService().getAccountKeyHome().findByCategory(getFinanceCategoryId()); mapOfAccountKeys = getKeys(listOfAccountKeys); mapOfIndices = getFinanceService().mapOfTariffIndicesByTypes(); } catch (RemoteException e) { e.printStackTrace(); } catch (EJBException e) { e.printStackTrace(); } catch (FinderException e) { } FinanceHandler financeHandler = null; Map attributeMap = null; DropdownMenu attDrp = null; boolean ifAttributes = false; boolean ifIndices = false; if (group != null) { ifIndices = group.getUseIndex(); if (group.getHandlerId() > 0) { financeHandler = getFinanceService().getFinanceHandler(new Integer(group.getHandlerId())); //FinanceFinder.getInstance().getFinanceHandler(group.getHandlerId()); if (financeHandler != null) { attributeMap = financeHandler.getAttributeMap(); List list = financeHandler.listOfAttributes(); ifAttributes = attributeMap != null && list != null; attDrp = drpAttributes(list, attributeMap, "attdrp", ""); } } } //////////////////////////// DataTable T = new DataTable(); T.setWidth("100%"); T.setTitlesHorizontal(true); SubmitButton save = new SubmitButton("savetariffs", localize("save", "Save")); T.addButton(save); int row = 1; int col = 1; T.add(getHeader("Nr"), col++, row); if (ifAttributes) { T.add(getHeader(localize("connection", "Connection")), col++, row); } T.add(getHeader(localize("name", "Name")), col++, row); T.add(getHeader(localize("amount", "Amount")), col++, row); T.add(getHeader(localize("account_key", "Account key")), col++, row); if (ifIndices) { T.add(getHeader(localize("index", "Index")), col++, row); T.add(getHeader(localize("updated", "Updated")), col++, row); } T.add(getHeader(localize("delete", "Delete")), col++, row); row++; //////////////////////////// TextInput nameInput = getTextInput("te_nameinput"); TextInput priceInput = getTextInput("te_priceinput"); TextInput infoInput = getTextInput("te_infoinput"); DropdownMenu drpAK = null; DropdownMenu drpAtt = null, drpIx = null;/* if (ifIndices) drpIx = drpIndicesByType(listOfIndices, "te_ixdrp"); if (ifAttributes) { drpAtt = (DropdownMenu) attDrp.clone(); drpAtt.setName("te_attdrp"); }*/ CheckBox delCheck = getCheckBox("te_delcheck","true"); nameInput.setSize(20); priceInput.setSize(8); infoInput.setSize(30); Tariff tariff; boolean formAdded = false; int i = 0; if (listOfTariffs != null) { Iterator iter = listOfTariffs.iterator(); Integer tariffID = null; while (iter.hasNext()) { col = 1; tariff = (Tariff) iter.next(); tariffID = (Integer)tariff.getPrimaryKey(); float iPrice = tariff.getPrice(); float oldPrice = iPrice; // form part: T.add(new Anchor("row"+i),col,row); T.add((getText(String.valueOf(++i))), col++, row); String ixType = tariff.getIndexType(); IWTimestamp ixdate = null; if (ifIndices) { String ixDate = iwc.getParameter("te_ixdate"+i); if (ixDate != null) { ixdate = new IWTimestamp(ixDate); } else if (tariff.getIndexUpdated() != null) { ixdate = new IWTimestamp(tariff.getIndexUpdated()); T.add(new HiddenInput("te_ixdate"+i, ixdate.toString()),1,row); } if (updateIndex && ixType != null && mapOfIndices != null && mapOfIndices.containsKey(ixType)) { TariffIndex ti = (TariffIndex) mapOfIndices.get(ixType); java.sql.Timestamp stamp = ti.getDate(); if (ixdate != null) { if (!stamp.equals(ixdate.getTimestamp())) { iPrice = iPrice * getAddFactor(ti.getNewValue(), ti.getOldValue()); } } else iPrice = iPrice * getAddFactor(ti.getNewValue(), ti.getOldValue()); } } iPrice = new Float(TextSoap.decimalFormat((double) iPrice, iNumberOfDecimals)).floatValue(); oldPrice = new Float(TextSoap.decimalFormat((double) oldPrice, iNumberOfDecimals)).floatValue(); if (bRoundAmounts){ iPrice = Math.round((double) iPrice); oldPrice = Math.round((double)oldPrice); } T.add(new HiddenInput("te_oldprice"+i,Float.toString(oldPrice)),1,row); priceInput = getTextInput("te_priceinput" + i,String.valueOf(iPrice)); delCheck = new CheckBox("te_delcheck" + i, "true"); delCheck.setValue(tariffID.intValue()); HiddenInput idInput = new HiddenInput("te_idinput"+i,tariffID.toString()); T.add(idInput,1,row); // SINGLE EDIT LINE if (iEditID == tariffID.intValue()) { drpAK = drpAccountKeys(listOfAccountKeys, ("te_akdrp"+i)); nameInput = getTextInput("te_nameinput" + i,""); infoInput = getTextInput("te_infoinput" + i,""); if (ifAttributes){ drpAtt = (DropdownMenu) attDrp.clone(); drpAtt.setName("te_attdrp" + i); drpAtt.setSelectedElement(tariff.getTariffAttribute()); } nameInput.setContent(tariff.getName()); if (tariff.getInfo() != null) infoInput.setContent(tariff.getInfo()); //drpAtt.setSelectedElement(tariff.getTariffAttribute()); drpAK.setSelectedElement(String.valueOf(tariff.getAccountKeyId())); if (ifAttributes) { drpAtt = (DropdownMenu)setStyle(drpAtt,STYLENAME_INTERFACE); T.add(drpAtt, col++, row); } T.add(nameInput, col++, row); T.add(priceInput, col++, row); T.add(drpAK, col++, row); if (ifIndices) { drpIx = drpIndicesByType(mapOfIndices.values(), "te_ixdrp" + i); drpIx = (DropdownMenu) setStyle(drpIx,STYLENAME_INTERFACE); drpIx.setSelectedElement(ixType); T.add(drpIx, col++, row); if(ixdate!=null) T.add(getText(ixdate.toString()),col++,row); else T.add(getText(""),col++,row); } } // OTHER LINES else { if (ifAttributes) { String tatt = tariff.getTariffAttribute(); String val = ""; if (tatt != null && attributeMap.containsKey(tatt)) val = (String) attributeMap.get(tatt); T.add(getText(val), col++, row); } Link lineChangeLink = new Link(getText(tariff.getName())); lineChangeLink.addParameter("the_edit_id",tariffID.intValue()); lineChangeLink.addParameter(this.strAction, String.valueOf(this.ACT2)); lineChangeLink.addParameter(Finance.getCategoryParameter(iCategoryId)); lineChangeLink.addParameter(prmGroup, group.getPrimaryKey().toString()); T.add(lineChangeLink, col++, row); T.add(priceInput, col++, row); //T.add(getText(String.valueOf(iPrice)), col++, row); Integer I = new Integer(tariff.getAccountKeyId()); if (mapOfAccountKeys.containsKey(I)) T.add(getText((String) mapOfAccountKeys.get(I)), col++, row); if (ifIndices) { if (mapOfIndices.containsKey(tariff.getIndexType())) T.add( getText(((TariffIndex) mapOfIndices.get(tariff.getIndexType())).getName() ), col++, row); else T.add(getText(""),col++,row); if(ixdate!=null) T.add(getText(ixdate.toString()),col++,row); else T.add(getText(""),col++,row); } T.add(new HiddenInput("te_ixdrp"+i,ixType),1,row); } T.add(delCheck, col++, row); row++; } } if (!formAdded) { for(int k = 0 ; k < 5 ; k++){ col = 1; T.add(getText(String.valueOf(++i)), col++, row); T.add(new HiddenInput("te_idinput"+i,"-1"),1,row); if (ifAttributes) { drpAtt = (DropdownMenu) attDrp.clone(); drpAtt.setName("te_attdrp" + i); drpAtt = (DropdownMenu) setStyle(drpAtt,STYLENAME_INTERFACE); T.add(drpAtt, col++, row); } nameInput = getTextInput("te_nameinput" + i); priceInput = getTextInput("te_priceinput" + i); infoInput = getTextInput("te_infoinput" + i); T.add(nameInput, col++, row); //T.add(infoInput, col++, row); T.add(priceInput, col++, row); drpAK = drpAccountKeys(listOfAccountKeys, ("te_akdrp"+i)); drpAK = (DropdownMenu) setStyle(drpAK,STYLENAME_INTERFACE); T.add(drpAK, col++, row); if (ifIndices) { drpIx = drpIndicesByType(mapOfIndices.values(), "te_ixdrp" + i); drpIx = (DropdownMenu)setStyle(drpIx,STYLENAME_INTERFACE_BUTTON); T.add(drpIx, col++, row); } row++; } } Table T3 = new Table(8, 1); T3.setWidth(T3.HUNDRED_PERCENT); T3.setWidth(5, 1, T3.HUNDRED_PERCENT); T3.setColumnAlignment(6, "right"); T3.setColumnAlignment(7, "right"); if (ifIndices) { SubmitButton update = new SubmitButton("updateindex", localize("update_indexes", "Update indexes")); //Edit.setStyle(update); T3.add(update, 8, 1); if(hasUpdatedIndices){ T3.add( getErrorText(localize("unsaved_data","You have unsaved data !!")),6,1); T3.add(save, 7, 1); } } Table T4 = new Table(); T4.setCellpadding(0); T4.setCellpadding(0); T4.setWidth(T4.HUNDRED_PERCENT); T4.add(T3,1,1); T4.add(T,1,2); T4.add(new HiddenInput(prmGroup,group.getPrimaryKey().toString())); T4.add(new HiddenInput("te_count", String.valueOf( i ))); T4.add(Finance.getCategoryParameter(iCategoryId)); return (T4); }
|
57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/33e5c85ca31478329116ab80b95fd07320394530/TariffEditor.java/clean/src/java/com/idega/block/finance/presentation/TariffEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
25130,
367,
921,
19108,
1670,
3043,
12,
202,
202,
45,
59,
1042,
25522,
71,
16,
202,
202,
6494,
309,
2704,
16,
202,
202,
6494,
5578,
16,
202,
202,
20464,
3048,
1114,
1041,
13,
202,
202,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
288,
202,
202,
474,
277,
4666,
734,
273,
300,
21,
31,
202,
202,
780,
272,
4666,
734,
273,
25522,
71,
18,
588,
1662,
2932,
5787,
67,
4619,
67,
350,
8863,
202,
202,
430,
12,
87,
4666,
734,
5,
33,
2011,
13,
1082,
202,
77,
4666,
734,
273,
2144,
18,
2670,
1702,
12,
87,
4666,
734,
1769,
9506,
202,
6494,
1089,
1016,
273,
5578,
31,
202,
202,
2532,
24692,
20464,
430,
2556,
273,
446,
274,
202,
202,
759,
6187,
1359,
8441,
18,
588,
1442,
7675,
1098,
951,
20464,
430,
2556,
12,
1655,
18,
588,
734,
10663,
202,
202,
759,
682,
24692,
8776,
273,
19307,
18,
1098,
18859,
24125,
8776,
5621,
202,
202,
759,
2532,
24692,
8776,
273,
2812,
267,
1359,
1179,
7675,
588,
20464,
3048,
1016,
8684,
7675,
4720,
3024,
559,
24125,
5621,
202,
202,
759,
863,
852,
951,
8776,
273,
19307,
18,
1458,
951,
8776,
858,
2016,
12,
1098,
951,
8776,
1769,
202,
202,
863,
852,
951,
8776,
273,
446,
31,
202,
202,
759,
682,
24692,
3032,
2396,
273,
9458,
1359,
8441,
18,
588,
1442,
7675,
1098,
951,
3032,
2396,
12,
77,
21197,
1769,
202,
202,
2532,
24692,
3032,
2396,
273,
446,
31,
202,
202,
863,
852,
951,
3032,
2396,
33,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25130,
367,
921,
19108,
1670,
3043,
12,
202,
202,
45,
59,
1042,
25522,
71,
16,
202,
202,
6494,
309,
2704,
16,
202,
202,
6494,
5578,
16,
202,
202,
20464,
3048,
1114,
1041,
13,
202,
202,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
288,
202,
202,
474,
277,
4666,
734,
273,
300,
21,
31,
202,
202,
780,
272,
4666,
734,
273,
25522,
71,
18,
588,
1662,
2932,
5787,
67,
4619,
67,
350,
8863,
202,
202,
430,
12,
87,
4666,
734,
5,
33,
2011,
13,
1082,
202,
77,
4666,
734,
273,
2144,
18,
2670,
1702,
12,
87,
4666,
734,
1769,
9506,
202,
6494,
1089,
1016,
273,
5578,
31,
202,
202,
2532,
24692,
20464,
430,
2556,
273,
446,
2
] |
||
return null;
|
scope = cx.topCallScope; if (scope == null) throw new IllegalStateException();
|
public static Object searchDefaultNamespace(Context cx) { Scriptable scope = cx.currentActivationScope; if (scope == null) { return null; } Object nsObject; for (;;) { Scriptable parent = scope.getParentScope(); if (parent == null) { nsObject = ScriptableObject.getProperty(scope, DEFAULT_NS_TAG); if (nsObject == Scriptable.NOT_FOUND) { return null; } break; } nsObject = scope.get(DEFAULT_NS_TAG, scope); if (nsObject != Scriptable.NOT_FOUND) { break; } scope = parent; } return nsObject; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/81605cfd95070f6af92b065f7488da2f048e67e8/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1623,
1868,
3402,
12,
1042,
9494,
13,
565,
288,
3639,
22780,
2146,
273,
9494,
18,
2972,
14857,
3876,
31,
3639,
309,
261,
4887,
422,
446,
13,
288,
5411,
2146,
273,
9494,
18,
3669,
1477,
3876,
31,
309,
261,
4887,
422,
446,
13,
604,
394,
5477,
5621,
3639,
289,
3639,
1033,
3153,
921,
31,
3639,
364,
261,
25708,
13,
288,
5411,
22780,
982,
273,
2146,
18,
588,
3054,
3876,
5621,
5411,
309,
261,
2938,
422,
446,
13,
288,
7734,
3153,
921,
273,
22780,
921,
18,
588,
1396,
12,
4887,
16,
3331,
67,
3156,
67,
7927,
1769,
7734,
309,
261,
2387,
921,
422,
22780,
18,
4400,
67,
9294,
13,
288,
10792,
2146,
273,
9494,
18,
3669,
1477,
3876,
31,
309,
261,
4887,
422,
446,
13,
604,
394,
5477,
5621,
7734,
289,
7734,
898,
31,
5411,
289,
5411,
3153,
921,
273,
2146,
18,
588,
12,
5280,
67,
3156,
67,
7927,
16,
2146,
1769,
5411,
309,
261,
2387,
921,
480,
22780,
18,
4400,
67,
9294,
13,
288,
7734,
898,
31,
5411,
289,
5411,
2146,
273,
982,
31,
3639,
289,
3639,
327,
3153,
921,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1033,
1623,
1868,
3402,
12,
1042,
9494,
13,
565,
288,
3639,
22780,
2146,
273,
9494,
18,
2972,
14857,
3876,
31,
3639,
309,
261,
4887,
422,
446,
13,
288,
5411,
2146,
273,
9494,
18,
3669,
1477,
3876,
31,
309,
261,
4887,
422,
446,
13,
604,
394,
5477,
5621,
3639,
289,
3639,
1033,
3153,
921,
31,
3639,
364,
261,
25708,
13,
288,
5411,
22780,
982,
273,
2146,
18,
588,
3054,
3876,
5621,
5411,
309,
261,
2938,
422,
446,
13,
288,
7734,
3153,
921,
273,
22780,
921,
18,
588,
1396,
12,
4887,
16,
3331,
67,
3156,
67,
7927,
1769,
7734,
309,
261,
2387,
921,
422,
22780,
18,
4400,
67,
9294,
13,
288,
10792,
2146,
273,
9494,
18,
3669,
1477,
2
] |
this.uuid2PathElement = new HashMap(); path2State = new PathMap();
|
this.uuid2NodeState = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.WEAK); this.recentlyUsed = new LRUMap(1000); root = isf.createNodeState(idFactory.createNodeId((String) null, Path.ROOT), this);
|
public CachingItemStateManager(ItemStateFactory isf, IdFactory idFactory) { this.isf = isf; this.idFactory = idFactory; this.uuid2PathElement = new HashMap(); // TODO: must use weak references path2State = new PathMap(); // TODO: must use weak references }
|
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/8cbe430f5054f4f83fa731aa38620cb1cd38c4d7/CachingItemStateManager.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/CachingItemStateManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23782,
310,
1180,
1119,
1318,
12,
1180,
1119,
1733,
353,
74,
16,
3124,
1733,
612,
1733,
13,
288,
3639,
333,
18,
7396,
273,
353,
74,
31,
3639,
333,
18,
350,
1733,
273,
612,
1733,
31,
3639,
333,
18,
7080,
22,
743,
1046,
273,
394,
4317,
5621,
368,
2660,
30,
1297,
999,
16046,
5351,
3639,
589,
22,
1119,
273,
394,
2666,
863,
5621,
1377,
368,
2660,
30,
1297,
999,
16046,
5351,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23782,
310,
1180,
1119,
1318,
12,
1180,
1119,
1733,
353,
74,
16,
3124,
1733,
612,
1733,
13,
288,
3639,
333,
18,
7396,
273,
353,
74,
31,
3639,
333,
18,
350,
1733,
273,
612,
1733,
31,
3639,
333,
18,
7080,
22,
743,
1046,
273,
394,
4317,
5621,
368,
2660,
30,
1297,
999,
16046,
5351,
3639,
589,
22,
1119,
273,
394,
2666,
863,
5621,
1377,
368,
2660,
30,
1297,
999,
16046,
5351,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jb = new JButton("Image unreachable. " + e.getAttribute("alt"));
|
lbl = new JLabel("Image unreachable. " + e.getAttribute("alt"));
|
public ReplacedElement createReplacedElement( LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) { Element e = box.element; JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc == null) { JButton jb = null; Image im = null; FSImage fsImage = uac.getImageResource(e.getAttribute("src")).getImage(); if (fsImage != null) { im = ((AWTFSImage) fsImage).getImage(); } if (im == null) { jb = new JButton("Image unreachable. " + e.getAttribute("alt")); } else { Image i2 = im.getScaledInstance(cssWidth, cssHeight, Image.SCALE_FAST); ImageIcon ii = new ImageIcon(i2, e.getAttribute("alt")); jb = new JButton(ii); } jb.setBorder(BorderFactory.createEmptyBorder()); jb.setSize(jb.getPreferredSize()); jb.setContentAreaFilled(false); addImageComponent(e, jb); cc = jb; } } else { //form components Element parentForm = getParentForm(e); //parentForm may be null! No problem! Assume action is this document and method is get. XhtmlForm form = getForm(parentForm); if (form == null) { form = new XhtmlForm(uac, parentForm); addForm(parentForm, form); } cc = form.addComponent(e); } if (cc == null) { return null; } else { SwingReplacedElement result = new SwingReplacedElement(cc); if (c.isInteractive()) { c.getCanvas().add(cc); } return result; } }
|
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/97315e6c7e452c67ade15440e5a6915d933d3250/SwingReplacedElementFactory.java/buggy/src/java/org/xhtmlrenderer/swing/SwingReplacedElementFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6910,
72,
1046,
752,
5729,
72,
1046,
12,
5411,
9995,
1042,
276,
16,
3914,
3514,
3919,
16,
5411,
21917,
2428,
582,
1077,
16,
509,
3747,
2384,
16,
509,
3747,
2686,
13,
288,
3639,
3010,
425,
273,
3919,
18,
2956,
31,
3639,
29058,
4946,
273,
446,
31,
3639,
309,
261,
73,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
73,
18,
588,
18948,
7675,
14963,
2932,
6081,
6,
3719,
288,
5411,
4946,
273,
10567,
1841,
12,
73,
1769,
5411,
309,
261,
952,
422,
446,
13,
288,
7734,
28804,
20515,
273,
446,
31,
7734,
3421,
709,
273,
446,
31,
7734,
9247,
2040,
2662,
2040,
273,
582,
1077,
18,
588,
2040,
1420,
12,
73,
18,
588,
1499,
2932,
4816,
7923,
2934,
588,
2040,
5621,
7734,
309,
261,
2556,
2040,
480,
446,
13,
288,
10792,
709,
273,
14015,
37,
8588,
4931,
2040,
13,
2662,
2040,
2934,
588,
2040,
5621,
7734,
289,
7734,
309,
261,
381,
422,
446,
13,
288,
10792,
14284,
273,
394,
21403,
2932,
2040,
25132,
18,
315,
397,
425,
18,
588,
1499,
2932,
2390,
7923,
1769,
7734,
289,
469,
288,
10792,
3421,
277,
22,
273,
709,
18,
588,
55,
12825,
1442,
12,
5212,
2384,
16,
3747,
2686,
16,
3421,
18,
19378,
67,
2046,
882,
1769,
10792,
3421,
5554,
6072,
273,
394,
3421,
5554,
12,
77,
22,
16,
425,
18,
588,
1499,
2932,
2390,
7923,
1769,
10792,
20515,
273,
394,
28804,
12,
2835,
1769,
7734,
289,
7734,
20515,
18,
542,
8107,
12,
8107,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6910,
72,
1046,
752,
5729,
72,
1046,
12,
5411,
9995,
1042,
276,
16,
3914,
3514,
3919,
16,
5411,
21917,
2428,
582,
1077,
16,
509,
3747,
2384,
16,
509,
3747,
2686,
13,
288,
3639,
3010,
425,
273,
3919,
18,
2956,
31,
3639,
29058,
4946,
273,
446,
31,
3639,
309,
261,
73,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
73,
18,
588,
18948,
7675,
14963,
2932,
6081,
6,
3719,
288,
5411,
4946,
273,
10567,
1841,
12,
73,
1769,
5411,
309,
261,
952,
422,
446,
13,
288,
7734,
28804,
20515,
273,
446,
31,
7734,
3421,
709,
273,
446,
31,
7734,
9247,
2040,
2662,
2040,
273,
582,
1077,
18,
588,
2040,
1420,
12,
73,
18,
2
] |
.compareTo(conversationPanel.getPageFirstMsgTimestamp()) < 0) {
|
.compareTo(convPanel.getPageFirstMsgTimestamp()) < 0) {
|
private void changeHistoryButtonsSate() { if(chatPanel.getFirstHistoryMsgTimestamp() .compareTo(conversationPanel.getPageFirstMsgTimestamp()) < 0) { previousButton.setEnabled(true); } else { previousButton.setEnabled(false); } if(chatPanel.getLastHistoryMsgTimestamp() .compareTo(conversationPanel.getPageLastMsgTimestamp()) > 0) { nextButton.setEnabled(true); } else { nextButton.setEnabled(false); } }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dc5ca23ce0a3831e33dabb787e4446685af77c11/MainToolBar.java/clean/src/net/java/sip/communicator/impl/gui/main/message/toolBars/MainToolBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2549,
5623,
14388,
55,
340,
1435,
565,
288,
3639,
309,
12,
10880,
5537,
18,
588,
3759,
5623,
3332,
4921,
1435,
5411,
263,
9877,
774,
12,
4896,
5537,
18,
588,
1964,
3759,
3332,
4921,
10756,
411,
374,
13,
288,
5411,
2416,
3616,
18,
542,
1526,
12,
3767,
1769,
3639,
289,
3639,
469,
288,
5411,
2416,
3616,
18,
542,
1526,
12,
5743,
1769,
3639,
289,
7734,
309,
12,
10880,
5537,
18,
588,
3024,
5623,
3332,
4921,
1435,
5411,
263,
9877,
774,
12,
25131,
5537,
18,
588,
1964,
3024,
3332,
4921,
10756,
405,
374,
13,
288,
5411,
1024,
3616,
18,
542,
1526,
12,
3767,
1769,
3639,
289,
3639,
469,
288,
5411,
1024,
3616,
18,
542,
1526,
12,
5743,
1769,
3639,
289,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
3238,
918,
2549,
5623,
14388,
55,
340,
1435,
565,
288,
3639,
309,
12,
10880,
5537,
18,
588,
3759,
5623,
3332,
4921,
1435,
5411,
263,
9877,
774,
12,
4896,
5537,
18,
588,
1964,
3759,
3332,
4921,
10756,
411,
374,
13,
288,
5411,
2416,
3616,
18,
542,
1526,
12,
3767,
1769,
3639,
289,
3639,
469,
288,
5411,
2416,
3616,
18,
542,
1526,
12,
5743,
1769,
3639,
289,
7734,
309,
12,
10880,
5537,
18,
588,
3024,
5623,
3332,
4921,
1435,
5411,
263,
9877,
774,
12,
25131,
5537,
18,
588,
1964,
3024,
3332,
4921,
10756,
405,
374,
13,
288,
5411,
1024,
3616,
18,
542,
1526,
12,
3767,
1769,
3639,
289,
3639,
469,
288,
5411,
1024,
3616,
18,
542,
1526,
12,
5743,
1769,
2
] |
matr = connectionMatrix.getMatrix(atomContainer);
|
matr = connectionMatrix.getMatrix(atm.removeHydrogens(atomContainer));
|
public DescriptorValue calculate(AtomContainer atomContainer) throws CDKException { wienerNumbers = new DoubleArrayResult(2); double wienerPathNumber = 0; //weinerPath double wienerPolarityNumber = 0; //weinerPol // "matr" is the connection matrix matr = connectionMatrix.getMatrix(atomContainer); // and "distances" is ist matrix of int where // for example distance[1][2] = length of the shortest path // between atom at position 1 and atom at position 2. int[][] distances = pathTools.computeFloydAPSP(matr); int partial = 0; wienerPolarityNumber = 0; for (int i = 0; i < distances.length; i++) { for (int j = 0; j < distances.length; j++) { partial = distances[i][j]; wienerPathNumber += partial; if (partial == 3) { wienerPolarityNumber += 1; } } } wienerPathNumber = wienerPathNumber / 2; wienerPolarityNumber = wienerPolarityNumber / 2; wienerNumbers.add(wienerPathNumber); wienerNumbers.add(wienerPolarityNumber); return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), wienerNumbers); }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/e2e0a1af649491461739024609113b659042ef4d/WienerNumbersDescriptor.java/clean/src/org/openscience/cdk/qsar/WienerNumbersDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
22487,
13,
1216,
24570,
288,
202,
202,
91,
77,
708,
10072,
273,
394,
3698,
1076,
1253,
12,
22,
1769,
202,
202,
9056,
16138,
708,
743,
1854,
273,
374,
31,
368,
1814,
14522,
743,
202,
202,
9056,
16138,
708,
5850,
20498,
1854,
273,
374,
31,
368,
1814,
14522,
5850,
9506,
202,
759,
315,
7373,
86,
6,
353,
326,
1459,
3148,
202,
202,
7373,
86,
273,
1459,
4635,
18,
588,
4635,
12,
7466,
2170,
1769,
202,
202,
759,
471,
315,
25834,
6,
353,
19165,
3148,
434,
509,
1625,
3196,
202,
759,
364,
3454,
3888,
63,
21,
6362,
22,
65,
273,
769,
434,
326,
20579,
589,
202,
202,
759,
3086,
3179,
622,
1754,
404,
471,
3179,
622,
1754,
576,
18,
202,
202,
474,
63,
6362,
65,
12491,
273,
589,
10348,
18,
9200,
42,
2466,
72,
2203,
3118,
12,
7373,
86,
1769,
9506,
202,
474,
4702,
273,
374,
31,
202,
202,
91,
77,
708,
5850,
20498,
1854,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12491,
18,
2469,
31,
277,
27245,
288,
1082,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
12491,
18,
2469,
31,
525,
27245,
288,
9506,
202,
11601,
273,
12491,
63,
77,
6362,
78,
15533,
9506,
202,
91,
77,
708,
743,
1854,
1011,
4702,
31,
9506,
202,
430,
261,
11601,
422,
890,
13,
288,
6862,
202,
91,
77,
708,
5850,
20498,
1854,
1011,
404,
31,
9506,
202,
97,
1082,
202,
97,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12823,
620,
4604,
12,
3641,
2170,
22487,
13,
1216,
24570,
288,
202,
202,
91,
77,
708,
10072,
273,
394,
3698,
1076,
1253,
12,
22,
1769,
202,
202,
9056,
16138,
708,
743,
1854,
273,
374,
31,
368,
1814,
14522,
743,
202,
202,
9056,
16138,
708,
5850,
20498,
1854,
273,
374,
31,
368,
1814,
14522,
5850,
9506,
202,
759,
315,
7373,
86,
6,
353,
326,
1459,
3148,
202,
202,
7373,
86,
273,
1459,
4635,
18,
588,
4635,
12,
7466,
2170,
1769,
202,
202,
759,
471,
315,
25834,
6,
353,
19165,
3148,
434,
509,
1625,
3196,
202,
759,
364,
3454,
3888,
63,
21,
6362,
22,
65,
273,
769,
434,
326,
20579,
589,
202,
202,
759,
3086,
3179,
622,
1754,
2
] |
Enumeration enOuter = unfilteredPersons.elements(); while (enOuter.hasMoreElements()) { Person currentOuter = (Person) enOuter.nextElement(); Enumeration enInner = unfilteredPersons.elements(); while (enInner.hasMoreElements()) { Person currentInner = (Person) enInner.nextElement(); if (currentOuter != currentInner && currentOuter.supersedes(currentInner)) redundantEntries.add(currentInner);
|
synchronized (unfilteredPersons) { int size = unfilteredPersons.size(); for (int i = 0; i < size; i++) { Person currentOuter = (Person) unfilteredPersons.elementAt(i); for (int j = i+1; j < size; j++) { Person currentInner = (Person) unfilteredPersons.elementAt(j); if (currentOuter.supersedes(currentInner)) { redundantEntries.add(currentInner); } else if (currentInner.supersedes(currentOuter)) { redundantEntries.add(currentOuter); } }
|
public int deleteDuplicateEntries() { Vector redundantEntries = new Vector(); Enumeration enOuter = unfilteredPersons.elements(); while (enOuter.hasMoreElements()) { Person currentOuter = (Person) enOuter.nextElement(); Enumeration enInner = unfilteredPersons.elements(); while (enInner.hasMoreElements()) { Person currentInner = (Person) enInner.nextElement(); if (currentOuter != currentInner && currentOuter.supersedes(currentInner)) redundantEntries.add(currentInner); } } Enumeration en = redundantEntries.elements(); while (en.hasMoreElements()) { Person p = (Person) en.nextElement(); deleteEntry(p); } if (redundantEntries.size() > 0) { saveToXMLFile(JFritz.PHONEBOOK_FILE); updateFilter(); } return redundantEntries.size(); }
|
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/e1276a6eadbd3cd3756abbe5307c87aa1f0f8ed1/PhoneBook.java/buggy/jfritz/src/de/moonflower/jfritz/dialogs/phonebook/PhoneBook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1430,
11826,
5400,
1435,
288,
202,
202,
5018,
19530,
5400,
273,
394,
5589,
5621,
9506,
202,
21847,
570,
15040,
273,
640,
12071,
8346,
87,
18,
6274,
5621,
202,
202,
17523,
261,
275,
15040,
18,
5332,
7417,
3471,
10756,
288,
1082,
202,
8346,
783,
15040,
273,
261,
8346,
13,
570,
15040,
18,
4285,
1046,
5621,
25083,
202,
21847,
570,
2857,
273,
640,
12071,
8346,
87,
18,
6274,
5621,
1082,
202,
17523,
261,
275,
2857,
18,
5332,
7417,
3471,
10756,
288,
9506,
202,
8346,
783,
2857,
273,
261,
8346,
13,
570,
2857,
18,
4285,
1046,
5621,
9506,
202,
430,
261,
2972,
15040,
480,
783,
2857,
597,
783,
15040,
18,
9565,
730,
281,
12,
2972,
2857,
3719,
6862,
202,
1118,
15362,
5400,
18,
1289,
12,
2972,
2857,
1769,
1082,
202,
97,
202,
202,
97,
9506,
202,
21847,
570,
273,
19530,
5400,
18,
6274,
5621,
202,
202,
17523,
261,
275,
18,
5332,
7417,
3471,
10756,
288,
1082,
202,
8346,
293,
273,
261,
8346,
13,
570,
18,
4285,
1046,
5621,
1082,
202,
3733,
1622,
12,
84,
1769,
202,
202,
97,
9506,
202,
430,
261,
1118,
15362,
5400,
18,
1467,
1435,
405,
374,
13,
288,
1082,
202,
5688,
774,
4201,
812,
12,
46,
42,
583,
94,
18,
8939,
5998,
28163,
67,
3776,
1769,
1082,
202,
2725,
1586,
5621,
202,
202,
97,
9506,
202,
2463,
19530,
5400,
18,
1467,
5621,
202,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1430,
11826,
5400,
1435,
288,
202,
202,
5018,
19530,
5400,
273,
394,
5589,
5621,
9506,
202,
21847,
570,
15040,
273,
640,
12071,
8346,
87,
18,
6274,
5621,
202,
202,
17523,
261,
275,
15040,
18,
5332,
7417,
3471,
10756,
288,
1082,
202,
8346,
783,
15040,
273,
261,
8346,
13,
570,
15040,
18,
4285,
1046,
5621,
25083,
202,
21847,
570,
2857,
273,
640,
12071,
8346,
87,
18,
6274,
5621,
1082,
202,
17523,
261,
275,
2857,
18,
5332,
7417,
3471,
10756,
288,
9506,
202,
8346,
783,
2857,
273,
261,
8346,
13,
570,
2857,
18,
4285,
1046,
5621,
9506,
202,
430,
261,
2972,
15040,
480,
783,
2857,
597,
783,
15040,
18,
9565,
730,
281,
12,
2972,
2857,
3719,
6862,
2
] |
public Collection listAllCertificates(Admin admin, String issuerdn) { debug(">listAllCertificates()"); Connection con = null; PreparedStatement ps = null;; ResultSet result = null; try { con = getConnection(); ps = con.prepareStatement("select fingerprint from CertificateData where issuerDN=? ORDER BY expireDate DESC"); ps.setString(1, issuerdn); result = ps.executeQuery(); ArrayList vect = new ArrayList(); while (result.next()) { vect.add(result.getString(1)); } debug("<listAllCertificates()"); return vect; } catch (Exception e) { throw new EJBException(e); } finally { try { if (result != null) result.close(); if (ps != null) ps.close(); if (con!= null) con.close(); } catch(SQLException se) { error("Error cleaning up: ", se); } } } // listAllCertificates
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/7aab6836c244b1c81e3e1f3ffe112c354ab929e2/LocalCertificateStoreSessionBean.java/buggy/src/java/se/anatom/ejbca/ca/store/LocalCertificateStoreSessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2532,
1098,
1595,
14133,
12,
4446,
3666,
16,
780,
17567,
5176,
15329,
4148,
2932,
34,
1098,
1595,
14133,
1435,
8863,
1952,
591,
33,
2011,
31,
29325,
1121,
33,
2011,
25708,
13198,
2088,
33,
2011,
31,
698,
95,
591,
33,
588,
1952,
5621,
1121,
33,
591,
18,
9366,
3406,
2932,
4025,
74,
6658,
1461,
520,
4719,
751,
6051,
17567,
8609,
17282,
7954,
6486,
14070,
1626,
10964,
8863,
1121,
18,
542,
780,
12,
21,
16,
17567,
5176,
1769,
2088,
33,
1121,
18,
8837,
1138,
5621,
19558,
29959,
33,
2704,
19558,
5621,
17523,
12,
2088,
18,
4285,
10756,
95,
29959,
18,
1289,
12,
2088,
18,
588,
780,
12,
21,
10019,
97,
4148,
2932,
32,
1098,
1595,
14133,
1435,
8863,
2463,
29959,
31,
97,
14683,
12,
503,
73,
15329,
12849,
2704,
22719,
503,
12,
73,
1769,
97,
23417,
95,
698,
95,
430,
12,
2088,
5,
33,
2011,
13,
2088,
18,
4412,
5621,
430,
12,
1121,
5,
33,
2011,
13,
1121,
18,
4412,
5621,
430,
12,
591,
5,
33,
2011,
13,
591,
18,
4412,
5621,
97,
14683,
12,
23116,
307,
15329,
1636,
2932,
668,
6200,
310,
416,
2773,
16,
307,
1769,
9090,
97,
759,
1098,
1595,
14133,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2532,
1098,
1595,
14133,
12,
4446,
3666,
16,
780,
17567,
5176,
15329,
4148,
2932,
34,
1098,
1595,
14133,
1435,
8863,
1952,
591,
33,
2011,
31,
29325,
1121,
33,
2011,
25708,
13198,
2088,
33,
2011,
31,
698,
95,
591,
33,
588,
1952,
5621,
1121,
33,
591,
18,
9366,
3406,
2932,
4025,
74,
6658,
1461,
520,
4719,
751,
6051,
17567,
8609,
17282,
7954,
6486,
14070,
1626,
10964,
8863,
1121,
18,
542,
780,
12,
21,
16,
17567,
5176,
1769,
2088,
33,
1121,
18,
8837,
1138,
5621,
19558,
29959,
33,
2704,
19558,
5621,
17523,
12,
2088,
18,
4285,
10756,
95,
29959,
18,
1289,
12,
2088,
18,
588,
780,
12,
21,
10019,
97,
4148,
2932,
32,
1098,
1595,
14133,
1435,
8863,
2463,
29959,
2
] |
||
sb.append("[native code, arity=]\n");
|
sb.append("[native code, arity=");
|
public String decompile(Context cx, int indent, boolean justbody) { StringBuffer sb = new StringBuffer(); if (!justbody) { sb.append("function "); sb.append(getFunctionName()); sb.append("() {\n\t"); } sb.append("[native code, arity=]\n"); sb.append(getArity()); sb.append("]\n"); if (!justbody) { sb.append("}\n"); } return sb.toString(); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8b34980fb3adc3beae5bcea5913d426dc2e366c8/BaseFunction.java/clean/js/rhino/src/org/mozilla/javascript/BaseFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
443,
11100,
12,
1042,
9494,
16,
509,
3504,
16,
1250,
2537,
3432,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
16051,
3732,
3432,
13,
288,
5411,
2393,
18,
6923,
2932,
915,
315,
1769,
5411,
2393,
18,
6923,
12,
588,
25258,
10663,
5411,
2393,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
3639,
289,
3639,
2393,
18,
6923,
2932,
63,
13635,
981,
16,
19353,
1546,
1769,
3639,
2393,
18,
6923,
12,
588,
686,
560,
10663,
3639,
2393,
18,
6923,
2932,
13944,
82,
8863,
3639,
309,
16051,
3732,
3432,
13,
288,
5411,
2393,
18,
6923,
2932,
6280,
82,
8863,
3639,
289,
3639,
327,
2393,
18,
10492,
5621,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
443,
11100,
12,
1042,
9494,
16,
509,
3504,
16,
1250,
2537,
3432,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
16051,
3732,
3432,
13,
288,
5411,
2393,
18,
6923,
2932,
915,
315,
1769,
5411,
2393,
18,
6923,
12,
588,
25258,
10663,
5411,
2393,
18,
6923,
2932,
1435,
18890,
82,
64,
88,
8863,
3639,
289,
3639,
2393,
18,
6923,
2932,
63,
13635,
981,
16,
19353,
1546,
1769,
3639,
2393,
18,
6923,
12,
588,
686,
560,
10663,
3639,
2393,
18,
6923,
2932,
13944,
82,
8863,
3639,
309,
16051,
3732,
3432,
13,
288,
5411,
2393,
18,
6923,
2932,
6280,
82,
8863,
3639,
289,
3639,
327,
2393,
18,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
cell.setHeight(largestCellHeight);
|
cell.setRowHeight(largestCellHeight);
|
public Status layout(Area area) throws FOPException { boolean configID = false; if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { if (!setup) doSetup(area); if (area instanceof BlockArea) { area.end(); } area.getIDReferences().createID(id); configID = true; this.marker = 0; } if ((spaceBefore != 0) && (this.marker == 0)) { spacer = new DisplaySpace(spaceBefore); area.increaseHeight(spaceBefore); } if (marker == 0 && configID) { // configure id area.getIDReferences().configureID(id, area); } this.areaContainer = new AreaContainer(fs, -area.borderWidthLeft, -area.borderWidthTop, area.getAllocationWidth(), area.spaceLeft(), Position.RELATIVE); areaContainer.setPage(area.getPage()); areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom, paddingRight); areaContainer.setBackgroundColor(backgroundColor); areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle, borderBottomStyle, borderRightStyle); areaContainer.setBorderWidth(borderTopWidth, borderLeftWidth, borderBottomWidth, borderRightWidth); areaContainer.setBorderColor(borderTopColor, borderLeftColor, borderBottomColor, borderRightColor); areaContainer.start(); areaContainer.setAbsoluteHeight(area.getAbsoluteHeight()); areaContainer.setIDReferences(area.getIDReferences()); // cells is The list of cell states for this row. This is the location of // where I will be storing the state of each cell so that I can // spread a cell over multiple pages if I have to. This is part // of fixing the TableRow larger than a single page bug. // Hani Elabed, 11/22/2000. if (cells == null)// do it once.. { widthOfCellsSoFar = 0; cells = new Vector(); int colCount = 0; int numChildren = this.children.size(); for (int i = 0; i < numChildren; i++) { TableCell cell = (TableCell) children.elementAt(i); cell.doSetup(areaContainer); int numCols = cell.getNumColumnsSpanned(); int numRows = cell.getNumRowsSpanned(); int width = 0; CellState state = new CellState(i, false, widthOfCellsSoFar); state.setColumn(colCount); // add the state of a cell. cells.insertElementAt(state, i); for (int count = 0; count < numCols && count < columns.size(); count++) { width += ((TableColumn) columns.elementAt(colCount)). getColumnWidth(); colCount++; } cell.setWidth(width); widthOfCellsSoFar += width; } } int numChildren = this.children.size(); // if (numChildren != columns.size()) { // MessageHandler.errorln("WARNING: Number of children under table-row not equal to number of table-columns"); // return new Status(Status.OK); // } // added by Eric Schaeffer largestCellHeight = 0; // added by Hani Elabed 11/27/2000 boolean someCellDidNotLayoutCompletely = false; for (int i = this.marker; i < numChildren; i++) { TableCell cell = (TableCell) children.elementAt(i); // added by Hani Elabed 11/22/2000 CellState cellState = (CellState) cells.elementAt(i); //if (this.isInListBody) { //fo.setIsInListBody(); //fo.setDistanceBetweenStarts(this.distanceBetweenStarts); //fo.setBodyIndent(this.bodyIndent); //} //--- this is modified to preserve the state of start //--- offset of the cell. //--- change by Hani Elabed 11/22/2000 cell.setStartOffset(cellState.getWidthOfCellSoFar()); Status status; if ((status = cell.layout(areaContainer)).isIncomplete()) { this.marker = i; /* if ((i != 0) && (status.getCode() == Status.AREA_FULL_NONE)) { status = new Status(Status.AREA_FULL_SOME); }*/ if (status.getCode() == Status.AREA_FULL_SOME) { // this whole block added by // Hani Elabed 11/27/2000 cellState.setLayoutComplete(false); // locate the first cell // that need to be laid out further for (int j = 0; j < numChildren; j++) { CellState state = (CellState) cells.elementAt(j); if (! state.isLayoutComplete()) { this.marker = j; break; // out of for loop } } } else { // added on 11/28/2000, by Dresdner Bank, Germany if (spacer != null) area.removeChild(spacer); // removing something that was added by succession // of cell.layout() // just to keep my sanity here, Hani area.increaseHeight(areaContainer.getHeight()); area.removeChild(areaContainer); this.resetMarker(); this.removeID(area.getIDReferences()); // hani elabed 11/27/2000 cellState.setLayoutComplete(false); return status; } } else // layout was complete for a particular cell { // Hani Elabed cellState.setLayoutComplete(true); } int h = cell.getHeight(); if (h > largestCellHeight) { largestCellHeight = h; } } for (int i = 0; i < numChildren; i++) { TableCell cell = (TableCell) children.elementAt(i); cell.setHeight(largestCellHeight); } // added by Dresdner Bank, Germany if (spacer != null) { area.addChild(spacer); spacer = null; } area.addChild(areaContainer); areaContainer.end(); area.addDisplaySpace(largestCellHeight + areaContainer.getPaddingTop() + areaContainer.borderWidthTop + areaContainer.getPaddingBottom() + areaContainer.borderWidthBottom); // bug fix from Eric Schaeffer //area.increaseHeight(largestCellHeight); if (spaceAfter != 0) { area.addDisplaySpace(spaceAfter); } if (area instanceof BlockArea) { area.start(); } // test to see if some cells are not // completely laid out. // Hani Elabed 11/22/2000 for (int i = 0; i < numChildren; i++) { CellState cellState = (CellState) cells.elementAt(i); if (! cellState.isLayoutComplete()) { someCellDidNotLayoutCompletely = true; break; // out of for loop } } // replaced by Hani Elabed 11/27/2000 //return new Status(Status.OK); if (someCellDidNotLayoutCompletely) { return new Status(Status.AREA_FULL_SOME); } else { if (keepWithNext != 0) { return new Status(Status.KEEP_WITH_NEXT); } return new Status(Status.OK); } }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/491efa421d171a292b5044eefe090846b9233b7c/TableRow.java/clean/src/org/apache/fop/fo/flow/TableRow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2685,
3511,
12,
5484,
5091,
13,
1216,
478,
3665,
503,
288,
3639,
1250,
642,
734,
273,
629,
31,
3639,
309,
261,
2211,
18,
11145,
422,
605,
22176,
67,
18249,
13,
288,
5411,
327,
394,
2685,
12,
1482,
18,
3141,
1769,
3639,
289,
3639,
309,
261,
2211,
18,
11145,
422,
10485,
13,
288,
5411,
309,
16051,
8401,
13,
7734,
741,
7365,
12,
5036,
1769,
5411,
309,
261,
5036,
1276,
3914,
5484,
13,
288,
7734,
5091,
18,
409,
5621,
5411,
289,
5411,
5091,
18,
588,
734,
8221,
7675,
2640,
734,
12,
350,
1769,
5411,
642,
734,
273,
638,
31,
5411,
333,
18,
11145,
273,
374,
31,
3639,
289,
3639,
309,
14015,
2981,
4649,
480,
374,
13,
597,
261,
2211,
18,
11145,
422,
374,
3719,
288,
5411,
31896,
273,
394,
9311,
3819,
12,
2981,
4649,
1769,
5411,
5091,
18,
267,
11908,
2686,
12,
2981,
4649,
1769,
3639,
289,
3639,
309,
261,
11145,
422,
374,
597,
642,
734,
13,
288,
5411,
368,
5068,
612,
5411,
5091,
18,
588,
734,
8221,
7675,
14895,
734,
12,
350,
16,
5091,
1769,
3639,
289,
3639,
333,
18,
5036,
2170,
273,
394,
16668,
2170,
12,
2556,
16,
300,
5036,
18,
8815,
2384,
3910,
16,
4766,
9079,
300,
5036,
18,
8815,
2384,
3401,
16,
5091,
18,
588,
17353,
2384,
9334,
4766,
9079,
5091,
18,
2981,
3910,
9334,
11010,
18,
862,
12190,
5354,
1769,
3639,
5091,
2170,
18,
542,
1964,
12,
5036,
18,
588,
1964,
10663,
3639,
5091,
2170,
18,
542,
9485,
12,
9598,
3401,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2685,
3511,
12,
5484,
5091,
13,
1216,
478,
3665,
503,
288,
3639,
1250,
642,
734,
273,
629,
31,
3639,
309,
261,
2211,
18,
11145,
422,
605,
22176,
67,
18249,
13,
288,
5411,
327,
394,
2685,
12,
1482,
18,
3141,
1769,
3639,
289,
3639,
309,
261,
2211,
18,
11145,
422,
10485,
13,
288,
5411,
309,
16051,
8401,
13,
7734,
741,
7365,
12,
5036,
1769,
5411,
309,
261,
5036,
1276,
3914,
5484,
13,
288,
7734,
5091,
18,
409,
5621,
5411,
289,
5411,
5091,
18,
588,
734,
8221,
7675,
2640,
734,
12,
350,
1769,
5411,
642,
734,
273,
638,
31,
5411,
333,
18,
11145,
273,
374,
31,
3639,
289,
3639,
309,
14015,
2981,
4649,
480,
374,
13,
597,
261,
2211,
2
] |
public void store(WebDocument doc);
|
public WebDocument store(WebDocument doc);
|
public void store(WebDocument doc);
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/6fd283db33eb3050cf587c2952a873f604569046/DocumentStorage.java/buggy/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/storage/DocumentStorage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1707,
12,
4079,
2519,
997,
1769,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
918,
1707,
12,
4079,
2519,
997,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String jsFunction_toExponential(Object arg) { /* We allow a larger range of precision than ECMA requires; this is permitted by ECMA. */ return num_to(arg, DToA.DTOSTR_STANDARD_EXPONENTIAL, DToA.DTOSTR_EXPONENTIAL, 0, MAX_PRECISION, 1);
|
private String jsFunction_toExponential(Context cx, Object[] args) { /* We allow a larger range of precision than ECMA requires; this is permitted by ECMA. */ return num_to(cx, args, DToA.DTOSTR_STANDARD_EXPONENTIAL, DToA.DTOSTR_EXPONENTIAL, 0, MAX_PRECISION, 1);
|
public String jsFunction_toExponential(Object arg) { /* We allow a larger range of precision than ECMA requires; this is permitted by ECMA. */ return num_to(arg, DToA.DTOSTR_STANDARD_EXPONENTIAL, DToA.DTOSTR_EXPONENTIAL, 0, MAX_PRECISION, 1); }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8584f9aa43e87015068b51a9cd8ce3a893b2449a/NativeNumber.java/buggy/js/rhino/src/org/mozilla/javascript/NativeNumber.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3828,
2083,
67,
869,
17972,
649,
12,
921,
1501,
13,
288,
565,
1748,
1660,
1699,
279,
10974,
1048,
434,
6039,
2353,
202,
202,
7228,
5535,
4991,
31,
333,
353,
15498,
635,
7773,
5535,
18,
1195,
202,
202,
2463,
818,
67,
869,
12,
3175,
16,
463,
774,
37,
18,
19792,
3902,
67,
882,
18264,
67,
16109,
15624,
6365,
16,
6862,
1082,
202,
40,
774,
37,
18,
19792,
3902,
67,
16109,
15624,
6365,
16,
374,
16,
4552,
67,
3670,
26913,
16,
404,
1769,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
514,
3828,
2083,
67,
869,
17972,
649,
12,
921,
1501,
13,
288,
565,
1748,
1660,
1699,
279,
10974,
1048,
434,
6039,
2353,
202,
202,
7228,
5535,
4991,
31,
333,
353,
15498,
635,
7773,
5535,
18,
1195,
202,
202,
2463,
818,
67,
869,
12,
3175,
16,
463,
774,
37,
18,
19792,
3902,
67,
882,
18264,
67,
16109,
15624,
6365,
16,
6862,
1082,
202,
40,
774,
37,
18,
19792,
3902,
67,
16109,
15624,
6365,
16,
374,
16,
4552,
67,
3670,
26913,
16,
404,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MessageDialog d = new MessageDialog(workbenchWindow.getShell(),
|
MessageDialog d = new MessageDialog(page.getWorkbenchWindow().getShell(),
|
private void saveSingleton(IWorkbenchPage page) { String[] buttons = new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }; MessageDialog d = new MessageDialog(workbenchWindow.getShell(), WorkbenchMessages.SavePerspective_overwriteTitle, null, WorkbenchMessages.SavePerspective_singletonQuestion, MessageDialog.QUESTION, buttons, 0); if (d.open() == 0) { page.savePerspective(); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1aadb33b1696d4c46ccd382efd0fe8706d9923ca/SavePerspectiveAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SavePerspectiveAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
19571,
12,
45,
2421,
22144,
1964,
1363,
13,
288,
3639,
514,
8526,
9502,
273,
394,
514,
8526,
288,
1599,
3529,
2918,
18,
3141,
67,
13545,
16,
7734,
1599,
3529,
2918,
18,
25268,
67,
13545,
289,
31,
3639,
2350,
6353,
302,
273,
394,
2350,
6353,
12,
2433,
18,
588,
2421,
22144,
3829,
7675,
588,
13220,
9334,
7734,
4147,
22144,
5058,
18,
4755,
14781,
16772,
67,
19274,
4247,
16,
7734,
446,
16,
4147,
22144,
5058,
18,
4755,
14781,
16772,
67,
24487,
11665,
16,
7734,
2350,
6353,
18,
4740,
1146,
16,
9502,
16,
374,
1769,
3639,
309,
261,
72,
18,
3190,
1435,
422,
374,
13,
288,
5411,
1363,
18,
5688,
14781,
16772,
5621,
3639,
289,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
19571,
12,
45,
2421,
22144,
1964,
1363,
13,
288,
3639,
514,
8526,
9502,
273,
394,
514,
8526,
288,
1599,
3529,
2918,
18,
3141,
67,
13545,
16,
7734,
1599,
3529,
2918,
18,
25268,
67,
13545,
289,
31,
3639,
2350,
6353,
302,
273,
394,
2350,
6353,
12,
2433,
18,
588,
2421,
22144,
3829,
7675,
588,
13220,
9334,
7734,
4147,
22144,
5058,
18,
4755,
14781,
16772,
67,
19274,
4247,
16,
7734,
446,
16,
4147,
22144,
5058,
18,
4755,
14781,
16772,
67,
24487,
11665,
16,
7734,
2350,
6353,
18,
4740,
1146,
16,
9502,
16,
374,
1769,
3639,
309,
261,
72,
18,
3190,
1435,
422,
374,
13,
288,
5411,
1363,
18,
5688,
14781,
16772,
5621,
3639,
289,
565,
289,
2,
-100
] |
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,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
1770,
12,
82,
74,
16,
4766,
1377,
3742,
16,
4766,
1377,
949,
12,
588,
3910,
6952,
9334,
16609,
6952,
1435,
3631,
4766,
1377,
21036,
16,
4766,
1377,
10971,
10019,
10792,
898,
31,
5411,
289,
5397,
368,
5411,
368,
6781,
576,
30,
225,
7508,
461,
493,
33,
7508,
461,
263,
1068,
548,
5411,
368,
5411,
648,
576,
30,
288,
7734,
368,
7,
1369,
2872,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
7508,
461,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
6549,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5411,
368,
5411,
648,
404,
30,
288,
7734,
368,
7,
1369,
1666,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
7734,
1770,
21036,
273,
261,
461,
13,
4170,
4487,
11901,
12,
21,
1769,
7734,
368,
7,
1369,
1725,
315,
39,
27824,
20416,
19,
4749,
26,
19,
92,
2163,
18,
9576,
19,
4816,
19,
92,
2163,
19,
4288,
19,
4841,
548,
18,
10052,
6,
10792,
21582,
12,
2704,
2
] |
||
log.debug("stopping poll with state = " + m_pollstate); tally();
|
void stopPoll() { m_pollstate = m_tally.haveQuorum() ? PS_COMPLETE : ERR_NO_QUORUM; if(!isErrorState()) { if(m_pollstate == PS_WAIT_TALLY){ tally(); } } m_pollmanager.closeThePoll(m_key); log.debug("closed the poll:" + m_key); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2af3ba757d8ac419352ff8852bf177089be81d07/Poll.java/buggy/src/org/lockss/poller/Poll.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
918,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
2132,
19085,
1435,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
288,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
312,
67,
13835,
5642,
12970,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
273,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
312,
67,
88,
1230,
18,
21516,
31488,
1435,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
692,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
918,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
2132,
19085,
1435,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
288,
1330,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
13835,
2019,
1769,
268,
1230,
5621,
613,
18,
4148,
2932,
5681,
1382,
7672,
598,
919,
273,
315,
397,
312,
67,
2
] |
|
if(start < 1 || start > this.end || end < 1 || end > this.end || start > end) { throw new IndexOutOfBoundsException(); } return AbstractSymbolList.this.subStr(start + this.start, end + this.start); }
|
if(start < 1 || start > this.end || end < 1 || end > this.end || start > end) { throw new IndexOutOfBoundsException(); } return AbstractSymbolList.this.subStr(start + this.start - 1, end + this.start - 1); }
|
public String subStr(int start, int end) throws IndexOutOfBoundsException { if(start < 1 || start > this.end || end < 1 || end > this.end || start > end) { throw new IndexOutOfBoundsException(); } return AbstractSymbolList.this.subStr(start + this.start, end + this.start); }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/0c38c6a2e6f9a781acf637b235bf6397a19b1e36/AbstractSymbolList.java/buggy/src/org/biojava/bio/symbol/AbstractSymbolList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
720,
1585,
12,
474,
787,
16,
509,
679,
13,
1216,
17768,
288,
565,
309,
12,
1937,
411,
404,
747,
787,
405,
333,
18,
409,
747,
4202,
679,
411,
404,
747,
679,
405,
333,
18,
409,
747,
4202,
787,
405,
679,
13,
288,
1377,
604,
394,
17768,
5621,
565,
289,
565,
327,
4115,
5335,
682,
18,
2211,
18,
1717,
1585,
12,
1937,
397,
333,
18,
1937,
16,
679,
397,
333,
18,
1937,
1769,
225,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
720,
1585,
12,
474,
787,
16,
509,
679,
13,
1216,
17768,
288,
565,
309,
12,
1937,
411,
404,
747,
787,
405,
333,
18,
409,
747,
4202,
679,
411,
404,
747,
679,
405,
333,
18,
409,
747,
4202,
787,
405,
679,
13,
288,
1377,
604,
394,
17768,
5621,
565,
289,
565,
327,
4115,
5335,
682,
18,
2211,
18,
1717,
1585,
12,
1937,
397,
333,
18,
1937,
16,
679,
397,
333,
18,
1937,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getLeft().eval(docs, contextSequence);
|
getLeft().eval(contextSequence);
|
public Sequence eval( DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { if (contextItem != null) contextSequence = contextItem.toSequence(); Sequence lseq = getLeft().eval(docs, contextSequence); if(lseq.getLength() == 0) return Sequence.EMPTY_SEQUENCE; Sequence rseq = getRight().eval(docs, contextSequence); if(rseq.getLength() == 0) return Sequence.EMPTY_SEQUENCE; ComputableValue lvalue = (ComputableValue)lseq.itemAt(0); ComputableValue rvalue = (ComputableValue)rseq.itemAt(0); if(operator == Constants.IDIV) return ((IntegerValue)lvalue).idiv((NumericValue)rvalue); else return applyOperator((ComputableValue)lvalue, (ComputableValue)rvalue); }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/OpNumeric.java/buggy/src/org/exist/xpath/OpNumeric.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8370,
5302,
12,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,
503,
288,
202,
202,
430,
261,
2472,
1180,
480,
446,
13,
1082,
202,
2472,
4021,
273,
819,
1180,
18,
869,
4021,
5621,
202,
202,
4021,
328,
5436,
273,
1082,
202,
588,
3910,
7675,
8622,
12,
8532,
16,
819,
4021,
1769,
202,
202,
430,
12,
80,
5436,
18,
588,
1782,
1435,
422,
374,
13,
1082,
202,
2463,
8370,
18,
13625,
67,
25330,
31,
202,
202,
4021,
436,
5436,
273,
1082,
202,
588,
4726,
7675,
8622,
12,
8532,
16,
819,
4021,
1769,
202,
202,
430,
12,
86,
5436,
18,
588,
1782,
1435,
422,
374,
13,
1082,
202,
2463,
8370,
18,
13625,
67,
25330,
31,
9506,
202,
7703,
429,
620,
328,
1132,
273,
261,
7703,
429,
620,
13,
80,
5436,
18,
1726,
861,
12,
20,
1769,
202,
202,
7703,
429,
620,
436,
1132,
273,
261,
7703,
429,
620,
13,
86,
5436,
18,
1726,
861,
12,
20,
1769,
9506,
202,
430,
12,
9497,
422,
5245,
18,
734,
8188,
13,
1082,
202,
2463,
14015,
4522,
620,
13,
80,
1132,
2934,
350,
427,
12443,
9902,
620,
13,
86,
1132,
1769,
202,
202,
12107,
1082,
202,
2463,
2230,
5592,
12443,
7703,
429,
620,
13,
80,
1132,
16,
261,
7703,
429,
620,
13,
86,
1132,
1769,
202,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8370,
5302,
12,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,
503,
288,
202,
202,
430,
261,
2472,
1180,
480,
446,
13,
1082,
202,
2472,
4021,
273,
819,
1180,
18,
869,
4021,
5621,
202,
202,
4021,
328,
5436,
273,
1082,
202,
588,
3910,
7675,
8622,
12,
8532,
16,
819,
4021,
1769,
202,
202,
430,
12,
80,
5436,
18,
588,
1782,
1435,
422,
374,
13,
1082,
202,
2463,
8370,
18,
13625,
67,
25330,
31,
202,
202,
4021,
436,
5436,
273,
1082,
202,
588,
4726,
7675,
8622,
12,
8532,
16,
819,
4021,
1769,
202,
202,
430,
12,
86,
5436,
18,
588,
1782,
1435,
422,
2
] |
change.apply(currentModel);
|
change.apply(currentModel, getPlatform().isDelimitedIdentifierModeOn());
|
protected void processTableStructureChanges(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) throws IOException { // First we drop primary keys as necessary for (Iterator changeIt = changes.iterator(); changeIt.hasNext();) { TableChange change = (TableChange)changeIt.next(); if (change instanceof RemovePrimaryKeyChange) { processChange(currentModel, desiredModel, (RemovePrimaryKeyChange)change); change.apply(currentModel); changeIt.remove(); } else if (change instanceof PrimaryKeyChange) { PrimaryKeyChange pkChange = (PrimaryKeyChange)change; RemovePrimaryKeyChange removePkChange = new RemovePrimaryKeyChange(pkChange.getChangedTable(), pkChange.getOldPrimaryKeyColumns()); processChange(currentModel, desiredModel, removePkChange); removePkChange.apply(currentModel); } } HashMap columnChanges = new HashMap(); // Next we add/remove columns for (Iterator changeIt = changes.iterator(); changeIt.hasNext();) { TableChange change = (TableChange)changeIt.next(); if (change instanceof AddColumnChange) { AddColumnChange addColumnChange = (AddColumnChange)change; // Oracle can only add not insert columns if (addColumnChange.isAtEnd()) { processChange(currentModel, desiredModel, addColumnChange); change.apply(currentModel); changeIt.remove(); } } else if (change instanceof RemoveColumnChange) { processChange(currentModel, desiredModel, (RemoveColumnChange)change); change.apply(currentModel); changeIt.remove(); } else if (change instanceof ColumnAutoIncrementChange) { // Sybase has no way of adding or removing an IDENTITY constraint // Thus we have to rebuild the table anyway and can ignore all the other // column changes columnChanges = null; } else if ((change instanceof ColumnChange) && (columnChanges != null)) { // we gather all changed columns because we can use the ALTER TABLE ALTER COLUMN // statement for them ColumnChange columnChange = (ColumnChange)change; ArrayList changesPerColumn = (ArrayList)columnChanges.get(columnChange.getChangedColumn()); if (changesPerColumn == null) { changesPerColumn = new ArrayList(); columnChanges.put(columnChange.getChangedColumn(), changesPerColumn); } changesPerColumn.add(change); } } if (columnChanges != null) { for (Iterator changesPerColumnIt = columnChanges.entrySet().iterator(); changesPerColumnIt.hasNext();) { Map.Entry entry = (Map.Entry)changesPerColumnIt.next(); Column sourceColumn = (Column)entry.getKey(); ArrayList changesPerColumn = (ArrayList)entry.getValue(); // Sybase does not like us to use the ALTER TABLE ALTER statement if we don't actually // change the datatype or the required constraint but only the default value // Thus, if we only have to change the default, we use a different handler if ((changesPerColumn.size() == 1) && (changesPerColumn.get(0) instanceof ColumnDefaultValueChange)) { processChange(currentModel, desiredModel, (ColumnDefaultValueChange)changesPerColumn.get(0)); } else { Column targetColumn = targetTable.findColumn(sourceColumn.getName(), getPlatform().isDelimitedIdentifierModeOn()); processColumnChange(sourceTable, targetTable, sourceColumn, targetColumn); } for (Iterator changeIt = changesPerColumn.iterator(); changeIt.hasNext();) { ((ColumnChange)changeIt.next()).apply(currentModel); } } } // Finally we add primary keys for (Iterator changeIt = changes.iterator(); changeIt.hasNext();) { TableChange change = (TableChange)changeIt.next(); if (change instanceof AddPrimaryKeyChange) { processChange(currentModel, desiredModel, (AddPrimaryKeyChange)change); change.apply(currentModel); changeIt.remove(); } else if (change instanceof PrimaryKeyChange) { PrimaryKeyChange pkChange = (PrimaryKeyChange)change; AddPrimaryKeyChange addPkChange = new AddPrimaryKeyChange(pkChange.getChangedTable(), pkChange.getNewPrimaryKeyColumns()); processChange(currentModel, desiredModel, addPkChange); addPkChange.apply(currentModel); changeIt.remove(); } } }
|
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/d23d6f0a3948c388abd9fe824b91091f5089c689/SybaseBuilder.java/clean/src/java/org/apache/ddlutils/platform/sybase/SybaseBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
1388,
6999,
7173,
12,
4254,
783,
1488,
16,
4766,
7734,
5130,
6049,
1488,
16,
4766,
7734,
3555,
565,
1084,
1388,
16,
4766,
7734,
3555,
565,
1018,
1388,
16,
4766,
7734,
1635,
1377,
1472,
16,
4766,
7734,
987,
377,
3478,
13,
1216,
1860,
565,
288,
3639,
368,
5783,
732,
3640,
3354,
1311,
487,
4573,
3639,
364,
261,
3198,
2549,
7193,
273,
3478,
18,
9838,
5621,
2549,
7193,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
3555,
3043,
2549,
273,
261,
1388,
3043,
13,
3427,
7193,
18,
4285,
5621,
5411,
309,
261,
3427,
1276,
3581,
11575,
3043,
13,
5411,
288,
7734,
1207,
3043,
12,
2972,
1488,
16,
6049,
1488,
16,
261,
3288,
11575,
3043,
13,
3427,
1769,
7734,
2549,
18,
9010,
12,
2972,
1488,
16,
24921,
7675,
291,
23531,
329,
3004,
2309,
1398,
10663,
7734,
2549,
7193,
18,
4479,
5621,
5411,
289,
5411,
469,
309,
261,
3427,
1276,
15884,
653,
3043,
13,
5411,
288,
7734,
15884,
653,
3043,
4202,
2365,
3043,
4202,
273,
261,
11575,
3043,
13,
3427,
31,
7734,
3581,
11575,
3043,
1206,
7789,
3043,
273,
394,
3581,
11575,
3043,
12,
5465,
3043,
18,
588,
5033,
1388,
9334,
28524,
10402,
2365,
3043,
18,
588,
7617,
11575,
3380,
10663,
7734,
1207,
3043,
12,
2972,
1488,
16,
6049,
1488,
16,
1206,
7789,
3043,
1769,
7734,
1206,
7789,
3043,
18,
9010,
12,
2972,
1488,
1769,
5411,
289,
3639,
289,
3639,
4317,
1057,
7173,
273,
394,
4317,
5621,
3639,
368,
4804,
732,
527,
19,
4479,
2168,
3639,
364,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
1388,
6999,
7173,
12,
4254,
783,
1488,
16,
4766,
7734,
5130,
6049,
1488,
16,
4766,
7734,
3555,
565,
1084,
1388,
16,
4766,
7734,
3555,
565,
1018,
1388,
16,
4766,
7734,
1635,
1377,
1472,
16,
4766,
7734,
987,
377,
3478,
13,
1216,
1860,
565,
288,
3639,
368,
5783,
732,
3640,
3354,
1311,
487,
4573,
3639,
364,
261,
3198,
2549,
7193,
273,
3478,
18,
9838,
5621,
2549,
7193,
18,
5332,
2134,
5621,
13,
3639,
288,
5411,
3555,
3043,
2549,
273,
261,
1388,
3043,
13,
3427,
7193,
18,
4285,
5621,
5411,
309,
261,
3427,
1276,
3581,
11575,
3043,
13,
5411,
288,
7734,
1207,
3043,
12,
2972,
1488,
16,
6049,
1488,
16,
261,
3288,
11575,
3043,
13,
3427,
1769,
2
] |
hashCode = name.hashCode();
|
hashCode = name.hashCode();
|
public Object get(String name, Scriptable start) { int hashCode; if (name == lastName) { if (lastValue != REMOVED) return lastValue; hashCode = lastHash; } else { hashCode = name.hashCode(); } int slotIndex = getSlot(name, hashCode); if (slotIndex == SLOT_NOT_FOUND) return Scriptable.NOT_FOUND; Slot slot = slots[slotIndex]; if ((slot.flags & Slot.HAS_GETTER) != 0) { GetterSlot getterSlot = (GetterSlot) slot; try { if (getterSlot.delegateTo == null) { // Walk the prototype chain to find an appropriate // object to invoke the getter on. Class clazz = getterSlot.getter.getDeclaringClass(); while (!clazz.isInstance(start)) { start = start.getPrototype(); if (start == null) { start = this; break; } } return getterSlot.getter.invoke(start, ScriptRuntime.emptyArgs); } Object[] args = { this }; return getterSlot.getter.invoke(getterSlot.delegateTo, args); } catch (InvocationTargetException e) { throw WrappedException.wrapException(e); } catch (IllegalAccessException e) { throw WrappedException.wrapException(e); } } // Update cache. Assign REMOVED to invalidate the cache while // we update it in case there are accesses from another thread. lastValue = REMOVED; lastName = name; lastHash = hashCode; lastValue = slot.value; return lastValue; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/d83c7dc5cf112a5ef927e29997c704a42423d705/ScriptableObject.java/clean/org/mozilla/javascript/ScriptableObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
780,
508,
16,
22780,
787,
13,
288,
3639,
509,
13374,
31,
3639,
309,
261,
529,
422,
23439,
13,
288,
5411,
309,
261,
2722,
620,
480,
23769,
12135,
13,
7734,
327,
1142,
620,
31,
5411,
13374,
273,
1142,
2310,
31,
3639,
289,
469,
288,
5411,
13374,
273,
508,
18,
2816,
1085,
5621,
540,
289,
3639,
509,
4694,
1016,
273,
17718,
352,
12,
529,
16,
13374,
1769,
3639,
309,
261,
14194,
1016,
422,
348,
1502,
56,
67,
4400,
67,
9294,
13,
5411,
327,
22780,
18,
4400,
67,
9294,
31,
3639,
23195,
4694,
273,
12169,
63,
14194,
1016,
15533,
3639,
309,
14015,
14194,
18,
7133,
473,
23195,
18,
27765,
67,
7113,
11976,
13,
480,
374,
13,
288,
5411,
968,
387,
8764,
7060,
8764,
273,
261,
8461,
8764,
13,
4694,
31,
5411,
775,
288,
7734,
309,
261,
11990,
8764,
18,
22216,
774,
422,
446,
13,
288,
10792,
368,
7564,
326,
4409,
2687,
358,
1104,
392,
5505,
10792,
368,
733,
358,
4356,
326,
7060,
603,
18,
10792,
1659,
4003,
273,
7060,
8764,
18,
11990,
18,
588,
3456,
14682,
5621,
10792,
1323,
16051,
830,
3638,
18,
291,
1442,
12,
1937,
3719,
288,
13491,
787,
273,
787,
18,
588,
15846,
5621,
13491,
309,
261,
1937,
422,
446,
13,
288,
18701,
787,
273,
333,
31,
18701,
898,
31,
13491,
289,
10792,
289,
10792,
327,
7060,
8764,
18,
11990,
18,
14407,
12,
1937,
16,
7739,
5576,
18,
5531,
2615,
1769,
7734,
289,
7734,
1033,
8526,
833,
273,
288,
333,
289,
31,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
336,
12,
780,
508,
16,
22780,
787,
13,
288,
3639,
509,
13374,
31,
3639,
309,
261,
529,
422,
23439,
13,
288,
5411,
309,
261,
2722,
620,
480,
23769,
12135,
13,
7734,
327,
1142,
620,
31,
5411,
13374,
273,
1142,
2310,
31,
3639,
289,
469,
288,
5411,
13374,
273,
508,
18,
2816,
1085,
5621,
540,
289,
3639,
509,
4694,
1016,
273,
17718,
352,
12,
529,
16,
13374,
1769,
3639,
309,
261,
14194,
1016,
422,
348,
1502,
56,
67,
4400,
67,
9294,
13,
5411,
327,
22780,
18,
4400,
67,
9294,
31,
3639,
23195,
4694,
273,
12169,
63,
14194,
1016,
15533,
3639,
309,
14015,
14194,
18,
7133,
473,
23195,
18,
27765,
67,
7113,
11976,
13,
480,
374,
13,
288,
2
] |
if (VM.VerifyAssertions) VM.assert(x >= 0 && x < (EXCEPTION_OBJ_MASK >>> EXCEPTION_OBJ_SHIFT));
|
if (VM.VerifyAssertions) VM._assert(x >= 0 && x < (EXCEPTION_OBJ_MASK >>> EXCEPTION_OBJ_SHIFT));
|
final void setUnsignedExceptionOffset(int x) { if (VM.VerifyAssertions) VM.assert(x >= 0 && x < (EXCEPTION_OBJ_MASK >>> EXCEPTION_OBJ_SHIFT)); _bits = (_bits & ~EXCEPTION_OBJ_MASK) | (((long)x) << EXCEPTION_OBJ_SHIFT); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a5a05b105574ec4e1a0bacfcc731385b09418803/VM_OptCompiledMethod.java/buggy/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptCompiledMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
13290,
503,
2335,
12,
474,
619,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
92,
1545,
374,
597,
619,
411,
261,
12658,
67,
24547,
67,
11704,
4080,
23136,
67,
24547,
67,
23191,
10019,
565,
389,
6789,
273,
261,
67,
6789,
473,
4871,
12658,
67,
24547,
67,
11704,
13,
571,
261,
12443,
5748,
13,
92,
13,
2296,
23136,
67,
24547,
67,
23191,
1769,
225,
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,
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,
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,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
13290,
503,
2335,
12,
474,
619,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
92,
1545,
374,
597,
619,
411,
261,
12658,
67,
24547,
67,
11704,
4080,
23136,
67,
24547,
67,
23191,
10019,
565,
389,
6789,
273,
261,
67,
6789,
473,
4871,
12658,
67,
24547,
67,
11704,
13,
571,
261,
12443,
5748,
13,
92,
13,
2296,
23136,
67,
24547,
67,
23191,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
copy(children, rejectedFiles, destinationPath, subMonitor); } else if (!rejectedFiles.contains(destinationPath)) {
|
copy(children, destinationPath, subMonitor); } else {
|
protected void copy(IResource[] resources, ArrayList rejectedFiles, IPath destination, IProgressMonitor subMonitor) throws CoreException { for (int i = 0; i < resources.length; i++) { IResource source = resources[i]; IPath destinationPath = destination.append(source.getName()); IWorkspace workspace = source.getWorkspace(); IWorkspaceRoot workspaceRoot = workspace.getRoot(); if (source.getType() == IResource.FOLDER && workspaceRoot.exists(destinationPath)) { // the resource is a folder and it exists in the destination, copy the // children of the folder IResource[] children = ((IContainer) source).members(); copy(children, rejectedFiles, destinationPath, subMonitor); } else if (!rejectedFiles.contains(destinationPath)) { // if we're merging folders, we could be overwriting an existing file IResource existing = workspaceRoot.findMember(destinationPath); boolean canCopy = true; if (existing != null) { canCopy = !copyExisting(source, existing, subMonitor); if (canCopy) { canCopy = delete(existing, subMonitor); } } if (canCopy) { int flags = IResource.SHALLOW; if (source.isLinked() && checkDeep(source)) { // do a deep copy of the resource flags = IResource.NONE; } source.copy(destinationPath, flags, new SubProgressMonitor(subMonitor, 0)); } subMonitor.worked(1); if (subMonitor.isCanceled()) { throw new OperationCanceledException(); } } } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0edca7cf7f2306c4b4528b63b245d58d9a569f78/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1610,
12,
45,
1420,
8526,
2703,
16,
2407,
11876,
2697,
16,
467,
743,
2929,
16,
467,
5491,
7187,
720,
7187,
13,
1216,
30015,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2703,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
1420,
1084,
273,
2703,
63,
77,
15533,
1082,
202,
45,
743,
30617,
273,
2929,
18,
6923,
12,
3168,
18,
17994,
10663,
1082,
202,
45,
8241,
6003,
273,
1084,
18,
588,
8241,
5621,
1082,
202,
45,
8241,
2375,
6003,
2375,
273,
6003,
18,
588,
2375,
5621,
1082,
202,
430,
261,
3168,
18,
588,
559,
1435,
422,
467,
1420,
18,
17357,
597,
6003,
2375,
18,
1808,
12,
10590,
743,
3719,
288,
9506,
202,
759,
326,
1058,
353,
279,
3009,
471,
518,
1704,
316,
326,
2929,
16,
1610,
326,
9506,
202,
759,
2325,
434,
326,
3009,
9506,
202,
45,
1420,
8526,
2325,
273,
14015,
45,
2170,
13,
1084,
2934,
7640,
5621,
9506,
202,
3530,
12,
5906,
16,
11876,
2697,
16,
30617,
16,
720,
7187,
1769,
1082,
202,
97,
469,
309,
16051,
266,
6059,
2697,
18,
12298,
12,
10590,
743,
3719,
288,
9506,
202,
759,
309,
732,
4565,
17256,
9907,
16,
732,
3377,
506,
23492,
392,
2062,
585,
9506,
202,
45,
1420,
2062,
273,
6003,
2375,
18,
4720,
4419,
12,
10590,
743,
1769,
9506,
202,
6494,
848,
2951,
273,
638,
31,
6862,
9506,
202,
430,
261,
11711,
480,
446,
13,
288,
6862,
25083,
202,
4169,
2951,
273,
401,
3530,
9895,
12,
3168,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1610,
12,
45,
1420,
8526,
2703,
16,
2407,
11876,
2697,
16,
467,
743,
2929,
16,
467,
5491,
7187,
720,
7187,
13,
1216,
30015,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2703,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
1420,
1084,
273,
2703,
63,
77,
15533,
1082,
202,
45,
743,
30617,
273,
2929,
18,
6923,
12,
3168,
18,
17994,
10663,
1082,
202,
45,
8241,
6003,
273,
1084,
18,
588,
8241,
5621,
1082,
202,
45,
8241,
2375,
6003,
2375,
273,
6003,
18,
588,
2375,
5621,
1082,
202,
430,
261,
3168,
18,
588,
559,
1435,
422,
467,
1420,
18,
17357,
597,
6003,
2375,
18,
1808,
12,
10590,
743,
3719,
288,
9506,
2
] |
else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn
|
else if ( StyleRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn
|
public void end( ) throws SAXException { String value = text.toString( ); assert struct != null; if ( NULL_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_NULL; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_NULL; } if ( NOT_NULL_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_NOT_NULL; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_NOT_NULL; } if ( TRUE_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_TRUE; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_TRUE; } if ( FALSE_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_FALSE; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_FALSE; } setMember( struct, propDefn.getName( ), name, value ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/CompatibleOperatorState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleOperatorState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
679,
12,
262,
1216,
14366,
202,
95,
202,
202,
780,
460,
273,
977,
18,
10492,
12,
11272,
202,
202,
11231,
1958,
480,
446,
31,
202,
202,
430,
261,
3206,
67,
4051,
18,
14963,
5556,
12,
460,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
4008,
3418,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
11126,
67,
26110,
67,
8560,
31,
1082,
202,
12107,
309,
261,
1635,
2175,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
8352,
67,
26110,
67,
8560,
31,
202,
202,
97,
202,
202,
430,
261,
4269,
67,
8560,
67,
4051,
18,
14963,
5556,
12,
460,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
4008,
3418,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
11126,
67,
26110,
67,
4400,
67,
8560,
31,
1082,
202,
12107,
309,
261,
1635,
2175,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
8352,
67,
26110,
67,
4400,
67,
8560,
31,
202,
202,
97,
202,
202,
430,
261,
5383,
67,
4051,
18,
14963,
5556,
12,
460,
262,
262,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
12,
262,
1216,
14366,
202,
95,
202,
202,
780,
460,
273,
977,
18,
10492,
12,
11272,
202,
202,
11231,
1958,
480,
446,
31,
202,
202,
430,
261,
3206,
67,
4051,
18,
14963,
5556,
12,
460,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
4008,
3418,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
11126,
67,
26110,
67,
8560,
31,
1082,
202,
12107,
309,
261,
1635,
2175,
18,
26110,
67,
19630,
18,
14963,
5556,
12,
2270,
3262,
82,
6862,
202,
18,
17994,
12,
262,
262,
262,
9506,
202,
1132,
273,
29703,
10538,
2918,
18,
8352,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.