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
tgtItem.setImplementations((String) impMap.get(tgtClsName));
protected Collection translateItem(Item srcItem) throws ObjectStoreException, FlyMineException { // see if there are any SubclassRestriction template for this class String tgtClsName = null; Set templates = (Set) templateMap.get(srcItem.getClassName()); if (templates != null) { Iterator i = templates.iterator(); while (i.hasNext() && tgtClsName == null) { SubclassRestriction sr = buildSubclassRestriction(srcItem, (SubclassRestriction) i.next()); tgtClsName = (String) restrictionMap.get(sr); } } if (tgtClsName == null) { tgtClsName = (String) equivMap.get(srcItem.getClassName()); if (tgtClsName == null) { // should perhaps log error and ignore this item? throw new FlyMineException("Could not find a target class name for class: " + srcItem.getClassName()); } } // if class is not in target namespace then don't bother translating it if (!OntologyUtil.getNamespaceFromURI(tgtClsName).equals(tgtNs)) { return null; } Item tgtItem = new Item(); tgtItem.setIdentifier(srcItem.getIdentifier()); tgtItem.setClassName(tgtClsName); tgtItem.setImplementations((String) impMap.get(tgtClsName)); //attributes for (Iterator i = srcItem.getAttributes().iterator(); i.hasNext();) { Attribute att = (Attribute) i.next(); if (!att.getName().equals("nonUniqueId")) { String attSrcURI = srcItem.getClassName() + "__" + att.getName(); String attTgtURI = getTargetFieldURI(tgtClsName, attSrcURI); if (attTgtURI == null) { throw new FlyMineException("no target attribute found for " + attSrcURI + " in class " + tgtClsName); } if (OntologyUtil.getNamespaceFromURI(attTgtURI).equals(tgtNs)) { Attribute newAtt = new Attribute(); newAtt.setName(attTgtURI.split("__")[1]); newAtt.setValue(StringUtil.duplicateQuotes(att.getValue())); tgtItem.addAttribute(newAtt); } } } //references for (Iterator i = srcItem.getReferences().iterator(); i.hasNext();) { Reference ref = (Reference) i.next(); String refSrcURI = srcItem.getClassName() + "__" + ref.getName(); String refTgtURI = getTargetFieldURI(tgtClsName, refSrcURI); if (refTgtURI == null) { throw new FlyMineException("no target reference found for " + refSrcURI + " in class " + tgtClsName); } if (OntologyUtil.getNamespaceFromURI(refTgtURI).equals(tgtNs)) { Reference newRef = new Reference(); newRef.setName(refTgtURI.split("__")[1]); newRef.setRefId(ref.getRefId()); tgtItem.addReference(newRef); } } //collections for (Iterator i = srcItem.getCollections().iterator(); i.hasNext();) { ReferenceList col = (ReferenceList) i.next(); String colSrcURI = srcItem.getClassName() + "__" + col.getName(); String colTgtURI = getTargetFieldURI(tgtClsName, colSrcURI); if (colTgtURI == null) { throw new FlyMineException("no target collection found for " + colSrcURI + " in class " + tgtClsName); } if (OntologyUtil.getNamespaceFromURI(colTgtURI).equals(tgtNs)) { ReferenceList newCol = new ReferenceList(); newCol.setName(colTgtURI.split("__")[1]); newCol.setRefIds(col.getRefIds()); tgtItem.addCollection(newCol); } } return Collections.singleton(tgtItem); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/2d0aaa48f801275268717be237e992177cf0e4ba/DataTranslator.java/buggy/intermine/src/java/org/intermine/dataconversion/DataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2200, 4204, 1180, 12, 1180, 1705, 1180, 13, 1216, 1033, 21151, 16, 478, 715, 49, 558, 503, 288, 3639, 368, 2621, 309, 1915, 854, 1281, 2592, 1106, 11670, 1542, 364, 333, 667, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2200, 4204, 1180, 12, 1180, 1705, 1180, 13, 1216, 1033, 21151, 16, 478, 715, 49, 558, 503, 288, 3639, 368, 2621, 309, 1915, 854, 1281, 2592, 1106, 11670, 1542, 364, 333, 667, 3639, ...
d.setTitle(title); }
d.setTitle (title);
public synchronized void setTitle(String title) { this.title = title; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle(title); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 14109, 12, 780, 2077, 13, 288, 202, 202, 2211, 18, 2649, 273, 2077, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 288, 1082, 202, 6353, 6813, 302, 273, 261, 6353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 14109, 12, 780, 2077, 13, 288, 202, 202, 2211, 18, 2649, 273, 2077, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 288, 1082, 202, 6353, 6813, 302, 273, 261, 6353, ...
if (cReturnClass.equals(org.hsqldb.Result.class)) {
if (returnClass.equals(org.hsqldb.Result.class)) {
Function(String name, String fqn, boolean isSimple) throws HsqlException { this.name = name; this.isSimple = isSimple;// cSession = session; sFunction = fqn; fID = Library.functionID(fqn); int i = fqn.lastIndexOf('.'); Trace.check(i != -1, Trace.UNEXPECTED_TOKEN, fqn); String classname = fqn.substring(0, i); mMethod = (Method) methodCache.get(fqn); if (mMethod == null) { String methodname = fqn.substring(i + 1); Class classinstance = null; try { classinstance = Class.forName(classname); } catch (Exception e) { throw Trace.error(Trace.FUNCTION_NOT_FOUND, Trace.Message_Pair, new Object[] { classname, e }); } // public only, but includes those inherited from // superclasses and superinterfaces. List is unordered. Method[] methods = classinstance.getMethods(); for (i = 0; i < methods.length; i++) { Method m = methods[i]; if (m.getName().equals(methodname) && Modifier.isStatic(m.getModifiers())) { mMethod = m; break; } } Trace.check(mMethod != null, Trace.UNKNOWN_FUNCTION, methodname); methodCache.put(fqn, mMethod); } cReturnClass = mMethod.getReturnType(); if (cReturnClass.equals(org.hsqldb.Result.class)) { // For now, we can write stored procedures whose // descriptor explicitly specifies the above return type. // Later, this will be modified or replaced to provide proper // support for jdbcCallableStatement OUT mode return parameter, // multiple results (Result.MULTI etc.) iReturnType = Types.OTHER; } else { // Now we support the following construction-time return type // Classes, as specified by the method descriptor: // // 1.) any primitive or primitive wrapper type, except Byte(.TYPE), // Short(.TYPE) and Float(.TYPE) (TBD; narrow if no truncation) // // 2.) any primitive array type // // 3.) any non-primitive array whose base component implements // java.io.Serializable // // 4.) any class implementing java.io.Serializable, except those // described in 1.) as currently unsupported // // 5.) java.lang.Object // // For java.lang.Object, checking is deferred from the construction // stage to the evaluation stage. In general, for the evaluation // to succeed, the runtime class of the retrieved Object must be // // 1.) any primitive or primitive wrapper type, except Byte(.TYPE), // Short(.TYPE) and Float(.TYPE) (TBD; narrow if no trunction) // // 2.) any primitive array type // 3.) any non-primitive array whose base component implements // java.io.Serializable // // 4.) any class implementing java.io.Serializable, except those // described in 1.) as currently unsupported // // Additionally, it is possible for the evaluation to succeed under // an SQL CALL if the runtime Class of the returned Object is not // from the list above but is from the list below: // // 1.) is org.hsqldb.Result // 2.) is org.hsqldb.jdbc.jdbcResultSet // // In these special cases, the statement executor notices the // types and presents the client with a view the underlying result // rather than with a view of the object as an opaque scalar value // iReturnType = Types.getParameterTypeNr(cReturnClass); } aArgClasses = mMethod.getParameterTypes(); iArgCount = aArgClasses.length; iArgType = new int[iArgCount]; bArgNullable = new boolean[iArgCount]; for (i = 0; i < aArgClasses.length; i++) { Class a = aArgClasses[i]; String type = a.getName(); if ((i == 0) && a.equals(Connection.class)) { // TODO: provide jdbc:default:connection url functionality // // only the first parameter can be a Connection bConnection = true; } else { // see discussion above for iReturnType iArgType[i] = Types.getParameterTypeNr(a); bArgNullable[i] = !a.isPrimitive(); } } iSqlArgCount = iArgCount; if (bConnection) { iSqlArgCount--; iSqlArgStart = 1; } else { iSqlArgStart = 0; } eArg = new Expression[iArgCount]; }
49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/85451488a2ab264234da4a594e06150eff5d292f/Function.java/buggy/base-one/trunk/src/org/hsqldb/Function.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4284, 12, 780, 508, 16, 514, 23518, 16, 1250, 353, 5784, 13, 1216, 31714, 503, 288, 3639, 333, 18, 529, 377, 273, 508, 31, 3639, 333, 18, 291, 5784, 273, 353, 5784, 31, 759, 3639, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4284, 12, 780, 508, 16, 514, 23518, 16, 1250, 353, 5784, 13, 1216, 31714, 503, 288, 3639, 333, 18, 529, 377, 273, 508, 31, 3639, 333, 18, 291, 5784, 273, 353, 5784, 31, 759, 3639, 276...
public org.quickfix.field.FutSettDate getFutSettDate() throws FieldNotFound { org.quickfix.field.FutSettDate value = new org.quickfix.field.FutSettDate();
public quickfix.field.FutSettDate getFutSettDate() throws FieldNotFound { quickfix.field.FutSettDate value = new quickfix.field.FutSettDate();
public org.quickfix.field.FutSettDate getFutSettDate() throws FieldNotFound { org.quickfix.field.FutSettDate value = new org.quickfix.field.FutSettDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/BidRequest.java/clean/src/java/src/quickfix/fix43/BidRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 42, 322, 694, 88, 1626, 2812, 322, 694, 88, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 42, 322, 694, 88, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 42, 322, 694, 88, 1626, 2812, 322, 694, 88, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 42, 322, 694, 88, 162...
k1 = mySystem.calculateDerivative(x,y);
k1 = mySystem.calculateDerivative(x,y,k1);
double[] step(double x, double [] y, double h){ if (k1 == null || k1.length != y.length){ k1 = new double[y.length]; k2 = new double[y.length]; k3 = new double[y.length]; k4 = new double[y.length]; yk1 = new double[y.length]; yk2 = new double[y.length]; yk3 = new double[y.length]; } k1 = mySystem.calculateDerivative(x,y); for(int i=0;i<yk1.length;i++) yk1[i]=y[i]+k1[i]*0.5*h; k2 = mySystem.calculateDerivative(x+0.5*h,yk1); for(int i=0;i<yk2.length;i++) yk2[i]=y[i]+k2[i]*0.5*h; k3 = mySystem.calculateDerivative(x+0.5*h,yk2); for(int i=0;i<yk3.length;i++) yk3[i]=y[i]+k3[i]*h; k4 = mySystem.calculateDerivative(x+h,yk3); for(int i=0;i<nextY.length;i++) nextY[i] = y[i] + (h/6)*(k1[i]+2*k2[i]+2*k3[i]+k4[i]); return nextY; }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/eb8ca161480f8627b80a06f1bfefefc84c366893/RK4Solver.java/clean/trunk/Mesquite Project/Source/mesquite/correl/lib/RK4Solver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 9056, 8526, 2235, 12, 9056, 619, 16, 1645, 5378, 677, 16, 1645, 366, 15329, 202, 202, 430, 261, 79, 21, 422, 446, 747, 417, 21, 18, 2469, 480, 677, 18, 2469, 15329, 1082, 202, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9056, 8526, 2235, 12, 9056, 619, 16, 1645, 5378, 677, 16, 1645, 366, 15329, 202, 202, 430, 261, 79, 21, 422, 446, 747, 417, 21, 18, 2469, 480, 677, 18, 2469, 15329, 1082, 202, 79...
private static boolean expressionMustAssignVariableOrFail(PsiVariable field, PsiExpression expression, Set checkedMethods) {
private static boolean expressionMustAssignVariableOrFail(PsiVariable field, PsiExpression expression, Set<MethodSignature> checkedMethods) {
private static boolean expressionMustAssignVariableOrFail(PsiVariable field, PsiExpression expression, Set checkedMethods) { if (expression == null) { return false; } if (expression instanceof PsiThisExpression || expression instanceof PsiLiteralExpression || expression instanceof PsiSuperExpression || expression instanceof PsiClassObjectAccessExpression) { return false; } else if (expression instanceof PsiReferenceExpression) { return false; } else if (expression instanceof PsiMethodCallExpression) { return methodCallMustAssignVariableOrFail(expression, field, checkedMethods); } else if (expression instanceof PsiNewExpression) { return newExpressionMustAssignVariableOrFail(expression, field, checkedMethods); } else if (expression instanceof PsiArrayInitializerExpression) { final PsiArrayInitializerExpression array = (PsiArrayInitializerExpression) expression; final PsiExpression[] initializers = array.getInitializers(); for (int i = 0; i < initializers.length; i++) { final PsiExpression initializer = initializers[i]; if (expressionMustAssignVariableOrFail(field, initializer, checkedMethods)) { return true; } } return false; } else if (expression instanceof PsiTypeCastExpression) { final PsiTypeCastExpression typeCast = (PsiTypeCastExpression) expression; final PsiExpression operand = typeCast.getOperand(); return expressionMustAssignVariableOrFail(field, operand, checkedMethods); } else if (expression instanceof PsiArrayAccessExpression) { final PsiArrayAccessExpression accessExpression = (PsiArrayAccessExpression) expression; final PsiExpression arrayExpression = accessExpression.getArrayExpression(); final PsiExpression indexExpression = accessExpression.getIndexExpression(); return expressionMustAssignVariableOrFail(field, arrayExpression, checkedMethods) || expressionMustAssignVariableOrFail(field, indexExpression, checkedMethods); } else if (expression instanceof PsiPrefixExpression) { final PsiPrefixExpression prefixExpression = (PsiPrefixExpression) expression; final PsiExpression operand = prefixExpression.getOperand(); return expressionMustAssignVariableOrFail(field, operand, checkedMethods); } else if (expression instanceof PsiPostfixExpression) { final PsiPostfixExpression postfixExpression = (PsiPostfixExpression) expression; final PsiExpression operand = postfixExpression.getOperand(); return expressionMustAssignVariableOrFail(field, operand, checkedMethods); } else if (expression instanceof PsiBinaryExpression) { final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) expression; final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); return expressionMustAssignVariableOrFail(field, lhs, checkedMethods) || expressionMustAssignVariableOrFail(field, rhs, checkedMethods); } else if (expression instanceof PsiConditionalExpression) { final PsiConditionalExpression conditional = (PsiConditionalExpression) expression; final PsiExpression condition = conditional.getCondition(); if (expressionMustAssignVariableOrFail(field, condition, checkedMethods)) { return true; } final PsiExpression thenExpression = conditional.getThenExpression(); final PsiExpression elseExpression = conditional.getElseExpression(); return expressionMustAssignVariableOrFail(field, thenExpression, checkedMethods) && expressionMustAssignVariableOrFail(field, elseExpression, checkedMethods); } else if (expression instanceof PsiAssignmentExpression) { final PsiAssignmentExpression assignment = (PsiAssignmentExpression) expression; final PsiExpression lhs = assignment.getLExpression(); if (expressionMustAssignVariableOrFail(field, lhs, checkedMethods)) { return true; } final PsiExpression rhs = assignment.getRExpression(); if (expressionMustAssignVariableOrFail(field, rhs, checkedMethods)) { return true; } if (lhs instanceof PsiReferenceExpression) { final PsiElement element = ((PsiReference) lhs).resolve(); if (element != null && field != null && element.equals(field)) { return true; } } return false; } else { return false; } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d46d291193579a7564649b4881c7ea8e02eda5b/InitializationUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2652, 10136, 4910, 3092, 18492, 12, 52, 7722, 3092, 652, 16, 453, 7722, 2300, 2652, 16, 1000, 32, 1305, 5374, 34, 5950, 4712, 13, 288, 3639, 309, 261, 8692, 422, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 2652, 10136, 4910, 3092, 18492, 12, 52, 7722, 3092, 652, 16, 453, 7722, 2300, 2652, 16, 1000, 32, 1305, 5374, 34, 5950, 4712, 13, 288, 3639, 309, 261, 8692, 422, 446, 1...
if (node.hasChildNodes()) { Node toMove = root.importNode(contentChild, true); xpathNode.appendChild(toMove); }
appendChildToResultIterator(root, finalContent, xpathNode);
private void contractProcessingEnd() throws SAXException { try { contract.setContractResultData(); Document node = (Document) contract.getContractResultData() .getNode(); Document root = this.rootNode.getOwnerDocument(); /* * debug code - uncomment it if you need it! will output the * contract resulting data to sysout * * DOMSource source = new DOMSource(node); StreamResult result = new * StreamResult(System.out); * contract.getContractTransformer().transform(source, result); */ /* * append this node to the current path after testing where there is * a fixed location for the contract content. If so then add it * there. */ NodeList contentChildren = node.getElementsByTagNameNS( DispatcherHelper.DISPATCHER_NAMESPACE_URI, "part"); for (int i = 0; i < contentChildren.getLength(); i++) { Element contentChild = (Element) contentChildren.item(i); if (contentChild != null) { String location = contentChild.getAttribute("xpath"); if (location.equals("") | location == null) { String[] xpath = DOMUtil.buildPathArray(path); Node xpathNode = DOMUtil.getFirstNodeFromPath(rootNode, xpath, false); if (xpathNode != null) { if (node.hasChildNodes()) { Node toMove = root.importNode(contentChild, true); xpathNode.appendChild(toMove); } } } else { if (location.charAt(0) == '/') location = "result" + location; else location = "result/" + location; Node xpathNode; String[] xpath = DOMUtil.buildPathArray(location); xpathNode = DOMUtil.getFirstNodeFromPath(rootNode, xpath, false); if (xpathNode != null) { if (node.hasChildNodes()) { Node toMove = root.importNode(contentChild, true); xpathNode.appendChild(toMove); } } else { xpathNode = createXpathNode(location); if (node.hasChildNodes()) { Node toMove = root.importNode(contentChild, true); xpathNode.appendChild(toMove); } } } } } } catch (Exception e) { String error = "dispatcherError: " + DispatcherException.ERROR_500 + "\n" + "The contract \"" + contract.getContractName() + "\" has thrown thrown an exception while trying to transform the final markup. \n\n" + "dispatcherErrorStack:\n " + e; getLogger().error(error); throw new SAXException(error); } finally { this.contract.recycle(); } }
6140 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6140/6d6524b5db591cbf723bf7b6da8316b1b446826e/DispatcherTransformer.java/clean/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6835, 7798, 1638, 1435, 1216, 14366, 288, 3639, 775, 288, 5411, 6835, 18, 542, 8924, 1253, 751, 5621, 5411, 4319, 756, 273, 261, 2519, 13, 6835, 18, 588, 8924, 1253, 751, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6835, 7798, 1638, 1435, 1216, 14366, 288, 3639, 775, 288, 5411, 6835, 18, 542, 8924, 1253, 751, 5621, 5411, 4319, 756, 273, 261, 2519, 13, 6835, 18, 588, 8924, 1253, 751, 1435,...
public XMLReader createXMLReader() throws SAXException { XMLFilter filter = new XMLFilterImpl() { ForwardingContentHandler forwardingContentHandler = new ForwardingContentHandler(null, true) { public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // Jing doesn't like xmlns attribute. Strip them out ! atts = XMLUtils.stripNamespaceAttributes(atts); super.startElement(namespaceURI, localName, qName, atts); } public void setDocumentLocator(Locator locator) { super.setDocumentLocator(locator); loc[0] = locator; } }; public void parse(InputSource _input) throws IOException { if(_input.getSystemId() == null) input.getOutput().read(context, forwardingContentHandler); else { URL url = URLFactory.createURL( (loc[0] != null && loc[0].getSystemId() != null) ? loc[0].getSystemId() : null, _input.getSystemId()); Processor urlgen = new URLGenerator(url); urlgen.createOutput(ProcessorImpl.OUTPUT_DATA).read(context, forwardingContentHandler); } } public void setContentHandler(ContentHandler handler) { forwardingContentHandler.setContentHandler(handler); super.setContentHandler(handler); } }; return filter; }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/45a8c27d534f029fb2eaa493fdf32ce699b72d68/RNGValidationProcessor.java/clean/src/java/org/orbeon/oxf/processor/validation/RNGValidationProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 4201, 2514, 2640, 4201, 2514, 1435, 15069, 55, 2501, 503, 95, 4201, 1586, 2188, 33, 2704, 4201, 1586, 2828, 1435, 95, 21487, 1350, 1503, 11565, 310, 1350, 1503, 33, 2704, 21487, 1350, 1503...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4201, 2514, 2640, 4201, 2514, 1435, 15069, 55, 2501, 503, 95, 4201, 1586, 2188, 33, 2704, 4201, 1586, 2828, 1435, 95, 21487, 1350, 1503, 11565, 310, 1350, 1503, 33, 2704, 21487, 1350, 1503...
public org.quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { org.quickfix.field.RepurchaseTerm value = new org.quickfix.field.RepurchaseTerm();
public quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { quickfix.field.RepurchaseTerm value = new quickfix.field.RepurchaseTerm();
public org.quickfix.field.RepurchaseTerm getRepurchaseTerm() throws FieldNotFound { org.quickfix.field.RepurchaseTerm value = new org.quickfix.field.RepurchaseTerm(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix44/NewOrderCross.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4065, 5561, 12688, 12104, 4065, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4065, 5561, 12688, 12104, 4065, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 426, 12688, 12104, 4065, ...
while(key.length() > 0 && key.charAt(0) == ' ')
while((key.length() > 0) && (key.charAt(0) == ' '))
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return false; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.getNodeUpdater().Update(); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit(); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && n.directTMCI == this) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return false; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String mimeType = DefaultMIMETypes.guessMIMEType(line); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: "+mimeType + "\r\n"); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: "+key.getInsertURI().toString(false)+"\r\n"); outsb.append("Request URI: "+key.getURI().toString(false)+"\r\n"); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI+"\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"+"\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+key.getURI().toString(false)+"testsite/"); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".length()); } while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to add peer to node by noderef in "+key+"\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); try{ n.config.get("node").getOption("name").setValue(key); Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } n.config.store(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for "+nodeIdentifier); } else { outsb.append("disable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for "+nodeIdentifier); } else { outsb.append("enable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for "+nodeIdentifier); } else { outsb.append("false for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for "+nodeIdentifier); } else { outsb.append("peer removal failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); return false; }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, ...
throw new PluginException("Could not instantiate detector class", e);
throw new PluginException("Could not instantiate detector class: " + e, e);
private void init() throws PluginException { Document pluginDescriptor; // a.k.a, "findbugs.xml" Document messageCollection; // a.k.a., "messages.xml" or localization thereof try { URL descriptorURL = findResource("findbugs.xml"); if (descriptorURL == null) throw new PluginException("Couldn't find \"findbugs.xml\" in plugin"); SAXReader reader = new SAXReader(); pluginDescriptor = reader.read(descriptorURL); } catch (DocumentException e) { throw new PluginException("Couldn't parse \"findbugs.xml\"", e); } try { URL messageURL = null; Locale locale = Locale.getDefault(); String language = locale.getLanguage(); String country = locale.getCountry(); if (!country.equals("")) messageURL = findResource("messages_" + language + "_" + country + ".xml"); if (messageURL == null) messageURL = findResource("messages_" + language + ".xml"); if (messageURL == null) messageURL = findResource("messages.xml"); if (messageURL == null) throw new PluginException("Couldn't find messages.xml"); SAXReader reader = new SAXReader(); messageCollection = reader.read(messageURL); } catch (DocumentException e) { e.printStackTrace(); throw new PluginException("Couldn't parse \"messages.xml\"", e); } // Create a DetectorFactory for all Detector nodes HashMap<String, DetectorFactory> detectorFactoryMap = new HashMap<String, DetectorFactory>(); try { detectorFactoryList = new ArrayList<DetectorFactory>(); List detectorNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/Detector"); for (Iterator i = detectorNodeList.iterator(); i.hasNext(); ) { Node detectorNode = (Node) i.next(); String className = detectorNode.valueOf("@class"); String speed = detectorNode.valueOf("@speed"); String disabled = detectorNode.valueOf("@disabled"); String reports = detectorNode.valueOf("@reports"); //System.out.println("Found detector: class="+className+", disabled="+disabled); Class detectorClass = loadClass(className); DetectorFactory factory = new DetectorFactory(detectorClass, !disabled.equals("true"), speed, reports); detectorFactoryList.add(factory); detectorFactoryMap.put(className, factory); } } catch (ClassNotFoundException e) { throw new PluginException("Could not instantiate detector class", e); } // Get detail HTML for Detectors List detectorMessageList = messageCollection.selectNodes("/MessageCollection/Detector"); for (Iterator i = detectorMessageList.iterator(); i.hasNext(); ) { Element detector = (Element) i.next(); Element details = detector.element("Details"); String className = detector.valueOf("@class"); DetectorFactory factory = detectorFactoryMap.get(className); if (factory == null) throw new PluginException("In \"messages.xml\": unknown detector \"" + className + "\""); if (details != null) { String detailHTML = details.getText(); StringBuffer buf = new StringBuffer(); buf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"); buf.append("<HTML><HEAD><TITLE>Detector Description</TITLE></HEAD><BODY>\n"); buf.append(detailHTML); buf.append("</BODY></HTML>\n"); factory.setDetailHTML(buf.toString()); } } // Create BugPatterns bugPatternList = new ArrayList<BugPattern>(); List bugPatternNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/BugPattern"); for (Iterator i = bugPatternNodeList.iterator(); i.hasNext(); ) { Node bugPatternNode = (Node) i.next(); String type = bugPatternNode.valueOf("@type"); String abbrev = bugPatternNode.valueOf("@abbrev"); String category = bugPatternNode.valueOf("@category"); String experimental = bugPatternNode.valueOf("@experimental"); // Find the matching element in messages.xml String query = "/MessageCollection/BugPattern[@type='" + type + "']"; Node messageNode = (Node) messageCollection.selectSingleNode(query); if (messageNode == null) throw new PluginException("messages.xml missing BugPattern element for type " + type); String shortDesc = getChildText(messageNode, "ShortDescription"); String longDesc = getChildText(messageNode, "LongDescription"); String detailText = getChildText(messageNode, "Details"); BugPattern bugPattern = new BugPattern(type, abbrev, category, Boolean.valueOf(experimental).booleanValue(), shortDesc, longDesc, detailText); bugPatternList.add(bugPattern); } // Create BugCodes bugCodeList = new ArrayList<BugCode>(); List bugCodeNodeList = messageCollection.selectNodes("/MessageCollection/BugCode"); for (Iterator i = bugCodeNodeList.iterator(); i.hasNext(); ) { Node bugCodeNode = (Node) i.next(); String abbrev = bugCodeNode.valueOf("@abbrev"); if (abbrev.equals("")) throw new PluginException("BugCode element with missing abbrev attribute"); String description = bugCodeNode.getText(); BugCode bugCode = new BugCode(abbrev, description); bugCodeList.add(bugCode); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/9fc71825069a78e0212b78f5929515a9ed08abb2/PluginLoader.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/PluginLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 1216, 6258, 503, 288, 202, 202, 2519, 1909, 3187, 31, 368, 279, 18, 79, 18, 69, 16, 315, 4720, 19381, 18, 2902, 6, 202, 202, 2519, 883, 2532, 31, 368, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 1216, 6258, 503, 288, 202, 202, 2519, 1909, 3187, 31, 368, 279, 18, 79, 18, 69, 16, 315, 4720, 19381, 18, 2902, 6, 202, 202, 2519, 883, 2532, 31, 368, 279,...
public int matchLevel( ISourceElementCallbackDelegate node ){
public int matchLevel( ISourceElementCallbackDelegate node, LimitTo limit ){
public int matchLevel( ISourceElementCallbackDelegate node ){ if( !( node instanceof IASTClassSpecifier ) && !( node instanceof IASTEnumerationSpecifier ) ) return IMPOSSIBLE_MATCH; String nodeName = ((IASTOffsetableNamedElement)node).getName(); //check name, if simpleName == null, its treated the same as "*" if( simpleName != null && !matchesName( simpleName, nodeName.toCharArray() ) ){ return IMPOSSIBLE_MATCH; } //create char[][] out of full name, String [] fullName = ((IASTQualifiedNameElement) node).getFullyQualifiedName(); char [][] qualName = new char [ fullName.length - 1 ][]; for( int i = 0; i < fullName.length - 1; i++ ){ qualName[i] = fullName[i].toCharArray(); } //check containing scopes if( !matchQualifications( qualifications, qualName ) ){ return IMPOSSIBLE_MATCH; } //check type if( classKind != null ){ if( node instanceof IASTClassSpecifier ){ IASTClassSpecifier clsSpec = (IASTClassSpecifier) node; return ( classKind == clsSpec.getClassKind() ) ? ACCURATE_MATCH : IMPOSSIBLE_MATCH; } else { return ( classKind == ASTClassKind.ENUM ) ? ACCURATE_MATCH : IMPOSSIBLE_MATCH; } } return ACCURATE_MATCH; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b97611936d9c4fa34ca84c99f3a546520283fc8e/ClassDeclarationPattern.java/buggy/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/ClassDeclarationPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 845, 2355, 12, 467, 1830, 1046, 2428, 9586, 756, 262, 95, 9506, 202, 430, 12, 401, 12, 756, 1276, 467, 9053, 797, 21416, 262, 597, 401, 12, 756, 1276, 467, 9053, 21847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 845, 2355, 12, 467, 1830, 1046, 2428, 9586, 756, 262, 95, 9506, 202, 430, 12, 401, 12, 756, 1276, 467, 9053, 797, 21416, 262, 597, 401, 12, 756, 1276, 467, 9053, 21847, ...
repaint();
public void doRemoveRule() { Object sel = _persList.getSelectedValue(); if (!(sel instanceof NavPerspective)) { System.out.println("doRemoveRule: unexepected non-NavPerspective"); return; } NavPerspective np = (NavPerspective) sel; Object selRule = _rulesList.getSelectedValue(); if (!(selRule instanceof TreeModelPrereqs)) { System.out.println("doRemoveRule: unexepected non-TreeModelPrereqs"); return; } TreeModelPrereqs tm = (TreeModelPrereqs) selRule; np.removeSubTreeModel(tm); _rulesList.clearSelection(); _rulesList.setListData(Converter.convert(np.getSubTreeModels())); //_ruleLibList.repaint(); //_rulesList.repaint(); repaint(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/47459e34598689934ef49f70e2e4e7d7d210d477/NavigatorConfigDialog.java/clean/src_new/org/argouml/ui/NavigatorConfigDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 741, 3288, 2175, 1435, 288, 565, 1033, 357, 273, 389, 10422, 682, 18, 588, 7416, 620, 5621, 565, 309, 16051, 12, 1786, 1276, 423, 842, 14781, 16772, 3719, 288, 1377, 2332, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 741, 3288, 2175, 1435, 288, 565, 1033, 357, 273, 389, 10422, 682, 18, 588, 7416, 620, 5621, 565, 309, 16051, 12, 1786, 1276, 423, 842, 14781, 16772, 3719, 288, 1377, 2332, 18, ...
public QuickFixManager(final GuiEditor editor, final T component) { if (editor == null) { throw new IllegalArgumentException("editor cannot be null"); } if (component == null) { throw new IllegalArgumentException("component cannot be null"); }
public QuickFixManager(@NotNull final GuiEditor editor, @NotNull final T component) {
public QuickFixManager(final GuiEditor editor, final T component) { if (editor == null) { //noinspection HardCodedStringLiteral throw new IllegalArgumentException("editor cannot be null"); } if (component == null) { //noinspection HardCodedStringLiteral throw new IllegalArgumentException("component cannot be null"); } myEditor = editor; myComponent = component; myAlarm = new Alarm(); myShowHintRequest = new MyShowHintRequest(this); (new VisibilityWatcherImpl(this, component)).install(myComponent); myComponent.addFocusListener(new FocusListenerImpl(this)); // Alt+Enter new ShowHintAction(this, component); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/872606c8bbcbe966006f2c0078aaec113c64e129/QuickFixManager.java/clean/ui-designer/impl/com/intellij/uiDesigner/quickFixes/QuickFixManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 19884, 8585, 1318, 12, 6385, 611, 4881, 6946, 4858, 16, 727, 399, 1794, 13, 288, 565, 309, 261, 9177, 422, 446, 13, 288, 1377, 368, 13242, 670, 1060, 1085, 72, 28565, 1377, 604, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19884, 8585, 1318, 12, 6385, 611, 4881, 6946, 4858, 16, 727, 399, 1794, 13, 288, 565, 309, 261, 9177, 422, 446, 13, 288, 1377, 368, 13242, 670, 1060, 1085, 72, 28565, 1377, 604, 3...
if (manager != null) updateManager(manager);
if (manager != null) { updateManager(manager); }
public void activityManagerChanged( ActivityManagerEvent activityManagerEvent) { Set activityIds = mutableActivityManager .getEnabledActivityIds(); // only update the windows if we've not processed this new enablement state already. if (!activityIds.equals(lastEnabled)) { lastEnabled = new HashSet(activityIds); // abort if the workbench isn't running if (!PlatformUI.isWorkbenchRunning()) return; // refresh the managers on all windows. final IWorkbench workbench = PlatformUI .getWorkbench(); IWorkbenchWindow[] windows = workbench .getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { if (windows[i] instanceof WorkbenchWindow) { final WorkbenchWindow window = (WorkbenchWindow) windows[i]; final ProgressMonitorDialog dialog = new ProgressMonitorDialog( window.getShell()); final IRunnableWithProgress runnable = new IRunnableWithProgress() { /** * When this operation should open a dialog */ private long openTime; /** * Whether the dialog has been opened yet. */ private boolean dialogOpened = false; /* (non-Javadoc) * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ public void run(IProgressMonitor monitor) { openTime = System .currentTimeMillis() + workbench .getProgressService() .getLongOperationTime(); //two work units - updating the window bars, and updating view bars monitor .beginTask( ActivityMessages.ManagerTask, 2); monitor .subTask(ActivityMessages.ManagerWindowSubTask); //update window managers... updateWindowBars(window); monitor.worked(1); monitor .subTask(ActivityMessages.ManagerViewsSubTask); // update all of the (realized) views in all of the pages IWorkbenchPage[] pages = window .getPages(); for (int j = 0; j < pages.length; j++) { IWorkbenchPage page = pages[j]; IViewReference[] refs = page .getViewReferences(); for (int k = 0; k < refs.length; k++) { IViewPart part = refs[k] .getView(false); if (part != null) { updateViewBars(part); } } } monitor.worked(1); monitor.done(); } /** * Update the managers on the given given view. * * @param part the view to update */ private void updateViewBars( IViewPart part) { IViewSite viewSite = part .getViewSite(); // check for badly behaving or badly initialized views if (viewSite == null) return; IActionBars bars = viewSite .getActionBars(); IContributionManager manager = bars .getMenuManager(); if (manager != null) updateManager(manager); manager = bars.getToolBarManager(); if (manager != null) updateManager(manager); manager = bars .getStatusLineManager(); if (manager != null) updateManager(manager); } /** * Update the managers on the given window. * * @param window the window to update */ private void updateWindowBars( final WorkbenchWindow window) { IContributionManager manager = window .getMenuBarManager(); if (manager != null) updateManager(manager); manager = window .getCoolBarManager2(); if (manager != null) updateManager(manager); manager = window .getToolBarManager2(); if (manager != null) updateManager(manager); manager = window .getStatusLineManager(); if (manager != null) updateManager(manager); } /** * Update the given manager in the UI thread. * This may also open the progress dialog if * the operation is taking too long. * * @param manager the manager to update */ private void updateManager( final IContributionManager manager) { if (!dialogOpened && System .currentTimeMillis() > openTime) { dialog.open(); dialogOpened = true; } manager.update(true); } }; // don't open the dialog by default - that'll be // handled by the runnable if we take too long dialog.setOpenOnRun(false); // run this in the UI thread workbench.getDisplay().asyncExec( new Runnable() { /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { BusyIndicator .showWhile( workbench .getDisplay(), new Runnable() { /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { try { dialog .run( false, false, runnable); } catch (InvocationTargetException e) { log(e); } catch (InterruptedException e) { log(e); } } }); } }); } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchActivitySupport.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/WorkbenchActivitySupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 5728, 1318, 5033, 12, 18701, 9621, 1318, 1133, 5728, 1318, 1133, 13, 288, 13491, 1000, 5728, 2673, 273, 16074, 6193, 1318, 27573, 263, 588, 1526, 6193, 2673, 5621, 13491, 368, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5397, 1071, 918, 5728, 1318, 5033, 12, 18701, 9621, 1318, 1133, 5728, 1318, 1133, 13, 288, 13491, 1000, 5728, 2673, 273, 16074, 6193, 1318, 27573, 263, 588, 1526, 6193, 2673, 5621, 13491, 368, 1...
return (DimensionValue) getProperty( MasterPage.WIDTH_PROP );
return (DimensionValue) getProperty( IMasterPageModel.WIDTH_PROP );
public DimensionValue getPageWidth( ) { return (DimensionValue) getProperty( MasterPage.WIDTH_PROP ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/MasterPageHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/MasterPageHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13037, 620, 8957, 2384, 12, 262, 202, 95, 202, 202, 2463, 261, 8611, 620, 13, 3911, 12, 13453, 1964, 18, 10023, 67, 15811, 11272, 202, 97, 2, 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, 0, 0, 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, 13037, 620, 8957, 2384, 12, 262, 202, 95, 202, 202, 2463, 261, 8611, 620, 13, 3911, 12, 13453, 1964, 18, 10023, 67, 15811, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -10...
public String toString() { return "scala.All"; }
public String toString() { return "scala.AllRef"; }
public String toString() { return "scala.All"; }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/dafb1f40f4f9dd7f296eadc47c842d1511e425a4/TypeAllRef.java/buggy/sources/scala/runtime/types/TypeAllRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 327, 315, 87, 771, 69, 18, 1595, 14432, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 327, 315, 87, 771, 69, 18, 1595, 14432, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
configuration = new XmlPlexusConfiguration( dom );
pomConfiguration = new XmlPlexusConfiguration( dom ); validatePomConfiguration( mojoDescriptor, pomConfiguration );
public void executeMojo( MavenSession session, MojoDescriptor mojoDescriptor ) throws ArtifactResolutionException, PluginManagerException, PluginExecutionException { PluginExecutionRequest request = null; if ( mojoDescriptor.getRequiresDependencyResolution() != null ) { ArtifactResolver artifactResolver = null; MavenProjectBuilder mavenProjectBuilder = null; try { artifactResolver = (ArtifactResolver) container.lookup( ArtifactResolver.ROLE ); mavenProjectBuilder = (MavenProjectBuilder) container.lookup( MavenProjectBuilder.ROLE ); resolveTransitiveDependencies( session, artifactResolver, mavenProjectBuilder, mojoDescriptor.getRequiresDependencyResolution() ); downloadDependencies( session, artifactResolver ); } catch ( ComponentLookupException e ) { throw new PluginManagerException( "Internal configuration error in plugin manager", e ); } finally { if ( artifactResolver != null ) { releaseComponent( artifactResolver ); } if ( mavenProjectBuilder != null ) { releaseComponent( mavenProjectBuilder ); } } } Plugin plugin = null; String goalName = mojoDescriptor.getId(); try { plugin = (Plugin) container.lookup( Plugin.ROLE, goalName ); plugin.setLog( session.getLog() ); // TODO: remove boolean newMojoTechnique = checkMojoTechnique( plugin.getClass() ); String goalId = null; // TODO: much less of this magic is needed - make the mojoDescriptor just store the first and second part int index = goalName.indexOf( ':' ); if ( index >= 0 ) { goalId = goalName.substring( index + 1 ); } // TODO: can probable refactor these a little when only the new plugin technique is in place Xpp3Dom dom = session.getProject().getGoalConfiguration( PluginDescriptor.getPluginIdFromGoal( goalName ), goalId ); PlexusConfiguration configuration; if ( dom == null ) { configuration = new XmlPlexusConfiguration( "configuration" ); } else { configuration = new XmlPlexusConfiguration( dom ); } ExpressionEvaluator expressionEvaluator = new PluginParameterExpressionEvaluator( session, pathTranslator ); configuration = mergeConfiguration( configuration, mojoDescriptor.getConfiguration() ); try { if ( newMojoTechnique ) { Map map = getPluginConfigurationFromExpressions( mojoDescriptor, configuration, expressionEvaluator ); populatePluginFields( plugin, configuration, map, expressionEvaluator ); } else { getLogger().warn( "WARNING: The mojo " + mojoDescriptor.getId() + " is using the OLD API" ); Map map = getPluginConfigurationFromExpressions( mojoDescriptor, configuration, expressionEvaluator ); request = createPluginRequest( configuration, map ); } } catch ( ExpressionEvaluationException e ) { throw new PluginExecutionException( "Unable to configure plugin", e ); } // !! This is ripe for refactoring to an aspect. // Event monitoring. String event = MavenEvents.MOJO_EXECUTION; EventDispatcher dispatcher = session.getEventDispatcher(); dispatcher.dispatchStart( event, goalName ); try { if ( newMojoTechnique ) { plugin.execute(); } else { plugin.execute( request ); } dispatcher.dispatchEnd( event, goalName ); } catch ( PluginExecutionException e ) { session.getEventDispatcher().dispatchError( event, goalName, e ); throw e; } // End event monitoring. } catch ( PluginConfigurationException e ) { String msg = "Error configuring plugin for execution of '" + goalName + "'."; throw new PluginExecutionException( msg, e ); } catch ( ComponentLookupException e ) { throw new PluginExecutionException( "Error looking up plugin: ", e ); } finally { releaseComponent( plugin ); } }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/ab91b7f4c29e6f0f9421e0cc03eedeffe9b478f5/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 49, 10007, 12, 17176, 2157, 1339, 16, 15931, 3187, 312, 10007, 3187, 262, 3639, 1216, 14022, 11098, 503, 16, 6258, 28020, 16, 6258, 14576, 565, 288, 3639, 6258, 3210, 691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 49, 10007, 12, 17176, 2157, 1339, 16, 15931, 3187, 312, 10007, 3187, 262, 3639, 1216, 14022, 11098, 503, 16, 6258, 28020, 16, 6258, 14576, 565, 288, 3639, 6258, 3210, 691, ...
s = _binaryHelper(INT_AND, op1, op2, VM_Type.IntType);
s = _binaryHelper(INT_AND, op1, op2, OPT_ClassLoaderProxy.IntType);
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcInfo.setInstruction(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcInfo.bcIndex; int code = bcInfo.getNextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcInfo.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcInfo.getShortValue())); break; case JBC_ldc: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc_w: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc2_w: pushDual(bcInfo.getConstantOperand(code)); break; case JBC_iload: s = do_iload(bcInfo.getLocalNumber()); break; case JBC_lload: s = do_lload(bcInfo.getLocalNumber()); break; case JBC_fload: s = do_fload(bcInfo.getLocalNumber()); break; case JBC_dload: s = do_dload(bcInfo.getLocalNumber()); break; case JBC_aload: s = do_aload(bcInfo.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = _aloadHelper(INT_ALOAD, ref, index, VM_Type.IntType); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = _aloadHelper(LONG_ALOAD, ref, index, VM_Type.LongType); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_Type.FloatType); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_Type.DoubleType); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_Type.ByteType); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_Type.BooleanType); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_Type.CharType); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_Type.ShortType); } break; case JBC_istore: s = do_store(bcInfo.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcInfo.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcInfo.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcInfo.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcInfo.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.IntType), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.LongType), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.FloatType), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.DoubleType), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) type = VM_Type.ByteType; else type = VM_Type.BooleanType; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.CharType), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.ShortType), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_Type.IntType); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_Type.LongType); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_Type.FloatType); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_Type.DoubleType); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_Type.IntType); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_Type.LongType); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_Type.FloatType); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_Type.DoubleType); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_Type.IntType); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_Type.LongType); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_Type.FloatType); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_Type.DoubleType); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_Type.FloatType); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_Type.DoubleType); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_Type.FloatType); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_Type.DoubleType); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_Type.IntType); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_Type.LongType); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_Type.FloatType); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_Type.DoubleType); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_Type.IntType); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_Type.LongType); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_Type.IntType); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_Type.LongType); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_Type.IntType); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_Type.LongType); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_Type.IntType); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_Type.LongType); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_Type.IntType); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_Type.LongType); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_Type.IntType); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_Type.LongType); } break; case JBC_iinc: { int index = bcInfo.getLocalNumber(); s = do_iinc(index, bcInfo.getByteValue()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_Type.LongType); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_Type.FloatType); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_Type.DoubleType); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_Type.IntType); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_Type.FloatType); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_Type.DoubleType); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_Type.IntType); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_Type.LongType); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_Type.DoubleType); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_Type.IntType); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_Type.LongType); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_Type.FloatType); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_Type.ByteType); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_Type.CharType); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_Type.ShortType); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_Type.IntType); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcInfo.getBranchTarget(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcInfo.getBranchTarget()); break; case JBC_ret: s = _retHelper(bcInfo.getLocalNumber()); break; case JBC_tableswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int low = bcInfo.getSwitchLowValue(); int high = bcInfo.getSwitchHighValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset; if ((v1 < low) || (v1 > high)) offset = defaultoff; else offset = bcInfo.getTableSwitchOffsetForConstant(v1, low, high); bcInfo.skipTableSwitchTargets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), new OPT_BranchProfileOperand(), number*2); double approxProb = 1/(number+1); // num targets + default for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); TableSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_lookupswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int numpairs = bcInfo.getLookupSwitchNumberOfPairs(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset = defaultoff; for (int i = 0; i < numpairs; ++i) { int match = bcInfo.getSwitchValue(i); if (match == v1) { offset = bcInfo.getSwitchTarget(i); bcInfo.skipLookupSwitchPairs(numpairs, i + 1); break; // for } else { bcInfo.skipSwitchValue(i); } } if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), new OPT_BranchProfileOperand(),numpairs*3); double approxProb = 1/(numpairs+1); // num targets + default for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand (bcInfo.getSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); LookupSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_Type retType = getRefTypeOf(op0); // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (retType != VM_Type.JavaLangObjectType) assertIsAssignable(gc.method.getReturnType(), getRefTypeOf(op0)); } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); // use results of field analysis to refine type. VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETSTATIC_UNRESOLVED:GETSTATIC; s = GetStatic.create(operator, t, makeStaticFieldRef(field)); // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (!unresolved && field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { operator = OPT_IRTools.getMoveOp(field.getType()); OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); s = null; break; } else { VM_Type rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_Type.JavaLangStringType) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand r = pop(fieldType); boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTSTATIC_UNRESOLVED:PUTSTATIC; s = PutStatic.create(operator, r, makeStaticFieldRef(field)); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_getfield: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); // use results of field analysis to refine type. if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETFIELD_UNRESOLVED:GETFIELD; s = GetField.create(operator, t, op1, makeInstanceFieldRef(field), getCurrentGuard()); push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putfield: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTFIELD_UNRESOLVED:PUTFIELD; s = PutField.create(operator, val, obj, makeInstanceFieldRef(field), getCurrentGuard()); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_invokevirtual: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_VIRTUAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(meth, unresolved); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } // try to reduce the number of targets. // If we succeed, we'll update meth, unresolved, // and s's method operand. OPT_Operand ref = Call.getParam(s, 0); boolean receiverClassResolved = false; boolean isExtant = false; VM_Type type = null; if (ref.isRegister()) { isExtant = ref.asRegister().isExtant(); type = ref.asRegister().type; } else if (ref.isStringConstant()) { isExtant = true; type = VM_Type.JavaLangStringType; } else if (VM.VerifyAssertions) VM.assert(false, "unexpected receiver"); receiverClassResolved = type.isResolved(); if ((meth.getDeclaringClass() != type) && type.isClassType()) { VM_Method vmeth = lookupMethod(meth, type.asClass()); if (vmeth != null && vmeth != meth) { // Update meth to be the refined vmeth meth = vmeth; unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(meth, unresolved, true)); } } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { // if the type is precise and receiverClassResolved is true // then we know FOR CERTAIN that this call will resolve to meth. // By ensuring that recieverClassResolved, we make sure that // lookupMethod was able to actually search the class hierarchy // and set meth appropriately. VM_Method computedTarget = null; if (receiverClassResolved && ((ref.isStringConstant()) || ref.asRegister().isPreciseType())) { computedTarget = meth; if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); } OPT_InlineDecision id = shouldInline(s, computedTarget, isExtant); if (maybeInlineMethod(id, s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_SPECIAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); // Note: this is not the usual needsDynamicLink // due to semantics of invokespecial // See comments in VM_OptLinker, OPT_Convert2Low, VM_Linker. boolean unresolved = !meth.getDeclaringClass().isResolved() || (VM_Class.findSpecialMethod(meth) == null); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.SPECIAL(meth, unresolved)); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_STATIC); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isMagicType() || meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.STATIC(meth, unresolved)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_INTERFACE); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); bcInfo.eatInvokeInterfaceGarbage(); OPT_MethodOperand methOp = OPT_MethodOperand.INTERFACE(meth, false); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } OPT_RegisterOperand ref = Call.getParam(s, 0).asRegister(); VM_Class refType = ref.type.asClass(); VM_Type interfaceType = meth.getDeclaringClass(); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Step 1: handle the possibility of ghost references try { VM_Method resolvedMethodRef = meth.resolveInterfaceMethod(false); if (resolvedMethodRef == null) { if (requiresImplementsTest) { // might be a ghost reference. // Must do the more involved typechecking sequence OPT_RegisterOperand tibPtr = gc.temps.makeTemp(OPT_ClassLoaderProxy.JavaLangObjectArrayType); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, ref.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; OPT_MethodOperand dtcRoutine = OPT_MethodOperand.STATIC(VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod); OPT_Instruction callCheck = Call.create2(CALL, null, null, dtcRoutine, new OPT_IntConstantOperand(meth.getDictionaryId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test } } else { meth = resolvedMethodRef; } } catch (VM_ResolutionException e) { // actually can't be thrown when we pass false for canLoad. } // Step 2: Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // If we're building for FastInterfaceInvocation then // this test must be made explicit in the calling sequence. // In the slow interface invocation path, it is handled // deep in the guts of the dispatching code. // NOTE: We don't insert the test here if we are doing to // do a guarded inline of an interface call. That case // is handled within OPT_Inliner.java. However, if // we virtualize the call, we do need to handle the DTC // here, since OPT_Inliner won't have enough information // to determine what the right thing to do is. if (requiresImplementsTest) { // Attempt to avoid inserting the check by seeing if the // known static type of the receiver implements the interface. if (refType.isResolved() && !refType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.proxy.includesType(interfaceType, refType); requiresImplementsTest = doesImplement != YES; } } // Step 3: Attempt to resolve the interface call to // a particular virtual method. // Note: step 2 and step 3 are independent // and it is not that case that being able // to do 2 implies 3 or that doing 3 implies 2. VM_Method vmeth; if (refType.isResolved() && !refType.isInterface() && (vmeth = lookupMethod(meth, refType)) != null) { // We're going to virtualize it. Must deal with the DTC here. if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } boolean unresolved = vmeth.needsDynamicLink(gc.method); if (!unresolved) vmeth = vmeth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(vmeth, unresolved, true)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // Think about trying to inline it if (!unresolved) { // if the type is precise, then we know FOR CERTAIN that // this call will resolve to meth VM_Method computedTarget = ref.isPreciseType() ? vmeth : null; if (computedTarget != null && gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); OPT_InlineDecision id = shouldInline(s, computedTarget, ref.isExtant()); if (maybeInlineMethod(id, s)) { return; } } } else { // try to inline a predicted target for the interface invocation OPT_InlineDecision id = shouldInline(s, null, false); if (maybeInlineMethod(id, s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type klass = bcInfo.getTypeReference(constantPoolIndex); OPT_TypeOperand klassOp = makeTypeOperand(klass); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; if (klass.isInitialized() || klass.asClass().isInBootImage()) { operator = NEW; } else { operator = NEW_UNRESOLVED; } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { byte atype = (byte)bcInfo.getByteValue(); VM_Array array = VM_Array.getPrimitiveArrayType(atype); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_anewarray: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type elementTypeRef = bcInfo.getTypeReference(constantPoolIndex); VM_Array array = elementTypeRef.getArrayTypeForElementType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithErrorHandler(); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM.assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_Type type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (type != VM_Type.JavaLangObjectType) assertIsAssignable(VM_Type.JavaLangThrowableType, type); } if (!gc.method.getDeclaringClass().isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_Type type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.proxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } OPT_RegisterOperand reg = (OPT_RegisterOperand)op2; if (gc.options.NO_CHECKCAST) { // Unsafely eliminate all checkcasts } else { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, reg, typeOp); } else { if (isNonNull(reg)) { s = TypeCheck.create(CHECKCAST_NOTNULL, reg, typeOp, getGuard(reg)); } else { s = TypeCheck.create(CHECKCAST, reg, typeOp); } } } reg = reg.copyU2U(); reg.type = typeRef; push(reg); VM_Class et = OPT_ClassLoaderProxy.JavaLangClassCastExceptionType; rectifyStateWithExceptionHandler(et); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_Type type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.proxy.includesType(typeRef, type); if (answer == YES) { if (isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db("skipped gen of instanceof of " + op2 + " from " + typeRef + " to " + type); break; } else { // !!TODO: For boolean variables, is any non-zero integer // equivalent to true? If so, in this case, we can replace // t <- o2 instanceof type with t <- o2. (SJF) } } else if (answer == NO) { push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, typeOp, op2); } else { if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b636840796d86d400a7f80ae18aa939fc2b89a95/OPT_BC2IR.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, ...
"/* \n" + " * Version (target 1.2) \n" + " * - magic: CAFEBABE\n" + " * - minor: 0\n" + " * - major: 46\n" + " */\n" + " "public class A extends java.lang.Object {\n" + " \n" + " /* Method descriptor #6 ()V */\n" + " public A();\n" + " /* Stack: 1, Locals: 1 */\n" + " Code attribute:\n" + " 0 aload_0\n" + " 1 invokespecial #9 <Constructor java.lang.Object()>\n" + " 4 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 1]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 5] local: this index: 0 type: A\n" + " \n" +
public void test009() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " int i = 6;\n" + " if ((i == 6) \n" + " || !b) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; String expectedOutput = "/* \n" + " * Version (target 1.2) \n" + " * - magic: CAFEBABE\n" + " * - minor: 0\n" + " * - major: 46\n" + " */\n" + "// Compiled from A.java\n" + "public class A extends java.lang.Object {\n" + " \n" + " /* Method descriptor #6 ()V */\n" + " public A();\n" + " /* Stack: 1, Locals: 1 */\n" + " Code attribute:\n" + " 0 aload_0\n" + " 1 invokespecial #9 <Constructor java.lang.Object()>\n" + " 4 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 1]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 5] local: this index: 0 type: A\n" + " \n" + " /* Method descriptor #15 ([Ljava/lang/String;)V */\n" + " public static void main(String[] args);\n" + " /* Stack: 2, Locals: 3 */\n" + " Code attribute:\n" + " 0 iconst_0\n" + " 1 istore_1\n" + " 2 bipush 6\n" + " 4 istore_2\n" + " 5 iload_2\n" + " 6 bipush 6\n" + " 8 if_icmpeq 15\n" + " 11 iload_1\n" + " 12 ifne 22\n" + " 15 getstatic #21 <Field java.lang.System#out java.io.PrintStream>\n" + " 18 iload_2\n" + " 19 invokevirtual #27 <Method java.io.PrintStream#println(int arg) void>\n" + " 22 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 3]\n" + " [pc: 2, line: 4]\n" + " [pc: 5, line: 5]\n" + " [pc: 11, line: 6]\n" + " [pc: 15, line: 7]\n" + " [pc: 22, line: 9]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 23] local: args index: 0 type: java/lang/String[]\n" + " [pc: 2, pc: 23] local: b index: 1 type: boolean\n" + " [pc: 5, pc: 23] local: i index: 2 type: int\n" + " \n" + "}"; checkClassFile("A", source, expectedOutput); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/33954bbbcb57410dd9650c66d085059854f2f0c2/ClassFileReaderTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 713, 29, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 713, 29, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 18...
public void setUserProperty( String name, String value ) throws ScriptException { if ( handle.getUserPropertyDefnHandle( name ) == null ) addUserProperty( name, IPropertyType.STRING_TYPE_NAME ); try { handle.setProperty( name, value ); } catch ( SemanticException e ) { throw new ScriptException( e.getLocalizedMessage( ) );
public void setUserProperty(String name, String value) throws ScriptException { if (handle.getUserPropertyDefnHandle(name) == null) addUserProperty(name, IPropertyType.STRING_TYPE_NAME); try { handle.setProperty(name, value); } catch (SemanticException e) { throw new ScriptException(e.getLocalizedMessage());
public void setUserProperty( String name, String value ) throws ScriptException { if ( handle.getUserPropertyDefnHandle( name ) == null ) addUserProperty( name, IPropertyType.STRING_TYPE_NAME ); try { handle.setProperty( name, value ); } catch ( SemanticException e ) { throw new ScriptException( e.getLocalizedMessage( ) ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7bd19072f76bdb445c9a37ead5bb975966a3c0ec/DesignElement.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/element/DesignElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14365, 1396, 12, 514, 508, 16, 514, 460, 262, 1082, 202, 15069, 7739, 503, 202, 95, 202, 202, 430, 261, 1640, 18, 588, 1299, 1396, 3262, 82, 3259, 12, 508, 262, 422, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14365, 1396, 12, 514, 508, 16, 514, 460, 262, 1082, 202, 15069, 7739, 503, 202, 95, 202, 202, 430, 261, 1640, 18, 588, 1299, 1396, 3262, 82, 3259, 12, 508, 262, 422, 44...
else if(action.equals("Load"))
else if(action.equals(LOAD_COMMAND))
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if(action.equals("Delete")) { if(tableModel.getRowCount() > 0) { // If a table cell is being edited, we must cancel the editing before // deleting the row if(authTable.isEditing()) { TableCellEditor cellEditor = authTable.getCellEditor(authTable.getEditingRow(), authTable.getEditingColumn()); cellEditor.cancelCellEditing(); } int rowSelected = authTable.getSelectedRow(); if(rowSelected != -1) { tableModel.removeRow(rowSelected); tableModel.fireTableDataChanged(); // Disable the DELETE and SAVE buttons if no rows remaining after delete if(tableModel.getRowCount() == 0) { deleteButton.setEnabled(false); saveButton.setEnabled(false); } // Table still contains one or more rows, so highlight (select) // the appropriate one. else { int rowToSelect = rowSelected; if(rowSelected >= tableModel.getRowCount()) { rowToSelect = rowSelected - 1; } authTable.setRowSelectionInterval(rowToSelect, rowToSelect); } } } } else if(action.equals("Add")) { // If a table cell is being edited, we should accept the current value // and stop the editing before adding a new row. if(authTable.isEditing()) { TableCellEditor cellEditor = authTable.getCellEditor(authTable.getEditingRow(), authTable.getEditingColumn()); cellEditor.stopCellEditing(); } tableModel.addNewRow(); tableModel.fireTableDataChanged(); // Enable the DELETE and SAVE buttons if they are currently disabled. if(!deleteButton.isEnabled()) { deleteButton.setEnabled(true); } if(!saveButton.isEnabled()) { saveButton.setEnabled(true); } // Highlight (select) the appropriate row. int rowToSelect = tableModel.getRowCount() - 1; authTable.setRowSelectionInterval(rowToSelect, rowToSelect); } else if(action.equals("Load")) { try { File tmp = FileDialoger.promptToOpenFile().getSelectedFile(); if(tmp != null) { tableModel.manager.addFile(tmp.getAbsolutePath()); tableModel.fireTableDataChanged(); if(tableModel.getRowCount() > 0) { deleteButton.setEnabled(true); saveButton.setEnabled(true); } } } catch(IOException ex) { log.error("",ex); } catch(NullPointerException err){} } else if(action.equals("Save")) { try { File tmp = FileDialoger.promptToSaveFile(null).getSelectedFile(); if(tmp != null) { tableModel.manager.save(tmp.getAbsolutePath()); } } catch(IOException ex) { log.error("",ex); } catch(NullPointerException err){} } }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/b57a7b3a8656073c9052d44883b7cc6915daa917/AuthPanel.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 202, 95, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 12, 1128, 18, 14963, 2932, 2613, 6, 3719, 202, 202, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 202, 95, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 12, 1128, 18, 14963, 2932, 2613, 6, 3719, 202, 202, 95...
objectClass.defineMethod("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", RubyObject.class));
objectClass.defineMethod("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", IRubyObject.class));
public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", IRubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod(1)); objectClass.defineMethod("clone", CallbackFactory.getMethod(RubyObject.class, "rbClone")); objectClass.defineMethod("dup", CallbackFactory.getMethod(RubyObject.class, "dup")); objectClass.defineMethod("eql?", CallbackFactory.getMethod(RubyObject.class, "equal", IRubyObject.class)); objectClass.defineMethod("respond_to?", CallbackFactory.getOptMethod(RubyObject.class, "respond_to")); objectClass.defineMethod("extend", CallbackFactory.getOptMethod(RubyObject.class, "extend")); objectClass.defineMethod("freeze", CallbackFactory.getMethod(RubyObject.class, "freeze")); objectClass.defineMethod("frozen?", CallbackFactory.getMethod(RubyObject.class, "frozen")); objectClass.defineMethod("id", CallbackFactory.getMethod(RubyObject.class, "id")); objectClass.defineMethod("hash", CallbackFactory.getMethod(RubyObject.class, "hash")); objectClass.defineMethod("__id__", CallbackFactory.getMethod(RubyObject.class, "id")); objectClass.defineMethod("inspect", CallbackFactory.getMethod(RubyObject.class, "inspect")); objectClass.defineMethod("instance_eval", CallbackFactory.getOptMethod(RubyObject.class, "instance_eval")); objectClass.defineMethod("instance_of?", CallbackFactory.getMethod(RubyObject.class, "instance_of", RubyModule.class)); objectClass.defineMethod("instance_variables", CallbackFactory.getMethod(RubyObject.class, "instance_variables")); objectClass.defineMethod("is_a?", CallbackFactory.getMethod(RubyObject.class, "kind_of", RubyModule.class)); objectClass.defineMethod("kind_of?", CallbackFactory.getMethod(RubyObject.class, "kind_of", RubyModule.class)); objectClass.defineMethod("method", CallbackFactory.getMethod(RubyObject.class, "method", IRubyObject.class)); objectClass.defineMethod("methods", CallbackFactory.getMethod(RubyObject.class, "methods")); objectClass.defineMethod("nil?", CallbackFactory.getFalseMethod(0)); objectClass.defineMethod("private_methods", CallbackFactory.getMethod(RubyObject.class, "private_methods")); objectClass.defineMethod("protected_methods", CallbackFactory.getMethod(RubyObject.class, "protected_methods")); objectClass.defineMethod("public_methods", CallbackFactory.getMethod(RubyObject.class, "methods")); objectClass.defineMethod("send", CallbackFactory.getOptMethod(RubyObject.class, "send", IRubyObject.class)); objectClass.defineMethod("__send__", CallbackFactory.getOptMethod(RubyObject.class, "send", IRubyObject.class)); objectClass.defineMethod("taint", CallbackFactory.getMethod(RubyObject.class, "taint")); objectClass.defineMethod("tainted?", CallbackFactory.getMethod(RubyObject.class, "tainted")); objectClass.defineMethod("to_a", CallbackFactory.getMethod(RubyObject.class, "to_a")); objectClass.defineMethod("to_s", CallbackFactory.getMethod(RubyObject.class, "to_s")); objectClass.defineMethod("type", CallbackFactory.getMethod(RubyObject.class, "type")); objectClass.defineMethod("untaint", CallbackFactory.getMethod(RubyObject.class, "untaint")); objectClass.defineMethod("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", RubyObject.class)); objectClass.defineAlias("===", "=="); objectClass.defineAlias("class", "type"); objectClass.defineAlias("equal?", "=="); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 17109, 797, 12, 54, 10340, 3120, 23992, 13, 288, 3639, 23992, 18, 11255, 1305, 2932, 631, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 921, 18, 1106, 16, 315, 9729, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17109, 797, 12, 54, 10340, 3120, 23992, 13, 288, 3639, 23992, 18, 11255, 1305, 2932, 631, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 921, 18, 1106, 16, 315, 9729, 3...
throw new IllegalArgumentException(Messages.getString("DefaultCreatorManager.CreatorNotAssignable", clazz.getName(), impl.getName()));
log.error("Class '" + clazz.getName() + "' does not implement '" + impl.getName() + "'."); return null;
public static Object classNewInstance(String name, String className, Class impl) { Class clazz; try { clazz = LocalUtil.classForName(className); } catch (ClassNotFoundException ex) { log.info("Skipping '" + name + "' due to ClassNotFoundException on " + className + ". Cause: " + ex.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return null; } catch (NoClassDefFoundError ex) { log.info("Skipping '" + name + "' due to NoClassDefFoundError on " + className + ". Cause: " + ex.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return null; } // Check it is of the right type if (!impl.isAssignableFrom(clazz)) { throw new IllegalArgumentException(Messages.getString("DefaultCreatorManager.CreatorNotAssignable", clazz.getName(), impl.getName())); //$NON-NLS-1$ } // Check we can create it try { return clazz.newInstance(); } catch (InstantiationException ex) { throw new IllegalArgumentException(Messages.getString("DefaultCreatorManager.CreatorNotInstantiatable", className, ex.toString())); //$NON-NLS-1$ } catch (IllegalAccessException ex) { throw new IllegalArgumentException(Messages.getString("DefaultCreatorManager.CreatorNotAccessable", className, ex.toString())); //$NON-NLS-1$ } catch (Exception ex) { log.warn("Failed to load creator '" + name + "', classname=" + className + ": ", ex); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return null; } }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/1f8fc1dc768d9fa187e71119aa6d3f589c7f74be/LocalUtil.java/buggy/java/org/directwebremoting/util/LocalUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 667, 1908, 1442, 12, 780, 508, 16, 514, 2658, 16, 1659, 9380, 13, 565, 288, 3639, 1659, 4003, 31, 3639, 775, 3639, 288, 5411, 4003, 273, 3566, 1304, 18, 1106, 1290, 461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 667, 1908, 1442, 12, 780, 508, 16, 514, 2658, 16, 1659, 9380, 13, 565, 288, 3639, 1659, 4003, 31, 3639, 775, 3639, 288, 5411, 4003, 273, 3566, 1304, 18, 1106, 1290, 461...
dataBlockStatus[i] =
if(dataBlockStatus[i] != null) { Logger.error(this, "Scheduling twice? dataBlockStatus["+i+"] = "+dataBlockStatus[i]); } else dataBlockStatus[i] =
public void schedule() { try { for(int i=0;i<dataBlocks.length;i++) { // FIXME maybe within a non-FECced splitfile at least? if(dataBlocks[i].getKeyType().equals("USK")) fail(new FetchException(FetchException.INVALID_METADATA, "Cannot have USKs within a splitfile!")); dataBlockStatus[i] = (SingleFileFetcher) SingleFileFetcher.create(parentFetcher.parent, this, null, dataBlocks[i], blockFetchContext, archiveContext, blockFetchContext.maxNonSplitfileRetries, recursionLevel, true, new Integer(i), true, null); } for(int i=0;i<checkBlocks.length;i++) { // FIXME maybe within a non-FECced splitfile at least? if(checkBlocks[i].getKeyType().equals("USK")) fail(new FetchException(FetchException.INVALID_METADATA, "Cannot have USKs within a splitfile!")); checkBlockStatus[i] = (SingleFileFetcher) SingleFileFetcher.create(parentFetcher.parent, this, null, checkBlocks[i], blockFetchContext, archiveContext, blockFetchContext.maxNonSplitfileRetries, recursionLevel, true, new Integer(dataBlocks.length+i), false, null); } synchronized(this) { createdFetchers = true; } for(int i=0;i<dataBlocks.length;i++) dataBlockStatus[i].schedule(); for(int i=0;i<checkBlocks.length;i++) checkBlockStatus[i].schedule(); } catch (MalformedURLException e) { // Invalidates the whole splitfile fail(new FetchException(FetchException.INVALID_URI, "Invalid URI in splitfile")); } catch (Throwable t) { fail(new FetchException(FetchException.INVALID_URI, t)); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/a1928485761f238d246b3795a28eca260215a3ec/SplitFileFetcherSegment.java/buggy/src/freenet/client/async/SplitFileFetcherSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4788, 1435, 288, 202, 202, 698, 288, 1082, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 892, 6450, 18, 2469, 31, 77, 27245, 288, 9506, 202, 759, 9852, 6944, 3470, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4788, 1435, 288, 202, 202, 698, 288, 1082, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 892, 6450, 18, 2469, 31, 77, 27245, 288, 9506, 202, 759, 9852, 6944, 3470, 279, ...
if (pid[1].equals("vtxt")) {
if (pid[1]!= null && pid[1].equals("vtxt")) {
public BOPids getPids(boolean tvMode) throws IOException { BOPids pids = new BOPids(); String line; BufferedReader input = getConnection("/control/zapto?getallpids"); String[] vPid = new String[2]; vPid[0]=Integer.toHexString(Integer.parseInt(input.readLine())); vPid[1]="video"; pids.setVPid(vPid); while((line=input.readLine())!=null) { StringTokenizer st = new StringTokenizer(line); String[] pid = new String[2]; pid[0] = Integer.toHexString(Integer.parseInt(st.nextToken())); pid[1] = st.nextToken(); if (pid[1].equals("vtxt")) { pids.setVtxtPid(pid); } else { pids.getAPids().add(pid); } } return pids; }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/a093e66a231839042f2aba2f07a1ca156e8fa282/SerBoxControlNeutrino.java/buggy/jtg/boxConnection/SerBoxControlNeutrino.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 3665, 2232, 1689, 2232, 12, 6494, 13521, 2309, 13, 1216, 1860, 288, 202, 565, 605, 3665, 2232, 20726, 273, 394, 605, 3665, 2232, 5621, 202, 202, 780, 980, 31, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 3665, 2232, 1689, 2232, 12, 6494, 13521, 2309, 13, 1216, 1860, 288, 202, 565, 605, 3665, 2232, 20726, 273, 394, 605, 3665, 2232, 5621, 202, 202, 780, 980, 31, 1082, 202, ...
GrouperSession.waitForAllTx();
protected void tearDown () { LOG.debug("tearDown"); // Nothing }
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/cbff0cdaecf939d28067c35c3fe615033cfbc0ca/TestWheelGroup.java/buggy/grouper/src/tests/test/edu/internet2/middleware/grouper/TestWheelGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3756, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 3756, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 4750, 1114, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 918, 1114, 264, 2157, 18, 7048, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3756, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 3756, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 4750, 1114, 264, 2157, 18, 7048, 1290, 1595, 4188, 5621, 918, 1114, 264, 2157, 18, 7048, 1...
String s1 = one.toString(); String s2 = two.toString(); int result = 0;
String s1 = one.toString(); String s2 = two.toString(); int result = 0;
public int compare(Object one, Object two) { if (one instanceof String && two instanceof String) { String s1 = one.toString(); String s2 = two.toString(); int result = 0; if (ascending) result = s1.compareTo(s2); else result = s2.compareTo(s1); if (result < 0) { return -1; } else if (result > 0) { return 1; } else return 0; } else { if (one instanceof Boolean && two instanceof Boolean) { boolean bOne = ((Boolean)one).booleanValue(); boolean bTwo = ((Boolean)two).booleanValue(); if (ascending) { if (bOne == bTwo) { return 0; } else if (bOne) { // Define false < true return 1; } else { return -1; } } else { if (bOne == bTwo) { return 0; } else if (bTwo) { // Define false < true return 1; } else { return -1; } } } else { if (one instanceof Comparable && two instanceof Comparable) { Comparable cOne = (Comparable)one; Comparable cTwo = (Comparable)two; if (ascending) { return cOne.compareTo(cTwo); } else { return cTwo.compareTo(cOne); } } } return 1; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 509, 3400, 12, 921, 1245, 16, 1033, 2795, 13, 288, 540, 309, 261, 476, 1276, 514, 597, 2398, 2795, 1276, 514, 13, 288, 5411, 514, 272, 21, 273, 1245, 18, 10492, 5621, 5411, 514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4202, 1071, 509, 3400, 12, 921, 1245, 16, 1033, 2795, 13, 288, 540, 309, 261, 476, 1276, 514, 597, 2398, 2795, 1276, 514, 13, 288, 5411, 514, 272, 21, 273, 1245, 18, 10492, 5621, 5411, 514, ...
encodeIntLittleEndian(result, Float.floatToIntBits(f)); }
encodeIntLittleEndian(result, Float.floatToIntBits(f)); }
private static void encodeFloatLittleEndian(StringBuffer result, float f) { encodeIntLittleEndian(result, Float.floatToIntBits(f)); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 4723, 48, 10609, 12, 780, 1892, 563, 16, 1431, 284, 13, 288, 202, 202, 3015, 1702, 48, 10609, 12, 2088, 16, 5450, 18, 5659, 17864, 6495, 12, 74, 10019, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2017, 4723, 48, 10609, 12, 780, 1892, 563, 16, 1431, 284, 13, 288, 202, 202, 3015, 1702, 48, 10609, 12, 2088, 16, 5450, 18, 5659, 17864, 6495, 12, 74, 10019, 225, ...
Method[] methods=target_class.getDeclaredMethods();
Method[] methods=getAllMethods(target_class);
Method findMethod(Class target_class) throws Exception { int len=args != null? args.length : 0; Method m; Method[] methods=target_class.getDeclaredMethods(); for(int i=0; i < methods.length; i++) { m=methods[i]; if(m.getName().equals(method_name)) { if(m.getParameterTypes().length == len) return m; } } return null; }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/b1e9c62415746e7b4d1343c45e3c8be65ec682ea/MethodCall.java/buggy/src/org/jgroups/blocks/MethodCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2985, 1104, 1305, 12, 797, 1018, 67, 1106, 13, 1216, 1185, 288, 3639, 509, 377, 562, 33, 1968, 480, 446, 35, 833, 18, 2469, 294, 374, 31, 3639, 2985, 225, 312, 31, 3639, 2985, 8526, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2985, 1104, 1305, 12, 797, 1018, 67, 1106, 13, 1216, 1185, 288, 3639, 509, 377, 562, 33, 1968, 480, 446, 35, 833, 18, 2469, 294, 374, 31, 3639, 2985, 225, 312, 31, 3639, 2985, 8526, 2...
StringField bodyLength = extractField();
StringField bodyLength = extractField(dd);
private void parseHeader(DataDictionary dd) throws InvalidMessage { boolean invalidHeaderFieldOrder = false; StringField beginString = extractField(); if (beginString.getField() != BeginString.FIELD) { invalidHeaderFieldOrder = true; } StringField bodyLength = extractField(); if (bodyLength.getField() != BodyLength.FIELD) { invalidHeaderFieldOrder = true; } StringField msgType = extractField(); if (msgType.getField() != MsgType.FIELD) { invalidHeaderFieldOrder = true; } if (doValidation && invalidHeaderFieldOrder) { throw new InvalidMessage("Header fields out of order"); } header.setField(beginString); header.setField(bodyLength); header.setField(msgType); StringField field = extractField(); while (field != null && isHeaderField(field, dd)) { header.setField(field); field = extractField(); } pushBack(field); }
52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/dc9d63d57d27d305f006b465a8d01563a4d8591f/Message.java/clean/src/quickfix/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1864, 12, 751, 10905, 6957, 13, 1216, 1962, 1079, 288, 3639, 1250, 2057, 1864, 974, 2448, 273, 629, 31, 3639, 30916, 2376, 780, 273, 2608, 974, 5621, 3639, 309, 261, 1008...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1864, 12, 751, 10905, 6957, 13, 1216, 1962, 1079, 288, 3639, 1250, 2057, 1864, 974, 2448, 273, 629, 31, 3639, 30916, 2376, 780, 273, 2608, 974, 5621, 3639, 309, 261, 1008...
if(compare.equals(patt)) {
if (compare.equals(patt)) {
private PDFPattern findPattern(PDFPattern compare) { for(Iterator iter = patterns.iterator(); iter.hasNext(); ) { Object patt = iter.next(); if(compare.equals(patt)) { return (PDFPattern)patt; } } return null; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/c8856526be15c3b48b61ee36facc7c86b37f512b/PDFDocument.java/clean/src/org/apache/fop/pdf/PDFDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 12667, 3234, 1104, 3234, 12, 17508, 3234, 3400, 13, 288, 3639, 364, 12, 3198, 1400, 273, 6884, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 1033, 28560, 273, 1400, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 12667, 3234, 1104, 3234, 12, 17508, 3234, 3400, 13, 288, 3639, 364, 12, 3198, 1400, 273, 6884, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 1033, 28560, 273, 1400, 18...
if(!fixed.equals("")) dflt = fixed; if(!dflt.equals("")) { if(dv == null) { new StringDatatypeValidator().validate(dflt, null); } else { dv.validate(dflt, null); }
if(fixedAtt != null) defaultStr = fixedStr; if(!defaultStr.equals("")) {
private QName traverseElementDecl(Element elementDecl) throws Exception { // General Attribute Checking int scope = isTopLevel(elementDecl)? GeneralAttrCheck.ELE_CONTEXT_GLOBAL: GeneralAttrCheck.ELE_CONTEXT_LOCAL; Hashtable attrValues = fGeneralAttrCheck.checkAttributes(elementDecl, scope); int contentSpecType = -1; int contentSpecNodeIndex = -1; int typeNameIndex = -1; int scopeDefined = -2; //signal a error if -2 gets gets through //cause scope can never be -2. DatatypeValidator dv = null; String name = elementDecl.getAttribute(SchemaSymbols.ATT_NAME); if ( DEBUGGING ) System.out.println("traversing element decl : " + name ); String ref = elementDecl.getAttribute(SchemaSymbols.ATT_REF); String type = elementDecl.getAttribute(SchemaSymbols.ATT_TYPE); String minOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MINOCCURS); String maxOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MAXOCCURS); String dflt = elementDecl.getAttribute(SchemaSymbols.ATT_DEFAULT); String fixed = elementDecl.getAttribute(SchemaSymbols.ATT_FIXED); if(!(dflt.equals("") || fixed.equals(""))) // REVISIT: localize reportGenericSchemaError("an element cannot have both \"fixed\" and \"default\" present at the same time"); String substitutionGroup = elementDecl.getAttribute(SchemaSymbols.ATT_SUBSTITUTIONGROUP); // form attribute String isQName = elementDecl.getAttribute(SchemaSymbols.ATT_FORM); String fromAnotherSchema = null; if (isTopLevel(elementDecl)) { if(name.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element must have a name"); else if (!ref.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element " + name + " cannot have a ref attribute"); int nameIndex = fStringPool.addSymbol(name); int eltKey = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, nameIndex,TOP_LEVEL_SCOPE); if (eltKey > -1 ) { return new QName(-1,nameIndex,nameIndex,fTargetNSURI); } } // parse out 'block', 'final', 'nillable', 'abstract' String blockSetStr = null; Attr blockAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSetStr = blockAttr.getValue(); int blockSet = parseBlockSet(blockSetStr); if( (blockSetStr != null) && !blockSetStr.equals("") && (!blockSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((blockSet & SchemaSymbols.RESTRICTION) == 0) && (((blockSet & SchemaSymbols.EXTENSION) == 0) && ((blockSet & SchemaSymbols.SUBSTITUTION) == 0))))) reportGenericSchemaError("The values of the 'block' attribute of an element must be either #all or a list of 'substitution', 'restriction' and 'extension'; " + blockSetStr + " was found"); String finalSetStr = null; Attr finalAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSetStr = finalAttr.getValue(); int finalSet = parseFinalSet(finalSetStr); if( (finalSetStr != null) && !finalSetStr.equals("") && (!finalSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((finalSet & SchemaSymbols.RESTRICTION) == 0) && ((finalSet & SchemaSymbols.EXTENSION) == 0)))) reportGenericSchemaError("The values of the 'final' attribute of an element must be either #all or a list of 'restriction' and 'extension'; " + finalSetStr + " was found"); boolean isNillable = elementDecl.getAttribute (SchemaSymbols.ATT_NILLABLE).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; boolean isAbstract = elementDecl.getAttribute (SchemaSymbols.ATT_ABSTRACT).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; int elementMiscFlags = 0; if (isNillable) { elementMiscFlags += SchemaSymbols.NILLABLE; } if (isAbstract) { elementMiscFlags += SchemaSymbols.ABSTRACT; } // make the property of the element's value being fixed also appear in elementMiscFlags if(!fixed.equals("")) elementMiscFlags += SchemaSymbols.FIXED; //if this is a reference to a global element if (!ref.equals("")) { //REVISIT top level check for ref if (!type.equals("") || (elementMiscFlags > 0) || (finalSetStr != null && finalSet > 0) || (blockSetStr != null && blockSet > 0) || !dflt.equals("") || !fixed.equals("")) reportSchemaError(SchemaMessageProvider.BadAttWithRef, null); if (!name.equals("")) // REVISIT: Localize reportGenericSchemaError("element " + name + " cannot also have a ref attribute"); Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { if (XUtil.getNextSiblingElement(child) != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); else traverseAnnotationDecl(child); } else if (child != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); String prefix = ""; String localpart = ref; int colonptr = ref.indexOf(":"); if ( colonptr > 0) { prefix = ref.substring(0,colonptr); localpart = ref.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String uriString = resolvePrefixToURI(prefix); QName eltName = new QName(prefix != null ? fStringPool.addSymbol(prefix) : -1, localpartIndex, fStringPool.addSymbol(ref), uriString != null ? fStringPool.addSymbol(uriString) : StringPool.EMPTY_STRING); //if from another schema, just return the element QName if (! uriString.equals(fTargetNSURIString) ) { return eltName; } int elementIndex = fSchemaGrammar.getElementDeclIndex(eltName, TOP_LEVEL_SCOPE); //if not found, traverse the top level element that if referenced if (elementIndex == -1 ) { Element targetElement = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT,localpart); if (targetElement == null ) { // REVISIT: Localize reportGenericSchemaError("Element " + localpart + " not found in the Schema"); //REVISIT, for now, the QName anyway return eltName; //return new QName(-1,fStringPool.addSymbol(localpart), -1, fStringPool.addSymbol(uriString)); } else { // do nothing here, other wise would cause infinite loop for // <element name="recur"><complexType><element ref="recur"> ... //eltName= traverseElementDecl(targetElement); } } return eltName; } else if (name.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element must have a name or a ref attribute present"); // Handle the substitutionGroup Element substitutionGroupElementDecl = null; int substitutionGroupElementDeclIndex = -1; boolean noErrorSoFar = true; String substitutionGroupUri = null; String substitutionGroupLocalpart = null; String substitutionGroupFullName = null; ComplexTypeInfo substitutionGroupEltTypeInfo = null; DatatypeValidator substitutionGroupEltDV = null; if ( substitutionGroup.length() > 0 ) { if(!ref.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element cannot have a substitutionGroup"); substitutionGroupUri = resolvePrefixToURI(getPrefix(substitutionGroup)); substitutionGroupLocalpart = getLocalPart(substitutionGroup); substitutionGroupFullName = substitutionGroupUri+","+substitutionGroupLocalpart; if ( !substitutionGroupUri.equals(fTargetNSURIString) ) { substitutionGroupEltTypeInfo = getElementDeclTypeInfoFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltTypeInfo == null) { substitutionGroupEltDV = getElementDeclTypeValidatorFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } else { substitutionGroupElementDecl = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT, substitutionGroupLocalpart); if (substitutionGroupElementDecl == null) { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("unable to locate substitutionGroup affiliation element " +substitutionGroup +" in element declaration " +name); } } else { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { traverseElementDecl(substitutionGroupElementDecl); substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); } } if (substitutionGroupElementDeclIndex != -1) { substitutionGroupEltTypeInfo = fSchemaGrammar.getElementComplexTypeInfo( substitutionGroupElementDeclIndex ); if (substitutionGroupEltTypeInfo == null) { fSchemaGrammar.getElementDecl(substitutionGroupElementDeclIndex, fTempElementDecl); substitutionGroupEltDV = fTempElementDecl.datatypeValidator; if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } } } // // resolving the type for this element right here // ComplexTypeInfo typeInfo = null; // element has a single child element, either a datatype or a type, null if primitive Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child); child = XUtil.getNextSiblingElement(child); } if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) // REVISIT: Localize reportGenericSchemaError("element declarations can contain at most one annotation Element Information Item"); boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous complexType in element '" + name +"' has a name attribute"); } else { // Determine what the type name will be String anonTypeName = genAnonTypeName(child); if (fCurrentTypeNameStack.search((Object)anonTypeName) > - 1) { // A recursing element using an anonymous type int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, anonTypeName); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl(child); if (typeNameIndex != -1 ) { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse complexType error in element '" + name +"'"); } } } haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous simpleType in element '" + name +"' has a name attribute"); } else typeNameIndex = traverseSimpleTypeDecl(child); if (typeNameIndex != -1) { dv = fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse simpleType error in element '" + name +"'"); } contentSpecType = XMLElementDecl.TYPE_SIMPLE; haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (type.equals("")) { // "ur-typed" leaf contentSpecType = XMLElementDecl.TYPE_ANY; //REVISIT: is this right? //contentSpecType = fStringPool.addSymbol("UR_TYPE"); // set occurrence count contentSpecNodeIndex = -1; } // see if there's something here; it had better be key, keyref or unique. if (child != null) childName = child.getLocalName(); while ((child != null) && ((childName.equals(SchemaSymbols.ELT_KEY)) || (childName.equals(SchemaSymbols.ELT_KEYREF)) || (childName.equals(SchemaSymbols.ELT_UNIQUE)))) { child = XUtil.getNextSiblingElement(child); if (child != null) { childName = child.getLocalName(); } } if (child != null) { // REVISIT: Localize noErrorSoFar = false; reportGenericSchemaError("the content of an element information item must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)"); } } // handle type="" here if (haveAnonType && (type.length()>0)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError( "Element '"+ name + "' have both a type attribute and a annoymous type child" ); } // type specified as an attribute and no child is type decl. else if (!type.equals("")) { String prefix = ""; String localpart = type; int colonptr = type.indexOf(":"); if ( colonptr > 0) { prefix = type.substring(0,colonptr); localpart = type.substring(colonptr+1); } String typeURI = resolvePrefixToURI(prefix); // check if the type is from the same Schema if ( !typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && typeURI.length() != 0) { // REVISIT, only needed because of resolvePrifixToURI. fromAnotherSchema = typeURI; typeInfo = getTypeInfoFromNS(typeURI, localpart); if (typeInfo == null) { dv = getTypeValidatorFromNS(typeURI, localpart); if (dv == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type " +localpart + " in schema " + typeURI); } } } else { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(typeURI+","+localpart); if (typeInfo == null) { dv = getDatatypeValidator(typeURI, localpart); if (dv == null ) if (typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && !fTargetNSURIString.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } else { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (topleveltype != null) { if (fCurrentTypeNameStack.search((Object)localpart) > - 1) { //then we found a recursive element using complexType. // REVISIT: this will be broken when recursing happens between 2 schemas int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, localpart); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl( topleveltype ); typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } } else { topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { typeNameIndex = traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } } } } } } // now we need to make sure that our substitution (if any) // is valid, now that we have all the requisite type-related info. if(substitutionGroup.length() > 0) { checkSubstitutionGroupOK(elementDecl, substitutionGroupElementDecl, noErrorSoFar, substitutionGroupElementDeclIndex, typeInfo, substitutionGroupEltTypeInfo, dv, substitutionGroupEltDV); } // this element is ur-type, check its substitutionGroup affiliation. // if there is substitutionGroup affiliation and not type definition found for this element, // then grab substitutionGroup affiliation's type and give it to this element if ( noErrorSoFar && typeInfo == null && dv == null ) { typeInfo = substitutionGroupEltTypeInfo; dv = substitutionGroupEltDV; } if (typeInfo == null && dv==null) { if (noErrorSoFar) { // Actually this Element's type definition is ur-type; contentSpecType = XMLElementDecl.TYPE_ANY; // REVISIT, need to wait till we have wildcards implementation. // ADD attribute wildcards here } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError ("untyped element : " + name ); } } // if element belongs to a compelx type if (typeInfo!=null) { contentSpecNodeIndex = typeInfo.contentSpecHandle; contentSpecType = typeInfo.contentType; scopeDefined = typeInfo.scopeDefined; dv = typeInfo.datatypeValidator; } // if element belongs to a simple type if (dv!=null) { contentSpecType = XMLElementDecl.TYPE_SIMPLE; if (typeInfo == null) { fromAnotherSchema = null; // not to switch schema in this case } } // Now we can handle validation etc. of default and fixed attributes, // since we finally have all the type information. if(!fixed.equals("")) dflt = fixed; if(!dflt.equals("")) { if(dv == null) { // in this case validate according to xs:string new StringDatatypeValidator().validate(dflt, null); } else { dv.validate(dflt, null); } if(typeInfo != null && (typeInfo.contentType != XMLElementDecl.TYPE_MIXED_SIMPLE && typeInfo.contentType != XMLElementDecl.TYPE_MIXED_COMPLEX && typeInfo.contentType != XMLElementDecl.TYPE_SIMPLE)) { // REVISIT: Localize reportGenericSchemaError ("element " + name + " has a fixed or default value and must have a mixed or simple content model"); } } // // Create element decl // int elementNameIndex = fStringPool.addSymbol(name); int localpartIndex = elementNameIndex; int uriIndex = StringPool.EMPTY_STRING; int enclosingScope = fCurrentScope; //refer to 4.3.2 in "XML Schema Part 1: Structures" if ( isTopLevel(elementDecl)) { uriIndex = fTargetNSURI; enclosingScope = TOP_LEVEL_SCOPE; } else if ( !isQName.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified ))) { uriIndex = fTargetNSURI; } //There can never be two elements with the same name and different type in the same scope. int existSuchElementIndex = fSchemaGrammar.getElementDeclIndex(uriIndex, localpartIndex, enclosingScope); if ( existSuchElementIndex > -1) { fSchemaGrammar.getElementDecl(existSuchElementIndex, fTempElementDecl); DatatypeValidator edv = fTempElementDecl.datatypeValidator; ComplexTypeInfo eTypeInfo = fSchemaGrammar.getElementComplexTypeInfo(existSuchElementIndex); if ( ((eTypeInfo != null)&&(eTypeInfo!=typeInfo)) || ((edv != null)&&(edv != dv)) ) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("duplicate element decl in the same scope : " + fStringPool.toString(localpartIndex)); } } QName eltQName = new QName(-1,localpartIndex,elementNameIndex,uriIndex); // add element decl to pool int attrListHead = -1 ; // copy up attribute decls from type object if (typeInfo != null) { attrListHead = typeInfo.attlistHead; } int elementIndex = fSchemaGrammar.addElementDecl(eltQName, enclosingScope, scopeDefined, contentSpecType, contentSpecNodeIndex, attrListHead, dv); if ( DEBUGGING ) { /***/ System.out.println("########elementIndex:"+elementIndex+" ("+fStringPool.toString(eltQName.uri)+"," + fStringPool.toString(eltQName.localpart) + ")"+ " eltType:"+type+" contentSpecType:"+contentSpecType+ " SpecNodeIndex:"+ contentSpecNodeIndex +" enclosingScope: " +enclosingScope + " scopeDefined: " +scopeDefined+"\n"); /***/ } fSchemaGrammar.setElementComplexTypeInfo(elementIndex, typeInfo); // REVISIT: should we report error if typeInfo was null? // mark element if its type belongs to different Schema. fSchemaGrammar.setElementFromAnotherSchemaURI(elementIndex, fromAnotherSchema); // set BlockSet, FinalSet, Nillable and Abstract for this element decl fSchemaGrammar.setElementDeclBlockSet(elementIndex, blockSet); fSchemaGrammar.setElementDeclFinalSet(elementIndex, finalSet); fSchemaGrammar.setElementDeclMiscFlags(elementIndex, elementMiscFlags); fSchemaGrammar.setElementDefault(elementIndex, dflt); // setSubstitutionGroupElementFullName fSchemaGrammar.setElementDeclSubstitutionGroupElementFullName(elementIndex, substitutionGroupFullName); // // key/keyref/unique processing // Element ic = XUtil.getFirstChildElementNS(elementDecl, IDENTITY_CONSTRAINTS); if (ic != null) { Integer elementIndexObj = new Integer(elementIndex); Vector identityConstraints = (Vector)fIdentityConstraints.get(elementIndexObj); if (identityConstraints == null) { identityConstraints = new Vector(); fIdentityConstraints.put(elementIndexObj, identityConstraints); } while (ic != null) { if (DEBUG_IC_DATATYPES) { System.out.println("<ICD>: adding ic for later traversal: "+ic); } identityConstraints.addElement(ic); ic = XUtil.getNextSiblingElementNS(ic, IDENTITY_CONSTRAINTS); } } return eltQName; }// end of method traverseElementDecl(Element)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/4b15408b2bb5849e7aaa7eb9ecdf5c512ca7e25f/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 2956, 3456, 9945, 10792, 9544, 3843, 1564, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 2956, 3456, 9945, 10792, 9544, 3843, 1564, 18, ...
protected AccessibleJTextField(JTextField component) { super(component); }
protected AccessibleJTextField() { }
protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/clean/core/src/classpath/javax/javax/swing/JTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 5016, 1523, 46, 16157, 12, 46, 16157, 1794, 13, 288, 1082, 202, 9565, 12, 4652, 1769, 1082, 202, 759, 2660, 202, 202, 97, 368, 5016, 1523, 46, 16157, 1435, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 5016, 1523, 46, 16157, 12, 46, 16157, 1794, 13, 288, 1082, 202, 9565, 12, 4652, 1769, 1082, 202, 759, 2660, 202, 202, 97, 368, 5016, 1523, 46, 16157, 1435, 2, -100, -100, -1...
public void parameterDeclaration() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:308:17: ( parameterModifier typeSpec IDENT declaratorBrackets ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:308:17: parameterModifier typeSpec IDENT declaratorBrackets { following.push(FOLLOW_parameterModifier_in_parameterDeclaration1140); parameterModifier(); following.pop(); following.push(FOLLOW_typeSpec_in_parameterDeclaration1142); typeSpec(); following.pop(); match(input,IDENT,FOLLOW_IDENT_in_parameterDeclaration1144); following.push(FOLLOW_declaratorBrackets_in_parameterDeclaration1148); declaratorBrackets(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 6775, 6094, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 6775, 6094, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 1...
TraceUtil.outputTrace(log, "Offset Ceiling Hit w/token \"", null, value.getImage(), "\"", null );
TraceUtil.outputTrace(log, "Offset Ceiling Hit w/token \"", null, value.getImage(), "\"", null );
protected void handleNewToken(IToken value) { if( value != null && scanner.isOnTopContext() ) { TraceUtil.outputTrace(log, "IToken provided w/offsets ", null, value.getOffset(), " & ", value.getEndOffset() ); if( value.getOffset() == offsetRange.getFloorOffset() ) { TraceUtil.outputTrace(log, "Offset Floor Hit w/token \"", null, value.getImage(), "\"", null ); firstTokenOfDuple = value; } if( value.getEndOffset() == offsetRange.getCeilingOffset() ) { TraceUtil.outputTrace(log, "Offset Ceiling Hit w/token \"", null, value.getImage(), "\"", null ); lastTokenOfDuple = value; } if( scanner.isOnTopContext() && lastTokenOfDuple != null && lastTokenOfDuple.getEndOffset() >= offsetRange.getCeilingOffset() ) { if ( ourScope == null ) ourScope = getCompletionScope(); if( ourContext == null ) ourContext = getCompletionContext(); if( ourKind == null ) ourKind = getCompletionKind(); } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0662f31cee158c7a5c8cfd1f71ba1558be904612/SelectionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/SelectionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 1908, 1345, 12, 1285, 969, 460, 13, 288, 202, 202, 430, 12, 460, 480, 446, 597, 7683, 18, 291, 1398, 3401, 1042, 1435, 262, 202, 202, 95, 1082, 202, 3448, 1304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1908, 1345, 12, 1285, 969, 460, 13, 288, 202, 202, 430, 12, 460, 480, 446, 597, 7683, 18, 291, 1398, 3401, 1042, 1435, 262, 202, 202, 95, 1082, 202, 3448, 1304, ...
jj_la1[86] = jj_gen;
jj_la1[87] = jj_gen;
final public void PrimaryPrefix() throws ParseException { /*@bgen(jjtree) PrimaryPrefix */ ASTPrimaryPrefix jjtn000 = new ASTPrimaryPrefix(this, JJTPRIMARYPREFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FALSE: case NULL: case TRUE: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: Literal(); break; case THIS: jj_consume_token(THIS); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setUsesThisModifier(); break; case SUPER: jj_consume_token(SUPER); jjtn000.setUsesSuperModifier(); jj_consume_token(DOT); t = jj_consume_token(IDENTIFIER); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(t.image); break; case LPAREN: jj_consume_token(LPAREN); Expression(); jj_consume_token(RPAREN); break; case NEW: AllocationExpression(); break; default: jj_la1[85] = jj_gen; if (jj_2_28(2147483647)) { ResultType(); jj_consume_token(DOT); jj_consume_token(CLASS); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: Name(); break; default: jj_la1[86] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 15884, 2244, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 15884, 2244, 1195, 9183, 6793, 2244, 10684, 5088, 3784, 273, 394, 9183, 6793, 2244, 12, 2211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1071, 918, 15884, 2244, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 15884, 2244, 1195, 9183, 6793, 2244, 10684, 5088, 3784, 273, 394, 9183, 6793, 2244, 12, 2211...
finishCaretUpdate(caretLine,false,true);
finishCaretUpdate(caretLine,NO_SCROLL,true);
public void addToSelection(Selection[] selection) { selectionManager.addToSelection(selection); finishCaretUpdate(caretLine,false,true); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/93e0fd4458604224f0318adb85eac17da0c1eef0/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 9604, 6233, 12, 6233, 8526, 4421, 13, 202, 95, 202, 202, 10705, 1318, 18, 1289, 774, 6233, 12, 10705, 1769, 202, 202, 13749, 39, 20731, 1891, 12, 71, 20731, 1670, 16, 574...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9604, 6233, 12, 6233, 8526, 4421, 13, 202, 95, 202, 202, 10705, 1318, 18, 1289, 774, 6233, 12, 10705, 1769, 202, 202, 13749, 39, 20731, 1891, 12, 71, 20731, 1670, 16, 574...
if(event instanceof ActiveEvent) {
if (event instanceof ActiveEvent) {
void interrupted(Context cx) { synchronized(swingMonitor) { if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting++; if(nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); while(nonDispatcherWaiting) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| //shouldDispatchTo(comp)) { comp.dispatchEvent(event); //} } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } if(this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch(InterruptedException exc) { return; } } } } else { while(isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch(InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; } do { currentContext = cx; DebuggableEngine engine = cx.getDebuggableEngine(); Thread thread = Thread.currentThread(); statusBar.setText("Thread: " + thread.toString()); ThreadState state = (ThreadState)threadState.get(thread); int stopAtFrameDepth = -1; if(state != null) { stopAtFrameDepth = state.stopAtFrameDepth; } if(runToCursorFile != null && thread == runToCursorThread) { int frameCount = engine.getFrameCount(); if(frameCount > 0) { DebugFrame frame = engine.getFrame(0); String sourceName = frame.getSourceName(); if(sourceName != null) { if(sourceName.equals(runToCursorFile)) { int lineNumber = frame.getLineNumber(); if(lineNumber == runToCursorLine) { stopAtFrameDepth = -1; runToCursorFile = null; } else { FileWindow w = getFileWindow(sourceName); if(w == null || !w.isBreakPoint(lineNumber)) { return; } else { runToCursorFile = null; } } } } } else { } } if(stopAtFrameDepth > 0) { if (engine.getFrameCount() > stopAtFrameDepth) { break; } } if(state != null) { state.stopAtFrameDepth = -1; } threadState.remove(thread); int frameCount = engine.getFrameCount(); this.frameIndex = frameCount -1; int line = 0; if(frameCount == 0) { break; } DebugFrame frame = engine.getFrame(0); String fileName = frame.getSourceName(); engine.setBreakNextLine(false); line = frame.getLineNumber(); int enterCount = 0; boolean isDispatchThread = java.awt.EventQueue.isDispatchThread(); if(!isDispatchThread) { // detach cx from its thread so the debugger (in the awt // dispatcher thread) can enter it if necessary cx.exit(); while(Context.getCurrentContext() != null) { Context.exit(); enterCount++; } } if(fileName != null && !fileName.equals("<stdin>")) { FileWindow w = (FileWindow)getFileWindow(fileName); if(w != null) { SetFilePosition action = new SetFilePosition(this, w, line); swingInvoke(action); } else { Vector v = (Vector)sourceNames.get(fileName); String source = ((SourceEntry)v.elementAt(0)).source.toString(); CreateFileWindow action = new CreateFileWindow(this, fileName, source, line); swingInvoke(action); } } else { if(console.isVisible()) { final JSInternalConsole finalConsole = console; swingInvoke(new Runnable() { public void run() { finalConsole.show(); } }); } } swingInvoke(new EnterInterrupt(this, cx)); swingInvoke(new UpdateContext(this, cx)); int returnValue; if(!isDispatchThread) { synchronized(monitor) { this.returnValue = -1; try { while(this.returnValue == -1) { monitor.wait(); } returnValue = this.returnValue; } catch(InterruptedException exc) { break; } } } else { java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); this.returnValue = -1; while(this.returnValue == -1) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| // shouldDispatchTo(comp)) { //comp.dispatchEvent(event); //} comp.dispatchEvent(event); } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } } catch(InterruptedException exc) { } } returnValue = this.returnValue; } swingInvoke(new ExitInterrupt(this)); if(!isDispatchThread) { // reattach cx to its thread Context current; if((current = Context.enter(cx)) != cx) { System.out.println("debugger error: cx = " + cx + " current = " + current); } while(enterCount > 0) { Context.enter(); enterCount--; } } switch(returnValue) { case STEP_OVER: engine.setBreakNextLine(true); stopAtFrameDepth = engine.getFrameCount(); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); break; case STEP_INTO: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; case STEP_OUT: stopAtFrameDepth = engine.getFrameCount() -1; if(stopAtFrameDepth > 0) { engine.setBreakNextLine(true); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); } break; case RUN_TO_CURSOR: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; } } while(false); synchronized(swingMonitor) { isInterrupted = false; if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 1594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 1594...
}
}
public void setDataSourceId(int dataSourceId) { putInt(DATA_SOURCE_ID, dataSourceId); }
12892 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12892/74353adea2ce8bd2fa98ac5e57f6c8533b6b2f62/IngridHit.java/clean/src/java/de/ingrid/utils/IngridHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7929, 1830, 548, 12, 474, 10233, 548, 13, 288, 202, 202, 458, 1702, 12, 4883, 67, 6537, 67, 734, 16, 10233, 548, 1769, 202, 97, 2, 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, 0, 0, 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, 7929, 1830, 548, 12, 474, 10233, 548, 13, 288, 202, 202, 458, 1702, 12, 4883, 67, 6537, 67, 734, 16, 10233, 548, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -...
return CollectionUtilities.joinStringRepresentations(stringList, jointext);
return CoreUtility.join(stringList, jointext);
public static String getProhibitedListToken(String tokenSource, PlayerCharacter pc) { int k = tokenSource.lastIndexOf(','); String jointext; if (k >= 0) { jointext = tokenSource.substring(k + 1); } else { jointext = ","; } List<String> stringList = new ArrayList<String>(); for ( PCClass pcClass : pc.getClassList() ) { if (pcClass.getLevel() > 0) { if (pcClass.getProhibitedSchools() != null) { /* * CONSIDER This was changed from adding * pcClass.getProhibitedString() directly into stringList, * which was adding a string which was "," delimited into * the List, which gets joined by ", " below... SOOOOO, in * THEORY, it is easier to add the individual items here and * let the join happen in one step below - but it will * change some spacing!! I hope this doesn't break anything :) - * thpr 10/29/06 */ stringList.addAll(pcClass.getProhibitedSchools()); } } } return CollectionUtilities.joinStringRepresentations(stringList, jointext); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/1371f813f6ae7fc714fe527c4740f0344615b1f7/ProhibitedListToken.java/buggy/code/src/java/plugin/exporttokens/ProhibitedListToken.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 3570, 29993, 682, 1345, 12, 780, 1147, 1830, 16, 19185, 7069, 6125, 13, 202, 95, 202, 202, 474, 417, 273, 1147, 1830, 18, 2722, 31985, 12, 2187, 8284, 202, 202, 780,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 3570, 29993, 682, 1345, 12, 780, 1147, 1830, 16, 19185, 7069, 6125, 13, 202, 95, 202, 202, 474, 417, 273, 1147, 1830, 18, 2722, 31985, 12, 2187, 8284, 202, 202, 780,...
private DefaultJ2EEComponentCreationDataModel createNewModuleModel() { DefaultJ2EEComponentCreationDataModel defaultModel = new DefaultJ2EEComponentCreationDataModel();
private IDataModel createNewModuleModel() { IDataModel defaultModel = DataModelFactory.createDataModel(new DefaultJ2EEComponentCreationDataModelProvider());
private DefaultJ2EEComponentCreationDataModel createNewModuleModel() { DefaultJ2EEComponentCreationDataModel defaultModel = new DefaultJ2EEComponentCreationDataModel(); // transfer properties, project name String projectName = model.getStringProperty(PROJECT_NAME); defaultModel.setProperty(DefaultJ2EEComponentCreationDataModel.PROJECT_NAME, projectName); // ear component name String earName = model.getStringProperty(COMPONENT_NAME); defaultModel.setProperty(DefaultJ2EEComponentCreationDataModel.EAR_COMPONENT_NAME, earName); // ear j2ee version int j2eeVersion = model.getIntProperty(COMPONENT_VERSION); defaultModel.setProperty(DefaultJ2EEComponentCreationDataModel.J2EE_VERSION, new Integer(j2eeVersion)); return defaultModel; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/00f6a4d44cf71e0497aeeae1b2008a2226b5439d/EARComponentCreationSecondPage.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/EARComponentCreationSecondPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2989, 46, 22, 9383, 1841, 9906, 26349, 15291, 3120, 1488, 1435, 288, 202, 202, 1868, 46, 22, 9383, 1841, 9906, 26349, 805, 1488, 273, 394, 2989, 46, 22, 9383, 1841, 9906, 26349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2989, 46, 22, 9383, 1841, 9906, 26349, 15291, 3120, 1488, 1435, 288, 202, 202, 1868, 46, 22, 9383, 1841, 9906, 26349, 805, 1488, 273, 394, 2989, 46, 22, 9383, 1841, 9906, 26349...
name = attrs.getQName( i ); if ( name != null && name.length() == 0 ) { String prefix; String attrURI;
name = attrs.getQName( i ); if (name != null && name.length() == 0) { String prefix; String attrURI;
public void startElement( String namespaceURI, String localName, String rawName, Attributes attrs ) throws SAXException { int i; boolean preserveSpace; ElementState state; String name; String value; boolean addNSAttr = false; try { if ( _printer == null ) throw new IllegalStateException( "SER002 No writer supplied for serializer" ); state = getElementState(); if ( isDocumentState() ) { // If this is the root element handle it differently. // If the first root element in the document, serialize // the document's DOCTYPE. Space preserving defaults // to that of the output format. if ( ! _started ) startDocument( ( localName == null || localName.length() == 0 ) ? rawName : localName ); } else { // For any other element, if first in parent, then // close parent's opening tag and use the parnet's // space preserving. if ( state.empty ) _printer.printText( '>' ); // Must leave CData section first if ( state.inCData ) { _printer.printText( "]]>" ); state.inCData = false; } // Indent this element on a new line if the first // content of the parent element or immediately // following an element or a comment if ( _indenting && ! state.preserveSpace && ( state.empty || state.afterElement || state.afterComment) ) _printer.breakLine(); } preserveSpace = state.preserveSpace; //We remove the namespaces from the attributes list so that they will //be in _prefixes attrs = extractNamespaces(attrs); // Do not change the current element state yet. // This only happens in endElement(). if ( rawName == null || rawName.length() == 0 ) { if ( localName == null ) throw new SAXException( "No rawName and localName is null" ); if ( namespaceURI != null && ! namespaceURI.equals( "" ) ) { String prefix; prefix = getPrefix( namespaceURI ); if ( prefix != null && prefix.length() > 0 ) rawName = prefix + ":" + localName; else rawName = localName; } else rawName = localName; addNSAttr = true; } _printer.printText( '<' ); _printer.printText( rawName ); _printer.indent(); // For each attribute print it's name and value as one part, // separated with a space so the element can be broken on // multiple lines. if ( attrs != null ) { for ( i = 0 ; i < attrs.getLength() ; ++i ) { _printer.printSpace(); name = attrs.getQName( i ); if ( name != null && name.length() == 0 ) { String prefix; String attrURI; name = attrs.getLocalName( i ); attrURI = attrs.getURI( i ); if ( ( attrURI != null && attrURI.length() != 0 ) && ( namespaceURI == null || namespaceURI.length() == 0 || ! attrURI.equals( namespaceURI ) ) ) { prefix = getPrefix( attrURI ); if ( prefix != null && prefix.length() > 0 ) name = prefix + ":" + name; } } value = attrs.getValue( i ); if ( value == null ) value = ""; _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); // If the attribute xml:space exists, determine whether // to preserve spaces in this and child nodes based on // its value. if ( name.equals( "xml:space" ) ) { if ( value.equals( "preserve" ) ) preserveSpace = true; else preserveSpace = _format.getPreserveSpace(); } } } if ( _prefixes != null ) { Enumeration enum; enum = _prefixes.keys(); while ( enum.hasMoreElements() ) { _printer.printSpace(); value = (String) enum.nextElement(); name = (String) _prefixes.get( value ); if ( name.length() == 0 ) { _printer.printText( "xmlns=\"" ); printEscaped( value ); _printer.printText( '"' ); } else { _printer.printText( "xmlns:" ); _printer.printText( name ); _printer.printText( "=\"" ); printEscaped( value ); _printer.printText( '"' ); } } } // Now it's time to enter a new element state // with the tag name and space preserving. // We still do not change the curent element state. state = enterElementState( namespaceURI, localName, rawName, preserveSpace ); name = ( localName == null || localName.length() == 0 ) ? rawName : namespaceURI + "^" + localName; state.doCData = _format.isCDataElement( name ); state.unescaped = _format.isNonEscapingElement( name ); } catch ( IOException except ) {
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/cb2846d271d09a33b1e64a91b982daf152a7bc83/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 514, 19421, 16, 514, 11927, 16, 17311, 514, 1831, 461, 16, 9055, 3422, 262, 3639, 1216, 14366, 565, 288, 3639, 509, 1850, 277, 31, 3639, 1250, 1377, 9420, 3819, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 514, 19421, 16, 514, 11927, 16, 17311, 514, 1831, 461, 16, 9055, 3422, 262, 3639, 1216, 14366, 565, 288, 3639, 509, 1850, 277, 31, 3639, 1250, 1377, 9420, 3819, 31, ...
res.setContentType("text/html; charset=UTF-8"); res.addDateHeader("Expires", System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 365L)); res.addDateHeader("Last-Modified", System.currentTimeMillis()); res.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"); res.addHeader("Pragma", "no-cache");
String helperId = "sakai.metaobj.formView";
public void handleAccess(HttpServletRequest req, HttpServletResponse res, Reference ref, Collection copyrightAcceptedRefs) throws EntityPermissionException, EntityNotDefinedException, EntityAccessOverloadException, EntityCopyrightException { res.setContentType("text/html; charset=UTF-8"); res.addDateHeader("Expires", System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 365L)); res.addDateHeader("Last-Modified", System.currentTimeMillis()); res.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"); res.addHeader("Pragma", "no-cache"); Element root = getStructuredArtifactDefinitionManager().createFormViewXml(ref.getEntity().getId(), null); Document doc = new Document(root); try { Transformer transformer = templates.newTransformer(); transformer.clearParameters(); transformer.transform(new JDOMSource(doc), new StreamResult(res.getOutputStream())); } catch (TransformerException e) { throw new RuntimeException(e); } catch (IOException e) { throw new RuntimeException(e); } }
48935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48935/54caae0a249be063e130ad37633a94289a09cdd9/MetaobjHttpAccess.java/clean/metaobj-impl/api-impl/src/java/org/sakaiproject/metaobj/shared/mgt/impl/MetaobjHttpAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1640, 1862, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 6268, 1278, 16, 18701, 2200, 22245, 18047, 9837, 13, 1216, 3887, 5041, 503, 16, 3887, 1248, 8116, 503, 16, 3887, 1862, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1862, 12, 2940, 18572, 1111, 16, 12446, 400, 16, 6268, 1278, 16, 18701, 2200, 22245, 18047, 9837, 13, 1216, 3887, 5041, 503, 16, 3887, 1248, 8116, 503, 16, 3887, 1862, 48...
if (!Main.ucd.isAssigned(cp)) continue; if (Main.ucd.isPUA(cp)) continue;
if (!Default.ucd.isAssigned(cp)) continue; if (Default.ucd.isPUA(cp)) continue;
public static void IdentifierTest() { String x = normalize(UTF32.valueOf32(0x10300), 4) ; getCategoryID(x); /* Changes Category: U+10300 OLD ITALIC LETTER A nfx_cp: U+D800 <surrogate-D800> isIdentifier(nfx_cp, true): false cat(nfx_cp): Cs isIdentifierStart(cp, true): true cat(cp): Lo */ for (int j = 0; j < 5; ++j) { System.out.println(); System.out.println("Testing Identifier Closure for " + NAMES[j]); System.out.println(); for (int cp = 0; cp < 0x10FFFF; ++cp) { Utility.dot(cp); if (!Main.ucd.isAssigned(cp)) continue; if (Main.ucd.isPUA(cp)) continue; if (!normalizationDiffers(cp, j)) continue; if (cp == 0xFDFB || cp == 0x0140) { System.out.println("debug point"); } boolean norm; boolean plain; String x_cp = 'x' + UTF32.valueOf32(cp); String nfx_x_cp = normalize(x_cp, j); plain = Main.ucd.isIdentifier(x_cp, true); norm = Main.ucd.isIdentifier(nfx_x_cp, true); if (plain & !norm) { Utility.fixDot(); System.out.println("*Not Identifier: " + Main.ucd.getCodeAndName(cp)); System.out.println(" nfx_x_cp: " + Main.ucd.getCodeAndName(nfx_x_cp)); System.out.println(" isIdentifier(nfx_x_cp, true): " + norm); System.out.println(" cat(nfx_x_cp): " + getCategoryID(nfx_x_cp)); System.out.println(" isIdentifier(x_cp, true): " + plain); System.out.println(" cat(x_cp): " + getCategoryID(x_cp)); continue; } String nfx_cp = normalize(UTF32.valueOf32(cp), j); plain = Main.ucd.isIdentifierStart(cp, true); norm = Main.ucd.isIdentifier(nfx_cp, true); if (plain & !norm) { Utility.fixDot(); System.out.println(" Changes Category: " + Main.ucd.getCodeAndName(cp)); System.out.println(" nfx_cp: " + Main.ucd.getCodeAndName(nfx_cp)); System.out.println(" isIdentifier(nfx_cp, true): " + norm); System.out.println(" cat(nfx_cp): " + getCategoryID(nfx_cp)); System.out.println(" isIdentifierStart(cp, true): " + plain); System.out.println(" cat(cp): " + Main.ucd.getCategoryID(cp)); System.out.println(); continue; } } } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/3b30dd9146aa6529c07a6f0f4745caf2c750b816/VerifyUCD.java/clean/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 10333, 4709, 1435, 288, 3639, 514, 619, 273, 3883, 12, 5159, 1578, 18, 1132, 951, 1578, 12, 20, 92, 2163, 19249, 3631, 1059, 13, 274, 3639, 19110, 734, 12, 92, 1769, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10333, 4709, 1435, 288, 3639, 514, 619, 273, 3883, 12, 5159, 1578, 18, 1132, 951, 1578, 12, 20, 92, 2163, 19249, 3631, 1059, 13, 274, 3639, 19110, 734, 12, 92, 1769, 363...
validateTrained(request, errors);
protected ActionErrors validateFields(HttpServletRequest request, String method) { ActionErrors errors = new ActionErrors(); if( (method.equals(Methods.previewPersonalInfo.toString()) || method.equals(Methods.next.toString()) || method.equals(Methods.previewEditPersonalInfo.toString()))&& ( ClientConstants.INPUT_PERSONAL_INFO.equals(input) || ClientConstants.INPUT_EDIT_PERSONAL_INFO.equals(input) )){ validateClientandSpouseNames(errors); validateDateOfBirth(request,errors); validateGender(errors); validateConfigurableMandatoryFields(request,errors,EntityType.CLIENT); validateCustomFields(request,errors); validatePicture(request, errors); } if(method.equals(Methods.preview.toString()) && ClientConstants.INPUT_MFI_INFO.equals(input) ){ validateConfigurableMandatoryFields(request,errors,EntityType.CLIENT); validateFormedByPersonnel(errors); validateFees(request, errors); validateForFeeAssignedWithoutMeeting(request,errors); validateTrained(request, errors); } if(method.equals(Methods.previewEditMfiInfo.toString()) ){ validateConfigurableMandatoryFields(request,errors,EntityType.CLIENT); validateTrained(request, errors); } return errors; }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/674e2d8474b8d6bdd5058c512323ac2c5186fabf/ClientCustActionForm.java/buggy/mifos/src/org/mifos/application/customer/client/struts/actionforms/ClientCustActionForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4382, 4229, 1954, 2314, 12, 2940, 18572, 590, 16, 514, 707, 13, 288, 9506, 202, 1803, 4229, 1334, 273, 394, 4382, 4229, 5621, 202, 202, 430, 12, 225, 261, 2039, 18, 14963, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4382, 4229, 1954, 2314, 12, 2940, 18572, 590, 16, 514, 707, 13, 288, 9506, 202, 1803, 4229, 1334, 273, 394, 4382, 4229, 5621, 202, 202, 430, 12, 225, 261, 2039, 18, 14963, 12...
if(portal != null) portal.close();
if(sChannel != null) sChannel.close();
public int poll(NetworkInterface iface, Map parameters) { // // Get interface address from NetworkInterface // if (iface.getType() != iface.TYPE_IPV4) throw new NetworkInterfaceNotSupportedException("Unsupported interface type, only TYPE_IPV4 currently supported"); Category log = ThreadCategory.getInstance(getClass()); int retry = ParameterMap.getKeyedInteger(parameters, "retry", DEFAULT_RETRY); int timeout = ParameterMap.getKeyedInteger(parameters, "timeout", DEFAULT_TIMEOUT); int[] ports = ParameterMap.getKeyedIntegerArray(parameters, "ports", DEFAULT_PORTS); String url = ParameterMap.getKeyedString(parameters, "url", DEFAULT_URL); int response = ParameterMap.getKeyedInteger(parameters, "response", -1); String responseText = ParameterMap.getKeyedString(parameters, "response text", null); // Set to true if "response" property has a valid return code specified. // By default response will be deemed valid if the return code // falls in the range: 100 < rc < 500 // This is based on the following information from RFC 1945 (HTTP 1.0) // HTTP 1.0 GET return codes: // 1xx: Informational - Not used, future use // 2xx: Success // 3xx: Redirection // 4xx: Client error // 5xx: Server error boolean bStrictResponse = (response > 99 && response < 600); // Extract the ip address // InetAddress ipv4Addr = (InetAddress)iface.getAddress(); // Following a successful poll 'currentPort' will contain the port on // the remote host that was successfully queried // final String cmd = "GET " + url + " HTTP/1.0\r\n\r\n"; //set properties to allow the use of SSL for the https connection System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); // Cycle through the port list // int serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; int currentPort = -1; for (int portIndex=0; portIndex < ports.length && serviceStatus != ServiceMonitor.SERVICE_AVAILABLE; portIndex++) { currentPort = ports[portIndex]; if (log.isDebugEnabled()) { log.debug("Port = "+ currentPort + ", Address = " + ipv4Addr + ", Timeout = " + timeout + ", Retry = " + retry); } for (int attempts=0; attempts <= retry && serviceStatus != ServiceMonitor.SERVICE_AVAILABLE; attempts++) { Socket portal = null; try { //set up the certificate validation. USING THIS SCHEME WILL ACCEPT ALL CERTIFICATES SSLSocketFactory sslSF = null; javax.net.ssl.KeyManager[] km = null; TrustManager[] tm = {new RelaxedX509TrustManager()}; SSLContext sslContext = SSLContext.getInstance("SSL"); sslContext.init(null, tm, new java.security.SecureRandom()); sslSF = sslContext.getSocketFactory(); //connect and communicate Socket normSocket = new Socket(ipv4Addr, currentPort); // We're connected, so upgrade status to unresponsive serviceStatus = SERVICE_UNRESPONSIVE; normSocket.setSoTimeout(timeout); Socket sslSocket = sslSF.createSocket(normSocket, ipv4Addr.getHostAddress(), currentPort, true); sslSocket.getOutputStream().write(cmd.getBytes()); // // Get a buffered input stream that will read a line // at a time // BufferedReader lineRdr = new BufferedReader(new InputStreamReader(sslSocket.getInputStream())); String line = lineRdr.readLine(); if (line == null) continue; if(log.isDebugEnabled()) log.debug("HttpPlugin.poll: Response = " + line); if(line.startsWith("HTTP/")) { StringTokenizer t = new StringTokenizer(line); t.nextToken(); int rVal = -1; try { rVal = Integer.parseInt(t.nextToken()); } catch(NumberFormatException nfE) { log.info("Error converting response code from host = " + ipv4Addr + ", response = " + line); } if (bStrictResponse && rVal == response) { serviceStatus = ServiceMonitor.SERVICE_AVAILABLE; } else if(!bStrictResponse && rVal > 99 && rVal < 500) { serviceStatus = ServiceMonitor.SERVICE_AVAILABLE; } else { serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; } } if (serviceStatus == ServiceMonitor.SERVICE_AVAILABLE && responseText != null && responseText.length() > 0) { // This loop will rip through the rest of the Response Header // do { line = lineRdr.readLine(); } while (line != null && line.length() != 0); if (line == null) continue; // Now lets rip through the Entity-Body (i.e., content) looking // for the required text. // boolean bResponseTextFound = false; do { line = lineRdr.readLine(); if(line != null) { int responseIndex = line.indexOf(responseText); if (responseIndex != -1) bResponseTextFound = true; } } while (line != null && !bResponseTextFound); // Set the status back to failed // if (!bResponseTextFound) serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; } } catch(NoRouteToHostException e) { e.fillInStackTrace(); log.warn("No route to host exception for address " + ipv4Addr, e); portIndex = ports.length; // Will cause outer for(;;) to terminate break; // Break out of inner for(;;) } catch(ConnectException e) { // Connection Refused!! No need to perform retries for this port. // e.fillInStackTrace(); log.debug("Connection exception for " + ipv4Addr + ":" + ports[portIndex], e); break; // Break out of inner for(;;) } catch(IOException e) { // Ignore // e.fillInStackTrace(); log.debug("IOException while polling address " + ipv4Addr, e); } catch(Throwable t) { log.warn(getClass().getName()+": An undeclared throwable exception caught contacting host " + ipv4Addr, t); break; } finally { try { // Close the socket if(portal != null) portal.close(); } catch(IOException e) { e.fillInStackTrace(); log.debug("Error closing socket connection", e); } } } // end for (attempts) } // end for (ports) // Add the 'qualifier' parm to the parameter map. This parm will // contain the port on which the service was found if AVAILABLE or // will contain a comma delimited list of the port(s) which were // tried if the service is UNAVAILABLE // if (serviceStatus == ServiceMonitor.SERVICE_UNAVAILABLE) { // // Build port string // StringBuffer testedPorts = new StringBuffer(); for(int i = 0; i < ports.length; i++) { if(i == 0) testedPorts.append(ports[0]); else testedPorts.append(',').append(ports[i]); } // Add to parameter map parameters.put("qualifier", testedPorts); } else { parameters.put("qualifier", Integer.toString(currentPort)); } // // return the status of the service // return serviceStatus; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/9ea114a625b6d7fcfcbe71092a747eef4338abde/HttpsMonitor.java/buggy/src/services/org/opennms/netmgt/poller/HttpsMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7672, 12, 27413, 9751, 16, 1635, 1472, 13, 225, 202, 95, 202, 202, 759, 202, 202, 759, 968, 1560, 1758, 628, 21109, 202, 202, 759, 202, 202, 430, 261, 31479, 18, 588, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 7672, 12, 27413, 9751, 16, 1635, 1472, 13, 225, 202, 95, 202, 202, 759, 202, 202, 759, 968, 1560, 1758, 628, 21109, 202, 202, 759, 202, 202, 430, 261, 31479, 18, 588, 5...
CompilerError other = (CompilerError) o;
CompilerError other = (CompilerError)o;
public int compareTo(Object o) { CompilerError other = (CompilerError) o; if (_lineNumber == other._lineNumber) { return _startColumn - other._startColumn; } else { return _lineNumber - other._lineNumber; } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/CompilerError.java/buggy/drjava/src/edu/rice/cs/drjava/model/compiler/CompilerError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 9292, 12, 921, 320, 13, 288, 565, 12972, 668, 1308, 273, 261, 9213, 668, 13, 83, 31, 565, 309, 261, 67, 1369, 1854, 422, 1308, 6315, 1369, 1854, 13, 288, 1377, 327, 389, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 9292, 12, 921, 320, 13, 288, 565, 12972, 668, 1308, 273, 261, 9213, 668, 13, 83, 31, 565, 309, 261, 67, 1369, 1854, 422, 1308, 6315, 1369, 1854, 13, 288, 1377, 327, 389, 19...
if(handshakeCount == MAX_HANDSHAKE_COUNT && !(verifiedIncompatibleOlderVersion || verifiedIncompatibleNewerVersion)) {
if((handshakeCount == MAX_HANDSHAKE_COUNT) && !(verifiedIncompatibleOlderVersion || verifiedIncompatibleNewerVersion)) {
private void calcNextHandshake(boolean couldSendHandshake) { long now = -1; synchronized(this) { now = System.currentTimeMillis(); if(verifiedIncompatibleOlderVersion || verifiedIncompatibleNewerVersion) { // Let them know we're here, but have no hope of connecting sendHandshakeTime = now + Node.MIN_TIME_BETWEEN_VERSION_SENDS + node.random.nextInt(Node.RANDOMIZED_TIME_BETWEEN_VERSION_SENDS); } else if(invalidVersion() && !firstHandshake) { sendHandshakeTime = now + Node.MIN_TIME_BETWEEN_VERSION_PROBES + node.random.nextInt(Node.RANDOMIZED_TIME_BETWEEN_VERSION_PROBES); } else { sendHandshakeTime = now + Node.MIN_TIME_BETWEEN_HANDSHAKE_SENDS + node.random.nextInt(Node.RANDOMIZED_TIME_BETWEEN_HANDSHAKE_SENDS); } if(couldSendHandshake) { firstHandshake = false; } else { handshakeIPs = null; } this.handshakeCount++; } // Don't fetch ARKs for peers we have verified (through handshake) to be incompatible with us if(handshakeCount == MAX_HANDSHAKE_COUNT && !(verifiedIncompatibleOlderVersion || verifiedIncompatibleNewerVersion)) { long arkFetcherStartTime1 = System.currentTimeMillis(); arkFetcher.queue(); long arkFetcherStartTime2 = System.currentTimeMillis(); if((arkFetcherStartTime2 - arkFetcherStartTime1) > 500) { Logger.normal(this, "arkFetcherStartTime2 is more than half a second after arkFetcherStartTime1 ("+(arkFetcherStartTime2 - arkFetcherStartTime1)+") working on "+myName); } } }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 7029, 2134, 14545, 12, 6494, 3377, 3826, 14545, 13, 288, 3639, 1525, 2037, 273, 300, 21, 31, 3639, 3852, 12, 2211, 13, 288, 5411, 2037, 273, 2332, 18, 2972, 28512, 5621, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 7029, 2134, 14545, 12, 6494, 3377, 3826, 14545, 13, 288, 3639, 1525, 2037, 273, 300, 21, 31, 3639, 3852, 12, 2211, 13, 288, 5411, 2037, 273, 2332, 18, 2972, 28512, 5621, 5411, ...
OutputStream stringOutput = new ByteArrayOutputStream();
ByteArrayOutputStream stringOutput = new ByteArrayOutputStream();
public static RubyObject dump(Ruby ruby, RubyObject recv, RubyObject[] args) { if (args.length < 1) { throw new ArgumentError(ruby, "wrong # of arguments(at least 1)"); } RubyObject objectToDump = args[0]; RubyIO io = null; int depthLimit = -1; if (args.length >= 2) { if (args[1] instanceof RubyIO) { io = (RubyIO) args[1]; } else if (args[1] instanceof RubyFixnum) { depthLimit = (int) ((RubyFixnum) args[1]).getLongValue(); } if (args.length == 3) { depthLimit = (int) ((RubyFixnum) args[2]).getLongValue(); } } try { if (io != null) { dumpToStream(objectToDump, io.getOutStream(), depthLimit); return io; } else { OutputStream stringOutput = new ByteArrayOutputStream(); dumpToStream(objectToDump, stringOutput, depthLimit); return RubyString.newString(ruby, stringOutput.toString()); } } catch (IOException ioe) { RubyBugException exception = new RubyBugException(ioe.getMessage()); exception.initCause(ioe); throw exception; } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/bb772f38cd98a3cfc11f39a8353947e7469dc172/RubyMarshal.java/clean/org/jruby/RubyMarshal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 4657, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 411, 404, 13, 288, 5411, 604, 394, 9236, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 4657, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 411, 404, 13, 288, 5411, 604, 394, 9236, 12...
public org.quickfix.field.Quantity getQuantity() throws FieldNotFound { org.quickfix.field.Quantity value = new org.quickfix.field.Quantity();
public quickfix.field.Quantity getQuantity() throws FieldNotFound { quickfix.field.Quantity value = new quickfix.field.Quantity();
public org.quickfix.field.Quantity getQuantity() throws FieldNotFound { org.quickfix.field.Quantity value = new org.quickfix.field.Quantity(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/clean/src/java/src/quickfix/fix44/CollateralRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 336, 12035, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 336, 12035, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, ...
public void setLocation (int x, int y)
public void setLocation(int x, int y)
public void setLocation (int x, int y) { if ((this.x == x) && (this.y == y)) return; invalidate(); this.x = x; this.y = y; if (peer != null) peer.setBounds(x, y, width, height); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/fb0219dcce2e53020800c655562b5f7351b0579b/Component.java/clean/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 21751, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 14015, 2211, 18, 92, 422, 619, 13, 597, 261, 2211, 18, 93, 422, 677, 3719, 1377, 327, 31, 565, 11587, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21751, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 14015, 2211, 18, 92, 422, 619, 13, 597, 261, 2211, 18, 93, 422, 677, 3719, 1377, 327, 31, 565, 11587, 5621, 565, ...
try { String s = dis.readUTF(); if(s.length() > 0) name = s; } catch (EOFException e) { name = null; }
String s = dis.readUTF(); if(s.length() > 0) name = s;
public FreenetInetAddress(DataInputStream dis) throws IOException { byte[] ba = new byte[4]; dis.readFully(ba); _address = InetAddress.getByAddress(ba); String name = null; // FIXME once everyone has upgraded, remove the try { } catch () { }. try { String s = dis.readUTF(); if(s.length() > 0) name = s; } catch (EOFException e) { // Ignore name = null; } hostname = name; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/8e98d57648dcc3f10f351d7035c3c282c4c6bb16/FreenetInetAddress.java/clean/src/freenet/io/comm/FreenetInetAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 2842, 278, 382, 278, 1887, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 202, 202, 7229, 8526, 9846, 273, 394, 1160, 63, 24, 15533, 202, 202, 2251, 18, 896, 16999, 12, 12124,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 2842, 278, 382, 278, 1887, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 202, 202, 7229, 8526, 9846, 273, 394, 1160, 63, 24, 15533, 202, 202, 2251, 18, 896, 16999, 12, 12124,...
tiles[i].setControl((byte)~CONTROL_USED);
tiles[i].setControl((byte) ~CONTROL_USED);
public static void controlValues (AbstractTile[] tiles, byte tag, int start, int len) { for (int i = start; i < (start+len); ++i) { if (controlIsBackground(tag) || controlIsUnused(tag)) { if (controlIsUsed(tiles[i].getControl())) tiles[i].setControl((byte)~CONTROL_USED); } tiles[i].addControl(tag); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/AbstractTile.java/clean/MMTk/src/org/mmtk/utility/gcspy/AbstractTile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3325, 1972, 261, 7469, 9337, 8526, 12568, 16, 1160, 1047, 16, 509, 787, 16, 4766, 565, 509, 562, 13, 288, 565, 364, 261, 474, 277, 273, 787, 31, 277, 411, 261, 1937, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3325, 1972, 261, 7469, 9337, 8526, 12568, 16, 1160, 1047, 16, 509, 787, 16, 4766, 565, 509, 562, 13, 288, 565, 364, 261, 474, 277, 273, 787, 31, 277, 411, 261, 1937, 1...
temp = addto[h] + date[h] + carry;
temp = addto.hour + date.hour + carry;
private int[] addDuration(int[] date, int[] addto, int[] duration) { //REVISIT: some code could be shared between normalize() and this method, // however is it worth moving it? The structures are different... // resetDateObj(duration); //add months (may be modified additionaly below) int temp = addto[M] + date[M]; duration[M] = modulo (temp, 1, 13); int carry = fQuotient (temp, 1, 13); //add years (may be modified additionaly below) duration[CY]=addto[CY] + date[CY] + carry; //add seconds temp = addto[s] + date[s]; carry = fQuotient (temp, 60); duration[s] = mod(temp, 60, carry); //add minutes temp = addto[m] +date[m] + carry; carry = fQuotient (temp, 60); duration[m]= mod(temp, 60, carry); //add hours temp = addto[h] + date[h] + carry; carry = fQuotient(temp, 24); duration[h] = mod(temp, 24, carry); duration[D]=addto[D] + date[D] + carry; while ( true ) { temp=maxDayInMonthFor(duration[CY], duration[M]); if ( duration[D] < 1 ) { //original duration was negative duration[D] = duration[D] + maxDayInMonthFor(duration[CY], duration[M]-1); carry=-1; } else if ( duration[D] > temp ) { duration[D] = duration[D] - temp; carry=1; } else { break; } temp = duration[M]+carry; duration[M] = modulo(temp, 1, 13); duration[CY] = duration[CY]+fQuotient(temp, 1, 13); } duration[utc]='Z'; return duration; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/bcc8fb199cd33a4cd9d32cea6d8fcaaf38720890/DurationDV.java/buggy/src/org/apache/xerces/impl/dv/xs/DurationDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 8526, 527, 5326, 12, 474, 8526, 1509, 16, 509, 8526, 527, 869, 16, 509, 8526, 3734, 13, 288, 3639, 368, 862, 26780, 1285, 30, 2690, 981, 3377, 506, 5116, 3086, 3883, 1435, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8526, 527, 5326, 12, 474, 8526, 1509, 16, 509, 8526, 527, 869, 16, 509, 8526, 3734, 13, 288, 3639, 368, 862, 26780, 1285, 30, 2690, 981, 3377, 506, 5116, 3086, 3883, 1435, 47...
if (repositories.isEmpty()) return;
public void writeRepositoriesToXML(Collection<TaskRepository> repositories, File file) { if (repositories.isEmpty()) return; ZipOutputStream outputStream = null; try { if (!file.exists()) file.createNewFile(); outputStream = new ZipOutputStream(new FileOutputStream(file)); ZipEntry zipEntry = new ZipEntry(TaskRepositoryManager.OLD_REPOSITORIES_FILE); outputStream.putNextEntry(zipEntry); outputStream.setMethod(ZipOutputStream.DEFLATED); // OutputStream stream = new FileOutputStream(file); writer.setOutputStream(outputStream); writer.writeRepositoriesToStream(repositories); outputStream.flush(); outputStream.closeEntry(); outputStream.close(); } catch (IOException e) { MylarStatusHandler.fail(e, "Could not write: " + file.getAbsolutePath(), true); } finally { if (outputStream != null) { try { outputStream.close(); } catch (IOException e) { MylarStatusHandler.fail(e, "Unable to terminate output stream to repositories file.", false); } } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4ae15427d21f8c77f6d47dfcc1f13786e1dfa6f4/TaskRepositoriesExternalizer.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoriesExternalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 18429, 774, 4201, 12, 2532, 32, 2174, 3305, 34, 14531, 16, 1387, 585, 13, 288, 202, 202, 430, 261, 26626, 18, 291, 1921, 10756, 1082, 202, 2463, 31, 202, 202, 9141,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 18429, 774, 4201, 12, 2532, 32, 2174, 3305, 34, 14531, 16, 1387, 585, 13, 288, 202, 202, 430, 261, 26626, 18, 291, 1921, 10756, 1082, 202, 2463, 31, 202, 202, 9141,...
.getDotApi(), ComponenteditorPlugin.ComponentEditorID);
.getDotApi(), EditorsPlugin.ComponentEditorID);
public void run(IAction action) { ComponentEditor componentEditor = this.getComponentEditor(); if (componentEditor != null) { componentEditor.switchToApi(); } else { LocalizedComponentsLocateResult localizedComponentsLocateResult = this .getLocalizedComponentsLocateResult(); if (localizedComponentsLocateResult == null) { return; } if (localizedComponentsLocateResult.getDotApi() == null) { return; } WorkbenchUtilitiesPlugin.open(localizedComponentsLocateResult .getDotApi(), ComponenteditorPlugin.ComponentEditorID); } }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/7944f62aef1bc4cb679a641700fb48468c0adaf4/SwitchToApiEditorActionDelegate.java/clean/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/editormenu/SwitchToApiEditorActionDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1841, 6946, 1794, 6946, 273, 333, 18, 588, 1841, 6946, 5621, 202, 202, 430, 261, 4652, 6946, 480, 446, 13, 288, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1841, 6946, 1794, 6946, 273, 333, 18, 588, 1841, 6946, 5621, 202, 202, 430, 261, 4652, 6946, 480, 446, 13, 288, 1082, 202, ...
GridData data = new GridData( GridData.FILL_HORIZONTAL );
GridData data = new GridData( GridData.FILL_BOTH );
private void createTable( Composite parent ) { Table table = new Table( parent, SWT.FULL_SELECTION | SWT.HIDE_SELECTION | SWT.BORDER ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); data.horizontalSpan = 2; data.heightHint = 60; table.setLayoutData( data ); table.setLinesVisible( true ); table.setHeaderVisible( true ); table.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { String category = ( (TableItem) e.item ).getText( FORMAT_TYPE_INDEX ); String pattern = getPatternForCategory( category ); formatCode.setText( pattern ); updatePreview( ); } } ); TableColumn tableColumValue = new TableColumn( table, SWT.NONE ); tableColumValue.setText( Messages.getString( "FormatDateTimePreferencePage.tableColumn.formatCode" ) ); //$NON-NLS-1$ tableColumValue.setWidth( 120 ); tableColumValue.setResizable( true ); TableColumn tableColumnDisplay = new TableColumn( table, SWT.NONE ); tableColumnDisplay.setText( Messages.getString( "FormatDateTimePreferencePage.tableColumn.formatResult" ) ); //$NON-NLS-1$ tableColumnDisplay.setWidth( 130 ); tableColumnDisplay.setResizable( true ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.generalDate" ), "01/23/2001 8:53:03 PM" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.longDate" ), "January 23, 2001" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.mediumDate" ), "23-Jan-01" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.shortDate" ), "01-23-2001" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.longTime" ), "8:45:00 PM" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.tableItem.mediumTime" ), "8:45:00 PM" //$NON-NLS-1$ //$NON-NLS-2$ } ); new TableItem( table, SWT.NONE ).setText( new String[]{ Messages.getString( "FormatDateTimePreferencePage.table.shortTime" ), "20:45" //$NON-NLS-1$ //$NON-NLS-2$ } ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 19565, 12, 14728, 982, 262, 202, 95, 202, 202, 1388, 1014, 273, 394, 3555, 12, 982, 16, 348, 8588, 18, 18111, 67, 1090, 15445, 9506, 202, 96, 348, 8588, 18, 44, 10385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 19565, 12, 14728, 982, 262, 202, 95, 202, 202, 1388, 1014, 273, 394, 3555, 12, 982, 16, 348, 8588, 18, 18111, 67, 1090, 15445, 9506, 202, 96, 348, 8588, 18, 44, 10385, ...
throw new OPT_OptimizingCompilerException("VM not initialized", true);
throw new OPT_OptimizingCompilerException("VM not initialized", true);
public static void init (OPT_Options options) { try { if (!(VM.writingBootImage || VM.runningTool || VM.runningVM)) { // Caller failed to ensure that the VM was initialized. throw new OPT_OptimizingCompilerException("VM not initialized", true); } // Make a local copy so that some options can be forced off just for the // duration of this initialization step. options = (OPT_Options)options.clone(); options.SIMPLE_ESCAPE_IPA = false; //-#if RVM_WITH_ADAPTIVE_SYSTEM // Disable instrumentation because this method is compiled // before the adaptive system is finished booting. Not pretty, // but it works for now. options.INSERT_DEBUGGING_COUNTERS = false; options.INSERT_YIELDPOINT_COUNTERS = false; options.INSERT_INSTRUCTION_COUNTERS = false; options.INSERT_METHOD_COUNTERS_OPT = false; //-#endif initializeStatics(); if (VM.runningVM) { // Make sure that VM_OptSaveVolatile.java is opt // compiled (to get special prologues/epilogues) // TODO: This could be phased out as the new DynamicBridge // magic comes on line. loadSpecialClass("LVM_OptSaveVolatile;", options); } isInitialized = true; } catch (OPT_OptimizingCompilerException e) { e.isFatal = true; // any failures during initialization are // bad news and shouldn't be ignored. throw e; } catch (Throwable e) { e.printStackTrace(); throw new OPT_OptimizingCompilerException("OPT_Compiler", "untrapped failure during init, " + " Converting to OPT_OptimizingCompilerException"); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/768cb30b37e5786fae0baade4542e965dcd61039/OPT_Compiler.java/clean/rvm/src/vm/compilers/optimizing/driver/OPT_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1208, 261, 15620, 67, 1320, 702, 13, 288, 565, 775, 288, 1377, 309, 16051, 12, 7397, 18, 14345, 15817, 2040, 747, 8251, 18, 8704, 6364, 747, 8251, 18, 8704, 7397, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 261, 15620, 67, 1320, 702, 13, 288, 565, 775, 288, 1377, 309, 16051, 12, 7397, 18, 14345, 15817, 2040, 747, 8251, 18, 8704, 6364, 747, 8251, 18, 8704, 7397, 3719, ...
System.err.println("], "+offset+")"); */ LList result = LList.Empty; for (int i = vals.length - offset; --i >= 0; ) result = new Pair (vals[offset+i], result);
public static LList makeList (Object[] vals, int offset) { /* DEBUGGING: for (int i = 0; i < vals.length; i++) { if (i > 0) System.err.print(", "); System.err.println(vals[i]); } System.err.println("], "+offset+")"); */ LList result = LList.Empty; for (int i = vals.length - offset; --i >= 0; ) result = new Pair (vals[offset+i], result); return result; }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/23dd1a0ef1b13d026001e36edeea56b5b677b87c/LList.java/buggy/gnu/lists/LList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 511, 682, 1221, 682, 261, 921, 8526, 5773, 16, 509, 1384, 13, 225, 288, 565, 1748, 6369, 19066, 30, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 5773, 18, 2469, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 511, 682, 1221, 682, 261, 921, 8526, 5773, 16, 509, 1384, 13, 225, 288, 565, 1748, 6369, 19066, 30, 565, 364, 261, 474, 277, 273, 374, 31, 225, 277, 411, 5773, 18, 2469, 31...
newFor.unrolled=true;
newFor.setUnrolled(true);
private JBlock doPartialUnroll(final UnrollInfo info, JForStatement self) { int numExec=getNumExecutions(info); //int numLoops=numExec/KjcOptions.unroll; int remain=numExec%KjcOptions.unroll; JStatement[] newBody=new JStatement[KjcOptions.unroll]; //if(newBody.length>=2) { //newBody[0]=self.getBody(); //newBody[1]=self.getIncrement(); //} if(KjcOptions.unroll>=1) { JStatement cloneBody=(JStatement)ObjectDeepCloner.deepCopy(self.getBody()); newBody[0]=cloneBody; } { final JLocalVariable inductVar=info.var; final int incrVal=info.incrVal; for(int i=1;i<KjcOptions.unroll;i++) { JStatement cloneBody=(JStatement)ObjectDeepCloner.deepCopy(self.getBody()); //JStatement cloneIncr=(JStatement)ObjectDeepCloner.deepCopy(makeIncr(info,info.incrVal)); final int incremented=i; cloneBody.accept(new SLIRReplacingVisitor() { public Object visitLocalVariableExpression(JLocalVariableExpression self2, String ident) { if(inductVar.equals(self2.getVariable())) { return makeIncreased(info,incremented*incrVal); } else return self2; } }); newBody[i]=cloneBody; } } JBlock body=new JBlock(null,newBody,null); JStatement[] newStatements=new JStatement[2*remain+2]; newStatements[0]=self.getInit(); int result=info.initVal; for(int i=1;i<2*remain+1;i++) { JStatement cloneBody=(JStatement)ObjectDeepCloner.deepCopy(self.getBody()); JStatement cloneIncr=(JStatement)ObjectDeepCloner.deepCopy(makeIncr(info,info.incrVal)); newStatements[i]=cloneBody; i++; newStatements[i]=cloneIncr; result=incrementCounter(result,info); } JForStatement newFor=new JForStatement(null, new JExpressionStatement(null, new JAssignmentExpression(null, new JLocalVariableExpression(null, info.var), new JIntLiteral(result)), null), self.getCondition(), makeIncr(info,KjcOptions.unroll*info.incrVal), body, null); newFor.unrolled=true; newStatements[newStatements.length-1]=newFor; return new JBlock(null, newStatements, null); }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/16056e8464a71448561c0813d0ac1bdd80ae6076/Unroller.java/buggy/streams/src/at/dms/kjc/sir/lowering/Unroller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 1768, 741, 9447, 984, 2693, 12, 6385, 1351, 2693, 966, 1123, 16, 804, 1290, 3406, 365, 13, 288, 202, 474, 818, 1905, 33, 588, 2578, 15875, 12, 1376, 1769, 202, 759, 474, 818,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 1768, 741, 9447, 984, 2693, 12, 6385, 1351, 2693, 966, 1123, 16, 804, 1290, 3406, 365, 13, 288, 202, 474, 818, 1905, 33, 588, 2578, 15875, 12, 1376, 1769, 202, 759, 474, 818,...
private synchronized static void ensureProperty( String key )
private static void ensureProperty( String key )
private synchronized static void ensureProperty( String key ) { if ( !reference.containsKey( key ) ) { SortedListModel defaultList = new SortedListModel(); if ( !key.equals( "apathetic" ) ) defaultList.addAll( triggers ); reference.put( key, defaultList ); availableMoods.add( key ); availableMoods.setSelectedItem( key ); saveSettings(); } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/dc4482f69adba21ca1016269f66f2f2e114b759b/MoodSettings.java/clean/src/net/sourceforge/kolmafia/MoodSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 760, 918, 3387, 1396, 12, 514, 498, 262, 202, 95, 202, 202, 430, 261, 401, 6180, 18, 12298, 653, 12, 498, 262, 262, 202, 202, 95, 1082, 202, 11739, 682, 1488, 805, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 760, 918, 3387, 1396, 12, 514, 498, 262, 202, 95, 202, 202, 430, 261, 401, 6180, 18, 12298, 653, 12, 498, 262, 262, 202, 202, 95, 1082, 202, 11739, 682, 1488, 805, 68...
editorManager.saveEditorState(memento, editor, result);
editorManager.saveEditorState(memento, e, result);
private void closeEditors(IWorkbenchPage page, String id, MultiStatus result) { XMLMemento memento = XMLMemento.createWriteRoot(IWorkbenchConstants.TAG_EDITORS); IEditorReference[] editorRefs = page.getEditorReferences(); boolean changed = false; for(int i = 0; i < editorRefs.length; i++) { if (editorRefs[i].getId().equals(id)) { IEditorPart editor = editorRefs[i].getEditor(true); EditorManager editorManager = ((WorkbenchPage)page).getEditorManager(); if(editor == null) { IMemento mem = editorManager.getMemento(editorRefs[i]); if(mem != null) { IMemento editorMem = memento.createChild(IWorkbenchConstants.TAG_EDITOR); editorMem.putMemento(mem); } } else editorManager.saveEditorState(memento, editor, result); //((WorkbenchPage)page).getStateMap().put(id, memento); page.closeEditor(editor, true); changed = true; } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/de079ab96737361d5d75a0187a9cf4701530d4cc/ExtensionEventHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExtensionEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1746, 4666, 1383, 12, 45, 2421, 22144, 1964, 1363, 16, 514, 612, 16, 5991, 1482, 563, 13, 288, 202, 202, 4201, 49, 820, 83, 312, 820, 83, 273, 3167, 49, 820, 83, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1746, 4666, 1383, 12, 45, 2421, 22144, 1964, 1363, 16, 514, 612, 16, 5991, 1482, 563, 13, 288, 202, 202, 4201, 49, 820, 83, 312, 820, 83, 273, 3167, 49, 820, 83, 18, ...
public void undoLastRecruit()
void undoLastRecruit()
public void undoLastRecruit() { server.undoLastRecruit(playerName); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/3d0c995d677b11834bfd5b0d9ff7d5fef51d296e/Client.java/clean/Colossus/net/sf/colossus/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15436, 3024, 426, 3353, 14945, 1435, 565, 288, 3639, 1438, 18, 31226, 3024, 426, 3353, 14945, 12, 14872, 461, 1769, 565, 289, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15436, 3024, 426, 3353, 14945, 1435, 565, 288, 3639, 1438, 18, 31226, 3024, 426, 3353, 14945, 12, 14872, 461, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
context.pushLocalContext(false); Variable var = new Variable(QName.parse(context, varName));
LocalVariable mark = context.markLocalVariables(); LocalVariable var = new LocalVariable(QName.parse(context, varName, null));
public Sequence eval( Sequence contextSequence, Item contextItem, Sequence resultSequence) throws XPathException { context.pushLocalContext(false); // declare the variable Variable var = new Variable(QName.parse(context, varName)); context.declareVariable(var); // declare positional variable Variable at = null; if(positionalVariable != null) { at = new Variable(QName.parse(context, positionalVariable)); context.declareVariable(at); } // evaluate the "in" expression Sequence in = inputSequence.eval(null, null); // assign to the bound variable var.setValue(in); if(in instanceof NodeSet) { DocumentSet contextDocs = ((NodeSet)in).getDocumentSet(); var.setContextDocs(contextDocs); } if(whereExpr != null) { whereExpr.setInPredicate(true); setContext(in); } boolean fastExec = whereExpr != null && ( whereExpr.getDependencies() & Dependency.CONTEXT_ITEM ) == 0 && at == null && in.getItemType() == Type.NODE; if(fastExec) { LOG.debug("fast evaluation mode"); in = applyWhereExpression(in); } // if there's an order by clause, wrap the result into // an OrderedValueSequence if(resultSequence == null) { if(orderSpecs != null) resultSequence = new OrderedValueSequence(orderSpecs, in.getLength()); else resultSequence = new ValueSequence(); } Sequence val = null; int p = 1; IntegerValue atVal = new IntegerValue(1); if(positionalVariable != null) at.setValue(atVal); // loop through each variable binding for (SequenceIterator i = in.iterate(); i.hasNext(); p++) { context.proceed(this); contextItem = i.nextItem(); context.setContextPosition(p); // atVal.setValue(p); // seb: this does not create a new Value. the old Value is referenced from results if(positionalVariable != null) at.setValue(new IntegerValue(p)); contextSequence = contextItem.toSequence(); if(sequenceType != null) // check sequence type sequenceType.checkType(contextItem.getType()); // set variable value to current item var.setValue(contextSequence); val = contextSequence; // check optional where clause if (whereExpr != null && (!fastExec)) { if(contextItem instanceof NodeProxy) ((NodeProxy)contextItem).addContextNode((NodeProxy)contextItem); Sequence bool = applyWhereExpression(null); // if where returned false, continue if(!bool.effectiveBooleanValue()) continue; } else val = contextItem.toSequence(); /* if the returnExpr is another BindingExpression, call it * with the result sequence. */ if(returnExpr instanceof BindingExpression) ((BindingExpression)returnExpr).eval(null, null, resultSequence); // otherwise call the return expression and add results to resultSequence else { val = returnExpr.eval(null); resultSequence.addAll(val); } } if(orderSpecs != null) ((OrderedValueSequence)resultSequence).sort(); context.popLocalContext(); return resultSequence; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bb9e62961cd54f3562f2a8e34ebe8f272b7123b5/ForExpr.java/clean/src/org/exist/xquery/ForExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8370, 5302, 12, 202, 202, 4021, 819, 4021, 16, 202, 202, 1180, 819, 1180, 16, 202, 202, 4021, 563, 4021, 13, 202, 202, 15069, 10172, 503, 288, 202, 202, 2472, 18, 6206, 2042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8370, 5302, 12, 202, 202, 4021, 819, 4021, 16, 202, 202, 1180, 819, 1180, 16, 202, 202, 4021, 563, 4021, 13, 202, 202, 15069, 10172, 503, 288, 202, 202, 2472, 18, 6206, 2042, ...
out("got BASE char " + hex(ch) + ", type=" + type + ", index=" + index);
if (DEBUG) System.out.println("got BASE char " + hex(ch) + ", type=" + type + ", index=" + index);
private char nextCompose() { out("--------------- top of nextCompose() --------------------"); int explodePos = EMPTY; // Position in input buffer int basePos = 0; // Position of last base in output string int baseIndex = 0; // Index of last base in "actions" array int classesSeen = 0; // Combining classes seen since last base int action; char lastBase = 0; boolean chFromText = true; // Compatibility explosions have lower indices; skip them if necessary int minExplode = mode.compat() ? 0 : ComposeData.MAX_COMPAT; int minDecomp = mode.compat() ? 0 : DecompData.MAX_COMPAT; initBuffer(); if (explodeBuf == null) { explodeBuf = new StringBuffer(); } else { explodeBuf.setLength(0); } char ch = curForward(); while (ch != DONE) { // Get the basic info for the character int charInfo = composeLookup(ch); int type = charInfo & ComposeData.TYPE_MASK; int index = charInfo >>> ComposeData.INDEX_SHIFT; if (type == ComposeData.BASE || type == ComposeData.NON_COMPOSING_COMBINING && index < minExplode) { if (buffer.length() > 0 && chFromText && explodePos == EMPTY) { // When we hit a base char in the source text, we can return the text // that's been composed so far. We'll re-process this char next time through. out("returning early because we hit a new base"); break; } classesSeen = 0; baseIndex = index; basePos = buffer.length(); buffer.append(ch); out("got BASE char " + hex(ch) + ", type=" + type + ", index=" + index); lastBase = ch; } else if (type == ComposeData.COMBINING && index > 0) { int cclass = ComposeData.typeMask[index]; out("got COMBINING char " + hex(ch) + ", type=" + type + ", index=" + index + ", class=" + Integer.toString(cclass,16)); // We can only combine a character with the base if we haven't // already seen a combining character with the same canonical class. if (type == ComposeData.COMBINING && (classesSeen & cclass) == 0 && (action = composeAction(baseIndex, index)) > 0) { if (action > ComposeData.MAX_COMPOSED) { // Pairwise explosion. Actions above this value are really // indices into an array that in turn contains indices // into the exploding string table // TODO: What if there are unprocessed chars in the explode buffer? char newBase = pairExplode(explodeBuf, action); explodePos = 0; buffer.setCharAt(basePos, newBase); baseIndex = composeLookup(newBase) >>> ComposeData.INDEX_SHIFT; out("Pairwise explosion: " + hex(lastBase) + "," + hex(ch) + " --> " + hex(newBase) + "," + hex(explodeBuf)); lastBase = newBase; } else { // Normal pairwise combination. Replace the base char char newBase = (char) action; buffer.setCharAt(basePos, newBase); baseIndex = composeLookup(newBase) >>> ComposeData.INDEX_SHIFT; out("Pairwise combination: " + hex(lastBase) + "," + hex(ch) + " --> " + hex(newBase)); lastBase = newBase; } // // Since there are Unicode characters that cannot be combined in arbitrary // order, we have to re-process any combining marks that go with this // base character. There are only four characters in Unicode that have // this problem. If they are fixed in Unicode 3.0, this code can go away. // int len = buffer.length(); if (len - basePos > 1) { out("Reprocessing combining marks"); for (int j = basePos+1; j < len; j++) { explodeBuf.append(buffer.charAt(j)); } buffer.setLength(basePos+1); classesSeen = 0; if (explodePos == EMPTY) explodePos = 0; } } else { out("char doesn't combine"); // No combination with this character bubbleAppend(buffer, ch, cclass); classesSeen |= cclass; } } else if (index > minExplode) { // Single exploding character explode(explodeBuf, index); explodePos = 0; out("explosion: " + hex(ch) + " --> " + hex(explodeBuf)); } else if (type == ComposeData.HANGUL && minExplode == 0) { // If we're in compatibility mode we need to decompose Hangul to Jamo, // because some of the Jamo might have compatibility decompositions. hangulToJamo(ch, explodeBuf, minDecomp); out("decomposed hangul " + hex(ch) + " to jamo " + hex(explodeBuf)); explodePos = 0; } else if (type == ComposeData.INITIAL_JAMO) { if (buffer.length() > 0 && chFromText && explodePos == EMPTY) { // When we hit a base char in the source text, we can return the text // that's been composed so far. We'll re-process this char next time through. out("returning early because we hit a new base"); break; } classesSeen = 0; baseIndex = ComposeData.INITIAL_JAMO_INDEX; basePos = buffer.length(); buffer.append(ch); out("got initial jamo " + hex(ch)); } else if (type == ComposeData.MEDIAL_JAMO && classesSeen == 0 && baseIndex == ComposeData.INITIAL_JAMO_INDEX) { // If the last character was an initial jamo, we can combine it with this // one to create a Hangul character. int l = buffer.charAt(basePos) - JAMO_LBASE; int v = ch - JAMO_VBASE; char newCh = (char)(HANGUL_BASE + (l*JAMO_VCOUNT + v) * JAMO_TCOUNT); buffer.setCharAt(basePos, newCh); out("got medial jamo " + hex(ch) + ", replacing with Hangul " + hex(newCh)); baseIndex = ComposeData.MEDIAL_JAMO_INDEX; } else if (type == ComposeData.FINAL_JAMO && classesSeen == 0 && baseIndex == ComposeData.MEDIAL_JAMO_INDEX) { // If the last character was a medial jamo that we turned into Hangul, // we can add this character too. char newCh = (char)(buffer.charAt(basePos) + (ch - JAMO_TBASE)); buffer.setCharAt(basePos, newCh); out("got final jamo " + hex(ch) + ", replacing with Hangul " + hex(newCh)); baseIndex = 0; basePos = -1; classesSeen = 0; } else { // TODO: deal with JAMO character types baseIndex = 0; basePos = -1; classesSeen = 0; buffer.append(ch); out("UNKNOWN char " + hex(ch)); } if (explodePos == EMPTY) { ch = text.next(); chFromText = true; } else { // NOTE: I added the following if() block to catch a case that was // happening during test runs. charAt() was being called (below) // with an out-of-range index. This fix makes the tests run and // pass, but this clearly isn't the right way to fix this. Someone // needs to come back and clean this up later. - liu 7/13/00 if (explodePos >= explodeBuf.length()) { // fix explodePos = EMPTY; // fix explodeBuf.setLength(0); // fix ch = DONE; // fix } else { // fix ch = explodeBuf.charAt(explodePos++); if (explodePos >= explodeBuf.length()) { explodePos = EMPTY; explodeBuf.setLength(0); } } // fix chFromText = false; } } if (buffer.length() > 0) { bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } else { ch = DONE; bufferLimit = 0; } return ch; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/df9c62a61e6f121a728eded18f1b2d41b388e77e/Normalizer.java/clean/icu4j/src/com/ibm/text/Normalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1149, 1024, 22375, 1435, 565, 288, 3639, 596, 2932, 18753, 1760, 434, 1024, 22375, 1435, 12146, 6062, 8863, 3639, 509, 377, 3172, 1616, 273, 8984, 31, 540, 368, 11010, 316, 810, 1613,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1149, 1024, 22375, 1435, 565, 288, 3639, 596, 2932, 18753, 1760, 434, 1024, 22375, 1435, 12146, 6062, 8863, 3639, 509, 377, 3172, 1616, 273, 8984, 31, 540, 368, 11010, 316, 810, 1613,...
public void readThemes(IExtensionRegistry in, ThemeRegistry out) throws CoreException {
public void readThemes(IExtensionRegistry in, ThemeRegistry out) {
public void readThemes(IExtensionRegistry in, ThemeRegistry out) throws CoreException { // this does not seem to really ever be throwing an the exception setRegistry(out); readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_THEMES); // support for old font definitions readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_FONT_DEFINITIONS); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ee7323193babe7ea791522f9fc143b04d4ce0258/ThemeRegistryReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ThemeRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 30224, 12, 45, 3625, 4243, 316, 16, 19745, 4243, 596, 13, 5411, 1216, 30015, 288, 3639, 368, 333, 1552, 486, 19264, 358, 8654, 14103, 506, 19440, 392, 326, 1520, 3639, 444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 30224, 12, 45, 3625, 4243, 316, 16, 19745, 4243, 596, 13, 5411, 1216, 30015, 288, 3639, 368, 333, 1552, 486, 19264, 358, 8654, 14103, 506, 19440, 392, 326, 1520, 3639, 444...
copy.contextFactory = currentFactory();
final IFGlue ifglue_make(Function function) { // Arguments can not be null if (function == null) Kit.codeBug(); // Can only be called on master if (this.function != null) Kit.codeBug(); IFGlue copy; try { copy = (IFGlue)clone(); } catch (CloneNotSupportedException ex) { // Should not happen copy = null; } copy.function = function; copy.contextFactory = currentFactory(); return copy; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/dafa23a7e7cc8ff5391170e3ac8485551625060e/JavaAdapter.java/clean/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 727, 11083, 21308, 344, 309, 7043, 344, 67, 6540, 12, 2083, 445, 13, 3639, 288, 5411, 368, 13599, 848, 486, 506, 446, 5411, 309, 261, 915, 422, 446, 13, 7734, 1475, 305, 18, 710, 19865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 11083, 21308, 344, 309, 7043, 344, 67, 6540, 12, 2083, 445, 13, 3639, 288, 5411, 368, 13599, 848, 486, 506, 446, 5411, 309, 261, 915, 422, 446, 13, 7734, 1475, 305, 18, 710, 19865,...
if (second < 0 || second > 59) throw new IllegalArgumentException( "Invalid second (must be >= 0 and <= 59).");
if (second < 0 || second > 59) { throw new IllegalArgumentException( "Invalid second (must be >= 0 and <= 59)."); }
private static void validateSecond(int second) { if (second < 0 || second > 59) throw new IllegalArgumentException( "Invalid second (must be >= 0 and <= 59)."); }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/TriggerUtils.java/clean/src/java/org/quartz/helpers/TriggerUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1954, 8211, 12, 474, 2205, 13, 288, 3639, 309, 261, 8538, 411, 374, 747, 2205, 405, 14995, 13, 7734, 604, 394, 2754, 12, 13491, 315, 1941, 2205, 261, 11926, 506, 1545, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1954, 8211, 12, 474, 2205, 13, 288, 3639, 309, 261, 8538, 411, 374, 747, 2205, 405, 14995, 13, 7734, 604, 394, 2754, 12, 13491, 315, 1941, 2205, 261, 11926, 506, 1545, 3...
monitor.subTask(SEARCHING_FOR_MARKERS); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); MarkerList markerList = MarkerList.compute(getFilter(), subMonitor, true);
monitor.subTask(SEARCHING_FOR_MARKERS); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); MarkerList markerList = MarkerList.compute(getFilters(), subMonitor, true);
private void internalRefresh(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { int markerLimit = getMarkerLimit(); monitor .beginTask( Messages.getString("MarkerView.19"), markerLimit == -1 ? 60 : 100); //$NON-NLS-1$ haltTableUpdates(); IJobManager jobMan = Platform.getJobManager(); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); try { monitor.subTask(WAITING_FOR_WORKSPACE_CHANGES_TO_FINISH); jobMan.beginRule(root, monitor); if (monitor.isCanceled()) { return; } monitor.subTask(SEARCHING_FOR_MARKERS); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); MarkerList markerList = MarkerList.compute(getFilter(), subMonitor, true); if (monitor.isCanceled()) { return; } if (markerCountDirty) { monitor.subTask(REFRESHING_MARKER_COUNTS); totalMarkers = MarkerList.compute(getMarkerTypes()).length; markerCountDirty = false; } currentMarkers = markerList; } catch (CoreException e) { throw new InvocationTargetException(e); } finally { jobMan.endRule(root); } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. Collection markers = Arrays.asList(currentMarkers.toArray()); if (markerLimit != -1) { monitor.subTask(FILTERING_ON_MARKER_LIMIT); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); markers = SortUtil.getFirst(markers, getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; currentMarkers = new MarkerList(markers); } monitor.subTask(QUEUEING_VIEWER_UPDATES); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); setContents(markers, sub); if (monitor.isCanceled()) return; uiJob.schedule(); try { uiJob.join(); } catch (InterruptedException e) { uiJob.cancel(); monitor.done(); } finally { if (monitor.isCanceled()) { uiJob.cancel(); } } monitor.done(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1ceb585b9b16047c6c580984b0c9962c41a22ba6/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, 377, 3238, 918, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 5411, 1216, 15342, 16, 7558, 288, 3639, 509, 5373, 3039, 273, 23232, 264, 3039, 5621, 3639, 6438, 7734, 263, 10086, 2174, 12, 13491, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2713, 8323, 12, 45, 5491, 7187, 6438, 13, 5411, 1216, 15342, 16, 7558, 288, 3639, 509, 5373, 3039, 273, 23232, 264, 3039, 5621, 3639, 6438, 7734, 263, 10086, 2174, 12, 13491, 4...
public void dispatch(ACLMessage msg) throws NotFoundException {
public void dispatch(ACLMessage msg) throws NotFoundException, TransientException {
public void dispatch(ACLMessage msg) throws NotFoundException { try { String sender = msg.getSource(); if(sender.indexOf('@') == -1) msg.setSource(sender + '@' + addr); StringWriter msgText = new StringWriter(); msg.toText(msgText); ref.message(msgText.toString()); // CORBA call } catch(org.omg.CORBA.SystemException oocse) { throw new NotFoundException("IIOP communication failure: [" + oocse.getMessage() + "]"); } }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/4b6142cd284658402706e4ecccdf48c562f2cb65/RemoteProxyIIOP.java/clean/src/jade/core/RemoteProxyIIOP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3435, 12, 9486, 1079, 1234, 13, 1216, 12323, 16, 28521, 503, 288, 565, 775, 288, 1377, 514, 5793, 273, 1234, 18, 588, 1830, 5621, 1377, 309, 12, 15330, 18, 31806, 2668, 36, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3435, 12, 9486, 1079, 1234, 13, 1216, 12323, 16, 28521, 503, 288, 565, 775, 288, 1377, 514, 5793, 273, 1234, 18, 588, 1830, 5621, 1377, 309, 12, 15330, 18, 31806, 2668, 36, 6...
private void _selectError(int newIndex) { if (newIndex != _selectedError) { _selectedError = newIndex; // add one to account for the (none) item _errorList.setSelectedIndex(_selectedError + 1); } int errPos = _errorPositions[newIndex].getOffset(); try { Document doc = _definitionsView.getDocument(); String text = doc.getText(0, doc.getLength()); int prevNewline = text.lastIndexOf(NEWLINE, errPos); if (prevNewline == -1) { prevNewline = 0; } int nextNewline = text.indexOf(NEWLINE, errPos); if (nextNewline == -1) { nextNewline = doc.getLength(); } _removePreviousHighlight(); _addHighlight(prevNewline, nextNewline); } catch (BadLocationException stupidMachineItWontHappen) {} // now display that line with highlight //System.err.println("Selected error: " + newIndex); _resetEnabledStatus(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/5f1b3bc3f3deca6d356567893a20298f4e5a94a7/CompilerErrorPanel.java/buggy/drjava/src/edu/rice/cs/drjava/ui/CompilerErrorPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 67, 4025, 668, 12, 474, 2704, 1016, 15329, 430, 12, 2704, 1016, 5, 33, 67, 8109, 668, 15329, 67, 8109, 668, 33, 2704, 1016, 31, 759, 24390, 11453, 4631, 1884, 5787, 12, 6102, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 67, 4025, 668, 12, 474, 2704, 1016, 15329, 430, 12, 2704, 1016, 5, 33, 67, 8109, 668, 15329, 67, 8109, 668, 33, 2704, 1016, 31, 759, 24390, 11453, 4631, 1884, 5787, 12, 6102, 13,...
match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import:
match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at:
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp350_AST = null; tmp350_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp350_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp351_AST = null; tmp351_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp351_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp352_AST = null; tmp352_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp352_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp353_AST = null; tmp353_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp353_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp354_AST = null; tmp354_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp354_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp355_AST = null; tmp355_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp355_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp356_AST = null; tmp356_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp356_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp357_AST = null; tmp357_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp357_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp358_AST = null; tmp358_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp358_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp359_AST = null; tmp359_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp359_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp360_AST = null; tmp360_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp360_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp361_AST = null; tmp361_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp361_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp362_AST = null; tmp362_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp362_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp363_AST = null; tmp363_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp363_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 154: { org.exist.xquery.parser.XQueryAST tmp364_AST = null; tmp364_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp364_AST); match(154); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp365_AST = null; tmp365_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp365_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp366_AST = null; tmp366_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp366_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp367_AST = null; tmp367_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp367_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 166: { org.exist.xquery.parser.XQueryAST tmp368_AST = null; tmp368_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp368_AST); match(166); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 170: { org.exist.xquery.parser.XQueryAST tmp369_AST = null; tmp369_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp369_AST); match(170); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 171: { org.exist.xquery.parser.XQueryAST tmp370_AST = null; tmp370_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp370_AST); match(171); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 167: { org.exist.xquery.parser.XQueryAST tmp371_AST = null; tmp371_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp371_AST); match(167); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp372_AST = null; tmp372_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp372_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp373_AST = null; tmp373_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp373_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp374_AST = null; tmp374_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp374_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp375_AST = null; tmp375_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp375_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_external: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_external); if ( inputState.guessing==0 ) { name = "external"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(LITERAL_xmlspace); if ( inputState.guessing==0 ) { name = "xmlspace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordering: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_ordering); if ( inputState.guessing==0 ) { name = "ordering"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_construction: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_construction); if ( inputState.guessing==0 ) { name = "construction"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordered: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_ordered); if ( inputState.guessing==0 ) { name = "ordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_unordered: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_unordered); if ( inputState.guessing==0 ) { name = "unordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_typeswitch: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_typeswitch); if ( inputState.guessing==0 ) { name = "typeswitch"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_encoding: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_encoding); if ( inputState.guessing==0 ) { name = "encoding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 64: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(64); if ( inputState.guessing==0 ) { name = "base-uri"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_update: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_update); if ( inputState.guessing==0 ) { name = "update"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_replace: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_replace); if ( inputState.guessing==0 ) { name = "replace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_delete: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_delete); if ( inputState.guessing==0 ) { name = "delete"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_value: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_value); if ( inputState.guessing==0 ) { name = "value"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_insert: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_insert); if ( inputState.guessing==0 ) { name = "insert"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_with: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_with); if ( inputState.guessing==0 ) { name = "with"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_into: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_into); if ( inputState.guessing==0 ) { name = "into"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_rename: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_rename); if ( inputState.guessing==0 ) { name = "rename"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_option: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_option); if ( inputState.guessing==0 ) { name = "option"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_case: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_case); if ( inputState.guessing==0 ) { name = "case"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_validate: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_validate); if ( inputState.guessing==0 ) { name = "validate"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/a591df0eed7c1c55bc716a7d445195572abcc4e7/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData(gdCMPButtons); cmpButtons.setLayout(glButtons);
cmpButtons = new Composite( cmpContent, SWT.NONE ); GridData gdCMPButtons = new GridData( GridData.FILL_HORIZONTAL ); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData( gdCMPButtons ); cmpButtons.setLayout( glButtons );
private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); GridLayout glGeneral = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpGeneral = new Composite(cmpContent, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_BOTH); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); Label lblStartColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLStartColor = new GridData(); lblStartColor.setLayoutData(gdLBLStartColor); lblStartColor.setText(Messages.getString("GradientEditorDialog.Lbl.StartColor")); //$NON-NLS-1$ fccStartColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getStartColor(), false, false); GridData gdFCCStartColor = new GridData(GridData.FILL_HORIZONTAL); fccStartColor.setLayoutData(gdFCCStartColor); fccStartColor.addListener(this); Label lblEndColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLEndColor = new GridData(); lblEndColor.setLayoutData(gdLBLEndColor); lblEndColor.setText(Messages.getString("GradientEditorDialog.Lbl.EndColor")); //$NON-NLS-1$ fccEndColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getEndColor(), false, false); GridData gdFCCEndColor = new GridData(GridData.FILL_HORIZONTAL); fccEndColor.setLayoutData(gdFCCEndColor); fccEndColor.addListener(this); Label lblDummy = new Label(cmpGeneral, SWT.NONE); GridData gdLBLDummy = new GridData(GridData.FILL_BOTH); lblDummy.setLayoutData(gdLBLDummy); createRotationPanel(); /* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL); * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ Group grpPreview = new Group(cmpContent, SWT.NONE); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 2; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(new FillLayout()); grpPreview.setText(Messages.getString("GradientEditorDialog.Lbl.Preview")); //$NON-NLS-1$ cnvPreview = new FillCanvas(grpPreview, SWT.NO_FOCUS); cnvPreview.setFill(gCurrent); GridLayout glButtons = new GridLayout(); glButtons.numColumns = 2; glButtons.horizontalSpacing = 5; glButtons.verticalSpacing = 5; glButtons.marginHeight = 2; glButtons.marginWidth = 7; cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData(gdCMPButtons); cmpButtons.setLayout(glButtons); btnAccept = new Button(cmpButtons, SWT.PUSH); GridData gdBTNAccept = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END); gdBTNAccept.grabExcessHorizontalSpace = true; btnAccept.setLayoutData(gdBTNAccept); btnAccept.setText(Messages.getString("Shared.Lbl.OK")); //$NON-NLS-1$ btnAccept.addSelectionListener(this); btnCancel = new Button(cmpButtons, SWT.PUSH); GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNCancel.grabExcessHorizontalSpace = false; btnCancel.setLayoutData(gdBTNCancel); btnCancel.setText(Messages.getString("Shared.Lbl.Cancel")); //$NON-NLS-1$ btnCancel.addSelectionListener(this); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/GradientEditorDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GradientEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1...
if(shell != null && shell.isDisposed()) { return; }
if(shell != null && shell.isDisposed()) return;
public void run() { if (alreadyClosed) { return;//Check again as the async may come too late } Shell shell = getShell(); if(shell != null && shell.isDisposed()) { return; } runnable.run(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4102116244e6b35a3f050b84e655e4dc0c6fb37c/ProgressMonitorFocusJobDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 430, 261, 17583, 7395, 13, 288, 6862, 1082, 202, 2463, 31, 759, 1564, 3382, 487, 326, 4326, 225, 2026, 12404, 4885, 26374, 25083, 202, 97, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 430, 261, 17583, 7395, 13, 288, 6862, 1082, 202, 2463, 31, 759, 1564, 3382, 487, 326, 4326, 225, 2026, 12404, 4885, 26374, 25083, 202, 97, 250...
public PatternDescr lhs_exist() throws RecognitionException { PatternDescr d; Token loc=null; PatternDescr column = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: (loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: loc= 'exists' ( '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,54,FOLLOW_54_in_lhs_exist2551); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:30: ( '(' column= lhs_column ')' | column= lhs_column ) int alt59=2; int LA59_0 = input.LA(1); if ( LA59_0==21 ) { alt59=1; } else if ( LA59_0==ID ) { alt59=2; } else { NoViableAltException nvae = new NoViableAltException("917:30: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 59, 0, input); throw nvae; } switch (alt59) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:31: '(' column= lhs_column ')' { match(input,21,FOLLOW_21_in_lhs_exist2554); following.push(FOLLOW_lhs_column_in_lhs_exist2558); column=lhs_column(); following.pop(); match(input,23,FOLLOW_23_in_lhs_exist2560); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:59: column= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_exist2566); column=lhs_column(); following.pop(); } break; } d = new ExistsDescr( (ColumnDescr) column ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 7398, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 6830, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, 273, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6830, 16198, 8499, 67, 7398, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 6830, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, 273, 446, ...
if(structuredViewerManager != null && structuredViewerManager.getViewer() != null)
if(structuredViewerManager != null && structuredViewerManager.getViewer() != null) {
public Shell getShell() { if(structuredViewerManager != null && structuredViewerManager.getViewer() != null) return structuredViewerManager.getViewer().getControl().getShell(); return null; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorContentService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19433, 7932, 1165, 1435, 288, 202, 202, 430, 12, 17233, 18415, 1318, 480, 446, 597, 19788, 18415, 1318, 18, 588, 18415, 1435, 480, 446, 13, 1082, 202, 2463, 19788, 18415, 1318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19433, 7932, 1165, 1435, 288, 202, 202, 430, 12, 17233, 18415, 1318, 480, 446, 597, 19788, 18415, 1318, 18, 588, 18415, 1435, 480, 446, 13, 1082, 202, 2463, 19788, 18415, 1318, ...
RubyClass nameError = defineClass("NameError", standardError);
RubyClass nameError = RubyNameError.createNameErrorClass(this, standardError);
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); objectClass.setConstant("Module", moduleClass); RubyClass classClass = new RubyClass(this, null /* Would be Class if it could */, moduleClass, null, "Class"); objectClass.setConstant("Class", classClass); // I don't think the containment is correct here (parent cref) RubyClass metaClass = objectClass.makeMetaClass(classClass, objectMetaClass.getCRef()); metaClass = moduleClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); metaClass = classClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); ((ObjectMetaClass) moduleClass).initializeBootstrapClass(); kernelModule = RubyKernel.createKernelModule(this); objectClass.includeModule(kernelModule); RubyClass.createClassClass(classClass); nilClass = RubyNil.createNilClass(this); // We cannot define this constant until nil itself was made objectClass.defineConstant("NIL", getNil()); // Pre-create the core classes we know we will get referenced by starting up the runtime. RubyBoolean.createFalseClass(this); RubyBoolean.createTrueClass(this); RubyComparable.createComparable(this); RubyEnumerable.createEnumerableModule(this); stringClass = new StringMetaClass(this); stringClass.initializeClass(); new SymbolMetaClass(this).initializeClass(); RubyThreadGroup.createThreadGroupClass(this); RubyThread.createThreadClass(this); RubyException.createExceptionClass(this); RubyPrecision.createPrecisionModule(this); new NumericMetaClass(this).initializeClass(); new IntegerMetaClass(this).initializeClass(); fixnumClass = new FixnumMetaClass(this); fixnumClass.initializeClass(); new HashMetaClass(this).initializeClass(); new IOMetaClass(this).initializeClass(); new ArrayMetaClass(this).initializeClass(); Java.createJavaModule(this); RubyClass structClass = RubyStruct.createStructClass(this); tmsStruct = RubyStruct.newInstance(structClass, new IRubyObject[] { newString("Tms"), newSymbol("utime"), newSymbol("stime"), newSymbol("cutime"), newSymbol("cstime")}); RubyFloat.createFloatClass(this); new BignumMetaClass(this).initializeClass(); new BindingMetaClass(this).initializeClass(); RubyMath.createMathModule(this); // depends on all numeric types RubyRegexp.createRegexpClass(this); RubyRange.createRangeClass(this); RubyObjectSpace.createObjectSpaceModule(this); RubyGC.createGCModule(this); new ProcMetaClass(this).initializeClass(); RubyMethod.createMethodClass(this); RubyMatchData.createMatchDataClass(this); RubyMarshal.createMarshalModule(this); RubyDir.createDirClass(this); RubyFileTest.createFileTestModule(this); new FileMetaClass(this).initializeClass(); // depends on IO, FileTest RubyProcess.createProcessModule(this); new TimeMetaClass(this).initializeClass(); RubyUnboundMethod.defineUnboundMethodClass(this); RubyClass exceptionClass = getClass("Exception"); RubyClass standardError = defineClass("StandardError", exceptionClass); RubyClass runtimeError = defineClass("RuntimeError", standardError); RubyClass ioError = defineClass("IOError", standardError); RubyClass scriptError = defineClass("ScriptError", exceptionClass); RubyClass nameError = defineClass("NameError", standardError); RubyClass rangeError = defineClass("RangeError", standardError); defineClass("SystemExit", exceptionClass); defineClass("Fatal", exceptionClass); defineClass("Interrupt", exceptionClass); defineClass("SignalException", exceptionClass); defineClass("TypeError", standardError); defineClass("ArgumentError", standardError); defineClass("IndexError", standardError); defineClass("SyntaxError", scriptError); defineClass("LoadError", scriptError); defineClass("NotImplementedError", scriptError); defineClass("NoMethodError", nameError); defineClass("SecurityError", standardError); defineClass("NoMemoryError", exceptionClass); defineClass("RegexpError", standardError); defineClass("EOFError", ioError); defineClass("LocalJumpError", standardError); defineClass("ThreadError", standardError); defineClass("SystemStackError", exceptionClass); defineClass("ZeroDivisionError", standardError); // FIXME: Actually this somewhere defineClass("FloatDomainError", rangeError); NativeException.createClass(this, runtimeError); systemCallError = defineClass("SystemCallError", standardError); errnoModule = defineModule("Errno"); initErrnoErrors(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/1278c5bb3507a052d150d814f15453542ae41aed/Ruby.java/buggy/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 4670, 4818, 1435, 288, 3639, 14648, 797, 733, 2781, 797, 273, 394, 14648, 797, 12, 2211, 1769, 3639, 733, 2781, 797, 18, 11160, 797, 5621, 7734, 23992, 273, 733, 2781, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4670, 4818, 1435, 288, 3639, 14648, 797, 733, 2781, 797, 273, 394, 14648, 797, 12, 2211, 1769, 3639, 733, 2781, 797, 18, 11160, 797, 5621, 7734, 23992, 273, 733, 2781, 79...
data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl));
data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2]));
public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 509, 9437, 16, 3821, 16, 2811, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 509, 9437, 16, 3821, 16, 2811, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 570...
public void endElement(QName element, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>endElement ("+element.rawname+")"); } if (!fDeferNodeExpansion) { // REVISIT: Should this happen after we call the filter? if (fStorePSVI && augs != null) { ElementPSVI elementPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI); if (elementPSVI != null) { ((PSVIElementNSImpl)fCurrentNode).setPSVI(elementPSVI); } } if (fDOMFilter != null) { if (fFilterReject) { if (element.equals(fRejectedElement)) { fFilterReject = false; } return; } if (!fSkippedElemStack.isEmpty()) { if (fSkippedElemStack.peek().equals(element)) { fSkippedElemStack.pop(); return; } } setCharacterData(false); if ((fDOMFilter.getWhatToShow() & NodeFilter.SHOW_ELEMENT)!=0) { short code = fDOMFilter.acceptNode(fCurrentNode); switch (code) { case LSParserFilter.FILTER_INTERRUPT:{ throw new RuntimeException("The normal processing of the document was interrupted."); } case LSParserFilter.FILTER_REJECT:{ Node parent = fCurrentNode.getParentNode(); parent.removeChild(fCurrentNode); fCurrentNode = parent; return; } case LSParserFilter.FILTER_SKIP: { // make sure that if any char data is available // the fFirstChunk is true, so that if the next event // is characters(), and the last node is text, we will copy // the value already in the text node to fStringBuffer // (not to loose it). fFirstChunk = true; // replace children Node parent = fCurrentNode.getParentNode(); NodeList ls = fCurrentNode.getChildNodes(); int length = ls.getLength(); for (int i=0;i<length;i++) { parent.appendChild(ls.item(0)); } parent.removeChild(fCurrentNode); fCurrentNode = parent; return; } default: { } } } fCurrentNode = fCurrentNode.getParentNode(); } // end-if DOMFilter else { setCharacterData(false); fCurrentNode = fCurrentNode.getParentNode(); } } else { fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); } } // endElement(QName)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 13688, 930, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14840, 12, 13688, 930, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, ...
if ((i + 1) < argv.length) { arguments.put(TEST_NAME_OPT, trim(argv[i + 1])); i++; } }
if ((i + 1) < argv.length) { arguments.put(TEST_NAME_OPT, trim(argv[i + 1])); i++; } }
public static Map parseCommandLine(final String[] originalArgv) { for (int i = 0; i < originalArgv.length; ++i) { LOGGER.debug("originalArgv[" + i + "] = \"" + originalArgv[i] + "\""); } // TODO CQ In this method, is this OK to simply ignore invalid parameters? LOGGER.debug("TestNG version: \"" + (VersionInfo.IS_JDK14 ? "14" : "15") + "\""); Map<String, Object> arguments = new HashMap<String, Object>(); String[] argv = expandArgv(originalArgv); for (int i = 0; i < argv.length; i++) { if (OUTDIR_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(OUTDIR_COMMAND_OPT, argv[i + 1].trim()); } else { LOGGER.error("WARNING: missing output directory after -d. ignored"); } i++; } else if (GROUPS_COMMAND_OPT.equalsIgnoreCase(argv[i]) || EXCLUDED_GROUPS_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { String option = null; if (argv[i + 1].startsWith("\"")) { if (argv[i + 1].endsWith("\"")) { option = argv[i + 1].substring(1, argv[i + 1].length() - 1); } else { LOGGER.error("WARNING: groups option is not well quoted:" + argv[i + 1]); option = argv[i + 1].substring(1); } } else { option = argv[i + 1]; } String opt = GROUPS_COMMAND_OPT.equalsIgnoreCase(argv[i]) ? GROUPS_COMMAND_OPT : EXCLUDED_GROUPS_COMMAND_OPT; arguments.put(opt, option); } else { LOGGER.error("WARNING: missing groups parameter after -groups. ignored"); } i++; } else if (LOG.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(LOG, Integer.valueOf(argv[i + 1].trim())); } else { LOGGER.error("WARNING: missing log level after -log. ignored"); } i++; } else if (JUNIT_DEF_OPT.equalsIgnoreCase(argv[i])) { arguments.put(JUNIT_DEF_OPT, Boolean.TRUE); } else if (TARGET_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(DEFAULT_ANNOTATIONS_COMMAND_OPT, AnnotationTypeEnum.valueOf(argv[i + 1])); LOGGER.info(TARGET_COMMAND_OPT + " has been deprecated use " + DEFAULT_ANNOTATIONS_COMMAND_OPT); ++i; } } else if (DEFAULT_ANNOTATIONS_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(DEFAULT_ANNOTATIONS_COMMAND_OPT, AnnotationTypeEnum.valueOf(argv[i + 1])); ++i; } } else if (TESTRUNNER_FACTORY_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(TESTRUNNER_FACTORY_COMMAND_OPT, fileToClass(argv[++i])); } else { LOGGER.error("WARNING: missing ITestRunnerFactory class or file argument after " + TESTRUNNER_FACTORY_COMMAND_OPT); } } else if (LISTENER_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { String[] strs = Utils.split(argv[++i], ";"); List<Class> classes = new ArrayList<Class>(); for (String cls : strs) { classes.add(fileToClass(cls)); } arguments.put(LISTENER_COMMAND_OPT, classes); } else { LOGGER.error("WARNING: missing ITestListener class/file list argument after " + LISTENER_COMMAND_OPT); } } else if (TESTCLASS_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { while ((i + 1) < argv.length) { String nextArg = argv[i + 1].trim(); if (!nextArg.toLowerCase().endsWith(".xml") && !nextArg.startsWith("-")) { // Assume it's a class name List<Class> l = (List<Class>) arguments.get(TESTCLASS_COMMAND_OPT); if (null == l) { l = new ArrayList<Class>(); arguments.put(TESTCLASS_COMMAND_OPT, l); } Class cls = fileToClass(nextArg); if (null != cls) { l.add(cls); } i++; } // if else { break; } } } else { TestNG.exitWithError("-testclass must be followed by a classname"); } } else if (TESTJAR_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(TESTJAR_COMMAND_OPT, argv[i + 1].trim()); } else { TestNG.exitWithError("-testjar must be followed by a valid jar"); } i++; } else if (SRC_COMMAND_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(SRC_COMMAND_OPT, argv[i + 1].trim()); } else { TestNG.exitWithError(SRC_COMMAND_OPT + " must be followed by a directory path"); } i++; } else if (HOST_COMMAND_OPT.equals(argv[i])) { String hostAddress = "127.0.0.1"; if ((i + 1) < argv.length) { hostAddress = argv[i + 1].trim(); i++; } else { LOGGER.warn("WARNING: " + HOST_COMMAND_OPT + " option should be followed by the host address. " + "Using default localhost."); } arguments.put(HOST_COMMAND_OPT, hostAddress); } else if (PORT_COMMAND_OPT.equals(argv[i])) { String portNumber = null; if ((i + 1) < argv.length) { portNumber = argv[i + 1].trim(); } else { TestNG.exitWithError( PORT_COMMAND_OPT + " option should be followed by a valid port number."); } arguments.put(PORT_COMMAND_OPT, portNumber); i++; } else if (SLAVE_OPT.equals(argv[i])) { String clientPortNumber = null; if ((i + 1) < argv.length) { clientPortNumber = argv[i + 1].trim(); } else { TestNG.exitWithError(SLAVE_OPT + " option should be followed by a valid port number."); } arguments.put(SLAVE_OPT, clientPortNumber); i++; } else if (HOSTFILE_OPT.equals(argv[i])) { String hostFile = null; if ((i + 1) < argv.length) { hostFile = argv[i + 1].trim(); } else { TestNG.exitWithError(HOSTFILE_OPT + " option should be followed by the name of a file."); } arguments.put(HOSTFILE_OPT, hostFile); i++; } else if (PARALLEL_MODE.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(PARALLEL_MODE, argv[i + 1]); i++; } } else if (THREAD_COUNT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(THREAD_COUNT, argv[i + 1]); i++; } } else if (USE_DEFAULT_LISTENERS.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(USE_DEFAULT_LISTENERS, argv[i + 1]); i++; } } else if (SUITE_NAME_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(SUITE_NAME_OPT, trim(argv[i + 1])); i++; } } else if (TEST_NAME_OPT.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { arguments.put(TEST_NAME_OPT, trim(argv[i + 1])); i++; } } // // Unknown option // else if (argv[i].startsWith("-")) { TestNG.exitWithError("Unknown option: " + argv[i]); } // // The XML files // else { List<String> suiteDefs = new ArrayList<String>(); for (int k = i; k < argv.length; k++) { String file = argv[k].trim(); if (file.toLowerCase().endsWith(".xml")) { suiteDefs.add(file); i++; } } arguments.put(SUITE_DEF_OPT, suiteDefs); } } for (Map.Entry entry : arguments.entrySet()) { LOGGER.debug("parseCommandLine argument: \"" + entry.getKey() + "\" = \"" + entry.getValue() + "\""); } return arguments; }
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/67d69cf03a16f394473835f70ff3863fb12c748f/TestNGCommandLineArgs.java/buggy/src/main/org/testng/TestNGCommandLineArgs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 1635, 1109, 21391, 12, 6385, 514, 8526, 2282, 4117, 90, 13, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2282, 4117, 90, 18, 2469, 31, 965, 77, 13, 288, 1377, 4145, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 1635, 1109, 21391, 12, 6385, 514, 8526, 2282, 4117, 90, 13, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2282, 4117, 90, 18, 2469, 31, 965, 77, 13, 288, 1377, 4145, 18,...
} else if (protocol.equals("https")) {
} else if (protocol.equals("https")) {
public static int getNumber(String protocol) { if (protocol.equals("iiop")) { return IIOP; } else if (protocol.equals("iiops")) { return IIOPS; } else if (protocol.equals("http")) { return HTTP; } else if (protocol.equals("https")) { return HTTPS; } else { throw new IllegalArgumentException("protocol = " + protocol); } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/Protocol.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/Protocol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 18491, 12, 780, 1771, 13, 288, 3639, 309, 261, 8373, 18, 14963, 2932, 2835, 556, 6, 3719, 288, 5411, 327, 23076, 3665, 31, 3639, 289, 469, 309, 261, 8373, 18, 14963, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 18491, 12, 780, 1771, 13, 288, 3639, 309, 261, 8373, 18, 14963, 2932, 2835, 556, 6, 3719, 288, 5411, 327, 23076, 3665, 31, 3639, 289, 469, 309, 261, 8373, 18, 14963, 293...
public String[] [] getZoneStrings () { return zoneStrings; }
private String[][] getZoneStrings(ResourceBundle res) { try { int index = 0; String data = res.getString("zoneStrings"); String[] zones = data.split("\u00a9"); String[][] array = new String[zones.length][]; for (int a = 0; a < zones.length; ++a) array[a] = zones[a].split("\u00ae"); return array; } catch (MissingResourceException e) { return new String[0][]; } }
public String[] [] getZoneStrings () { return zoneStrings; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8715d93b882a298d1d0f54ea1f86e040d824a1db/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 5378, 30680, 7957, 1832, 225, 288, 565, 327, 4157, 7957, 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, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 5378, 30680, 7957, 1832, 225, 288, 565, 327, 4157, 7957, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public GoToWebPageWindow(GoToWebPage module) { super(module, false); setBackground(Color.cyan); Panel contents = getGraphicsArea(); contents.setLayout(new BorderLayout()); contents.setBackground(Color.cyan); explanation= new TextArea("", 8, 3, TextArea.SCROLLBARS_NONE); tF= new TextField(); if (!StringUtil.blank(module.targetName)) tF.setText(module.targetName); tF.setEditable(true); tF.setBackground(Color.cyan); tF.setVisible(true); contents.add("North", tF); contents.add("Center", explanation); Panel buttons = new Panel(); Font f = explanation.getFont(); if (f!=null){ Font fontToSet = new Font (f.getName(), f.getStyle(), f.getSize()+4); if (fontToSet!= null) { explanation.setFont(fontToSet); } } contents.add("South", buttons); Button ok=null; buttons.add("South", ok = new WindowButton("Show", this)); Font df = new Font("Dialog", Font.PLAIN, 12); ok.setFont(df); setWindowSize(120, 60); resetTitle(); }
55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/12ce36e6531eb5e22c83d4df582c874ca7402df3/GoToWebPage.java/buggy/Source/mesquite/basic/GoToWebPage/GoToWebPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4220, 774, 4079, 1964, 3829, 12, 5741, 774, 4079, 1964, 1605, 13, 288, 202, 202, 9565, 12, 2978, 16, 629, 1769, 202, 202, 542, 8199, 12, 2957, 18, 25879, 1769, 202, 202, 5537,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4220, 774, 4079, 1964, 3829, 12, 5741, 774, 4079, 1964, 1605, 13, 288, 202, 202, 9565, 12, 2978, 16, 629, 1769, 202, 202, 542, 8199, 12, 2957, 18, 25879, 1769, 202, 202, 5537,...
int width= s.getInt("width"); int height= s.getInt("height");
} catch (NumberFormatException e) { fLocation= null; } try { int width= fSettings.getInt("width"); int height= fSettings.getInt("height");
private void readSettings() { IDialogSettings s= getDialogSettings(); try { int x= s.getInt("x"); //$NON-NLS-1$ int y= s.getInt("y"); //$NON-NLS-1$ fLocation= new Point(x, y); int width= s.getInt("width"); //$NON-NLS-1$ int height= s.getInt("height"); //$NON-NLS-1$ fSize= new Point(width, height); } catch (NumberFormatException e) { fLocation= null; fSize= null; } }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/90b8b1f11723bc5aaee038ab4b993ffc559e3839/OpenTypeSelectionDialog.java/clean/org.eclipse.ajdt.ui/src31/org/eclipse/ajdt/internal/ui/dialogs/OpenTypeSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 2628, 1435, 288, 202, 202, 734, 3529, 2628, 272, 33, 31774, 2628, 5621, 202, 202, 698, 288, 1082, 202, 474, 619, 33, 272, 18, 588, 1702, 2932, 92, 8863, 4329, 3993,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 2628, 1435, 288, 202, 202, 734, 3529, 2628, 272, 33, 31774, 2628, 5621, 202, 202, 698, 288, 1082, 202, 474, 619, 33, 272, 18, 588, 1702, 2932, 92, 8863, 4329, 3993,...
ElementRefValue elementRefValue = (ElementRefValue) label1 .getIntrinsicProperty( DesignElement.EXTENDS_PROP );
ElementRefValue elementRefValue = (ElementRefValue) CoreTestUtil .getIntrinsicProperty( label1, DesignElement.EXTENDS_PROP );
public void testGetIntrinsicProperty( ) { // get intrinsic property from styledElement which has name styledElement.setName( "styled element" ); //$NON-NLS-1$ Object o = styledElement.getIntrinsicProperty( DesignElement.NAME_PROP ); assertEquals( "styled element", o ); //$NON-NLS-1$ // get intrinsic property from styledElement which has style style.setName( "style" ); //$NON-NLS-1$ o = styledElement.getIntrinsicProperty( StyledElement.STYLE_PROP ); assertNull( o ); styledElement.setStyle( style ); o = styledElement.getIntrinsicProperty( StyledElement.STYLE_PROP ); assertEquals( style, ( (ElementRefValue) o ).getElement( ) ); // get intrinsic property from Label which has extends element Label label1 = new Label( ); Label label2 = new Label( ); label2.setName( "hexingjie" ); //$NON-NLS-1$ label1.setExtendsElement( label2 ); ElementRefValue elementRefValue = (ElementRefValue) label1 .getIntrinsicProperty( DesignElement.EXTENDS_PROP ); assertEquals( "hexingjie", elementRefValue.getElement( ).getName( ) ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d3d717b342078d1f9dfce85bfecc1cb5d3ec367c/StyledElementTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/core/StyledElementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 382, 21760, 1396, 12, 262, 202, 95, 202, 202, 759, 336, 28871, 1272, 628, 16253, 1259, 1046, 1492, 711, 508, 202, 202, 334, 93, 1259, 1046, 18, 542, 461, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 382, 21760, 1396, 12, 262, 202, 95, 202, 202, 759, 336, 28871, 1272, 628, 16253, 1259, 1046, 1492, 711, 508, 202, 202, 334, 93, 1259, 1046, 18, 542, 461, 12, ...
putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) {
putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) {
private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; // 1 for this int code_length = 16; // aload_0, getfield, aload_0, getstatic, const, // aaload, const/aconst_null, invokeinterface if (i > 5) { if (i > Byte.MAX_VALUE) code_length += 2; // sipush else code_length++; // bipush } if (paramtypes.length > 0) { code_length += 3; // anewarray if (paramtypes.length > Byte.MAX_VALUE) code_length += 2; // sipush else if (paramtypes.length > 5) code_length++; // bipush for (int j = 0; j < paramtypes.length; j++) { code_length += 4; // dup, const, load, store Class type = paramtypes[j]; if (j > 5) { if (j > Byte.MAX_VALUE) code_length += 2; // sipush else code_length++; // bipush } if (param_count >= 4) code_length++; // 2-byte load param_count++; if (type.isPrimitive()) { code_length += 7; // new, dup, invokespecial if (type == long.class || type == double.class) { wrap_overhead = 3; param_count++; } else if (wrap_overhead < 2) wrap_overhead = 2; } } } int end_pc = code_length; Class ret_type = m.getReturnType(); if (ret_type == void.class) code_length++; // return else if (ret_type.isPrimitive()) code_length += 7; // cast, invokevirtual, return else code_length += 4; // cast, return int exception_count = 0; boolean throws_throwable = false; for (int j = 0; j < e.length; j++) if (e[j] == Throwable.class) { throws_throwable = true; break; } if (! throws_throwable) { exception_count = e.length + 3; // Throwable, Error, RuntimeException code_length += 9; // new, dup_x1, swap, invokespecial, athrow } int handler_pc = code_length - 1; StringBuffer signature = new StringBuffer("("); for (int j = 0; j < paramtypes.length; j++) signature.append(TypeSignature.getEncodingOfClass(paramtypes[j])); signature.append(")").append(TypeSignature.getEncodingOfClass(ret_type)); // Now we have enough information to emit the method. // handler.access_flags putU2(Modifier.PUBLIC | Modifier.FINAL); // handler.name_index putU2(utf8Info(m.getName())); // handler.descriptor_index putU2(utf8Info(signature.toString())); // handler.attributes_count - Code is necessary, Exceptions possible putU2(e.length > 0 ? 2 : 1); // handler.Code.info: // type name(args) { // try { // return (type) h.invoke(this, methods[i], new Object[] {args}); // } catch (<declared Exceptions> e) { // throw e; // } catch (Throwable t) { // throw new UndeclaredThrowableException(t); // } // } // Special cases: // if arg_n is primitive, wrap it // if method throws Throwable, try-catch is not needed // if method returns void, return statement not needed // if method returns primitive, unwrap it // save space by sharing code for all the declared handlers // handler.Code.attribute_name_index putU2(utf8Info("Code")); // handler.Code.attribute_length putU4(12 + code_length + 8 * exception_count); // handler.Code.max_stack putU2(param_count == 1 ? 4 : 7 + wrap_overhead); // handler.Code.max_locals putU2(param_count); // handler.Code.code_length putU4(code_length); // handler.Code.code[] putU1(ALOAD_0); putU1(GETFIELD); putU2(refInfo(FIELD, "java/lang/reflect/Proxy", "h", "Ljava/lang/reflect/InvocationHandler;")); putU1(ALOAD_0); putU1(GETSTATIC); putU2(refInfo(FIELD, TypeSignature.getEncodingOfClass(qualName, false), "m", "[Ljava/lang/reflect/Method;")); putConst(i); putU1(AALOAD); if (paramtypes.length > 0) { putConst(paramtypes.length); putU1(ANEWARRAY); putU2(classInfo("java/lang/Object")); param_count = 1; for (int j = 0; j < paramtypes.length; j++, param_count++) { putU1(DUP); putConst(j); if (paramtypes[j].isPrimitive()) { putU1(NEW); putU2(classInfo(wrapper(paramtypes[j]))); putU1(DUP); } putLoad(param_count, paramtypes[j]); if (paramtypes[j].isPrimitive()) { putU1(INVOKESPECIAL); putU2(refInfo(METHOD, wrapper(paramtypes[j]), "<init>", '(' + (TypeSignature .getEncodingOfClass(paramtypes[j]) + ")V"))); if (paramtypes[j] == long.class || paramtypes[j] == double.class) param_count++; } putU1(AASTORE); } } else putU1(ACONST_NULL); putU1(INVOKEINTERFACE); putU2(refInfo(INTERFACE, "java/lang/reflect/InvocationHandler", "invoke", INVOKE_SIG)); putU1(4); // InvocationHandler, this, Method, Object[] putU1(0); if (ret_type == void.class) putU1(RETURN); else if (ret_type.isPrimitive()) { putU1(CHECKCAST); putU2(classInfo(wrapper(ret_type))); putU1(INVOKEVIRTUAL); putU2(refInfo(METHOD, wrapper(ret_type), ret_type.getName() + "Value", "()" + TypeSignature.getEncodingOfClass(ret_type))); if (ret_type == long.class) putU1(LRETURN); else if (ret_type == float.class) putU1(FRETURN); else if (ret_type == double.class) putU1(DRETURN); else putU1(IRETURN); } else { putU1(CHECKCAST); putU2(classInfo(ret_type)); putU1(ARETURN); } if (! throws_throwable) { putU1(NEW); putU2(classInfo("java/lang/reflect/UndeclaredThrowableException")); putU1(DUP_X1); putU1(SWAP); putU1(INVOKESPECIAL); putU2(refInfo(METHOD, "java/lang/reflect/UndeclaredThrowableException", "<init>", "(Ljava/lang/Throwable;)V")); putU1(ATHROW); } // handler.Code.exception_table_length putU2(exception_count); // handler.Code.exception_table[] if (! throws_throwable) { // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo("java/lang/Error")); // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo("java/lang/RuntimeException")); for (int j = 0; j < e.length; j++) { // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc putU2(handler_pc); // handler.Code.exception_table.catch_type putU2(classInfo(e[j])); } // handler.Code.exception_table.start_pc putU2(0); // handler.Code.exception_table.end_pc putU2(end_pc); // handler.Code.exception_table.handler_pc - // -8 for undeclared handler, which falls thru to normal one putU2(handler_pc - 8); // handler.Code.exception_table.catch_type putU2(0); } // handler.Code.attributes_count putU2(0); // handler.Code.attributes[] if (e.length > 0) { // handler.Exceptions.attribute_name_index putU2(utf8Info("Exceptions")); // handler.Exceptions.attribute_length putU4(2 * e.length + 2); // handler.Exceptions.number_of_exceptions putU2(e.length); // handler.Exceptions.exception_index_table[] for (int j = 0; j < e.length; j++) putU2(classInfo(e[j])); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4912e36e2c7c8022f56aa40cb456494925b6065d/Proxy.java/buggy/core/src/classpath/java/java/lang/reflect/Proxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 1305, 12, 474, 277, 16, 1659, 8526, 425, 13, 565, 288, 5411, 368, 5783, 16, 732, 675, 11162, 326, 707, 769, 471, 1308, 1779, 18, 1377, 2985, 312, 273, 2590, 63, 77, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3626, 1305, 12, 474, 277, 16, 1659, 8526, 425, 13, 565, 288, 5411, 368, 5783, 16, 732, 675, 11162, 326, 707, 769, 471, 1308, 1779, 18, 1377, 2985, 312, 273, 2590, 63, 77, 1...
public Bounds(String reason)
public Bounds()
public Bounds(String reason) { super(reason); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d76fc1ac7b86065dfd63caf24bd069ff0ecfa278/Bounds.java/buggy/core/src/classpath/org/org/omg/CORBA/Bounds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 20382, 1435, 225, 288, 565, 2240, 12, 10579, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 20382, 1435, 225, 288, 565, 2240, 12, 10579, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
static void incrementSessionCounter(IMCServiceInterface imcref, UserDomainObject user, HttpServletRequest req) throws IOException { if (!( "user".equalsIgnoreCase(user.getLoginName()) && req.getParameter("no_count")!=null) ) { // Only increase the login counter if the user // is 'user' and has a 'no_count' request parameter. imcref.incCounter() ; } // check if we have to push out a popup window to the client // one reason to do so is if we have a poll with a frequence variable > 0 // Get a new PollHandlingSystem PollHandlingSystem poll = imcref.getPollHandlingSystem(); // Get all meta_id that have a poll included HttpSession session = req.getSession( true ); String[][] polls = poll.getAllPolls(); for ( int i=0; polls != null && i < polls.length; i++){ //Get PollParameters from db String[] poll_param = poll.getPollParameters(polls[i][3]); int set_cookie = Integer.parseInt( poll_param[5] ); int popupFrequency = Integer.parseInt( poll_param[4] ); int sessionCounter = imcref.getSessionCounter() ; if (popupFrequency > 0 && sessionCounter % popupFrequency == 0) { session.setAttribute("open poll popup", polls[i][3]) ; } } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/945eaaf550752b6de0ee8560a35f2a7637a1a811/StartDoc.java/buggy/servlets/StartDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 5504, 2157, 4789, 12, 3445, 39, 18348, 709, 71, 1734, 16, 2177, 3748, 921, 729, 16, 9984, 1111, 13, 1216, 1860, 288, 202, 202, 430, 16051, 12, 315, 1355, 9654, 14963, 5556, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 5504, 2157, 4789, 12, 3445, 39, 18348, 709, 71, 1734, 16, 2177, 3748, 921, 729, 16, 9984, 1111, 13, 1216, 1860, 288, 202, 202, 430, 16051, 12, 315, 1355, 9654, 14963, 5556, 12...
if(checkBlockInserters[x-dataBlocks.length] == null) {
x -= dataBlocks.length; if(checkBlockInserters[x] == null) {
private synchronized boolean completed(int x) { Logger.minor(this, "Completed: "+x+" on "+this+" ( completed="+blocksCompleted+", total="+(dataBlockInserters.length+checkBlockInserters.length)); if(finished) return true; if(x >= dataBlocks.length) { if(checkBlockInserters[x-dataBlocks.length] == null) { Logger.error(this, "Completed twice: check block "+x+" on "+this); return true; } checkBlockInserters[x-dataBlocks.length] = null; } else { if(dataBlockInserters[x] == null) { Logger.error(this, "Completed twice: data block "+x+" on "+this); return true; } dataBlockInserters[x] = null; } blocksCompleted++; if(blocksCompleted != dataBlockInserters.length + checkBlockInserters.length) return true; return false; }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/a547979f963f81a958d0283dfe08cd4387e82e23/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 1250, 5951, 12, 474, 619, 13, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9556, 30, 13773, 92, 9078, 603, 13773, 2211, 9078, 261, 5951, 1546, 15, 7996, 9556, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1250, 5951, 12, 474, 619, 13, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9556, 30, 13773, 92, 9078, 603, 13773, 2211, 9078, 261, 5951, 1546, 15, 7996, 9556, 15,...
((ProfileTableModel)viewTable.getModel()).refresh();
TableModelSortDecorator t = (TableModelSortDecorator) viewTable.getModel(); ProfileTableModel t2 = (ProfileTableModel) t.getTableModel(); t2.refresh();
public void actionPerformed(ActionEvent e) { int[] killMe = viewTable.getSelectedRows(); Arrays.sort(killMe); // iterate backwards so the rows don't shift away on us! for (int i = killMe.length-1; i >= 0; i--) { logger.debug("Deleting row "+killMe[i]+": "+viewTable.getValueAt(killMe[i],4)); SQLColumn col = (SQLColumn) viewTable.getValueAt(killMe[i], 4); try { profileManager.remove(col); } catch (ArchitectException e1) { ASUtils.showExceptionDialog(d,"Could delete column:", e1); } } ((ProfileTableModel)viewTable.getModel()).refresh(); }
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/2012e41b038296513e3b66761a0acd73b45e6892/ProfilePanelAction.java/buggy/src/ca/sqlpower/architect/swingui/action/ProfilePanelAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11794, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 27573, 509, 8526, 8673, 4667, 273, 1476, 1388, 18, 588, 7416, 4300, 5621, 27573, 5647, 18, 3804, 12, 16418, 4667, 1769, 27573, 368, 7401, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11794, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 27573, 509, 8526, 8673, 4667, 273, 1476, 1388, 18, 588, 7416, 4300, 5621, 27573, 5647, 18, 3804, 12, 16418, 4667, 1769, 27573, 368, 7401, ...
setStyle((String)newValue);
setStyle((String) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case AttributePackage.STYLE_MAP__COMPONENT_NAME: setComponentName((StyledComponent)newValue); return; case AttributePackage.STYLE_MAP__STYLE: setStyle((String)newValue); return; } eDynamicSet(eFeature, newValue); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/StyleMapImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/StyleMapImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 3601, 2261, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 3601, 2261, 18, 1...
final String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ;
final String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ;
static public void getRolesFromDb( String meta_id, User user, String host, Vector vec ) throws IOException { final String imcserver = Utility.getDomainPref("adminserver",host) ; // Lets get the langprefix final String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; // Lets get the roles_rights_table_header template file StringBuffer roles_rights = new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,"roles_rights_table_head.html",lang_prefix )) ; // Get the info from the user object. // "temp_perm_settings" is an array containing a stringified meta-id, a hashtable of meta-info (column=value), // and a hashtable of roles and their corresponding set_id for this page (role_id=set_id). // This array comes from selecting the permissionpage. People set a lot of stuff in the page, // and then they forget to press "Save" before pressing another button. // If they press another button, this array will be put in the user-object, to remember their settings. Object[] temp_perm_settings = (Object[])user.remove("temp_perm_settings") ; Hashtable temp_perm_hash = null ; String[] temp_default_templates = null; if (temp_perm_settings != null && meta_id.equals(temp_perm_settings[0])){ // Make sure this is the right document. temp_perm_hash = (Hashtable)temp_perm_settings[2] ; temp_default_templates = (String[])temp_perm_settings[3] ; } // Hey, hey! Watch as i fetch the permission-set set (pun intended) for each role! String[][] role_permissions = IMCServiceRMI.sqlProcedureMulti(imcserver, "GetUserRolesDocPermissions "+meta_id+","+user.getInt("user_id")) ; // Now watch as i fetch the permission_set for the user... String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; int currentdoc_perms = Integer.parseInt(current_permissions[2]) ; // A bitvector containing the permissions for this document. (For example if Set-id 1 is more privileged than Set-id 2 (bit 0)) StringBuffer roles_no_rights = new StringBuffer() ; for ( int i=0 ; i<role_permissions.length ; ++i ) { // Get role_id and set_id for role. int role_set_id = Integer.parseInt(role_permissions[i][2]) ; String role_name = role_permissions[i][1] ; String role_id = role_permissions[i][0] ; // Check if we have a temporary setting saved, and then set the role_set_id to it. if (temp_perm_hash != null) { String temp_role_set_id = (String)temp_perm_hash.get(role_id) ; if ( temp_role_set_id!=null ){ role_set_id = Integer.parseInt(temp_role_set_id) ; }else{ // This has a permission in the db, but is currently about to be disabled. role_set_id = IMCConstants.DOC_PERM_SET_NONE ; } } // If the role has no permissions for this document, we put it away in a special html-optionlist. if (role_set_id == IMCConstants.DOC_PERM_SET_NONE){ roles_no_rights.append("<option value=\""+role_id+"\">"+role_name+"</option>") ; roles_rights.append("<input type=\"hidden\" name=\"role_"+role_id+"\" value=\"4\">") ; // So... it's put away for later... we don't need it now. continue ; } Vector vec2 = new Vector() ; vec2.add("#role_name#") ; vec2.add(role_name) ; vec2.add("#user_role#") ; vec2.add(String.valueOf(IMCConstants.DOC_PERM_SET_FULL).equals(role_permissions[i][3]) ? "" : "*") ; // // As we all know... 0 is full, 3 is read, 4 is none, and 1 and 2 are "other" // // Btw, 'none' doesn't really have a value, but is rather the absence of a value. // // I just use 4 here because i have to distinguish the absence of a value from a value that is about to be removed. // // FIXME: Hire the mafia to force me to put these as constants in an interface. // Update: Hey, hey! After finding a horse's head in my bed, i decided to create imcode.server.IMCConstants... for ( int j = IMCConstants.DOC_PERM_SET_FULL ; j <= IMCConstants.DOC_PERM_SET_NONE ; ++j ){ // From DOC_PERM_SET_FULL to DOC_PERM_SET_NONE (0 to 4) vec2.add("#"+j+"#") ; if ( user_set_id <= role_set_id // User has more privileged set_id than role && (user_set_id <= j && (user_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_1 || j != IMCConstants.DOC_PERM_SET_RESTRICTED_2 || (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0)) // User has more privileged set_id than this set_id && (user_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_1 || role_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_2 || (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0) ) // User has set_id 1, and may modify set_id 2? { vec2.add("<input type=\"radio\" name=\"role_"+role_id+"\" value=\""+j+"\" "+((j == role_set_id) ? "checked>" : ">")) ; }else{ vec2.add( (j == role_set_id) ? "*" : "O") ; } } roles_rights.append(IMCServiceRMI.parseDoc(imcserver,vec2,"roles_rights_table_row.html",lang_prefix )) ; } vec.add("#roles_no_rights#") ; vec.add(roles_no_rights.toString()) ; roles_rights.append(IMCServiceRMI.parseDoc(imcserver,null,"roles_rights_table_tail.html",lang_prefix )) ; vec.add("#roles_rights#") ; vec.add(roles_rights.toString()) ; if (user_set_id < 2){ // If the permission_set_id of the user is 0 (full) or 1 (level 1 admin) // We want the buttons for defining permissionsets. /* // Yes, yes, very cool, neat, dandy, and all, but completely illegible! // This stupidity should earn yours truly a C- in obfuscation. // Just Read The Fscking Files! FileTagReplacer ftr = new FileTagReplacer ("permissions/","_button.html") { protected StringBuffer getContent(String name) throws IOException { return new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,name,lang_prefix)) ; } } ; */ Vector ftr = new Vector() ; StringBuffer define_sets = new StringBuffer() ; int doc_type = IMCServiceRMI.getDocType(imcserver,Integer.parseInt(meta_id)) ; String default_templates = "";//the string containing default-templates-option-list if (user_set_id == IMCConstants.DOC_PERM_SET_FULL){ Vector perm_vec = new Vector() ; if ((currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0){ perm_vec.add("#permissions#") ; perm_vec.add("checked") ; } String sets_precedence = IMCServiceRMI.parseDoc(imcserver,perm_vec,"permissions/sets_precedence.html",lang_prefix ) ; ftr.add("#sets_precedence#") ; ftr.add(sets_precedence) ; ftr.add("#set_1#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_1_button.html",lang_prefix)) ; ftr.add("#set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_2_button.html",lang_prefix)) ; if (doc_type == IMCConstants.DOCTYPE_TEXT){ ftr.add("#new_set_1#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_1_button.html",lang_prefix)) ; ftr.add("#new_set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_2_button.html",lang_prefix)) ; //ok lets setup the default_template-option-lists for restricted 1 & 2 default_templates = getDefaultTemplateOptionList(imcserver, user, temp_default_templates, meta_id, lang_prefix, true ); ftr.add("#default_templates#");ftr.add(default_templates); }else{ ftr.add("#new_set_1#") ; ftr.add("") ; ftr.add("#new_set_2#") ; ftr.add("") ; ftr.add("#default_templates#");ftr.add(""); } vec.add("#define_sets#") ; vec.add(IMCServiceRMI.parseDoc(imcserver,ftr,"permissions/define_sets.html",lang_prefix )) ; }else if ( (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0){ ftr.add("#sets_precedence#") ; ftr.add("") ; ftr.add("#set_1#") ; ftr.add("") ; ftr.add("#new_set_1#") ; ftr.add("") ; ftr.add("#set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_2_button.html",lang_prefix)) ; if (doc_type == IMCConstants.DOCTYPE_TEXT){ ftr.add("#new_set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_2_button.html",lang_prefix)) ; //ok lets set up the default_template-option-list for restricted_2 default_templates = getDefaultTemplateOptionList(imcserver, user, temp_default_templates, meta_id, lang_prefix, false ); ftr.add("#default_templates#");ftr.add(default_templates); }else{ ftr.add("#new_set_2#") ; ftr.add("") ; } vec.add(IMCServiceRMI.parseDoc(imcserver,ftr,"permissions/define_sets.html",lang_prefix )) ; }else{ vec.add("#define_sets#") ; vec.add("") ; } }else{ vec.add("#define_sets#") ; vec.add("") ; } } // End of getRolesFromDb
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a591f63fbb91a4626a469c31cba230ca018b8c4e/MetaDataParser.java/buggy/server/src/imcode/util/MetaDataParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1071, 918, 21787, 1265, 4331, 12, 514, 2191, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 5589, 7062, 202, 13, 1216, 1860, 202, 95, 202, 202, 6385, 514, 709, 71, 3567, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1071, 918, 21787, 1265, 4331, 12, 514, 2191, 67, 350, 16, 2177, 729, 16, 514, 1479, 16, 5589, 7062, 202, 13, 1216, 1860, 202, 95, 202, 202, 6385, 514, 709, 71, 3567, 273, 1...
dropDownButton = new ToolBarButtonMenu();
public TopWindowGroup(String name, Icon icon, TaskBar tb) { if (tb == null) throw new NullPointerException("No reference to the TaskBar."); if (name == null || name.length() == 0) throw new IllegalArgumentException("Must provide a name."); taskBar = tb; winSubMenu = new JMenu(name); winSubMenu.setIcon(icon); winSubMenu.setEnabled(false); dropDownButton = new ToolBarButtonMenu(); taskBar.addToMenu(TaskBar.WINDOW_MENU, winSubMenu); taskBar.addToToolBar(TaskBar.QUICK_LAUNCH_TOOLBAR, dropDownButton); windows = new HashMap(); makeCloseAllButtons(); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/3b273af3a5320ab0a054540f14a3c299ff01de69/TopWindowGroup.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/TopWindowGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7202, 3829, 1114, 12, 780, 508, 16, 16011, 4126, 16, 3837, 5190, 8739, 13, 202, 95, 202, 202, 430, 261, 18587, 422, 446, 13, 1082, 202, 12849, 394, 10108, 2932, 2279, 2114, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7202, 3829, 1114, 12, 780, 508, 16, 16011, 4126, 16, 3837, 5190, 8739, 13, 202, 95, 202, 202, 430, 261, 18587, 422, 446, 13, 1082, 202, 12849, 394, 10108, 2932, 2279, 2114, 35...
} else if (attname.startsWith("xmlns:")) { String attsubname = attname.substring(6); Namespace declaredNS = Namespace.getNamespace(attsubname, attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else { prefix = att.getPrefix(); uri = att.getNamespaceURI(); String attLocalName = att.getLocalName(); if (attLocalName == null) { attLocalName = attname; } Namespace attns = Namespace.getNamespace(prefix, uri);
String attvalue = att.getValue(); Namespace attns = null; if ("".equals(attPrefix)) { attns = Namespace.NO_NAMESPACE; } else { attns = element.getNamespace(attPrefix); }
private void buildTree(Node node, Document doc, Element current, boolean atRoot) { // Recurse through the tree switch (node.getNodeType()) { case Node.DOCUMENT_NODE: NodeList nodes = node.getChildNodes(); for (int i=0, size=nodes.getLength(); i<size; i++) { buildTree(nodes.item(i), doc, current, true); } break; case Node.ELEMENT_NODE: String localName = node.getLocalName(); String prefix = node.getPrefix(); String uri = node.getNamespaceURI(); Element element = null; Namespace ns = null; if (uri == null) { if (localName == null) { // Sometimes localName is null, if so try the tag name localName = ((org.w3c.dom.Element)node).getTagName(); } element = factory.element(localName); } else { ns = Namespace.getNamespace(prefix, uri); element = factory.element(localName, ns); } // Add attributes NamedNodeMap attributeList = node.getAttributes(); for (int i=0, size=attributeList.getLength(); i<size; i++) { Attr att = (Attr) attributeList.item(i); // Distinguish between namespace and attribute String attname = att.getName(); String attvalue = att.getValue(); // Don't add xmlns attributes, but do add them as // additional namespaces if they're different than this // element's namespace (perhaps we should also have logic // not to mark them as additional if it's been done // already, but it probably doesn't matter) if (attname.equals("xmlns")) { Namespace declaredNS = Namespace.getNamespace("", attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else if (attname.startsWith("xmlns:")) { String attsubname = attname.substring(6); Namespace declaredNS = Namespace.getNamespace(attsubname, attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else { prefix = att.getPrefix(); uri = att.getNamespaceURI(); String attLocalName = att.getLocalName(); if (attLocalName == null) { // Sometimes attLocalName is null, try attname attLocalName = attname; } Namespace attns = Namespace.getNamespace(prefix, uri); Attribute attribute = factory.attribute(attLocalName, attvalue, attns); element.setAttribute(attribute); } } if (atRoot) { // If at root, set as document root doc.setRootElement(element); } else { // else add to parent element current.addContent(element); } // Recurse on child nodes // The list should never be null nor should it ever contain // null nodes, but some DOM impls are broken NodeList children = node.getChildNodes(); if (children != null) { for (int i=0, size=children.getLength(); i<size; i++) { Node item = children.item(i); if (item != null) { buildTree(item, doc, element, false); } } } break; case Node.TEXT_NODE: String data = node.getNodeValue(); current.addContent(factory.text(data)); break; case Node.CDATA_SECTION_NODE: String cdata = node.getNodeValue(); current.addContent(factory.cdata(cdata)); break; case Node.PROCESSING_INSTRUCTION_NODE: if (atRoot) { doc.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } else { current.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } break; case Node.COMMENT_NODE: if (atRoot) { doc.addContent(factory.comment(node.getNodeValue())); } else { current.addContent(factory.comment(node.getNodeValue())); } break; case Node.ENTITY_REFERENCE_NODE: EntityRef entity = factory.entityRef(node.getNodeName()); current.addContent(entity); break; case Node.ENTITY_NODE: // ?? break; case Node.DOCUMENT_TYPE_NODE: DocumentType domDocType = (DocumentType)node; String publicID = domDocType.getPublicId(); String systemID = domDocType.getSystemId(); String internalDTD = domDocType.getInternalSubset(); DocType docType = factory.docType(domDocType.getName()); docType.setPublicID(publicID); docType.setSystemID(systemID); docType.setInternalSubset(internalDTD); doc.setDocType(docType); break; } }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/c6346ad73f3919c15f9968139a8bb6da97bf755b/DOMBuilder.java/clean/core/src/java/org/jdom/input/DOMBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1361, 2471, 12, 907, 756, 16, 21821, 4319, 997, 16, 21821, 3010, 783, 16, 21821, 1250, 622, 2375, 13, 288, 3639, 368, 868, 17682, 3059, 326, 2151, 3639, 1620, 261, 2159, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1361, 2471, 12, 907, 756, 16, 21821, 4319, 997, 16, 21821, 3010, 783, 16, 21821, 1250, 622, 2375, 13, 288, 3639, 368, 868, 17682, 3059, 326, 2151, 3639, 1620, 261, 2159, 18, ...
this.updateRRD(m_rrdInterface, rrdPath, ipv4Addr, dsName, responseTime, pkg);
{ try { this.updateRRD(m_rrdInterface, rrdPath, ipv4Addr, dsName, responseTime, pkg); } catch(RuntimeException rex) { log.debug("There was a problem writing the RRD:" + rex); } }
public int poll(NetworkInterface iface, Map parameters, org.opennms.netmgt.config.poller.Package pkg) { // // Get interface address from NetworkInterface // if (iface.getType() != iface.TYPE_IPV4) throw new NetworkInterfaceNotSupportedException("Unsupported interface type, only TYPE_IPV4 currently supported"); Category log = ThreadCategory.getInstance(getClass()); int retry = ParameterMap.getKeyedInteger(parameters, "retry", DEFAULT_RETRY); int timeout = ParameterMap.getKeyedInteger(parameters, "timeout", DEFAULT_TIMEOUT); int[] ports = ParameterMap.getKeyedIntegerArray(parameters, "ports", DEFAULT_PORTS); String url = ParameterMap.getKeyedString(parameters, "url", DEFAULT_URL); String rrdPath = ParameterMap.getKeyedString(parameters, "rrd-repository", null); String dsName = ParameterMap.getKeyedString(parameters, "ds-name", null); if (rrdPath == null) { log.info("poll: RRD repository not specified in parameters, latency data will not be stored."); } if (dsName == null) { dsName = DS_NAME; } int response = ParameterMap.getKeyedInteger(parameters, "response", -1); String responseText = ParameterMap.getKeyedString(parameters, "response text", null); // Set to true if "response" property has a valid return code specified. // By default response will be deemed valid if the return code // falls in the range: 99 < rc < 500 // This is based on the following information from RFC 1945 (HTTP 1.0) // HTTP 1.0 GET return codes: // 1xx: Informational - Not used, future use // 2xx: Success // 3xx: Redirection // 4xx: Client error // 5xx: Server error boolean bStrictResponse = (response > 99 && response < 600); // Extract the ip address // InetAddress ipv4Addr = (InetAddress)iface.getAddress(); // Following a successful poll 'currentPort' will contain the port on // the remote host that was successfully queried // final String cmd = "GET " + url + " HTTP/1.0\r\n\r\n"; // Cycle through the port list // int serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; int currentPort = -1; long responseTime = -1; for (int portIndex=0; portIndex < ports.length && serviceStatus != ServiceMonitor.SERVICE_AVAILABLE; portIndex++) { currentPort = ports[portIndex]; if (log.isDebugEnabled()) { log.debug("Port = "+ currentPort + ", Address = " + ipv4Addr + ", Timeout = " + timeout + ", Retry = " + retry); } for (int attempts=0; attempts <= retry && serviceStatus != ServiceMonitor.SERVICE_AVAILABLE; attempts++) { SocketChannel sChannel = null; try { // // create a connected socket // sChannel = SocketChannelUtil.getConnectedSocketChannel(ipv4Addr, currentPort, timeout); if (sChannel == null) { log.debug("HttpMonitor: did not connect to host within timeout: " + timeout +" attempt: " + attempts); continue; } log.debug("HttpMonitor: connected to host: " + ipv4Addr + " on port: " + currentPort); // We're connected, so upgrade status to unresponsive serviceStatus = SERVICE_UNRESPONSIVE; // // Issue HTTP 'GET' command and check the return code in the response // long sentTime = System.currentTimeMillis(); sChannel.socket().getOutputStream().write(cmd.getBytes()); // // Get a buffered input stream that will read a line // at a time // BufferedReader lineRdr = new BufferedReader(new InputStreamReader(sChannel.socket().getInputStream())); String line = lineRdr.readLine(); responseTime = System.currentTimeMillis() - sentTime; if (line == null) continue; if(log.isDebugEnabled()) { log.debug("poll: response= " + line); log.debug("poll: responseTime= " + responseTime + "ms"); } if(line.startsWith("HTTP/")) { StringTokenizer t = new StringTokenizer(line); t.nextToken(); int rVal = -1; try { rVal = Integer.parseInt(t.nextToken()); } catch(NumberFormatException nfE) { log.info("Error converting response code from host = " + ipv4Addr + ", response = " + line); } if (bStrictResponse && rVal == response) { serviceStatus = ServiceMonitor.SERVICE_AVAILABLE; } else if(!bStrictResponse && rVal > 99 && rVal < 500) { serviceStatus = ServiceMonitor.SERVICE_AVAILABLE; } else { serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; } } if (serviceStatus == ServiceMonitor.SERVICE_AVAILABLE && responseText != null && responseText.length() > 0) { // This loop will rip through the rest of the Response Header // do { line = lineRdr.readLine(); } while (line != null && line.length() != 0); if (line == null) continue; // Now lets rip through the Entity-Body (i.e., content) looking // for the required text. // boolean bResponseTextFound = false; do { line = lineRdr.readLine(); if(line != null) { int responseIndex = line.indexOf(responseText); if (responseIndex != -1) bResponseTextFound = true; } } while (line != null && !bResponseTextFound); // Set the status back to failed // if (!bResponseTextFound) serviceStatus = ServiceMonitor.SERVICE_UNAVAILABLE; } } catch(NoRouteToHostException e) { e.fillInStackTrace(); log.warn("No route to host exception for address " + ipv4Addr, e); portIndex = ports.length; // Will cause outer for(;;) to terminate break; // Break out of inner for(;;) } catch(InterruptedException e) { // Ignore e.fillInStackTrace(); if(log.isDebugEnabled()) log.debug("HttpMonitor: Interrupted exception for address: " + ipv4Addr, e); } catch(ConnectException e) { // Connection Refused!! No need to perform retries for this port. // e.fillInStackTrace(); log.debug("Connection exception for " + ipv4Addr + ":" + ports[portIndex], e); break; // Break out of inner for(;;) } catch(IOException e) { // Ignore // e.fillInStackTrace(); log.debug("IOException while polling address " + ipv4Addr, e); } finally { try { // Close the socket if(sChannel != null) sChannel.close(); } catch(IOException e) { e.fillInStackTrace(); log.debug("Error closing socket connection", e); } } } // end for (attempts) } // end for (ports) // Add the 'qualifier' parm to the parameter map. This parm will // contain the port on which the service was found if AVAILABLE or // will contain a comma delimited list of the port(s) which were // tried if the service is UNAVAILABLE // if (serviceStatus == ServiceMonitor.SERVICE_UNAVAILABLE) { // // Build port string // StringBuffer testedPorts = new StringBuffer(); for(int i = 0; i < ports.length; i++) { if(i == 0) testedPorts.append(ports[0]); else testedPorts.append(',').append(ports[i]); } // Add to parameter map parameters.put("qualifier", testedPorts); } else if (serviceStatus == ServiceMonitor.SERVICE_AVAILABLE) { parameters.put("qualifier", Integer.toString(currentPort)); // Store response time in RRD if (responseTime >= 0 && rrdPath != null) this.updateRRD(m_rrdInterface, rrdPath, ipv4Addr, dsName, responseTime, pkg); } // // return the status of the service // return serviceStatus; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/8db833bbb0478b6c88e2a4c6bc08bd80c3f65d0c/HttpMonitor.java/buggy/src/services/org/opennms/netmgt/poller/HttpMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7672, 12, 27413, 9751, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 225, 202, 95, 202, 202, 759, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7672, 12, 27413, 9751, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 225, 202, 95, 202, 202, 759, 202, ...
super.init(site, memento); IWorkbenchSiteProgressService progressService = getProgressService(); if (progressService != null) { getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_MANUAL_BUILD); getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_AUTO_BUILD); } }
super.init(site, memento); IWorkbenchSiteProgressService progressService = getProgressService(); if (progressService != null) { getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_MANUAL_BUILD); getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_AUTO_BUILD); } restoreFilters(); }
public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); IWorkbenchSiteProgressService progressService = getProgressService(); if (progressService != null) { getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_MANUAL_BUILD); getProgressService().showBusyForFamily( ResourcesPlugin.FAMILY_AUTO_BUILD); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1ceb585b9b16047c6c580984b0c9962c41a22ba6/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, 377, 1071, 918, 1208, 12, 45, 1767, 4956, 2834, 16, 6246, 820, 83, 312, 820, 83, 13, 1216, 6393, 2570, 503, 288, 3639, 2240, 18, 2738, 12, 4256, 16, 312, 820, 83, 1769, 3639, 467, 2421, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 45, 1767, 4956, 2834, 16, 6246, 820, 83, 312, 820, 83, 13, 1216, 6393, 2570, 503, 288, 3639, 2240, 18, 2738, 12, 4256, 16, 312, 820, 83, 1769, 3639, 467, 2421, 22...
super.forwardMessage(msg);
MessageAttributes result = super.forwardMessage(msg);
public void forwardMessage(AttributedMessage msg) throws UnregisteredNameException, NameLookupException, CommFailureException, MisdeliveredMessageException { try { super.forwardMessage(msg); logMessage(msg, "Sent", this); } catch (UnregisteredNameException ex1) { logMessage(msg, "Failed", this); throw ex1; } catch (NameLookupException ex2) { logMessage(msg, "Failed", this); throw ex2; } catch (CommFailureException ex3) { logMessage(msg, "Failed", this); throw ex3; } catch (MisdeliveredMessageException ex4) { logMessage(msg, "Failed", this); throw ex4; } }
7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/a69092873a55ad4e861c10bd9aae550734a1c839/ForwardMessageLoggingAspect.java/buggy/mtsstd/src/org/cougaar/mts/std/ForwardMessageLoggingAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5104, 1079, 12, 861, 11050, 1079, 1234, 13, 3196, 565, 1216, 1351, 14327, 26771, 16, 1875, 282, 1770, 6609, 503, 16, 1875, 282, 16854, 14389, 16, 1082, 282, 16584, 26672, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5104, 1079, 12, 861, 11050, 1079, 1234, 13, 3196, 565, 1216, 1351, 14327, 26771, 16, 1875, 282, 1770, 6609, 503, 16, 1875, 282, 16854, 14389, 16, 1082, 282, 16584, 26672, 3...
nodeMenu( new SimpleElement( "menu", menuattributes, menuNodes ), result, currentMenu, patMat, menuIndex );
nodeMenu( new SimpleElement( "menu", menuattributes, menuNodes ), result, currentMenu, patMat, menuIndex, tagParser );
private String parseMenuNode( int menuIndex, String menutemplate, Properties menuattributes, PatternMatcher patMat ) { String modeAttribute = menuattributes.getProperty( "mode" ); boolean modeIsRead = "read".equalsIgnoreCase( modeAttribute ); boolean modeIsWrite = "write".equalsIgnoreCase( modeAttribute ); boolean menuMode = parserParameters.isMenuMode(); if ( menuMode && modeIsRead || !menuMode && modeIsWrite ) { return ""; } MenuDomainObject currentMenu = getMenuByIndex( menuIndex ); // Get the menu StringBuffer result = new StringBuffer(); // Allocate a buffer for building our return-value in. NodeList menuNodes = new NodeList( menutemplate ); // Build a tree-structure of nodes in memory, which "only" needs to be traversed. (Vood)oo-magic. nodeMenu( new SimpleElement( "menu", menuattributes, menuNodes ), result, currentMenu, patMat, menuIndex ); // Create an artificial root-node of this tree. An "imcms:menu"-element. if ( menuMode ) { // If in menuMode, make sure to include all the stuff from the proper admintemplates. result.append( getMenuModeSuffix( menuIndex ) ); result.insert( 0, getMenuModePrefix( menuIndex, menuattributes ) ); } return result.toString(); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/46acef1d9d86a7a6b56ac5c3d0264b46716442f7/MenuParser.java/clean/server/src/imcode/server/parser/MenuParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 1109, 4599, 907, 12, 509, 3824, 1016, 16, 514, 21247, 322, 29761, 16, 6183, 3824, 4350, 16, 4766, 282, 6830, 6286, 9670, 15947, 262, 288, 3639, 514, 1965, 1499, 273, 3824, 4350...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1109, 4599, 907, 12, 509, 3824, 1016, 16, 514, 21247, 322, 29761, 16, 6183, 3824, 4350, 16, 4766, 282, 6830, 6286, 9670, 15947, 262, 288, 3639, 514, 1965, 1499, 273, 3824, 4350...
float sum;
int sum;
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the values left of me for (int i = 0; i < x; i++) { sum += src.getSampleFloat(i, y, 0); } table[yOfs + x] = sum; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/SummedAreaTable.java/clean/gui/src/awt/org/jnode/awt/font/renderer/SummedAreaTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 19565, 12, 18637, 1705, 13, 288, 202, 202, 1884, 261, 474, 677, 273, 374, 31, 677, 411, 2072, 31, 677, 27245, 288, 1082, 202, 6385, 509, 677, 31002, 273, 677, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19565, 12, 18637, 1705, 13, 288, 202, 202, 1884, 261, 474, 677, 273, 374, 31, 677, 411, 2072, 31, 677, 27245, 288, 1082, 202, 6385, 509, 677, 31002, 273, 677, 380, ...