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
LazyMethodGen mg = makeMethodGen(gen, introMethod);
LazyMethodGen mg = makeMethodGen(gen, introMethod);
private boolean mungeNewMethod(BcelClassWeaver weaver, NewMethodTypeMunger munger) { ResolvedMember signature = munger.getSignature(); ResolvedMember dispatchMethod = munger.getDispatchMethod(aspectType); LazyClassGen gen = weaver.getLazyClassGen(); ResolvedTypeX onType = weaver.getWorld().resolve(signature.getDeclaringType()); boolean onInterface = onType.isInterface(); if (onType.equals(gen.getType())) { ResolvedMember introMethod = AjcMemberMaker.interMethod(signature, aspectType, onInterface); LazyMethodGen mg = makeMethodGen(gen, introMethod); if (!onInterface && !Modifier.isAbstract(introMethod.getModifiers())) { InstructionList body = mg.getBody(); InstructionFactory fact = gen.getFactory(); int pos = 0; if (!signature.isStatic()) { body.append(InstructionFactory.createThis()); pos++; } Type[] paramTypes = BcelWorld.makeBcelTypes(introMethod.getParameterTypes()); for (int i = 0, len = paramTypes.length; i < len; i++) { Type paramType = paramTypes[i]; body.append(InstructionFactory.createLoad(paramType, pos)); pos+=paramType.getSize(); } body.append(Utility.createInvoke(fact, weaver.getWorld(), dispatchMethod)); body.append( InstructionFactory.createReturn( BcelWorld.makeBcelType(introMethod.getReturnType()))); } else { //??? this is okay //if (!(mg.getBody() == null)) throw new RuntimeException("bas"); } // XXX make sure to check that we set exceptions properly on this guy. weaver.addLazyMethodGen(mg); weaver.getLazyClassGen().warnOnAddedMethod(mg.getMethod(),getSignature().getSourceLocation()); addNeededSuperCallMethods(weaver, onType, munger.getSuperMethodsCalled()); return true; } else if (onInterface && gen.getType().isTopmostImplementor(onType) && !Modifier.isAbstract(signature.getModifiers())) { ResolvedMember introMethod = AjcMemberMaker.interMethod(signature, aspectType, false); LazyMethodGen mg = makeMethodGen(gen, introMethod); Type[] paramTypes = BcelWorld.makeBcelTypes(introMethod.getParameterTypes()); Type returnType = BcelWorld.makeBcelType(introMethod.getReturnType()); InstructionList body = mg.getBody(); InstructionFactory fact = gen.getFactory(); int pos = 0; if (!introMethod.isStatic()) { body.append(InstructionFactory.createThis()); pos++; } for (int i = 0, len = paramTypes.length; i < len; i++) { Type paramType = paramTypes[i]; body.append(InstructionFactory.createLoad(paramType, pos)); pos+=paramType.getSize(); } body.append(Utility.createInvoke(fact, weaver.getWorld(), dispatchMethod)); body.append(InstructionFactory.createReturn(returnType)); mg.definingType = onType; weaver.addOrReplaceLazyMethodGen(mg); addNeededSuperCallMethods(weaver, onType, munger.getSuperMethodsCalled()); return true; } else { return false; } }
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/cfa6022f65363c0efb114b585bcb33f0bf667462/BcelTypeMunger.java/clean/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 312, 25561, 1908, 1305, 12, 38, 2183, 797, 3218, 21851, 732, 21851, 16, 1166, 21988, 49, 318, 693, 312, 318, 693, 13, 288, 202, 202, 12793, 4419, 3372, 273, 312, 318, 693, 18, 588, 5374, 5621, 202, 202, 12793, 4419, 3435, 1305, 273, 312, 318, 693, 18, 588, 5325, 1305, 12, 23579, 559, 1769, 9506, 202, 14443, 797, 7642, 3157, 273, 732, 21851, 18, 588, 14443, 797, 7642, 5621, 9506, 202, 12793, 559, 60, 603, 559, 273, 732, 21851, 18, 588, 18071, 7675, 10828, 12, 8195, 18, 588, 3456, 5968, 559, 10663, 202, 202, 6494, 603, 1358, 273, 603, 559, 18, 291, 1358, 5621, 9506, 202, 430, 261, 265, 559, 18, 14963, 12, 4507, 18, 588, 559, 1435, 3719, 288, 1082, 202, 12793, 4419, 13079, 1305, 273, 4405, 202, 37, 78, 71, 4419, 12373, 18, 2761, 1305, 12, 8195, 16, 9648, 559, 16, 603, 1358, 1769, 2398, 1082, 202, 14443, 1305, 7642, 11174, 273, 1221, 1305, 7642, 12, 4507, 16, 13079, 1305, 1769, 1082, 202, 430, 16051, 265, 1358, 597, 401, 9829, 18, 291, 7469, 12, 23342, 1305, 18, 588, 11948, 1435, 3719, 288, 9506, 202, 11983, 682, 1417, 273, 11174, 18, 588, 2250, 5621, 9506, 202, 11983, 1733, 5410, 273, 3157, 18, 588, 1733, 5621, 9506, 202, 474, 949, 273, 374, 31, 6862, 202, 430, 16051, 8195, 18, 291, 5788, 10756, 288, 6862, 202, 3432, 18, 6923, 12, 11983, 1733, 18, 2640, 2503, 10663, 6862, 202, 917, 9904, 31, 9506, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 312, 25561, 1908, 1305, 12, 38, 2183, 797, 3218, 21851, 732, 21851, 16, 1166, 21988, 49, 318, 693, 312, 318, 693, 13, 288, 202, 202, 12793, 4419, 3372, 273, 312, 318, 693, 18, 588, 5374, 5621, 202, 202, 12793, 4419, 3435, 1305, 273, 312, 318, 693, 18, 588, 5325, 1305, 12, 23579, 559, 1769, 9506, 202, 14443, 797, 7642, 3157, 273, 732, 21851, 18, 588, 14443, 797, 7642, 5621, 9506, 202, 12793, 559, 60, 603, 559, 273, 732, 21851, 18, 588, 18071, 7675, 10828, 12, 8195, 18, 588, 3456, 5968, 559, 10663, 202, 202, 6494, 603, 1358, 273, 603, 559, 18, 291, 1358, 5621, 9506, 202, 430, 261, 265, 559, 18, 14963, 12, 4507, 18, 2 ]
handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, excptn)});
handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, exception)});
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass(); } if (handler != null) { handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, excptn)}); } else { StringWriter stackTrace = new StringWriter(); excptn.printStackTrace(new PrintWriter(stackTrace)); StringBuffer sb = new StringBuffer(); sb.append("Native Exception: '"); sb.append(excptn.getClass()).append("\'; Message: "); sb.append(excptn.getMessage()); sb.append("; StackTrace: "); sb.append(stackTrace.getBuffer().toString()); throw new RaiseException(ruby, "RuntimeError", sb.toString()); } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 9220, 503, 12, 503, 3533, 337, 82, 13, 288, 3639, 1659, 3533, 337, 82, 797, 273, 3533, 337, 82, 18, 588, 797, 5621, 3639, 19817, 15417, 1838, 273, 261, 54, 10340, 15417, 13, 4064, 6919, 18, 588, 12, 10075, 337, 82, 797, 18, 17994, 10663, 3639, 1323, 261, 4176, 422, 446, 597, 9079, 3533, 337, 82, 797, 480, 1185, 18, 1106, 13, 288, 5411, 3533, 337, 82, 797, 273, 3533, 337, 82, 797, 18, 588, 28471, 5621, 3639, 289, 3639, 309, 261, 4176, 480, 446, 13, 288, 5411, 1838, 18, 1991, 12, 2704, 15908, 10340, 921, 63, 7073, 5852, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 1520, 16869, 1769, 3639, 289, 469, 288, 5411, 17436, 22327, 273, 394, 17436, 5621, 5411, 3533, 337, 82, 18, 1188, 6332, 12, 2704, 14071, 12, 3772, 3448, 10019, 5411, 6674, 2393, 273, 394, 6674, 5621, 5411, 2393, 18, 6923, 2932, 9220, 1185, 30, 2119, 1769, 5411, 2393, 18, 6923, 12, 10075, 337, 82, 18, 588, 797, 1435, 2934, 6923, 2932, 3730, 31, 2350, 30, 315, 1769, 5411, 2393, 18, 6923, 12, 10075, 337, 82, 18, 24906, 10663, 5411, 2393, 18, 6923, 2932, 31, 22164, 30, 315, 1769, 5411, 2393, 18, 6923, 12, 3772, 3448, 18, 588, 1892, 7675, 10492, 10663, 5411, 604, 394, 20539, 503, 12, 27768, 16, 315, 5576, 668, 3113, 2393, 18, 10492, 10663, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 9220, 503, 12, 503, 3533, 337, 82, 13, 288, 3639, 1659, 3533, 337, 82, 797, 273, 3533, 337, 82, 18, 588, 797, 5621, 3639, 19817, 15417, 1838, 273, 261, 54, 10340, 15417, 13, 4064, 6919, 18, 588, 12, 10075, 337, 82, 797, 18, 17994, 10663, 3639, 1323, 261, 4176, 422, 446, 597, 9079, 3533, 337, 82, 797, 480, 1185, 18, 1106, 13, 288, 5411, 3533, 337, 82, 797, 273, 3533, 337, 82, 797, 18, 588, 28471, 5621, 3639, 289, 3639, 309, 261, 4176, 480, 446, 13, 288, 5411, 1838, 18, 1991, 12, 2704, 15908, 10340, 921, 63, 7073, 5852, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 1520, 16869, 1769, 3639, 289, 469, 2 ]
setSrc(null);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } // The "align" attribute is deprecated. This needs to be removed when // the "align" attribute is finally removed. try { setAlign((String) evalAttr("align", getAlign(), String.class)); } catch (NullAttributeException ex) { setAlign(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setBorder((String) evalAttr("border", getBorder(), String.class)); } catch (NullAttributeException ex) { setBorder(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setPageKey((String) evalAttr("pageKey", getPageKey(), String.class)); } catch (NullAttributeException ex) { setPageKey(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSrc((String) evalAttr("src", getSrc(), String.class)); } catch (NullAttributeException ex) { setSrc(null); } try { setSrcKey((String) evalAttr("srcKey", getSrcKey(), String.class)); } catch (NullAttributeException ex) { setSrcKey(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELImageTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 368, 225, 1021, 315, 7989, 6, 1566, 353, 6849, 18, 225, 1220, 4260, 358, 506, 3723, 1347, 3639, 368, 225, 326, 315, 7989, 6, 1566, 353, 3095, 3723, 18, 3639, 775, 288, 5411, 444, 10044, 12443, 780, 13, 5302, 3843, 2932, 7989, 3113, 336, 10044, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10044, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 25715, 12443, 780, 13, 5302, 3843, 2932, 8815, 3113, 2882, 1019, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 25715, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 3405, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 368, 225, 1021, 315, 7989, 6, 1566, 353, 6849, 18, 225, 1220, 4260, 358, 506, 3723, 1347, 3639, 368, 225, 326, 315, 7989, 6, 1566, 353, 3095, 3723, 18, 3639, 775, 288, 5411, 444, 10044, 12443, 780, 13, 5302, 3843, 2932, 7989, 3113, 336, 10044, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10044, 12, 2011, 2 ]
AspectJPreferences.setMigrationWizardIsRunning(false);
public static void migrateWorkbench() { // only want the wizard to come up once per workspace final IPreferenceStore store = AspectJUIPlugin.getDefault().getPreferenceStore(); IWorkspace currentWorkspace = ResourcesPlugin.getWorkspace(); final String workspaceLocation = currentWorkspace.getRoot().getLocation().toString(); boolean alreadyMigratedWorkspace = store.getBoolean(workspaceLocation); if (alreadyMigratedWorkspace) { AspectJPreferences.setMigrationWizardIsRunning(false); return; } Job job = new Job(AspectJUIPlugin.getResourceString("MigrationWizard.JobTitle")) { //$NON-NLS-1$ public IStatus run(IProgressMonitor m) { final Display display = AspectJUIPlugin.getDefault().getDisplay(); Runnable myRun = new Runnable() { public void run() { AJDTMigrationWizard migWizard = new AJDTMigrationWizard(); migWizard.init(); WizardDialog migDialog = new WizardDialog(AspectJUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow() .getShell(), migWizard); if(migDialog.open() == Window.OK) { store.setValue(workspaceLocation,true); AspectJPreferences.setMigrationWizardHasRun(true); } else { new MessageDialog( AspectJUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(), AspectJUIPlugin.getResourceString("MigrationWizardCancelled"), //$NON-NLS-1$ MessageDialog.getDefaultImage(), AspectJUIPlugin.getResourceString("MigrationWizardCancelledMessage"), //$NON-NLS-1$ MessageDialog.INFORMATION, new String[] {AspectJUIPlugin.getResourceString("MigrationWizardOK")}, //$NON-NLS-1$ 0).open(); // don't want the migration wizard to pop up again for this // workspace and this running of eclipse. Therefore, set the // boolean but not the PreferenceStore property AspectJPreferences.setMigrationWizardHasRun(true); } } }; display.asyncExec(myRun); AspectJPreferences.setMigrationWizardIsRunning(false); return Status.OK_STATUS; } }; job.setPriority(Job.LONG); job.setRule(null); job.schedule(); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/a891926d0282765fa3021ce6bccc8d4b2cd3dfe1/AJDTUtils.java/clean/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/core/AJDTUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 13187, 2421, 22144, 1435, 288, 202, 565, 368, 1338, 2545, 326, 24204, 358, 12404, 731, 3647, 1534, 6003, 202, 565, 727, 467, 9624, 2257, 1707, 273, 2970, 1181, 46, 5370, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 202, 565, 467, 8241, 783, 8241, 273, 8128, 3773, 18, 588, 8241, 5621, 202, 565, 727, 514, 6003, 2735, 273, 783, 8241, 18, 588, 2375, 7675, 588, 2735, 7675, 10492, 5621, 202, 565, 1250, 1818, 25483, 690, 8241, 273, 1707, 18, 588, 5507, 12, 14915, 2735, 1769, 202, 565, 309, 261, 17583, 25483, 690, 8241, 13, 288, 202, 10402, 327, 31, 3639, 289, 9785, 9506, 202, 2278, 1719, 273, 394, 3956, 12, 17468, 46, 5370, 3773, 18, 588, 1420, 780, 2932, 10224, 27130, 18, 2278, 4247, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 312, 13, 288, 9506, 202, 6385, 9311, 2562, 273, 2970, 1181, 46, 5370, 3773, 18, 588, 1868, 7675, 588, 4236, 5621, 6862, 9506, 202, 20013, 3399, 1997, 273, 394, 10254, 1435, 288, 6862, 202, 482, 918, 1086, 1435, 288, 25083, 377, 25083, 565, 432, 46, 9081, 10224, 27130, 312, 360, 27130, 273, 394, 432, 46, 9081, 10224, 27130, 5621, 25083, 202, 81, 360, 27130, 18, 2738, 5621, 25083, 202, 27130, 6353, 312, 360, 6353, 273, 394, 678, 13412, 6353, 12, 17468, 46, 5370, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 13187, 2421, 22144, 1435, 288, 202, 565, 368, 1338, 2545, 326, 24204, 358, 12404, 731, 3647, 1534, 6003, 202, 565, 727, 467, 9624, 2257, 1707, 273, 2970, 1181, 46, 5370, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 5621, 202, 565, 467, 8241, 783, 8241, 273, 8128, 3773, 18, 588, 8241, 5621, 202, 565, 727, 514, 6003, 2735, 273, 783, 8241, 18, 588, 2375, 7675, 588, 2735, 7675, 10492, 5621, 202, 565, 1250, 1818, 25483, 690, 8241, 273, 1707, 18, 588, 5507, 12, 14915, 2735, 1769, 202, 565, 309, 261, 17583, 25483, 690, 8241, 13, 288, 202, 10402, 327, 31, 3639, 289, 9785, 9506, 202, 2278, 1719, 273, 394, 3956, 12, 17468, 46, 5370, 2 ]
}
}
public void moveToCurrentRow() throws SQLException { }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/cb88ccf91092199f5dd4fc4fd03d021643a6e0ec/SCR20557.java/clean/testData/refactoring/inheritanceToDelegation/scr20557/after/xxx/SCR20557.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13863, 3935, 1999, 1435, 1216, 6483, 288, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13863, 3935, 1999, 1435, 1216, 6483, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
AST tmp2307_AST_in = (AST)_t;
AST tmp2309_AST_in = (AST)_t;
public final void datatype_dll_native(AST _t) throws RecognitionException { AST datatype_dll_native_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BYTE: { AST tmp2306_AST_in = (AST)_t; match(_t,BYTE); _t = _t.getNextSibling(); break; } case DOUBLE: { AST tmp2307_AST_in = (AST)_t; match(_t,DOUBLE); _t = _t.getNextSibling(); break; } case FLOAT: { AST tmp2308_AST_in = (AST)_t; match(_t,FLOAT); _t = _t.getNextSibling(); break; } case LONG: { AST tmp2309_AST_in = (AST)_t; match(_t,LONG); _t = _t.getNextSibling(); break; } case SHORT: { AST tmp2310_AST_in = (AST)_t; match(_t,SHORT); _t = _t.getNextSibling(); break; } case UNSIGNEDSHORT: { AST tmp2311_AST_in = (AST)_t; match(_t,UNSIGNEDSHORT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 11172, 67, 27670, 67, 13635, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 11172, 67, 27670, 67, 13635, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 20660, 30, 202, 202, 95, 1082, 202, 9053, 1853, 4366, 7677, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 15377, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 14918, 30, 202, 202, 95, 1082, 202, 9053, 1853, 4366, 8642, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 17088, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 15483, 30, 202, 202, 95, 1082, 202, 9053, 1853, 4366, 6840, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 15640, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 14011, 30, 202, 202, 95, 1082, 202, 9053, 1853, 4366, 5908, 67, 9053, 67, 267, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 11172, 67, 27670, 67, 13635, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 11172, 67, 27670, 67, 13635, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 20660, 30, 202, 202, 95, 1082, 202, 9053, 1853, 4366, 7677, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 15377, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 2 ]
if (LOG.isDebugEnabled()) { LOG.debug(getPluginId() + " " + e.toString()); }
LOG.debug(getPluginId() + " " + e.toString());
public PluginClassLoader getClassLoader() { if (fClassLoader != null) return fClassLoader; ArrayList arrayList = new ArrayList(); arrayList.addAll(fExportedLibs); arrayList.addAll(fNotExportedLibs); arrayList.addAll(getDependencyLibs()); File file = new File(getPluginPath()); File[] files = file.listFiles(); try { for (int i = 0; i < files.length; i++) { File file2 = files[i]; if (file2.getAbsolutePath().endsWith("properties")) arrayList.add(file2.getParentFile().toURL()); } } catch (MalformedURLException e) { if (LOG.isDebugEnabled()) { LOG.debug(getPluginId() + " " + e.toString()); } } URL[] urls = (URL[]) arrayList.toArray(new URL[arrayList.size()]); fClassLoader = new PluginClassLoader(urls, PluginDescriptor.class .getClassLoader()); return fClassLoader; }
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/cd00889fb5930fea91d208ac97a4b7fafa399a8e/PluginDescriptor.java/buggy/src/java/org/apache/nutch/plugin/PluginDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6258, 7805, 14352, 1435, 288, 565, 309, 261, 74, 7805, 480, 446, 13, 1377, 327, 284, 7805, 31, 565, 2407, 526, 682, 273, 394, 2407, 5621, 565, 526, 682, 18, 1289, 1595, 12, 74, 31140, 5664, 87, 1769, 565, 526, 682, 18, 1289, 1595, 12, 74, 1248, 31140, 5664, 87, 1769, 565, 526, 682, 18, 1289, 1595, 12, 588, 7787, 5664, 87, 10663, 565, 1387, 585, 273, 394, 1387, 12, 588, 3773, 743, 10663, 565, 1387, 8526, 1390, 273, 585, 18, 1098, 2697, 5621, 565, 775, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 288, 3639, 1387, 585, 22, 273, 1390, 63, 77, 15533, 3639, 309, 261, 768, 22, 18, 588, 10368, 743, 7675, 5839, 1190, 2932, 4738, 6, 3719, 1850, 526, 682, 18, 1289, 12, 768, 22, 18, 588, 3054, 812, 7675, 869, 1785, 10663, 1377, 289, 565, 289, 1044, 261, 18695, 20160, 425, 13, 288, 1377, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 3639, 2018, 18, 4148, 12, 588, 3773, 548, 1435, 397, 315, 315, 397, 425, 18, 10492, 10663, 1377, 289, 565, 289, 565, 1976, 8526, 6903, 273, 261, 1785, 63, 5717, 526, 682, 18, 31447, 12, 2704, 1976, 63, 1126, 682, 18, 1467, 1435, 19226, 565, 284, 7805, 273, 394, 6258, 7805, 12, 10518, 16, 6258, 3187, 18, 1106, 29159, 263, 588, 7805, 10663, 565, 327, 284, 7805, 31, 225, 289, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6258, 7805, 14352, 1435, 288, 565, 309, 261, 74, 7805, 480, 446, 13, 1377, 327, 284, 7805, 31, 565, 2407, 526, 682, 273, 394, 2407, 5621, 565, 526, 682, 18, 1289, 1595, 12, 74, 31140, 5664, 87, 1769, 565, 526, 682, 18, 1289, 1595, 12, 74, 1248, 31140, 5664, 87, 1769, 565, 526, 682, 18, 1289, 1595, 12, 588, 7787, 5664, 87, 10663, 565, 1387, 585, 273, 394, 1387, 12, 588, 3773, 743, 10663, 565, 1387, 8526, 1390, 273, 585, 18, 1098, 2697, 5621, 565, 775, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 288, 3639, 1387, 585, 22, 273, 1390, 63, 77, 15533, 3639, 309, 261, 768, 2 ]
} else {
} else {
public byte[] getTransformedMessageAsBytes() throws TransformerException { Object msg = getTransformedMessage(); if (msg instanceof byte[]) { return (byte[])msg; } else if (msg instanceof String) { try { return msg.toString().getBytes(getEncoding()); } catch (UnsupportedEncodingException e) { throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X, msg.getClass().getName(), e)); } } else if( msg instanceof Serializable){ try { return SerializationUtils.serialize((Serializable)msg); } catch (Exception e) { throw new TransformerException(new Message(Messages.TRANSFORM_FAILED_FROM_X_TO_X, msg.getClass().getName(), "byte[]"), e); } } else { throw new TransformerException(new Message(Messages.TRANSFORM_ON_X_NOT_OF_SPECIFIED_TYPE_X, msg.getClass().getName(), "byte[] or " + Serializable.class.getName())); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2aea4d41675cd6cec0e26049bc35ab4f5ff8e4f2/MuleEvent.java/clean/mule/src/java/org/mule/impl/MuleEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 4059, 329, 1079, 1463, 2160, 1435, 1216, 21684, 565, 288, 3639, 1033, 1234, 273, 336, 4059, 329, 1079, 5621, 3639, 309, 261, 3576, 1276, 1160, 63, 5717, 288, 5411, 327, 261, 7229, 63, 5717, 3576, 31, 3639, 289, 469, 309, 261, 3576, 1276, 514, 13, 288, 5411, 775, 288, 7734, 327, 1234, 18, 10492, 7675, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 16, 1234, 18, 588, 797, 7675, 17994, 9334, 425, 10019, 5411, 289, 3639, 289, 469, 309, 12, 1234, 1276, 13687, 15329, 5411, 775, 288, 7734, 327, 15253, 1989, 18, 6288, 12443, 21682, 13, 3576, 1769, 5411, 289, 5411, 1044, 261, 503, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 67, 4296, 67, 60, 16, 13491, 1234, 18, 588, 797, 7675, 17994, 9334, 315, 7229, 63, 4279, 3631, 425, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 673, 67, 60, 67, 4400, 67, 3932, 67, 13847, 13519, 67, 2399, 67, 60, 16, 10792, 1234, 18, 588, 797, 7675, 17994, 9334, 315, 7229, 8526, 578, 315, 397, 13687, 18, 1106, 18, 17994, 1435, 10019, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 4059, 329, 1079, 1463, 2160, 1435, 1216, 21684, 565, 288, 3639, 1033, 1234, 273, 336, 4059, 329, 1079, 5621, 3639, 309, 261, 3576, 1276, 1160, 63, 5717, 288, 5411, 327, 261, 7229, 63, 5717, 3576, 31, 3639, 289, 469, 309, 261, 3576, 1276, 514, 13, 288, 5411, 775, 288, 7734, 327, 1234, 18, 10492, 7675, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 425, 13, 288, 7734, 604, 394, 21684, 12, 2704, 2350, 12, 5058, 18, 16596, 4983, 67, 11965, 67, 11249, 67, 60, 16, 1234, 18, 588, 797, 7675, 17994, 9334, 425, 10019, 5411, 289, 3639, 289, 469, 309, 12, 1234, 1276, 13687, 15329, 5411, 775, 288, 7734, 327, 2 ]
if (log.isDebugEnabled()) {
if (log.isInfoEnabled()) {
private void publishTask(SingleCustomerTask task) { if (log.isDebugEnabled()) { log.debug("publishTask: " + this + " entered"); } long pubTime; // get at the time long currentTime = currentTimeMillis();// if (log.isApplicable(log.VERY_VERBOSE)) {// log.log(this, log.VERY_VERBOSE, "publishTask:" + this + ": Current Time: " + currentTime);// } // Interpret task.getRate as avg number of requests per // 10000 MSec or sim-cycles. // Therefore, time between cycles is 10000/rate // double rate = 10000 / ((task.getRate() == 0) ? .001 : task.getRate()); // Interpret task.getRate as avg number of requests over // length of the simulation double rate = (stopSIMTime - startSIMTime) / ((task.getRate() == 0) ? .001 : task.getRate()); // But time between events cant be less than 1 if (rate < 1) { rate = 1; }// if (log.isApplicable(log.VERY_VERBOSE)) {// log.log(this, log.VERY_VERBOSE, "publishTask: " + this + " about to get pubTime");// } pubTime = currentTime + (long)nextNormalSample(rate, (double)task.getDeviation()); // Cannot publish things in the past or now if (pubTime <= currentTime) { pubTime = currentTime + 1; } pubTime += pubDelay; if (log.isDebugEnabled()) { log.debug("publishTask:" + this + ": Rate: " + rate + ": pubTime: " + pubTime + " at curr time: " + currentTimeMillis()); } if (pubTime > stopSIMTime) { if (log.isDebugEnabled()) { log.info( "publishTask: " + this + " not publishing task cause pubTime(" + pubTime + ") > stopSimTime(" + stopSIMTime + ")"); } return; } // Now create the new Task NewTask nTask = theLDMF.newTask(); // the verb is task.getTaskType() nTask.setVerb(Verb.getVerb(task.getTaskType())); // Define the END_TIME Preference. ScoringFunction scorefcn = ScoringFunction.createStrictlyBetweenWithBestValues (new AspectValue(AspectType.START_TIME, pubTime), new AspectValue(AspectType.END_TIME, task.getDuration() + pubTime), new AspectValue(AspectType.END_TIME, (task.getDuration() + pubTime))); nTask.setPreference(theLDMF.newPreference(AspectType.END_TIME, scorefcn)); // Create an annotation. This is used for identification later. nTask.setAnnotation(new CustAnnot(getUID().toString())); // then publishAfter it with Wake Time == pubTime nTask.setPlan(theLDMF.getRealityPlan()); if (log.isDebugEnabled()) { log.debug("publishTask: " + this + " about to publishAddAt new task: " + nTask); } publishAddAt(nTask, pubTime); } // end of publishTask
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/efe9a4b3362c3c4139e7255630e84e5bcb6786e1/CustomerPlugIn.java/clean/csmart/src/org/cougaar/tools/csmart/runtime/plugin/CustomerPlugIn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 2174, 12, 5281, 8883, 2174, 1562, 13, 288, 565, 309, 261, 1330, 18, 291, 966, 1526, 10756, 288, 1377, 613, 18, 4148, 2932, 6543, 2174, 30, 315, 397, 333, 397, 315, 16219, 8863, 565, 289, 565, 1525, 5634, 950, 31, 565, 368, 336, 622, 326, 813, 565, 1525, 6680, 273, 8102, 5621, 759, 1377, 309, 261, 1330, 18, 291, 27873, 12, 1330, 18, 17529, 67, 21900, 3719, 288, 759, 3639, 613, 18, 1330, 12, 2211, 16, 613, 18, 17529, 67, 21900, 16, 315, 6543, 2174, 2773, 397, 333, 397, 6398, 6562, 2647, 30, 315, 397, 6680, 1769, 759, 1377, 289, 565, 368, 5294, 15089, 1562, 18, 588, 4727, 487, 11152, 1300, 434, 3285, 1534, 565, 368, 12619, 490, 2194, 578, 3142, 17, 23976, 18, 565, 368, 17189, 16, 813, 3086, 15139, 353, 12619, 19, 5141, 565, 368, 1645, 4993, 273, 12619, 342, 14015, 4146, 18, 588, 4727, 1435, 422, 374, 13, 692, 263, 11664, 294, 1562, 18, 588, 4727, 10663, 565, 368, 5294, 15089, 1562, 18, 588, 4727, 487, 11152, 1300, 434, 3285, 1879, 565, 368, 769, 434, 326, 14754, 377, 1645, 4993, 273, 3639, 261, 5681, 2320, 49, 950, 300, 787, 2320, 49, 950, 13, 342, 3639, 14015, 4146, 18, 588, 4727, 1435, 422, 374, 13, 692, 263, 11664, 294, 1562, 18, 588, 4727, 10663, 565, 368, 12484, 813, 3086, 2641, 848, 88, 506, 5242, 2353, 404, 565, 309, 261, 5141, 411, 404, 13, 288, 1377, 4993, 273, 404, 31, 565, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 2174, 12, 5281, 8883, 2174, 1562, 13, 288, 565, 309, 261, 1330, 18, 291, 966, 1526, 10756, 288, 1377, 613, 18, 4148, 2932, 6543, 2174, 30, 315, 397, 333, 397, 315, 16219, 8863, 565, 289, 565, 1525, 5634, 950, 31, 565, 368, 336, 622, 326, 813, 565, 1525, 6680, 273, 8102, 5621, 759, 1377, 309, 261, 1330, 18, 291, 27873, 12, 1330, 18, 17529, 67, 21900, 3719, 288, 759, 3639, 613, 18, 1330, 12, 2211, 16, 613, 18, 17529, 67, 21900, 16, 315, 6543, 2174, 2773, 397, 333, 397, 6398, 6562, 2647, 30, 315, 397, 6680, 1769, 759, 1377, 289, 565, 368, 5294, 15089, 1562, 18, 588, 4727, 487, 11152, 1300, 434, 3285, 1534, 565, 2 ]
suite.addTestSuite( AuditInterceptor.class );
suite.addTestSuite( AuditInterceptorTest.class );
public static Test suite() { TestSuite suite = new TestSuite( "Test for edu.columbia.gemma" ); // $JUnit-BEGIN$ // analysis suite.addTestSuite( QuantileNormalizerTest.class ); suite.addTestSuite( RMATest.class ); suite.addTestSuite( RMABackgroundAdjusterTest.class ); suite.addTestSuite( TwoColorArrayLoessNormalizerTest.class ); // common.auditAndSecurity suite.addTestSuite( AuditTrailDaoTest.class ); suite.addTestSuite( UserRoleServiceImplTest.class ); suite.addTestSuite( UserServiceImplTest.class ); suite.addTestSuite( UserDaoImplTest.class ); // common.description suite.addTestSuite( BibliographicReferenceDaoImplTest.class ); suite.addTestSuite( BibliographicReferenceServiceImplTest.class ); suite.addTestSuite( DatabaseEntryDaoImplTest.class ); suite.addTestSuite( ExternalDatabaseServiceImplTest.class ); suite.addTestSuite( LocalFileServiceImplTest.class ); // common.protocol suite.addTestSuite( ProtocolServiceTest.class ); // expression.experiment suite.addTestSuite( ExpressionExperimentServiceImplTest.class ); // externalDb -- test is in wrong place suite.addTestSuite( ExternalDatabaseTest.class ); // genome.gene suite.addTestSuite( CandidateGeneImplTest.class ); suite.addTestSuite( CandidateGeneListDAOImplTest.class ); suite.addTestSuite( CandidateGeneListImplTest.class ); suite.addTestSuite( CandidateGeneListServiceImplTest.class ); suite.addTestSuite( GeneServiceImplTest.class ); // genome.sequenceAnalysis suite.addTestSuite( BlatResultImplTest.class ); // loader.association suite.addTestSuite( Gene2GOAssociationParserTest.class ); // loader.description suite.addTestSuite( OntologyEntryLoaderIntegrationTest.class ); // loader.entrez.pubmed suite.addTestSuite( PubMedXMLFetcherTest.class ); suite.addTestSuite( PubMedXMLParserTest.class ); // loader.expression.arrayDesign suite.addTestSuite( AffyProbeReaderTest.class ); suite.addTestSuite( ArrayDesignParserIntegrationTest.class ); suite.addTestSuite( IlluminaProbeReaderTest.class ); // loader.expression.arrayExpress suite.addTestSuite( DataFileFetcherTest.class ); // loader.expression.geo // suite.addTestSuite( GeoDatasetServiceIntegrationTest.class ); suite.addTestSuite( GeoFamilyParserTest.class ); suite.addTestSuite( RawDataFetcherTest.class ); suite.addTestSuite( GeoConverterTest.class ); // loader.expression.mage suite.addTestSuite( MageMLParserTest.class ); suite.addTestSuite( MageLoadTest.class ); // loader.expression.smd suite.addTestSuite( SMDManagerImplTest.class ); // loader.expression.smd.model suite.addTestSuite( ExptMetaTest.class ); suite.addTestSuite( PublicationMetaTest.class ); // loader.genome.gene suite.addTestSuite( NCBIGeneParserTest.class ); // loader.loaderutils suite.addTestSuite( BeanPropertyCompleterTest.class ); // security suite.addTestSuite( SecurityIntegrationTest.class ); // security.interceptor suite.addTestSuite( PersistAclInterceptorTest.class ); suite.addTestSuite( AuditInterceptor.class ); // sequence suite.addTestSuite( QtlDaoImplTest.class ); // tools suite.addTestSuite( AffyBatchTest.class ); suite.addTestSuite( GoldenPathTest.class ); suite.addTestSuite( SequenceManipulationTest.class ); suite.addTestSuite( BlatTest.class ); suite.addTestSuite( MArrayRawTest.class ); // web.controller.common.auditAndSecurity suite.addTestSuite( SignupControllerTest.class ); // web.controller.entrez.pubmed suite.addTestSuite( ArrayDesignControllerTest.class ); // web.controller.flow.entrez.pubmed suite.addTestSuite( SearchPubMedFlowTests.class ); suite.addTestSuite( DetailBibRefFlowTests.class ); // $JUnit-END$ return suite; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/e8a1ada204e39b550b621b97f968bb11cf46fd04/AllTests.java/clean/test/edu/columbia/gemma/AllTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 394, 7766, 13587, 12, 315, 4709, 364, 1675, 89, 18, 1293, 3592, 1155, 18, 23465, 2540, 6, 11272, 3639, 368, 271, 46, 2802, 17, 16061, 8, 3639, 368, 6285, 3639, 11371, 18, 1289, 4709, 13587, 12, 4783, 970, 398, 16132, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 534, 24571, 395, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 534, 49, 2090, 484, 2915, 17886, 1722, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 16896, 2957, 1076, 1504, 403, 16132, 4709, 18, 1106, 11272, 3639, 368, 2975, 18, 17413, 1876, 4368, 3639, 11371, 18, 1289, 4709, 13587, 12, 12975, 18107, 11412, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 2177, 2996, 1179, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 2177, 1179, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 2177, 11412, 2828, 4709, 18, 1106, 11272, 3639, 368, 2975, 18, 3384, 3639, 11371, 18, 1289, 4709, 13587, 12, 605, 495, 549, 16983, 2404, 11412, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 605, 495, 549, 16983, 2404, 1179, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 5130, 1622, 11412, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 11352, 4254, 1179, 2828, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 3566, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 394, 7766, 13587, 12, 315, 4709, 364, 1675, 89, 18, 1293, 3592, 1155, 18, 23465, 2540, 6, 11272, 3639, 368, 271, 46, 2802, 17, 16061, 8, 3639, 368, 6285, 3639, 11371, 18, 1289, 4709, 13587, 12, 4783, 970, 398, 16132, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 534, 24571, 395, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 534, 49, 2090, 484, 2915, 17886, 1722, 4709, 18, 1106, 11272, 3639, 11371, 18, 1289, 4709, 13587, 12, 16896, 2957, 1076, 1504, 403, 16132, 4709, 18, 1106, 11272, 3639, 368, 2975, 18, 17413, 1876, 4368, 3639, 11371, 18, 1289, 4709, 13587, 12, 12975, 2 ]
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); }
public IPv4Address(byte[] src, int offset) {
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/IPv4Address.java/buggy/net/src/net/org/jnode/net/ipv4/IPv4Address.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7853, 24, 1887, 12, 780, 3091, 1585, 13, 225, 202, 15069, 2754, 288, 202, 202, 6385, 16370, 946, 273, 394, 16370, 12, 4793, 1585, 16, 4585, 1769, 202, 202, 430, 261, 17692, 18, 1883, 5157, 1435, 480, 769, 13, 288, 1082, 202, 12849, 394, 2754, 2932, 1248, 392, 7853, 24, 1758, 315, 397, 3091, 1585, 1769, 202, 202, 97, 202, 202, 2867, 273, 394, 1160, 63, 2469, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 698, 288, 9506, 202, 2867, 63, 77, 65, 273, 261, 7229, 13, 4522, 18, 2670, 1702, 12, 17692, 18, 4285, 1345, 10663, 1082, 202, 97, 1044, 261, 1854, 9291, 431, 13, 288, 9506, 202, 12849, 394, 2754, 2932, 1248, 279, 923, 7853, 24, 1758, 315, 397, 3091, 1585, 1769, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7853, 24, 1887, 12, 780, 3091, 1585, 13, 225, 202, 15069, 2754, 288, 202, 202, 6385, 16370, 946, 273, 394, 16370, 12, 4793, 1585, 16, 4585, 1769, 202, 202, 430, 261, 17692, 18, 1883, 5157, 1435, 480, 769, 13, 288, 1082, 202, 12849, 394, 2754, 2932, 1248, 392, 7853, 24, 1758, 315, 397, 3091, 1585, 1769, 202, 202, 97, 202, 202, 2867, 273, 394, 1160, 63, 2469, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 1082, 202, 698, 288, 9506, 202, 2867, 63, 77, 65, 273, 261, 7229, 13, 4522, 18, 2670, 1702, 12, 17692, 18, 4285, 1345, 10663, 1082, 202, 97, 1044, 261, 1854, 9291, 431, 2 ]
public InternalFrameEvent(JInternalFrame source, int id) { super(source, id); }
public InternalFrameEvent(JInternalFrame source, int id) { super(source, id); }
public InternalFrameEvent(JInternalFrame source, int id) { super(source, id); } // InternalFrameEvent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/InternalFrameEvent.java/clean/core/src/classpath/javax/javax/swing/event/InternalFrameEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3186, 3219, 1133, 12, 46, 3061, 3219, 1084, 16, 509, 612, 13, 288, 202, 202, 9565, 12, 3168, 16, 612, 1769, 202, 97, 368, 3186, 3219, 1133, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3186, 3219, 1133, 12, 46, 3061, 3219, 1084, 16, 509, 612, 13, 288, 202, 202, 9565, 12, 3168, 16, 612, 1769, 202, 97, 368, 3186, 3219, 1133, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void run() { final SelSearchNode selNode = getSelectedStringFromEditor(); if(selNode == null) { return; } final Storage storage = new Storage(); IRunnableWithProgress runnable = new IRunnableWithProgress() { // steps: // 1- parse and get the best selected name based on the offset/length into that TU // 2- based on the IASTName selected, find the best declaration of it in the TU // 3- if no IASTName is found for a declaration, then search the Index public void run(IProgressMonitor monitor) { int selectionStart = selNode.selStart; int selectionLength = selNode.selEnd - selNode.selStart; IASTName[] selectedNames = BLANK_NAME_ARRAY; IASTTranslationUnit tu=null; ParserLanguage lang=null; ICElement project=null; if (fEditor.getEditorInput() instanceof ExternalEditorInput) { ExternalEditorInput input = (ExternalEditorInput)fEditor.getEditorInput(); try { // get the project for the external editor input's translation unit project = input.getTranslationUnit(); while (!(project instanceof ICProject) && project != null) { project = project.getParent(); } if (project instanceof ICProject) { tu = CDOM.getInstance().getASTService().getTranslationUnit(input.getStorage(), ((ICProject)project).getProject()); lang = DOMSearchUtil.getLanguage(input.getStorage().getFullPath(), ((ICProject)project).getProject()); projectName = ((ICProject)project).getElementName(); } } catch (UnsupportedDialectException e) { operationNotAvailable(CSEARCH_OPERATION_OPERATION_UNAVAILABLE_MESSAGE); return; } } else { IFile resourceFile = null; resourceFile = fEditor.getInputFile(); project = new CProject(null, resourceFile.getProject()); try { tu = CDOM.getInstance().getASTService().getTranslationUnit( resourceFile, CDOM.getInstance().getCodeReaderFactory( CDOM.PARSE_WORKING_COPY_WHENEVER_POSSIBLE)); } catch (IASTServiceProvider.UnsupportedDialectException e) { operationNotAvailable(CSEARCH_OPERATION_OPERATION_UNAVAILABLE_MESSAGE); return; } lang = DOMSearchUtil.getLanguageFromFile(resourceFile); projectName = resourceFile.getProject().getName(); } // step 1 starts here selectedNames = DOMSearchUtil.getSelectedNamesFrom(tu, selectionStart, selectionLength, lang); if (selectedNames.length > 0 && selectedNames[0] != null) { // just right, only one name selected IASTName searchName = selectedNames[0]; // step 2 starts here IASTName[] domNames = DOMSearchUtil.getNamesFromDOM(searchName, ICSearchConstants.DECLARATIONS_DEFINITIONS); // make sure the names are clean (fix for 95202) boolean modified=false; for(int i=0; i<domNames.length; i++) { if (domNames[i].toCharArray().length == 0) { domNames[i] = null; modified=true; } } if (modified) domNames = (IASTName[])ArrayUtil.removeNulls(IASTName.class, domNames); if (domNames != null && domNames.length > 0 && domNames[0] != null) { String fileName=null; int start=0; int end=0; if ( domNames[0].getTranslationUnit() != null ) { IASTFileLocation location = domNames[0].getFileLocation(); if( location != null ) { fileName = location.getFileName(); start = location.getNodeOffset(); end = location.getNodeOffset() + location.getNodeLength(); } } if (fileName != null) { storage.setFileName(fileName); storage.setLocatable(new OffsetLocatable(start,end)); storage.setResource(ParserUtil.getResourceForFilename( fileName )); } else { operationNotAvailable(CSEARCH_OPERATION_NO_DECLARATION_MESSAGE); } } else { // step 3 starts here ICElement[] scope = new ICElement[1]; scope[0] = project; Set matches = DOMSearchUtil.getMatchesFromSearchEngine(SearchEngine.createCSearchScope(scope), searchName, ICSearchConstants.DECLARATIONS_DEFINITIONS); if (matches != null && matches.size() > 0) { Iterator itr = matches.iterator(); while(itr.hasNext()) { Object match = itr.next(); if (match instanceof IMatch) { IMatch theMatch = (IMatch)match; storage.setFileName(theMatch.getLocation().toOSString()); storage.setLocatable(theMatch.getLocatable()); storage.setResource(ParserUtil.getResourceForFilename(theMatch.getLocation().toOSString())); break; } } } else { operationNotAvailable(CSEARCH_OPERATION_NO_DECLARATION_MESSAGE); } } } else if (selectedNames.length == 0){ // last try: search the index for the selected string, even if no name was found for that selection ICElement[] scope = new ICElement[1]; scope[0] = project; Set matches = DOMSearchUtil.getMatchesFromSearchEngine( SearchEngine.createCSearchScope(scope), selNode.selText, ICSearchConstants.DECLARATIONS_DEFINITIONS ); if (matches != null && matches.size() > 0) { Iterator itr = matches.iterator(); while(itr.hasNext()) { Object match = itr.next(); if (match instanceof IMatch) { IMatch theMatch = (IMatch)match; storage.setFileName(theMatch.getLocation().toOSString()); storage.setLocatable(theMatch.getLocatable()); storage.setResource(ParserUtil.getResourceForFilename(theMatch.getLocation().toOSString())); break; } } } else { operationNotAvailable(CSEARCH_OPERATION_NO_DECLARATION_MESSAGE); return; } } else { operationNotAvailable(CSEARCH_OPERATION_TOO_MANY_NAMES_MESSAGE); return; } return; } // private String findProjectName(IFile resourceFile) {// if( resourceFile == null ) return ""; //$NON-NLS-1$// IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();// for( int i = 0; i < projects.length; ++i )// {// if( projects[i].contains(resourceFile) )// return projects[i].getName();// }// return ""; //$NON-NLS-1$// } }; try { ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(getShell()); progressMonitor.run(true, true, runnable); if( storage.getResource() != null ) { clearStatusLine(); open( storage.getResource(), storage.getLocatable() ); return; } String fileName = storage.getFileName(); if (fileName != null){ clearStatusLine(); open( fileName, storage.getLocatable()); } } catch(Exception x) { CUIPlugin.getDefault().log(x); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c1c91403c4a436c731f139830d89966d2eae8a12/OpenDeclarationsAction.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 6385, 4352, 2979, 907, 357, 907, 273, 16625, 780, 1265, 6946, 5621, 9506, 202, 430, 12, 1786, 907, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 6385, 5235, 2502, 273, 394, 5235, 5621, 202, 202, 45, 20013, 1190, 5491, 14685, 273, 394, 467, 20013, 1190, 5491, 1435, 3196, 202, 95, 1082, 202, 759, 6075, 30, 1082, 202, 759, 404, 17, 1109, 471, 336, 326, 3796, 3170, 508, 2511, 603, 326, 1384, 19, 2469, 1368, 716, 399, 57, 1082, 202, 759, 576, 17, 2511, 603, 326, 467, 9053, 461, 3170, 16, 1104, 326, 3796, 8266, 434, 518, 316, 326, 399, 57, 1082, 202, 759, 890, 17, 309, 1158, 467, 9053, 461, 353, 1392, 364, 279, 8266, 16, 1508, 1623, 326, 3340, 1082, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 474, 4421, 1685, 273, 357, 907, 18, 1786, 1685, 31, 9506, 202, 474, 4421, 1782, 273, 357, 907, 18, 1786, 1638, 300, 357, 907, 18, 1786, 1685, 31, 27573, 467, 9053, 461, 8526, 3170, 1557, 273, 29727, 67, 1985, 67, 8552, 31, 7734, 467, 9053, 6717, 2802, 28325, 33, 2011, 31, 7734, 6783, 3779, 3303, 33, 2011, 31, 7734, 26899, 1046, 1984, 33, 2011, 31, 27573, 309, 261, 74, 6946, 18, 588, 6946, 1210, 1435, 1276, 11352, 6946, 1210, 13, 288, 10792, 11352, 6946, 1210, 810, 273, 261, 6841, 6946, 1210, 13, 74, 6946, 18, 588, 6946, 1210, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 6385, 4352, 2979, 907, 357, 907, 273, 16625, 780, 1265, 6946, 5621, 9506, 202, 430, 12, 1786, 907, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 6385, 5235, 2502, 273, 394, 5235, 5621, 202, 202, 45, 20013, 1190, 5491, 14685, 273, 394, 467, 20013, 1190, 5491, 1435, 3196, 202, 95, 1082, 202, 759, 6075, 30, 1082, 202, 759, 404, 17, 1109, 471, 336, 326, 3796, 3170, 508, 2511, 603, 326, 1384, 19, 2469, 1368, 716, 399, 57, 1082, 202, 759, 576, 17, 2511, 603, 326, 467, 9053, 461, 3170, 16, 1104, 326, 3796, 8266, 434, 518, 316, 326, 399, 57, 1082, 202, 759, 890, 17, 2 ]
suite.addTestSuite(DecoratingTest.class);
suite.addTestSuite(ProxyFactoryTest.class); suite.addTestSuite(DecoratingTest.class);
private static Test createProxyFactorySuite(ProxyFactory factory, String type) { TestSuite suite = new TestSuite("Tests using " + type + "ProxyFactory"); ProxyTestCase.PROXY_FACTORY = factory; suite.addTestSuite(DecoratingTest.class); suite.addTestSuite(DelegatingTest.class); suite.addTestSuite(EchoingTest.class); suite.addTestSuite(FailoverTest.class); suite.addTestSuite(HotSwappingTest.class); suite.addTestSuite(MulticastTest.class); suite.addTestSuite(NullTest.class); return suite; }
6337 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6337/4bd30ab20d16723317a74f080f675973fc078557/AllTests.java/buggy/proxytoys/test/com/thoughtworks/proxy/AllTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 7766, 752, 3886, 1733, 13587, 12, 3886, 1733, 3272, 16, 514, 618, 13, 288, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 2932, 14650, 1450, 315, 397, 618, 397, 315, 3886, 1733, 8863, 202, 202, 3886, 4709, 2449, 18, 16085, 67, 16193, 273, 3272, 31, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 7859, 1776, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 15608, 1776, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 19704, 310, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 26329, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 25270, 12521, 1382, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 5049, 12544, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 2041, 4709, 18, 1106, 1769, 202, 202, 2463, 11371, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 7766, 752, 3886, 1733, 13587, 12, 3886, 1733, 3272, 16, 514, 618, 13, 288, 202, 202, 4709, 13587, 11371, 273, 394, 7766, 13587, 2932, 14650, 1450, 315, 397, 618, 397, 315, 3886, 1733, 8863, 202, 202, 3886, 4709, 2449, 18, 16085, 67, 16193, 273, 3272, 31, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 7859, 1776, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 15608, 1776, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 19704, 310, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 26329, 4709, 18, 1106, 1769, 202, 202, 30676, 18, 1289, 4709, 13587, 12, 25270, 12521, 1382, 4709, 18, 1106, 2 ]
" entity=" + (entity == null ? "null" : entity.getName());
" entity=" + (entity == null ? "null" : entity.getName()) + " resp=" + resp + " source=" + this.getSource() + " uid=" + uid;
public String toString() { return "request=" + getRequestTypeAsString() + " community=" + communityName + " entity=" + (entity == null ? "null" : entity.getName()); }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/90807c952b808c1641772c43da796965dcf13b5e/CommunityManagerRequestImpl.java/buggy/community/src/org/cougaar/community/manager/CommunityManagerRequestImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 327, 315, 2293, 1546, 397, 4328, 559, 8092, 1435, 397, 6647, 315, 19833, 1546, 397, 19833, 461, 397, 6647, 315, 1522, 1546, 397, 261, 1096, 422, 446, 692, 315, 2011, 6, 294, 1522, 18, 17994, 10756, 397, 315, 1718, 1546, 397, 1718, 397, 315, 1084, 1546, 397, 333, 18, 588, 1830, 1435, 397, 315, 4555, 1546, 397, 4555, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 327, 315, 2293, 1546, 397, 4328, 559, 8092, 1435, 397, 6647, 315, 19833, 1546, 397, 19833, 461, 397, 6647, 315, 1522, 1546, 397, 261, 1096, 422, 446, 692, 315, 2011, 6, 294, 1522, 18, 17994, 10756, 397, 315, 1718, 1546, 397, 1718, 397, 315, 1084, 1546, 397, 333, 18, 588, 1830, 1435, 397, 315, 4555, 1546, 397, 4555, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sizeOfURIs.put(uri.toString(false), new Long(data.size())); mimeOfURIs.put(uri.toString(false), mimeType);
sizeOfURIs.put(uri.toString(), new Long(data.size())); mimeOfURIs.put(uri.toString(), mimeType);
public void onSuccess(FetchResult result, ClientGetter state) { FreenetURI uri = state.getURI(); synchronized (this) { runningFetchesByURI.remove(uri); } startSomeRequests(); ClientMetadata cm = result.getMetadata(); Bucket data = result.asBucket(); String mimeType = cm.getMIMEType(); sizeOfURIs.put(uri.toString(false), new Long(data.size())); mimeOfURIs.put(uri.toString(false), mimeType); try { ContentFilter.filter(data, ctx.bucketFactory, mimeType, new URI("http://127.0.0.1:8888/" + uri.toString(false)), this); } catch (UnsafeContentTypeException e) { return; // Ignore } catch (IOException e) { Logger.error(this, "Bucket error?: " + e, e); } catch (URISyntaxException e) { Logger.error(this, "Internal error: " + e, e); } finally { data.free(); } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/1c876261ab73159d57a26624667ec7bf7acd15b8/NinjaSpider.java/buggy/src/freenet/clients/http/NinjaSpider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 42, 2842, 278, 3098, 2003, 273, 919, 18, 588, 3098, 5621, 202, 202, 22043, 261, 2211, 13, 288, 1082, 202, 8704, 14288, 858, 3098, 18, 4479, 12, 1650, 1769, 202, 202, 97, 202, 202, 1937, 17358, 6421, 5621, 202, 202, 1227, 2277, 5003, 273, 563, 18, 588, 2277, 5621, 202, 202, 4103, 501, 273, 563, 18, 345, 4103, 5621, 202, 202, 780, 10707, 273, 5003, 18, 588, 18178, 559, 5621, 202, 202, 1467, 951, 1099, 2520, 18, 458, 12, 1650, 18, 10492, 12, 5743, 3631, 394, 3407, 12, 892, 18, 1467, 1435, 10019, 202, 202, 11757, 951, 1099, 2520, 18, 458, 12, 1650, 18, 10492, 12, 5743, 3631, 10707, 1769, 202, 202, 698, 288, 1082, 202, 1350, 1586, 18, 2188, 12, 892, 16, 1103, 18, 7242, 1733, 16, 10707, 16, 394, 3699, 2932, 2505, 2207, 14260, 18, 20, 18, 20, 18, 21, 30, 5482, 5482, 4898, 397, 2003, 18, 10492, 12, 5743, 13, 3631, 333, 1769, 202, 202, 97, 1044, 261, 23912, 8046, 503, 425, 13, 288, 1082, 202, 2463, 31, 368, 8049, 202, 202, 97, 1044, 261, 14106, 425, 13, 288, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 4103, 555, 35, 30, 315, 397, 425, 16, 425, 1769, 202, 202, 97, 1044, 261, 3098, 14714, 425, 13, 288, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 3061, 555, 30, 315, 397, 425, 16, 425, 1769, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 42, 2842, 278, 3098, 2003, 273, 919, 18, 588, 3098, 5621, 202, 202, 22043, 261, 2211, 13, 288, 1082, 202, 8704, 14288, 858, 3098, 18, 4479, 12, 1650, 1769, 202, 202, 97, 202, 202, 1937, 17358, 6421, 5621, 202, 202, 1227, 2277, 5003, 273, 563, 18, 588, 2277, 5621, 202, 202, 4103, 501, 273, 563, 18, 345, 4103, 5621, 202, 202, 780, 10707, 273, 5003, 18, 588, 18178, 559, 5621, 202, 202, 1467, 951, 1099, 2520, 18, 458, 12, 1650, 18, 10492, 12, 5743, 3631, 394, 3407, 12, 892, 18, 1467, 1435, 10019, 202, 202, 11757, 951, 1099, 2520, 18, 458, 12, 2 ]
public org.quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuerLen value = new org.quickfix.field.EncodedUnderlyingIssuerLen();
public quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { quickfix.field.EncodedUnderlyingIssuerLen value = new quickfix.field.EncodedUnderlyingIssuerLen();
public org.quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuerLen value = new org.quickfix.field.EncodedUnderlyingIssuerLen(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/buggy/src/java/src/quickfix/fix44/Email.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 28799, 14655, 6291, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 28799, 14655, 6291, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Exiting ojb dao.");
public List readByRoomAndExecutionPeriod(String roomName, String executionPeriodName, String year) throws ExcepcaoPersistencia { System.out.println("Entering ojb dao"); Criteria criteria = new Criteria(); criteria.addEqualTo("associatedRoomOccupation.room.nome", roomName); criteria .addEqualTo("associatedExecutionCourses.executionPeriod.name", executionPeriodName); criteria.addEqualTo("associatedExecutionCourses.executionPeriod.executionYear.year",year); List examsWithRepetition = queryList(Exam.class, criteria); List examsWithoutRepetition = new ArrayList(); for (int i = 0; i < examsWithRepetition.size(); i++) { IExam exam = (IExam) examsWithRepetition.get(i); if (!examsWithoutRepetition.contains(exam)) { examsWithoutRepetition.add(exam); } } System.out.println("Exiting ojb dao."); return examsWithoutRepetition; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/788af4d4882f0dd8d21a264e21a9a0662d232ec7/ExamOJB.java/buggy/src/net/sourceforge/fenixedu/persistenceTier/OJB/ExamOJB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 858, 13646, 1876, 3210, 5027, 12, 780, 7725, 461, 16, 514, 4588, 5027, 461, 16, 514, 3286, 13, 5411, 1216, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10237, 310, 320, 10649, 15229, 8863, 3639, 8356, 3582, 273, 394, 8356, 5621, 3639, 3582, 18, 1289, 5812, 774, 2932, 28441, 13646, 24269, 416, 367, 18, 13924, 18, 82, 1742, 3113, 7725, 461, 1769, 3639, 3582, 7734, 263, 1289, 5812, 774, 2932, 28441, 3210, 39, 10692, 18, 16414, 5027, 18, 529, 3113, 4588, 5027, 461, 1769, 3639, 3582, 18, 1289, 5812, 774, 2932, 28441, 3210, 39, 10692, 18, 16414, 5027, 18, 16414, 5593, 18, 6874, 3113, 6874, 1769, 3639, 987, 19707, 87, 1190, 426, 6951, 608, 273, 843, 682, 12, 424, 301, 18, 1106, 16, 3582, 1769, 3639, 987, 19707, 87, 8073, 426, 6951, 608, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 19707, 87, 1190, 426, 6951, 608, 18, 1467, 5621, 277, 27245, 288, 5411, 467, 424, 301, 19707, 273, 261, 45, 424, 301, 13, 19707, 87, 1190, 426, 6951, 608, 18, 588, 12, 77, 1769, 5411, 309, 16051, 338, 301, 87, 8073, 426, 6951, 608, 18, 12298, 12, 338, 301, 3719, 288, 7734, 19707, 87, 8073, 426, 6951, 608, 18, 1289, 12, 338, 301, 1769, 5411, 289, 3639, 289, 9079, 327, 19707, 87, 8073, 426, 6951, 608, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 858, 13646, 1876, 3210, 5027, 12, 780, 7725, 461, 16, 514, 4588, 5027, 461, 16, 514, 3286, 13, 5411, 1216, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10237, 310, 320, 10649, 15229, 8863, 3639, 8356, 3582, 273, 394, 8356, 5621, 3639, 3582, 18, 1289, 5812, 774, 2932, 28441, 13646, 24269, 416, 367, 18, 13924, 18, 82, 1742, 3113, 7725, 461, 1769, 3639, 3582, 7734, 263, 1289, 5812, 774, 2932, 28441, 3210, 39, 10692, 18, 16414, 5027, 18, 529, 3113, 4588, 5027, 461, 1769, 3639, 3582, 18, 1289, 5812, 774, 2932, 28441, 3210, 39, 10692, 18, 16414, 5027, 18, 16414, 5593, 18, 6874, 3113, 6874, 1769, 3639, 987, 19707, 2 ]
out.print("</td><td headers=\"t2\" class=\"standard\">");
out .print("</td><td headers=\"t2\" class=\"standard\">");
private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=\"center\" class=\"miscTable\"><tr>"); out.println("<td class=\"evenRowEvenCol\"><p><strong>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files") + "</strong></p>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<p>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files.no") + "</p>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out.println("<table cellpadding=\"6\"><tr><th id=\"t1\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.file") + "</th>"); if (multiFile) { out.println("<th id=\"t2\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.description") + "</th>"); } out.println("<th id=\"t3\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.filesize") + "</th><th id=\"t4\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.fileformat") + "</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td headers=\"t1\" class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td headers=\"t2\" class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td headers=\"t3\" class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td headers=\"t4\" class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out.print("</td><td class=\"standard\"><a target=\"_blank\" href=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(UIUtil.encodeBitstreamName(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</a></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td headers=\"t1\" class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td headers=\"t2\" class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td headers=\"t3\" class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td headers=\"t4\" class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<a target=\"_blank\" href=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + UIUtil.encodeBitstreamName( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + UIUtil.encodeBitstreamName(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\" /></a><br />"); } } out.print(bsLink + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</a></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/d10ff6f3006ca734ef2962a5a697f9fe0ef9fd36/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5621, 202, 565, 596, 18, 1188, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 4438, 313, 2984, 1769, 3639, 596, 18, 8222, 2932, 32, 4465, 667, 5189, 16728, 1999, 8321, 914, 2412, 4438, 84, 4438, 9110, 2984, 13491, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 27573, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 7923, 13491, 397, 6823, 9110, 4695, 84, 2984, 1769, 3639, 8539, 8526, 11408, 273, 761, 18, 588, 16151, 2932, 24685, 1013, 8863, 3639, 309, 261, 22773, 18, 2469, 422, 374, 13, 3639, 288, 5411, 596, 18, 8222, 2932, 32, 84, 2984, 18701, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 4766, 565, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 18, 2135, 7923, 18701, 397, 6823, 84, 2984, 1769, 3639, 289, 3639, 469, 3639, 288, 5411, 1250, 1729, 273, 629, 31, 5411, 514, 1640, 273, 761, 18, 588, 3259, 5621, 5411, 6539, 3256, 3354, 5775, 3256, 273, 446, 31, 5411, 8539, 8526, 324, 19156, 273, 761, 18, 588, 16151, 2932, 24685, 1013, 8863, 5411, 8539, 8526, 286, 10099, 273, 761, 18, 588, 16151, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5621, 202, 565, 596, 18, 1188, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 4438, 313, 2984, 1769, 3639, 596, 18, 8222, 2932, 32, 4465, 667, 5189, 16728, 1999, 8321, 914, 2412, 4438, 84, 4438, 9110, 2984, 13491, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 27573, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 7923, 13491, 397, 6823, 9110, 4695, 84, 2984, 1769, 3639, 8539, 2 ]
String filename = "/usr/local/dhaval/dicom/";
String filename = "/tmp/";
public InputStream getDestinationStream(InputStream source) throws Exception { ZipInputStream zipp = new ZipInputStream( source ); if (zipp == null) { if (MediaFilterManager.isVerbose) { System.out.println (" Zip file 'zipp' is null "); } }; // get the first entry from the archive ZipEntry entry = zipp.getNextEntry(); String entryName = entry.getName(); if (MediaFilterManager.isVerbose) { System.out.println (" The File Selected for Generating Thumbnail is " ); System.out.println (" " + entryName); System.out.println (" "); } // create a "temp" folder and give its path String filename = "/usr/local/dhaval/dicom/"; OutputStream out = new FileOutputStream ( filename + entryName); // create a buffer byte[] buffer = new byte[1024]; // Transfer Bytes from input stream to Output DicomFile int len; while ((len = zipp.read(buffer)) >0 ) { out.write (buffer,0,len); } out.close(); // system call to the DicomReadWrite executable String[] cmd = { "/usr/local/dhaval/dicom/DicomGenerateThumbnail", filename + entryName, "/usr/local/dhaval/dicom/dhavaloutput.jpg" }; Process p = Runtime.getRuntime().exec(cmd); // put a BufferedReader on the output InputStream inputstream = p.getInputStream(); InputStreamReader inputstreamreader = new InputStreamReader(inputstream); BufferedReader bufferedreader = new BufferedReader(inputstreamreader); // read the output File f = new File("/usr/local/dhaval/dicom/dicomheader.txt"); BufferedWriter writer = new BufferedWriter(new FileWriter(f)); writer.write(" The Header Contents of the File "+ entryName + " Selected for Generating Thumbnail is "); writer.newLine(); String line; while ((line = bufferedreader.readLine()) != null) { if (MediaFilterManager.isVerbose) { System.out.println(line); } writer.write(line); writer.newLine(); //write system dependent end of line } writer.close(); //close to unlock and flush to disk // check for DicomReadWrite failure try { if (p.waitFor() != 0) { if (MediaFilterManager.isVerbose) System.err.println("exit value = " + p.exitValue()); } } catch (InterruptedException e) { if (MediaFilterManager.isVerbose) System.err.println(e); } File fo = new File("/usr/local/dhaval/dicom/dhavaloutput.jpg"); BufferedImage buf = ImageIO.read(fo); buf.flush(); // get config params float xmax = (float) ConfigurationManager.getIntProperty("thumbnail.maxwidth"); float ymax = (float) ConfigurationManager.getIntProperty("thumbnail.maxheight"); Image thumb = null; // now get the image dimensions float xsize = (float) buf.getWidth(null); float ysize = (float) buf.getHeight(null); // if verbose flag is set, print out dimensions // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("original size: " + xsize + "," + ysize); } // scale by x first if needed if (xsize > xmax) { // calculate scaling factor so that xsize * scale = new size (max) float scale_factor = xmax / xsize; // if verbose flag is set, print out extracted text // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("x scale factor: " + scale_factor); } // now reduce x size // and y size xsize = xsize * scale_factor; ysize = ysize * scale_factor; // if verbose flag is set, print out extracted text // to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("new size: " + xsize + "," + ysize); } } // scale by y if needed if (ysize > ymax) { float scale_factor = ymax / ysize; // now reduce x size // and y size xsize = xsize * scale_factor; ysize = ysize * scale_factor; } // if verbose flag is set, print details to STDOUT if (MediaFilterManager.isVerbose) { System.out.println("thumbnail size: " + xsize + ", " + ysize); } thumb = buf.getScaledInstance((int) xsize, (int) ysize,Image.SCALE_SMOOTH); // create a BufferedImage to draw this image into... BufferedImage thumbnail = new BufferedImage(thumb.getWidth(null), thumb.getHeight(null), BufferedImage.TYPE_BYTE_GRAY); Graphics2D g2d = thumbnail.createGraphics(); // draw thumb into thumbnail g2d.drawImage(thumb, null, null); // now create an input stream and return it ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write(buf,"jpeg",baos); // now get the array ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray()); return bais; }
5703 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5703/f12b300ac44bfbd06b623e8dcf86d2a0eb7a13e3/ZipFilter.java/buggy/DigitalArchive/DSpaceMediaFilters/ZipFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5037, 17611, 1228, 12, 4348, 1084, 13, 5411, 1216, 1185, 565, 288, 5411, 8603, 4348, 3144, 84, 273, 394, 8603, 4348, 12, 1084, 11272, 5411, 309, 261, 4450, 84, 422, 446, 13, 30378, 288, 4202, 309, 261, 5419, 1586, 1318, 18, 291, 14489, 13, 6647, 288, 2398, 2332, 18, 659, 18, 8222, 7566, 8603, 585, 296, 4450, 84, 11, 353, 446, 315, 1769, 5411, 289, 4202, 289, 31, 540, 368, 336, 326, 1122, 1241, 628, 326, 5052, 4202, 23652, 1241, 273, 3144, 84, 18, 588, 2134, 1622, 5621, 4202, 514, 1241, 461, 273, 1241, 18, 17994, 5621, 4202, 309, 261, 5419, 1586, 1318, 18, 291, 14489, 13, 4202, 288, 5411, 2332, 18, 659, 18, 8222, 7566, 1021, 1387, 4352, 828, 364, 3055, 1776, 935, 6196, 353, 315, 11272, 5411, 2332, 18, 659, 18, 8222, 7566, 315, 397, 1241, 461, 1769, 5411, 2332, 18, 659, 18, 8222, 7566, 225, 315, 1769, 4202, 289, 4202, 368, 752, 279, 315, 5814, 6, 3009, 471, 8492, 2097, 589, 4202, 514, 1544, 273, 2206, 5645, 4898, 31, 4202, 8962, 596, 273, 394, 225, 12942, 261, 1544, 397, 1241, 461, 1769, 540, 368, 752, 279, 1613, 5411, 1160, 8526, 225, 1613, 273, 394, 1160, 63, 2163, 3247, 15533, 540, 368, 225, 12279, 5985, 628, 810, 1407, 358, 3633, 463, 335, 362, 812, 4202, 509, 562, 31, 4202, 1323, 14015, 1897, 273, 3144, 84, 18, 896, 12, 4106, 3719, 405, 20, 262, 202, 282, 288, 540, 596, 18, 2626, 261, 4106, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5037, 17611, 1228, 12, 4348, 1084, 13, 5411, 1216, 1185, 565, 288, 5411, 8603, 4348, 3144, 84, 273, 394, 8603, 4348, 12, 1084, 11272, 5411, 309, 261, 4450, 84, 422, 446, 13, 30378, 288, 4202, 309, 261, 5419, 1586, 1318, 18, 291, 14489, 13, 6647, 288, 2398, 2332, 18, 659, 18, 8222, 7566, 8603, 585, 296, 4450, 84, 11, 353, 446, 315, 1769, 5411, 289, 4202, 289, 31, 540, 368, 336, 326, 1122, 1241, 628, 326, 5052, 4202, 23652, 1241, 273, 3144, 84, 18, 588, 2134, 1622, 5621, 4202, 514, 1241, 461, 273, 1241, 18, 17994, 5621, 4202, 309, 261, 5419, 1586, 1318, 18, 291, 14489, 13, 4202, 288, 5411, 2332, 18, 659, 18, 8222, 7566, 1021, 2 ]
addToken(tag, lexer);
CompositeElement attribute = Factory.createCompositeElement(XML_ATTRIBUTE); TreeUtil.addChildren(tag, attribute); addToken(attribute, lexer);
private void parseAttributeList(CompositeElement tag, Lexer lexer) { int lastPosition = -1; while (true) { if (lexer.getTokenType() == XML_ENTITY_REF_TOKEN) { TreeUtil.addChildren(tag, parseEntityRef(lexer)); continue; } if (lexer.getTokenType() != XML_NAME) { return; } if (lastPosition != -1) { if (lastPosition == lexer.getTokenStart()) { TreeUtil.addChildren(tag, Factory.createErrorElement("Whitespace expected")); lastPosition = -1; } } addToken(tag, lexer); if (lexer.getTokenType() != XML_EQ) { TreeUtil.addChildren(tag, Factory.createErrorElement("'=' expected")); continue; } addToken(tag, lexer); if (lexer.getTokenType() != XML_ATTRIBUTE_VALUE_START_DELIMITER) { return; } addToken(tag, lexer); if (lexer.getTokenType() == XML_ATTRIBUTE_VALUE_TOKEN) { addToken(tag, lexer); if (lexer.getTokenType() == XML_ATTRIBUTE_VALUE_END_DELIMITER) { lastPosition = lexer.getTokenEnd(); addToken(tag, lexer); } else { lastPosition = -1; } } else { lastPosition = -1; } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2ebafd11bc52db02474edfde7dd556dd1ee31fda/XmlParsing.java/clean/source/com/intellij/psi/impl/source/parsing/xml/XmlParsing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 1499, 682, 12, 9400, 1046, 1047, 16, 14234, 8512, 13, 288, 565, 509, 1142, 2555, 273, 300, 21, 31, 565, 1323, 261, 3767, 13, 288, 1377, 309, 261, 31731, 18, 588, 28675, 1435, 422, 3167, 67, 11101, 67, 10771, 67, 8412, 13, 288, 3639, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 1109, 1943, 1957, 12, 31731, 10019, 1377, 1324, 31, 1377, 289, 1377, 309, 261, 31731, 18, 588, 28675, 1435, 480, 3167, 67, 1985, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 261, 2722, 2555, 480, 300, 21, 13, 288, 3639, 309, 261, 2722, 2555, 422, 8512, 18, 588, 1345, 1685, 10756, 288, 1850, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 7822, 18, 2640, 668, 1046, 2932, 9431, 2665, 7923, 1769, 1850, 1142, 2555, 273, 300, 21, 31, 3639, 289, 1377, 289, 1377, 14728, 1046, 1566, 273, 7822, 18, 2640, 9400, 1046, 12, 4201, 67, 11616, 1769, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 1566, 1769, 225, 527, 1345, 12, 4589, 16, 8512, 1769, 1377, 309, 261, 31731, 18, 588, 28675, 1435, 480, 3167, 67, 27247, 13, 288, 3639, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 7822, 18, 2640, 668, 1046, 29823, 2218, 2665, 7923, 1769, 1377, 1324, 31, 1377, 289, 1377, 14728, 1046, 1566, 273, 7822, 18, 2640, 9400, 1046, 12, 4201, 67, 11616, 1769, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 1566, 1769, 225, 527, 1345, 12, 4589, 16, 8512, 1769, 1377, 309, 261, 31731, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 1499, 682, 12, 9400, 1046, 1047, 16, 14234, 8512, 13, 288, 565, 509, 1142, 2555, 273, 300, 21, 31, 565, 1323, 261, 3767, 13, 288, 1377, 309, 261, 31731, 18, 588, 28675, 1435, 422, 3167, 67, 11101, 67, 10771, 67, 8412, 13, 288, 3639, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 1109, 1943, 1957, 12, 31731, 10019, 1377, 1324, 31, 1377, 289, 1377, 309, 261, 31731, 18, 588, 28675, 1435, 480, 3167, 67, 1985, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 261, 2722, 2555, 480, 300, 21, 13, 288, 3639, 309, 261, 2722, 2555, 422, 8512, 18, 588, 1345, 1685, 10756, 288, 1850, 4902, 1304, 18, 1289, 4212, 12, 2692, 16, 7822, 2 ]
+ menuIds.toString() + ") part id = "
+ getMenuIds().toString() + ") part id = "
private void testForAdditions() { IContributionItem item = menu .find(IWorkbenchActionConstants.MB_ADDITIONS); if (item == null) { WorkbenchPlugin .log("Context menu missing standard group 'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu ids = " //$NON-NLS-1$ + menuIds.toString() + ") part id = " //$NON-NLS-1$ + (part == null ? "???" : part.getSite().getId()) //$NON-NLS-1$ + ")"); //$NON-NLS-1$ } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2345dd4a47c703ef1888dce814eae00c37b38474/PopupMenuExtender.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PopupMenuExtender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1842, 1290, 986, 5029, 1435, 288, 3639, 467, 442, 4027, 1180, 761, 273, 3824, 7734, 263, 4720, 12, 45, 2421, 22144, 1803, 2918, 18, 7969, 67, 8355, 7022, 55, 1769, 3639, 309, 261, 1726, 422, 446, 13, 288, 5411, 4147, 22144, 3773, 10792, 263, 1330, 2932, 1042, 3824, 3315, 4529, 1041, 296, 3341, 18, 20416, 18, 4881, 18, 45, 2421, 22144, 1803, 2918, 18, 7969, 67, 8355, 7022, 55, 10332, 261, 5414, 3258, 273, 315, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 25877, 2673, 7675, 10492, 1435, 397, 9369, 225, 1087, 612, 273, 315, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 261, 2680, 422, 446, 692, 315, 14646, 7225, 294, 1087, 18, 588, 4956, 7675, 26321, 10756, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 7310, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1842, 1290, 986, 5029, 1435, 288, 3639, 467, 442, 4027, 1180, 761, 273, 3824, 7734, 263, 4720, 12, 45, 2421, 22144, 1803, 2918, 18, 7969, 67, 8355, 7022, 55, 1769, 3639, 309, 261, 1726, 422, 446, 13, 288, 5411, 4147, 22144, 3773, 10792, 263, 1330, 2932, 1042, 3824, 3315, 4529, 1041, 296, 3341, 18, 20416, 18, 4881, 18, 45, 2421, 22144, 1803, 2918, 18, 7969, 67, 8355, 7022, 55, 10332, 261, 5414, 3258, 273, 315, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 25877, 2673, 7675, 10492, 1435, 397, 9369, 225, 1087, 612, 273, 315, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 397, 261, 2680, 422, 446, 692, 315, 14646, 7225, 294, 1087, 18, 2 ]
if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) )
if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) )
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) // Original // chart is // of this type // (LineChart) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) // Original // chart // is // of // the // required // subtype { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType .equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).setType( AxisType.TEXT_LITERAL ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); currentChart.getInteractivity().setEnable( helperModel.getInteractivity().isEnable()); currentChart.getInteractivity().setLegendBehavior( helperModel.getInteractivity().getLegendBehavior()); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ).setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && getDimensionFor( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).setUnitSpacing( 50 ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } } return currentChart; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/182827fe6ad4e223adc4bf4bcf44d469847b773d/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 783, 7984, 11272, 202, 202, 7984, 8611, 1592, 8611, 273, 783, 7984, 18, 588, 8611, 12, 11272, 202, 202, 430, 261, 261, 783, 7984, 1276, 14804, 1190, 26494, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 783, 7984, 18, 588, 559, 12, 262, 18, 14963, 12, 3463, 67, 23225, 262, 262, 368, 19225, 1082, 202, 759, 4980, 353, 1082, 202, 759, 434, 333, 618, 1082, 202, 759, 261, 1670, 7984, 13, 1082, 202, 95, 9506, 202, 430, 261, 401, 2972, 7984, 18, 588, 30511, 12, 262, 18, 14963, 12, 272, 1908, 30511, 262, 262, 368, 19225, 9506, 202, 759, 4980, 9506, 202, 759, 353, 9506, 202, 759, 434, 9506, 202, 759, 326, 9506, 202, 759, 1931, 9506, 202, 759, 12308, 9506, 202, 95, 6862, 202, 2972, 7984, 18, 542, 30511, 12, 272, 1908, 30511, 11272, 6862, 202, 41, 682, 6515, 273, 261, 261, 6558, 13, 261, 261, 7984, 1190, 26494, 13, 783, 7984, 262, 18, 588, 26494, 12, 262, 6862, 1082, 202, 18, 588, 12, 374, 262, 262, 18, 588, 19233, 26494, 12, 11272, 6862, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 6515, 18, 1467, 12, 11272, 277, 9904, 262, 6862, 202, 95, 25083, 202, 430, 261, 272, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 783, 7984, 11272, 202, 202, 7984, 8611, 1592, 8611, 273, 783, 7984, 18, 588, 8611, 12, 11272, 202, 202, 430, 261, 261, 783, 7984, 1276, 14804, 1190, 26494, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 783, 7984, 18, 588, 559, 12, 262, 18, 14963, 12, 3463, 67, 23225, 262, 262, 368, 19225, 1082, 202, 759, 4980, 353, 1082, 202, 759, 434, 333, 618, 1082, 202, 759, 261, 1670, 7984, 13, 1082, 202, 2 ]
validateProperty(name, value); if (name.startsWith("env.")) { name = name.substring(4); if (!(name.startsWith("env."))) { envProps.put(name, value); continue; } } else if (name.startsWith("java.")) { name = name.substring(5); if (!(name.startsWith("java."))) { javaProps.put(name, value); continue; } } sysProps.put(name, value); } ArrayList cmdList = new ArrayList(); String jvmProgram = (String) javaProps.remove("jvm.program"); if (jvmProgram != null) { } else { jvmProgram = "java"; } cmdList.add(jvmProgram); String jvmMode = (String) javaProps.remove("jvm.mode"); if (jvmMode != null) { if ((jvmMode.equals("classic")) || (jvmMode.equals("hotspot")) || (jvmMode.equals("client")) || (jvmMode.equals("server"))) { cmdList.add("-"+jvmMode); } else { throw new IllegalArgumentException( "Illegal \"jvm.mode="+jvmMode+"\""); } } String jvmGreen = (String) javaProps.remove("jvm.green"); if (jvmGreen != null) { if (jvmGreen.equals("true")) { cmdList.add("-green"); } } String classpath = (String) javaProps.remove("class.path"); if (classpath != null) { classpath = classpath.trim(); if (classpath.length() == 0) { throw new IllegalArgumentException( "Classpath must be non-empty"); } cmdList.add("-classpath"); cmdList.add(classpath); } String classname = (String) javaProps.remove("class.name"); if (classname != null) { classname = classname.trim(); if (classname.length() == 0) { throw new IllegalArgumentException( "Classname must be non-empty"); } } else { classname = DEFAULT_CLASSNAME; } for (Iterator iter = javaProps.entrySet().iterator(); iter.hasNext(); ) { Map.Entry me = (Map.Entry) iter.next(); String name = (String)me.getKey(); String value = (String)me.getValue();
public ServerNodeController createNode( String nodeId, Properties props, String[] args, ClientNodeEventListener cnel, NodeEventFilter nef, ConfigurationWriter cw) throws IOException { if (cw != null) { cw.writeConfigFiles(new File(tempPath)); } // p is a merge of server-set properties and passed-in props Properties allProps = new Properties(); if (defaultProps != null) { allProps.putAll(defaultProps); } if (props != null) { allProps.putAll(props); } // split all properties into three groups: // "env.*" process environment properties (e.g. "env.DISPLAY=..") // "java.*" java options (e.g. "java.class.path=..") // "*" all other "-D" system properties (e.g. "foo=bar") Properties envProps = new Properties(); Properties javaProps = new Properties(); Properties sysProps = new Properties(); for (Iterator iter = allProps.entrySet().iterator(); iter.hasNext(); ) { // all Properties are non-null (String, String) pairs Map.Entry me = (Map.Entry) iter.next(); String name = (String)me.getKey(); String value = (String)me.getValue(); validateProperty(name, value); if (name.startsWith("env.")) { name = name.substring(4); if (!(name.startsWith("env."))) { envProps.put(name, value); continue; } } else if (name.startsWith("java.")) { name = name.substring(5); if (!(name.startsWith("java."))) { javaProps.put(name, value); continue; } } sysProps.put(name, value); } ArrayList cmdList = new ArrayList(); // select "java" executable String jvmProgram = (String) javaProps.remove("jvm.program"); if (jvmProgram != null) { // SECURITY -- guard against "jvm.program=rm"!!! // use name as-is } else { jvmProgram = "java"; } cmdList.add(jvmProgram); // check for JVM mode ("classic", "hotspot", "client", or "server") String jvmMode = (String) javaProps.remove("jvm.mode"); if (jvmMode != null) { if ((jvmMode.equals("classic")) || (jvmMode.equals("hotspot")) || (jvmMode.equals("client")) || (jvmMode.equals("server"))) { cmdList.add("-"+jvmMode); } else { throw new IllegalArgumentException( "Illegal \"jvm.mode="+jvmMode+"\""); } } // check for green threads String jvmGreen = (String) javaProps.remove("jvm.green"); if (jvmGreen != null) { if (jvmGreen.equals("true")) { cmdList.add("-green"); } } // check for a classpath String classpath = (String) javaProps.remove("class.path"); if (classpath != null) { classpath = classpath.trim(); if (classpath.length() == 0) { throw new IllegalArgumentException( "Classpath must be non-empty"); } // SECURITY -- examine path cmdList.add("-classpath"); cmdList.add(classpath); } // take classname for later use String classname = (String) javaProps.remove("class.name"); if (classname != null) { classname = classname.trim(); if (classname.length() == 0) { throw new IllegalArgumentException( "Classname must be non-empty"); } // SECURITY -- examine class name } else { classname = DEFAULT_CLASSNAME; } // add all remaining java properties for (Iterator iter = javaProps.entrySet().iterator(); iter.hasNext(); ) { Map.Entry me = (Map.Entry) iter.next(); String name = (String)me.getKey(); String value = (String)me.getValue(); // SECURITY -- maybe block some pairs (e.g. "XBootclasspath=..") if (value.length() > 0) { cmdList.add("-"+name+"="+value); } else { cmdList.add("-"+name); } } // add all the system properties for (Iterator iter = sysProps.entrySet().iterator(); iter.hasNext(); ) { Map.Entry me = (Map.Entry) iter.next(); String name = (String)me.getKey(); String value = (String)me.getValue(); // SECURITY -- these are probably okay... if (value.length() > 0) { cmdList.add("-D"+name+"="+value); } else { cmdList.add("-D"+name); } } // add the class name cmdList.add(classname); // add any additional command-line arguments if (args != null) { for (int i = 0; i < args.length; i++) { String argi = args[i]; if (argi == null) { throw new IllegalArgumentException( "Command line contained a null entry["+ i+" / "+args.length+"]"); } // SECURITY -- these are probably okay... cmdList.add(argi); } } // flatten the command line to a String[] String[] cmdLine = (String[])cmdList.toArray(new String[cmdList.size()]); // flatten the envProps to a String[] int nEnvProps = envProps.size(); String[] envVars = new String[nEnvProps]; if (nEnvProps > 0) { Iterator iter = envProps.entrySet().iterator(); for (int i = 0; i < nEnvProps; i++) { Map.Entry me = (Map.Entry) iter.next(); String name = (String)me.getKey(); String value = (String)me.getValue(); // SECURITY -- should scan these closely, possibly OS specific if (value.length() > 0) { envVars[i] = (name+"="+value); } else { envVars[i] = (name); } } } // debugging... if (verbose) { System.out.println("\nCreate Node Controller:"); System.out.println("Node name: "+nodeId); System.out.println("Command line["+cmdLine.length+"]:"); for (int i = 0; i < cmdLine.length; i++) { System.err.println(" "+cmdLine[i]); } System.err.println("Environment["+envVars.length+"]:"); for (int i = 0; i < envVars.length; i++) { System.err.println(" "+envVars[i]); } System.out.println("RMI Host: "+rmiHost); System.out.println("RMI Port: "+rmiPort); System.out.println(); } ServerNodeController snc = new ServerNodeControllerImpl( nodeId, cmdLine, envVars, rmiHost, rmiPort, cnel, nef); nodes.put(nodeId, snc); return snc; }
8707 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8707/b7123ef655b55682182df291929b5103dbc4211c/ServerHostControllerImpl.java/clean/src/org/cougaar/tools/server/rmi/ServerHostControllerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1954, 1396, 12, 529, 16, 460, 1769, 225, 309, 261, 529, 18, 17514, 1190, 2932, 3074, 1199, 3719, 288, 508, 273, 508, 18, 28023, 12, 24, 1769, 309, 16051, 12, 529, 18, 17514, 1190, 2932, 3074, 1199, 20349, 288, 1550, 5047, 18, 458, 12, 529, 16, 460, 1769, 1324, 31, 289, 289, 469, 309, 261, 529, 18, 17514, 1190, 2932, 6290, 1199, 3719, 288, 508, 273, 508, 18, 28023, 12, 25, 1769, 309, 16051, 12, 529, 18, 17514, 1190, 2932, 6290, 1199, 20349, 288, 2252, 5047, 18, 458, 12, 529, 16, 460, 1769, 1324, 31, 289, 289, 2589, 5047, 18, 458, 12, 529, 16, 460, 1769, 289, 225, 2407, 1797, 682, 273, 394, 2407, 5621, 282, 514, 13555, 9459, 273, 261, 780, 13, 2252, 5047, 18, 4479, 2932, 78, 3489, 18, 12890, 8863, 309, 261, 78, 3489, 9459, 480, 446, 13, 288, 282, 289, 469, 288, 13555, 9459, 273, 315, 6290, 14432, 289, 225, 1797, 682, 18, 1289, 12, 78, 3489, 9459, 1769, 282, 514, 13555, 2309, 273, 261, 780, 13, 2252, 5047, 18, 4479, 2932, 78, 3489, 18, 3188, 8863, 309, 261, 78, 3489, 2309, 480, 446, 13, 288, 309, 14015, 78, 3489, 2309, 18, 14963, 2932, 1106, 335, 6, 3719, 747, 261, 78, 3489, 2309, 18, 14963, 2932, 15224, 19032, 6, 3719, 747, 261, 78, 3489, 2309, 18, 14963, 2932, 2625, 6, 3719, 747, 261, 78, 3489, 2309, 18, 14963, 2932, 3567, 6, 20349, 288, 1797, 682, 18, 1289, 2932, 10951, 15, 78, 3489, 2309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1954, 1396, 12, 529, 16, 460, 1769, 225, 309, 261, 529, 18, 17514, 1190, 2932, 3074, 1199, 3719, 288, 508, 273, 508, 18, 28023, 12, 24, 1769, 309, 16051, 12, 529, 18, 17514, 1190, 2932, 3074, 1199, 20349, 288, 1550, 5047, 18, 458, 12, 529, 16, 460, 1769, 1324, 31, 289, 289, 469, 309, 261, 529, 18, 17514, 1190, 2932, 6290, 1199, 3719, 288, 508, 273, 508, 18, 28023, 12, 25, 1769, 309, 16051, 12, 529, 18, 17514, 1190, 2932, 6290, 1199, 20349, 288, 2252, 5047, 18, 458, 12, 529, 16, 460, 1769, 1324, 31, 289, 289, 2589, 5047, 18, 458, 12, 529, 16, 460, 1769, 289, 225, 2407, 1797, 682, 273, 394, 2407, 5621, 282, 514, 13555, 9459, 2 ]
return new Adapter(super.createComponentAdapter(componentKey, componentImplementation, parameters));
return new ImplementationHidingComponentAdapter(super.createComponentAdapter(componentKey, componentImplementation, parameters));
public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { return new Adapter(super.createComponentAdapter(componentKey, componentImplementation, parameters)); }
14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/8c95b1121b1b0c1e21384fa7b0bf9a5a7bbca0b9/ImplementationHidingComponentAdapterFactory.java/buggy/java/picocontainer/src/java/org/picocontainer/extras/ImplementationHidingComponentAdapterFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 4216, 752, 1841, 4216, 12, 921, 1794, 653, 16, 4766, 10402, 1659, 1794, 13621, 16, 4766, 10402, 5498, 8526, 1472, 13, 5411, 1216, 453, 10764, 1702, 26362, 503, 16, 12093, 2967, 7843, 503, 16, 2288, 25845, 7843, 503, 288, 3639, 327, 394, 25379, 44, 10415, 1841, 4216, 12, 9565, 18, 2640, 1841, 4216, 12, 4652, 653, 16, 1794, 13621, 16, 1472, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 4216, 752, 1841, 4216, 12, 921, 1794, 653, 16, 4766, 10402, 1659, 1794, 13621, 16, 4766, 10402, 5498, 8526, 1472, 13, 5411, 1216, 453, 10764, 1702, 26362, 503, 16, 12093, 2967, 7843, 503, 16, 2288, 25845, 7843, 503, 288, 3639, 327, 394, 25379, 44, 10415, 1841, 4216, 12, 9565, 18, 2640, 1841, 4216, 12, 4652, 653, 16, 1794, 13621, 16, 1472, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.context1 ) && this.constraint1.isAllowedCachedRight( tuple, this.context1 );
this.context1 ) && this.constraint2.isAllowedCachedRight( tuple, this.context2 );
public boolean isAllowedCachedRight(final ReteTuple tuple) { return this.constraint0.isAllowedCachedRight( tuple, this.context0 ) && this.constraint1.isAllowedCachedRight( tuple, this.context1 ) && this.constraint1.isAllowedCachedRight( tuple, this.context1 ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/5ca674b31ef77795e1b422a862f53a243c0dc72f/TripleBetaConstraints.java/buggy/drools-core/src/main/java/org/drools/common/TripleBetaConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 21956, 9839, 4726, 12, 6385, 534, 12865, 9038, 3193, 13, 288, 3639, 327, 333, 18, 13364, 20, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 4766, 8227, 333, 18, 2472, 20, 262, 597, 333, 18, 13364, 21, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 28524, 4766, 6647, 333, 18, 2472, 21, 262, 597, 333, 18, 13364, 21, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 28524, 28524, 27573, 333, 18, 2472, 21, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 21956, 9839, 4726, 12, 6385, 534, 12865, 9038, 3193, 13, 288, 3639, 327, 333, 18, 13364, 20, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 4766, 8227, 333, 18, 2472, 20, 262, 597, 333, 18, 13364, 21, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 28524, 4766, 6647, 333, 18, 2472, 21, 262, 597, 333, 18, 13364, 21, 18, 291, 5042, 9839, 4726, 12, 3193, 16, 28524, 28524, 27573, 333, 18, 2472, 21, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String head = "<html><head>";
StringBuffer head = new StringBuffer(content.length() + 1024); head.append("<html><head>");
protected String prepareContent(boolean save) { String content = getParamContent(); String contentLowerCase = content.toLowerCase(); int indexBodyStart = contentLowerCase.indexOf("<body>"); boolean isBrowserNS = BROWSER_NS.equals(getBrowserType()); if ("edit".equals(getParamEditormode()) || isBrowserNS || save) { // editor is in text mode or content should be saved if (indexBodyStart != -1) { // cut tags which are unwanted for text editor content = content.substring(indexBodyStart + 6); contentLowerCase = contentLowerCase.substring(indexBodyStart + 6); content = content.substring(0, contentLowerCase.indexOf("</body>")); } // remove unwanted "&amp;" from links content = filterAnchors(content); } else { // editor is in html mode, add tags for stylesheet String currentTemplate = null; String stylesheet = ""; try { currentTemplate = getCms().readProperty(getParamResource(), I_CmsConstants.C_PROPERTY_TEMPLATE, true); } catch (CmsException e) { // ignore this exception } if (currentTemplate == null) { currentTemplate = ""; } else { stylesheet = getJsp().property(I_CmsConstants.C_PROPERTY_TEMPLATE, currentTemplate, ""); } if (indexBodyStart != -1) { // first delete the old tags content = content.substring(indexBodyStart + 6); contentLowerCase = contentLowerCase.substring(indexBodyStart + 6); content = content.substring(0, contentLowerCase.indexOf("</body>")); } // remove unwanted "&amp;" from links content = filterAnchors(content); // create a head with stylesheet for template and base URL to display images correctly String server = getJsp().getRequest().getScheme() + "://" + getJsp().getRequest().getServerName() + ":" + getJsp().getRequest().getServerPort(); String head = "<html><head>"; if (!"".equals(stylesheet)) { stylesheet = getJsp().link(stylesheet); head += "<link href=\"" + server + stylesheet + "\" rel=\"stylesheet\" type=\"text/css\">"; } head += "<base href=\"" + server + OpenCms.getOpenCmsContext() + "\"></base></head><body>"; content = head + content + "</body></html>"; } if (!save) { // set the content parameter to the modified content setParamContent(content); } return content.trim(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f6bdc83296b7887e8b3e075139c5d88133685028/CmsMSDHtmlEditor.java/clean/src/org/opencms/workplace/editor/CmsMSDHtmlEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 2911, 1350, 12, 6494, 1923, 13, 288, 3639, 514, 913, 273, 9027, 1350, 5621, 3639, 514, 913, 5630, 273, 913, 18, 869, 5630, 5621, 3639, 509, 770, 2250, 1685, 273, 913, 5630, 18, 31806, 2932, 32, 3432, 2984, 1769, 3639, 1250, 353, 9132, 3156, 273, 605, 24846, 67, 3156, 18, 14963, 12, 588, 9132, 559, 10663, 3639, 309, 7566, 4619, 9654, 14963, 12, 588, 786, 4666, 535, 390, 10756, 747, 353, 9132, 3156, 747, 1923, 13, 288, 5411, 368, 4858, 353, 316, 977, 1965, 578, 913, 1410, 506, 5198, 5411, 309, 261, 1615, 2250, 1685, 480, 300, 21, 13, 288, 7734, 368, 6391, 2342, 1492, 854, 30264, 364, 977, 4858, 7734, 913, 273, 913, 18, 28023, 12, 1615, 2250, 1685, 397, 1666, 1769, 7734, 913, 5630, 273, 913, 5630, 18, 28023, 12, 1615, 2250, 1685, 397, 1666, 1769, 7734, 913, 273, 913, 18, 28023, 12, 20, 16, 913, 5630, 18, 31806, 2932, 1757, 3432, 2984, 10019, 5411, 289, 5411, 368, 1206, 30264, 7830, 931, 4868, 628, 4716, 5411, 913, 273, 1034, 979, 15482, 12, 1745, 1769, 3639, 289, 469, 288, 5411, 368, 4858, 353, 316, 1729, 1965, 16, 527, 2342, 364, 13820, 5411, 514, 783, 2283, 273, 446, 31, 5411, 514, 13820, 273, 1408, 31, 5411, 775, 288, 7734, 783, 2283, 273, 14413, 7675, 896, 1396, 12, 588, 786, 1420, 9334, 467, 67, 4747, 2918, 18, 39, 67, 9900, 67, 12205, 16, 638, 1769, 5411, 289, 1044, 261, 4747, 503, 425, 13, 288, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 2911, 1350, 12, 6494, 1923, 13, 288, 3639, 514, 913, 273, 9027, 1350, 5621, 3639, 514, 913, 5630, 273, 913, 18, 869, 5630, 5621, 3639, 509, 770, 2250, 1685, 273, 913, 5630, 18, 31806, 2932, 32, 3432, 2984, 1769, 3639, 1250, 353, 9132, 3156, 273, 605, 24846, 67, 3156, 18, 14963, 12, 588, 9132, 559, 10663, 3639, 309, 7566, 4619, 9654, 14963, 12, 588, 786, 4666, 535, 390, 10756, 747, 353, 9132, 3156, 747, 1923, 13, 288, 5411, 368, 4858, 353, 316, 977, 1965, 578, 913, 1410, 506, 5198, 5411, 309, 261, 1615, 2250, 1685, 480, 300, 21, 13, 288, 7734, 368, 6391, 2342, 1492, 854, 30264, 364, 977, 4858, 7734, 913, 273, 913, 18, 28023, 2 ]
private void importZipResource(ZipInputStream zipStreamIn, String importPath, boolean noSubFolder) throws Exception { boolean isFolder = false; boolean exit = false; int j, r, stop, charsRead, size; int entries = 0; int totalBytes = 0; int offset = 0; byte[] buffer = null; boolean resourceExists; while (true) { // handle the single entries ... j = 0; stop = 0; charsRead = 0; totalBytes = 0; // open the entry ... ZipEntry entry = zipStreamIn.getNextEntry(); if (entry == null) { break; } entries++; // count number of entries in zip String actImportPath = importPath; String filename = m_cms.getRequestContext().getFileTranslator().translateResource(entry.getName()); // separete path in direcotries an file name ... StringTokenizer st = new StringTokenizer(filename, "/\\"); int count = st.countTokens(); String[] path = new String[count]; if (filename.endsWith("\\") || filename.endsWith("/")) { isFolder = true; // last entry is a folder } else { isFolder = false; // last entry is a file } while (st.hasMoreTokens()) { // store the files and folder names in array ... path[j] = st.nextToken(); j++; } stop = isFolder?path.length:(path.length - 1); if (noSubFolder) { stop = 0; } // now write the folders ... for (r = 0; r < stop; r++) { try { m_cms.createResource(actImportPath + path[r], CmsResourceTypeFolder.C_RESOURCE_TYPE_ID); } catch (CmsException e) { // of course some folders did already exist! } actImportPath += path[r]; actImportPath += "/"; } if (! isFolder) { // import file into cms int type = OpenCms.getResourceManager().getDefaultTypeForName(path[path.length - 1]).getTypeId(); size = new Long(entry.getSize()).intValue(); if (size == -1) { Vector v = new Vector(); while (true) { buffer = new byte[512]; offset = 0; while (offset < buffer.length) { charsRead = zipStreamIn.read(buffer, offset, buffer.length - offset); if (charsRead == -1) { exit = true; break; // end of stream } offset += charsRead; totalBytes += charsRead; } if (offset > 0) { v.addElement(buffer); } if (exit) { exit = false; break; } } buffer = new byte[totalBytes]; offset = 0; byte[] act = null; for (int z = 0; z < v.size() - 1; z++) { act = (byte[])v.elementAt(z); System.arraycopy(act, 0, buffer, offset, act.length); offset += act.length; } act = (byte[])v.lastElement(); if ((totalBytes > act.length) && (totalBytes % act.length != 0)) { totalBytes = totalBytes % act.length; } else if ((totalBytes > act.length) && (totalBytes % act.length == 0)) { totalBytes = act.length; } System.arraycopy(act, 0, buffer, offset, totalBytes); // handle empty files ... if (totalBytes == 0) { buffer = " ".getBytes(); } } else { // size was read clearly ... buffer = new byte[size]; while (charsRead < size) { charsRead += zipStreamIn.read(buffer, charsRead, size - charsRead); } // handle empty files ... if (size == 0) { buffer = " ".getBytes(); } } filename = actImportPath + path[path.length - 1]; try { m_cms.lockResource(filename); m_cms.readResource(filename); resourceExists = true; } catch (CmsException e) { resourceExists = false; } if (resourceExists) { CmsResource res = m_cms.readResource(filename, CmsResourceFilter.ALL); //m_cms.deleteAllProperties(filename); //m_cms.replaceResource(filename, type, Collections.EMPTY_MAP, buffer); m_cms.replaceResource(filename, res.getTypeId(), buffer, Collections.EMPTY_LIST); OpenCms.fireCmsEvent(new CmsEvent(I_CmsEventListener.EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, Collections.singletonMap("resource", res))); } else { m_cms.createResource(actImportPath + path[path.length - 1], type, buffer, Collections.EMPTY_LIST); } } // close the entry ... zipStreamIn.closeEntry(); } zipStreamIn.close(); if (entries > 0) { // at least one entry, got a valid zip file ... m_validZipFile = true; } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsImportFolder.java/buggy/src/org/opencms/db/CmsImportFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 9141, 1420, 12, 9141, 4348, 3144, 1228, 382, 16, 514, 30336, 16, 1250, 1158, 1676, 3899, 13, 1216, 1185, 288, 3639, 1250, 31137, 273, 629, 31, 3639, 1250, 2427, 273, 629, 31, 3639, 509, 525, 16, 436, 16, 2132, 16, 5230, 1994, 16, 963, 31, 3639, 509, 3222, 273, 374, 31, 3639, 509, 29937, 273, 374, 31, 3639, 509, 1384, 273, 374, 31, 3639, 1160, 8526, 1613, 273, 446, 31, 3639, 1250, 1058, 4002, 31, 7734, 1323, 261, 3767, 13, 288, 5411, 368, 1640, 326, 2202, 3222, 1372, 5411, 525, 273, 374, 31, 5411, 2132, 273, 374, 31, 5411, 5230, 1994, 273, 374, 31, 5411, 29937, 273, 374, 31, 5411, 368, 1696, 326, 1241, 1372, 5411, 23652, 1241, 273, 3144, 1228, 382, 18, 588, 2134, 1622, 5621, 5411, 309, 261, 4099, 422, 446, 13, 288, 7734, 898, 31, 5411, 289, 5411, 3222, 9904, 31, 368, 1056, 1300, 434, 3222, 316, 3144, 5411, 514, 1328, 5010, 743, 273, 30336, 31, 5411, 514, 1544, 273, 312, 67, 6851, 18, 588, 21426, 7675, 29925, 12233, 7675, 13929, 1420, 12, 4099, 18, 17994, 10663, 5411, 368, 695, 1848, 736, 589, 316, 302, 577, 2894, 2007, 392, 585, 508, 1372, 5411, 16370, 384, 273, 394, 16370, 12, 3459, 16, 2206, 1695, 8863, 5411, 509, 1056, 273, 384, 18, 1883, 5157, 5621, 5411, 514, 8526, 589, 273, 394, 514, 63, 1883, 15533, 5411, 309, 261, 3459, 18, 5839, 1190, 2932, 1695, 7923, 747, 1544, 18, 5839, 1190, 2932, 4898, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 9141, 1420, 12, 9141, 4348, 3144, 1228, 382, 16, 514, 30336, 16, 1250, 1158, 1676, 3899, 13, 1216, 1185, 288, 3639, 1250, 31137, 273, 629, 31, 3639, 1250, 2427, 273, 629, 31, 3639, 509, 525, 16, 436, 16, 2132, 16, 5230, 1994, 16, 963, 31, 3639, 509, 3222, 273, 374, 31, 3639, 509, 29937, 273, 374, 31, 3639, 509, 1384, 273, 374, 31, 3639, 1160, 8526, 1613, 273, 446, 31, 3639, 1250, 1058, 4002, 31, 7734, 1323, 261, 3767, 13, 288, 5411, 368, 1640, 326, 2202, 3222, 1372, 5411, 525, 273, 374, 31, 5411, 2132, 273, 374, 31, 5411, 5230, 1994, 273, 374, 31, 5411, 29937, 273, 374, 31, 5411, 368, 1696, 326, 1241, 1372, 2 ]
public String ReceiveString(String encoding)
public String ReceiveString(Encoding encoding)
public String ReceiveString(String encoding) throws SQLException { int s = 0; byte[] rst = byte_buf; try { int buflen = rst.length; boolean done = false; while (!done) { while (s < buflen) { int c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); else if (c == 0) { rst[s] = 0; done = true; break; } else { rst[s++] = (byte)c; } if (s >= buflen) { // Grow the buffer buflen = (int)(buflen*2); // 100% bigger byte[] newrst = new byte[buflen]; System.arraycopy(rst, 0, newrst, 0, s); rst = newrst; } } } } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror",e); } String v = null; if (encoding == null) v = new String(rst, 0, s); else { try { v = new String(rst, 0, s, encoding); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.stream.encoding", unse); } } return v; }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/793627da18e0e047d8b7ceb16a205708b2410860/PG_Stream.java/clean/org/postgresql/PG_Stream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 17046, 780, 12, 4705, 2688, 13, 1377, 1216, 6483, 225, 288, 565, 509, 272, 273, 374, 31, 565, 1160, 8526, 13978, 273, 1160, 67, 4385, 31, 565, 775, 288, 1377, 509, 1681, 1897, 273, 13978, 18, 2469, 31, 1377, 1250, 2731, 273, 629, 31, 1377, 1323, 16051, 8734, 13, 288, 3639, 1323, 261, 87, 411, 1681, 1897, 13, 288, 202, 565, 509, 276, 273, 7184, 67, 2630, 18, 896, 5621, 202, 565, 309, 261, 71, 411, 374, 13, 202, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 3256, 18, 9339, 8863, 3196, 565, 469, 309, 261, 71, 422, 374, 13, 288, 3196, 202, 16114, 63, 87, 65, 273, 374, 31, 5411, 2731, 273, 638, 31, 3196, 202, 8820, 31, 1850, 289, 469, 288, 202, 1377, 13978, 63, 87, 9904, 65, 273, 261, 7229, 13, 71, 31, 202, 225, 289, 1850, 309, 261, 87, 1545, 1681, 1897, 13, 288, 368, 611, 492, 326, 1613, 5411, 1681, 1897, 273, 261, 474, 21433, 4385, 1897, 14, 22, 1769, 368, 2130, 9, 18983, 5411, 1160, 8526, 394, 16114, 273, 394, 1160, 63, 4385, 1897, 15533, 5411, 2332, 18, 1126, 3530, 12, 16114, 16, 374, 16, 394, 16114, 16, 374, 16, 272, 1769, 5411, 13978, 273, 394, 16114, 31, 1850, 289, 3639, 289, 1377, 289, 1377, 289, 1044, 261, 14106, 425, 13, 288, 202, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 3256, 18, 1594, 1636, 3113, 73, 1769, 1377, 289, 1377, 514, 331, 273, 446, 31, 1377, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 17046, 780, 12, 4705, 2688, 13, 1377, 1216, 6483, 225, 288, 565, 509, 272, 273, 374, 31, 565, 1160, 8526, 13978, 273, 1160, 67, 4385, 31, 565, 775, 288, 1377, 509, 1681, 1897, 273, 13978, 18, 2469, 31, 1377, 1250, 2731, 273, 629, 31, 1377, 1323, 16051, 8734, 13, 288, 3639, 1323, 261, 87, 411, 1681, 1897, 13, 288, 202, 565, 509, 276, 273, 7184, 67, 2630, 18, 896, 5621, 202, 565, 309, 261, 71, 411, 374, 13, 202, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 3256, 18, 9339, 8863, 3196, 565, 469, 309, 261, 71, 422, 374, 13, 288, 3196, 202, 16114, 63, 87, 65, 273, 374, 31, 5411, 2731, 273, 638, 31, 2 ]
public static long readSwappedLong( byte[] data, int offset ) { long low = (long)(
public static long readSwappedLong(byte[] data, int offset) { long low = (long)(
public static long readSwappedLong( byte[] data, int offset ) { long low = (long)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + ( ( data[ offset + 1 ] & 0xff ) << 8 ) + ( ( data[ offset + 2 ] & 0xff ) << 16 ) + ( ( data[ offset + 3 ] & 0xff ) << 24 ) ); long high = (long)( ( ( data[ offset + 4 ] & 0xff ) << 0 ) + ( ( data[ offset + 5 ] & 0xff ) << 8 ) + ( ( data[ offset + 6 ] & 0xff ) << 16 ) + ( ( data[ offset + 7 ] & 0xff ) << 24 ) ); return low + (high << 32); }
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/e47d347ce4255b8964e384bf0df170281c78d070/EndianUtils.java/clean/src/java/org/apache/commons/io/EndianUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1525, 855, 12521, 1845, 3708, 12, 1160, 8526, 501, 16, 509, 1384, 262, 565, 288, 3639, 1525, 4587, 273, 261, 5748, 21433, 2398, 261, 261, 501, 63, 1384, 397, 374, 308, 473, 374, 5297, 262, 2296, 374, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 404, 308, 473, 374, 5297, 262, 2296, 1725, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 576, 308, 473, 374, 5297, 262, 2296, 2872, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 890, 308, 473, 374, 5297, 262, 2296, 4248, 262, 11272, 3639, 1525, 3551, 273, 261, 5748, 21433, 5411, 261, 261, 501, 63, 1384, 397, 1059, 308, 473, 374, 5297, 262, 2296, 374, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 1381, 308, 473, 374, 5297, 262, 2296, 1725, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 1666, 308, 473, 374, 5297, 262, 2296, 2872, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 2371, 308, 473, 374, 5297, 262, 2296, 4248, 262, 11272, 3639, 327, 4587, 397, 261, 8766, 2296, 3847, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1525, 855, 12521, 1845, 3708, 12, 1160, 8526, 501, 16, 509, 1384, 262, 565, 288, 3639, 1525, 4587, 273, 261, 5748, 21433, 2398, 261, 261, 501, 63, 1384, 397, 374, 308, 473, 374, 5297, 262, 2296, 374, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 404, 308, 473, 374, 5297, 262, 2296, 1725, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 576, 308, 473, 374, 5297, 262, 2296, 2872, 262, 397, 5411, 261, 261, 501, 63, 1384, 397, 890, 308, 473, 374, 5297, 262, 2296, 4248, 262, 11272, 3639, 1525, 3551, 273, 261, 5748, 21433, 5411, 261, 261, 501, 63, 1384, 397, 1059, 308, 473, 374, 5297, 262, 2296, 374, 262, 397, 5411, 261, 2 ]
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/0c6c148f7be6e4cc0e87c12a307232047c894d1b/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 622, 315, 397, 15604, 846, 87, 1228, 18, 588, 1670, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 6153, 397, 15604, 846, 87, 1228, 18, 588, 1494, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 1368, 392, 2756, 8863, 1377, 289, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 576, 30, 225, 14488, 559, 493, 33, 16980, 559, 5411, 368, 5411, 648, 576, 30, 7734, 898, 31, 2398, 368, 5411, 368, 6781, 890, 30, 225, 14488, 559, 493, 33, 1250, 5411, 368, 5411, 648, 890, 30, 288, 7734, 10921, 2678, 18, 542, 11901, 21, 12, 82, 74, 18, 15512, 559, 907, 12, 917, 9334, 3742, 18, 5507, 1435, 10019, 7734, 898, 31, 5411, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 2 ]
else { final String newKeyName = StringEditorDialog.saveModifiedPropertyValue(myEditor.getModule(), descriptor, myEditor.getStringDescriptorLocale(), result, myEditor.getPsiFile()); if (newKeyName != null) { prop.setValue(myComponent, new StringDescriptor(descriptor.getBundleName(), newKeyName)); } } myEditor.refreshAndSave(false);
public void run() { IProperty textProperty = FormInspectionUtil.findProperty(myComponent, SwingProperties.TEXT); StringDescriptor descriptor = (StringDescriptor) textProperty.getPropertyValue(myComponent); String value = StringDescriptorManager.getInstance(myComponent.getModule()).resolve(myComponent, descriptor); String[] variants = fillMnemonicVariants(SupportCode.parseText(value).myText); String result = Messages.showEditableChooseDialog(UIDesignerBundle.message("inspection.missing.mnemonics.quickfix.prompt"), UIDesignerBundle.message("inspection.missing.mnemonics.quickfix.title"), Messages.getQuestionIcon(), variants, variants [0], null); if (result != null) { if (!myEditor.ensureEditable()) { return; } IntroStringProperty prop = (IntroStringProperty) textProperty; try { if (descriptor.getBundleName() == null) { prop.setValue(myComponent, StringDescriptor.create(result)); } else { final String newKeyName = StringEditorDialog.saveModifiedPropertyValue(myEditor.getModule(), descriptor, myEditor.getStringDescriptorLocale(), result, myEditor.getPsiFile()); if (newKeyName != null) { prop.setValue(myComponent, new StringDescriptor(descriptor.getBundleName(), newKeyName)); } } myEditor.refreshAndSave(false); } catch (Exception e) { LOG.error(e); } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/9b26b4093c45368341693821c7991a334c0848aa/AssignMnemonicFix.java/buggy/ui-designer/impl/com/intellij/uiDesigner/inspections/AssignMnemonicFix.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 1435, 288, 565, 467, 1396, 977, 1396, 273, 2748, 14985, 1304, 18, 4720, 1396, 12, 4811, 1841, 16, 26145, 2297, 18, 5151, 1769, 565, 514, 3187, 4950, 273, 261, 780, 3187, 13, 977, 1396, 18, 588, 16107, 12, 4811, 1841, 1769, 565, 514, 460, 273, 514, 3187, 1318, 18, 588, 1442, 12, 4811, 1841, 18, 588, 3120, 1435, 2934, 10828, 12, 4811, 1841, 16, 4950, 1769, 565, 514, 8526, 12935, 273, 3636, 29668, 20918, 21165, 12, 6289, 1085, 18, 2670, 1528, 12, 1132, 2934, 4811, 1528, 1769, 565, 514, 563, 273, 4838, 18, 4500, 15470, 24529, 6353, 12, 3060, 281, 724, 264, 3405, 18, 2150, 2932, 2679, 7017, 18, 7337, 18, 13607, 4758, 2102, 18, 19525, 904, 18, 13325, 6, 3631, 4766, 8227, 10034, 281, 724, 264, 3405, 18, 2150, 2932, 2679, 7017, 18, 7337, 18, 13607, 4758, 2102, 18, 19525, 904, 18, 2649, 6, 3631, 4766, 8227, 4838, 18, 588, 11665, 5554, 9334, 12935, 16, 12935, 306, 20, 6487, 446, 1769, 565, 309, 261, 2088, 480, 446, 13, 288, 1377, 309, 16051, 4811, 6946, 18, 15735, 15470, 10756, 288, 3639, 327, 31, 1377, 289, 1377, 3094, 303, 780, 1396, 2270, 273, 261, 1702, 303, 780, 1396, 13, 977, 1396, 31, 1377, 775, 288, 3639, 309, 261, 12628, 18, 588, 3405, 461, 1435, 422, 446, 13, 288, 1850, 2270, 18, 542, 620, 12, 4811, 1841, 16, 514, 3187, 18, 2640, 12, 2088, 10019, 3639, 289, 3639, 469, 288, 1850, 727, 514, 394, 13987, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 1435, 288, 565, 467, 1396, 977, 1396, 273, 2748, 14985, 1304, 18, 4720, 1396, 12, 4811, 1841, 16, 26145, 2297, 18, 5151, 1769, 565, 514, 3187, 4950, 273, 261, 780, 3187, 13, 977, 1396, 18, 588, 16107, 12, 4811, 1841, 1769, 565, 514, 460, 273, 514, 3187, 1318, 18, 588, 1442, 12, 4811, 1841, 18, 588, 3120, 1435, 2934, 10828, 12, 4811, 1841, 16, 4950, 1769, 565, 514, 8526, 12935, 273, 3636, 29668, 20918, 21165, 12, 6289, 1085, 18, 2670, 1528, 12, 1132, 2934, 4811, 1528, 1769, 565, 514, 563, 273, 4838, 18, 4500, 15470, 24529, 6353, 12, 3060, 281, 724, 264, 3405, 18, 2150, 2932, 2679, 7017, 18, 7337, 18, 13607, 4758, 2102, 18, 2 ]
if (realized()) { free(); }
perThreadRenderingContext.set(null); invokeGL(new Runnable() { public void run() { } }, false, initAction);
public synchronized void setRenderingThread(Thread currentThreadOrNull, Runnable initAction) { Thread currentThread = Thread.currentThread(); if (currentThreadOrNull != null && currentThreadOrNull != currentThread) { throw new GLException("Argument must be either the current thread or null"); } if (renderingThread != null && currentThreadOrNull != null) { throw new GLException("Attempt to re-set or change rendering thread"); } if (renderingThread == null && currentThreadOrNull == null) { throw new GLException("Attempt to clear rendering thread when already cleared"); } this.willSetRenderingThread = false; if (currentThreadOrNull == null) { renderingThread = null; if (realized()) { // We are guaranteed to own the context free(); } } else { renderingThread = currentThreadOrNull; if (realized()) { makeCurrent(initAction); } } }
46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/f516d8cdc25577dd1227b85578d361749ab8063d/GLContext.java/clean/src/net/java/games/jogl/impl/GLContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 444, 14261, 3830, 12, 3830, 11800, 18936, 16, 10254, 1208, 1803, 13, 288, 565, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 565, 309, 261, 2972, 3830, 18936, 480, 446, 597, 11800, 18936, 480, 11800, 13, 288, 1377, 604, 394, 10252, 503, 2932, 1379, 1297, 506, 3344, 326, 783, 2650, 578, 446, 8863, 565, 289, 565, 309, 261, 5902, 310, 3830, 480, 446, 597, 11800, 18936, 480, 446, 13, 288, 1377, 604, 394, 10252, 503, 2932, 7744, 358, 283, 17, 542, 578, 2549, 9782, 2650, 8863, 565, 289, 565, 309, 261, 5902, 310, 3830, 422, 446, 597, 11800, 18936, 422, 446, 13, 288, 1377, 604, 394, 10252, 503, 2932, 7744, 358, 2424, 9782, 2650, 1347, 1818, 16054, 8863, 565, 289, 565, 333, 18, 20194, 694, 14261, 3830, 273, 629, 31, 565, 309, 261, 2972, 3830, 18936, 422, 446, 13, 288, 1377, 9782, 3830, 273, 446, 31, 1377, 309, 261, 7688, 1235, 10756, 288, 3639, 368, 1660, 854, 15403, 358, 4953, 326, 819, 3639, 4843, 5621, 1377, 289, 565, 289, 469, 288, 1377, 9782, 3830, 273, 11800, 18936, 31, 1377, 309, 261, 7688, 1235, 10756, 288, 3639, 1221, 3935, 12, 2738, 1803, 1769, 1377, 289, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 444, 14261, 3830, 12, 3830, 11800, 18936, 16, 10254, 1208, 1803, 13, 288, 565, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 565, 309, 261, 2972, 3830, 18936, 480, 446, 597, 11800, 18936, 480, 11800, 13, 288, 1377, 604, 394, 10252, 503, 2932, 1379, 1297, 506, 3344, 326, 783, 2650, 578, 446, 8863, 565, 289, 565, 309, 261, 5902, 310, 3830, 480, 446, 597, 11800, 18936, 480, 446, 13, 288, 1377, 604, 394, 10252, 503, 2932, 7744, 358, 283, 17, 542, 578, 2549, 9782, 2650, 8863, 565, 289, 565, 309, 261, 5902, 310, 3830, 422, 446, 597, 11800, 18936, 422, 446, 13, 288, 1377, 604, 394, 10252, 503, 2932, 7744, 358, 2424, 9782, 2650, 1347, 2 ]
os.writeMOV(INTSIZE, T0, SP, 0); helper.writePUSH(T0);
public final void visit_dup() { //TODO: port to orp-style os.log("dup"); vstack.push(eContext); Item v1 = vstack.popItem(); vstack.pushItem(v1); vstack.pushItem(v1); os.writeMOV(INTSIZE, T0, SP, 0); // Value1, leave on stack helper.writePUSH(T0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2dae0b481ae2c6630293d1adeea4e81e12d7547b/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 26427, 1435, 288, 3639, 368, 6241, 30, 1756, 358, 578, 84, 17, 4060, 3639, 1140, 18, 1330, 2932, 26427, 8863, 3639, 19510, 18, 6206, 12, 73, 1042, 1769, 3639, 4342, 331, 21, 273, 19510, 18, 5120, 1180, 5621, 3639, 19510, 18, 6206, 1180, 12, 90, 21, 1769, 3639, 19510, 18, 6206, 1180, 12, 90, 21, 1769, 3639, 1140, 18, 2626, 5980, 58, 12, 3217, 4574, 16, 399, 20, 16, 11405, 16, 374, 1769, 368, 1445, 21, 16, 8851, 603, 2110, 3639, 4222, 18, 2626, 30348, 12, 56, 20, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 26427, 1435, 288, 3639, 368, 6241, 30, 1756, 358, 578, 84, 17, 4060, 3639, 1140, 18, 1330, 2932, 26427, 8863, 3639, 19510, 18, 6206, 12, 73, 1042, 1769, 3639, 4342, 331, 21, 273, 19510, 18, 5120, 1180, 5621, 3639, 19510, 18, 6206, 1180, 12, 90, 21, 1769, 3639, 19510, 18, 6206, 1180, 12, 90, 21, 1769, 3639, 1140, 18, 2626, 5980, 58, 12, 3217, 4574, 16, 399, 20, 16, 11405, 16, 374, 1769, 368, 1445, 21, 16, 8851, 603, 2110, 3639, 4222, 18, 2626, 30348, 12, 56, 20, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (getPreferredSize (rows));
int dims[] = new int[2]; getSize (rows, dims); return new Dimension (dims[0], dims[1]);
public Dimension preferredSize (int rows) { return (getPreferredSize (rows)); }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/3fe1c14284ce32b79d0e66441aec6a45a77ff684/GtkListPeer.java/buggy/libjava/gnu/java/awt/peer/gtk/GtkListPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 9119, 1225, 261, 474, 2595, 13, 225, 288, 565, 509, 9914, 8526, 273, 394, 509, 63, 22, 15533, 225, 9950, 261, 3870, 16, 9914, 1769, 327, 394, 13037, 261, 8550, 63, 20, 6487, 9914, 63, 21, 19226, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 9119, 1225, 261, 474, 2595, 13, 225, 288, 565, 509, 9914, 8526, 273, 394, 509, 63, 22, 15533, 225, 9950, 261, 3870, 16, 9914, 1769, 327, 394, 13037, 261, 8550, 63, 20, 6487, 9914, 63, 21, 19226, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void saveState(IMemento memento) { super.saveState(memento); ColumnPixelData[] data = getColumnData(); for (int i = 0; i < data.length; i++) { ColumnPixelData data2 = data[i]; memento.putInteger(TAG_COLUMN_WIDTH + i, data2.width); } //save column order Tree tree = getTree(); int[] columnOrder = tree.getColumnOrder(); for (int i = 0; i < columnOrder.length; i++) { IMemento child = memento.createChild(TAG_COLUMN_ORDER); child.putInteger(TAG_COLUMN_ORDER_INDEX, columnOrder[i]); } // save vertical position Scrollable scrollable = (Scrollable) viewer.getControl(); ScrollBar bar = scrollable.getVerticalBar(); int position = (bar != null) ? bar.getSelection() : 0; memento.putInteger(TAG_VERTICAL_POSITION, position); // save horizontal position bar = scrollable.getHorizontalBar(); position = (bar != null) ? bar.getSelection() : 0; memento.putInteger(TAG_HORIZONTAL_POSITION, position); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0d709da83531dbf226078c4683d1b014a03521c8/TableView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 9565, 18, 5688, 1119, 12, 81, 820, 83, 1769, 202, 202, 1494, 9037, 751, 8526, 501, 273, 6716, 751, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 501, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1494, 9037, 751, 501, 22, 273, 501, 63, 77, 15533, 1082, 202, 81, 820, 83, 18, 458, 4522, 12, 7927, 67, 11009, 67, 10023, 397, 277, 16, 501, 22, 18, 2819, 1769, 202, 202, 97, 202, 202, 759, 5688, 1057, 1353, 202, 202, 2471, 2151, 273, 15867, 5621, 202, 202, 474, 8526, 1057, 2448, 273, 2151, 18, 588, 1494, 2448, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1057, 2448, 18, 2469, 31, 277, 27245, 288, 5411, 6246, 820, 83, 1151, 273, 312, 820, 83, 18, 2640, 1763, 12, 7927, 67, 11009, 67, 7954, 1769, 5411, 1151, 18, 458, 4522, 12, 7927, 67, 11009, 67, 7954, 67, 9199, 16, 1057, 2448, 63, 77, 19226, 3639, 289, 202, 202, 759, 1923, 9768, 1754, 202, 202, 6806, 429, 5532, 429, 273, 261, 6806, 429, 13, 14157, 18, 588, 3367, 5621, 202, 202, 6806, 5190, 4653, 273, 5532, 429, 18, 588, 15704, 5190, 5621, 202, 202, 474, 1754, 273, 261, 3215, 480, 446, 13, 692, 4653, 18, 588, 6233, 1435, 294, 374, 31, 202, 202, 81, 820, 83, 18, 458, 4522, 12, 7927, 67, 21654, 10109, 67, 15258, 16, 1754, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 9565, 18, 5688, 1119, 12, 81, 820, 83, 1769, 202, 202, 1494, 9037, 751, 8526, 501, 273, 6716, 751, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 501, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1494, 9037, 751, 501, 22, 273, 501, 63, 77, 15533, 1082, 202, 81, 820, 83, 18, 458, 4522, 12, 7927, 67, 11009, 67, 10023, 397, 277, 16, 501, 22, 18, 2819, 1769, 202, 202, 97, 202, 202, 759, 5688, 1057, 1353, 202, 202, 2471, 2151, 273, 15867, 5621, 202, 202, 474, 8526, 1057, 2448, 273, 2151, 18, 588, 1494, 2448, 5621, 3639, 2 ]
AssertMo.assertEquals( "Should be expected value", anExpectedArray, anActualArray); }
AssertMo.assertEquals("Should be expected value", anExpectedArray, anActualArray); }
public void testEqualEmptyArrays() { Object[] anExpectedArray = new Object[0]; Object[] anActualArray = new Object[0]; AssertMo.assertEquals( "Should be expected value", anExpectedArray, anActualArray); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/AssertMoTest.java/clean/jmock/core/src/test/jmock/expectation/AssertMoTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5812, 1921, 12726, 1435, 288, 3639, 1033, 8526, 392, 6861, 1076, 273, 394, 1033, 63, 20, 15533, 3639, 1033, 8526, 392, 11266, 1076, 273, 394, 1033, 63, 20, 15533, 3639, 5452, 16727, 18, 11231, 8867, 12, 7734, 315, 14309, 506, 2665, 460, 3113, 7734, 392, 6861, 1076, 16, 7734, 392, 11266, 1076, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5812, 1921, 12726, 1435, 288, 3639, 1033, 8526, 392, 6861, 1076, 273, 394, 1033, 63, 20, 15533, 3639, 1033, 8526, 392, 11266, 1076, 273, 394, 1033, 63, 20, 15533, 3639, 5452, 16727, 18, 11231, 8867, 12, 7734, 315, 14309, 506, 2665, 460, 3113, 7734, 392, 6861, 1076, 16, 7734, 392, 11266, 1076, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new SyntaxError("Device " + value + " not found");
throw new SyntaxErrorException("Device " + value + " not found");
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } catch(DeviceNotFoundException ex) { throw new SyntaxError("Device " + value + " not found"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/DeviceArgument.java/clean/shell/src/shell/org/jnode/shell/help/DeviceArgument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6077, 19512, 12, 11257, 4628, 833, 13, 1216, 18453, 288, 202, 202, 780, 460, 273, 2366, 12, 1968, 1769, 202, 202, 698, 288, 1082, 202, 2463, 14015, 3654, 1318, 13, 4435, 24102, 18, 8664, 12, 3654, 1318, 18, 1985, 13, 2934, 588, 3654, 12, 1132, 1769, 202, 202, 97, 1044, 12, 461, 3990, 431, 13, 288, 1082, 202, 12849, 394, 18453, 2932, 3654, 1318, 486, 1392, 18, 2073, 3433, 2619, 3875, 8863, 202, 202, 97, 1044, 12, 3654, 3990, 431, 13, 288, 1082, 202, 12849, 394, 18453, 2932, 3654, 315, 397, 460, 397, 315, 486, 1392, 8863, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6077, 19512, 12, 11257, 4628, 833, 13, 1216, 18453, 288, 202, 202, 780, 460, 273, 2366, 12, 1968, 1769, 202, 202, 698, 288, 1082, 202, 2463, 14015, 3654, 1318, 13, 4435, 24102, 18, 8664, 12, 3654, 1318, 18, 1985, 13, 2934, 588, 3654, 12, 1132, 1769, 202, 202, 97, 1044, 12, 461, 3990, 431, 13, 288, 1082, 202, 12849, 394, 18453, 2932, 3654, 1318, 486, 1392, 18, 2073, 3433, 2619, 3875, 8863, 202, 202, 97, 1044, 12, 3654, 3990, 431, 13, 288, 1082, 202, 12849, 394, 18453, 2932, 3654, 315, 397, 460, 397, 315, 486, 1392, 8863, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println( getClass().getName() + ": " + this.activeContextIds);
private void setActiveContextIds(Set activeContextIds) { activeContextIds = Util.safeCopy(activeContextIds, String.class); boolean contextActivationServiceChanged = false; Map contextEventsByContextId = null; if (!this.activeContextIds.equals(activeContextIds)) { this.activeContextIds = activeContextIds; System.out.println( getClass().getName() + ": " + this.activeContextIds); fireContextActivationServiceChanged( new ContextActivationServiceEvent(this, true)); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cafe8c38ccc0f3bcfc44a477469bda2bd21dd9e4/WorkbenchWindowContextActivationService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ws/WorkbenchWindowContextActivationService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20669, 1042, 2673, 12, 694, 2695, 1042, 2673, 13, 288, 202, 202, 3535, 1042, 2673, 273, 3564, 18, 4626, 2951, 12, 3535, 1042, 2673, 16, 514, 18, 1106, 1769, 202, 202, 6494, 819, 14857, 1179, 5033, 273, 629, 31, 202, 202, 863, 819, 3783, 858, 1042, 548, 273, 446, 31, 202, 202, 430, 16051, 2211, 18, 3535, 1042, 2673, 18, 14963, 12, 3535, 1042, 2673, 3719, 288, 1082, 202, 2211, 18, 3535, 1042, 2673, 273, 2695, 1042, 2673, 31, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, 202, 588, 797, 7675, 17994, 1435, 397, 6398, 315, 397, 333, 18, 3535, 1042, 2673, 1769, 1082, 202, 12179, 1042, 14857, 1179, 5033, 12, 9506, 202, 2704, 1772, 14857, 1179, 1133, 12, 2211, 16, 638, 10019, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20669, 1042, 2673, 12, 694, 2695, 1042, 2673, 13, 288, 202, 202, 3535, 1042, 2673, 273, 3564, 18, 4626, 2951, 12, 3535, 1042, 2673, 16, 514, 18, 1106, 1769, 202, 202, 6494, 819, 14857, 1179, 5033, 273, 629, 31, 202, 202, 863, 819, 3783, 858, 1042, 548, 273, 446, 31, 202, 202, 430, 16051, 2211, 18, 3535, 1042, 2673, 18, 14963, 12, 3535, 1042, 2673, 3719, 288, 1082, 202, 2211, 18, 3535, 1042, 2673, 273, 2695, 1042, 2673, 31, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, 202, 588, 797, 7675, 17994, 1435, 397, 6398, 315, 397, 333, 18, 3535, 1042, 2673, 1769, 1082, 202, 12179, 1042, 14857, 1179, 5033, 12, 9506, 202, 2704, 2 ]
Map relatedClassRelationships = (Map)GrailsClassUtils.getPropertyValue( propType, GrailsDomainClassProperty.RELATES_TO_MANY, Map.class );
Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(propType);
private void establishDomainClassRelationship(DefaultGrailsDomainClassProperty property) { Class propType = property.getType(); // establish relationship to type Map relatedClassRelationships = (Map)GrailsClassUtils.getPropertyValue( propType, GrailsDomainClassProperty.RELATES_TO_MANY, Map.class ); Class relatedClassPropertyType = null; // if there is a relationships map use that to find out // whether it is mapped to a Set if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the property name for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class)relatedClassRelationships.get( currentKey ); if(property.getDomainClass().getClazz().getName().equals( currentClass.getName() )) { relatedClassPropertyName = currentKey; break; } } // get the type of the property relatedClassPropertyType = GrailsClassUtils.getProperyType( propType, relatedClassPropertyName ); } // otherwise retrieve all the properties of the type from the associated class if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(propType, getClazz()); // if there is only one then the association is established if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } // establish relationship based on this type establishDomainClassRelationshipToType( property, relatedClassPropertyType ); }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/b6ef9ddec7862d8efa8e6b63db67dfa714830c8a/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 18312, 3748, 797, 8180, 12, 1868, 14571, 14573, 3748, 797, 1396, 1272, 13, 288, 202, 202, 797, 2270, 559, 273, 1272, 18, 588, 559, 5621, 202, 202, 759, 18312, 5232, 358, 618, 202, 202, 863, 3746, 797, 17185, 273, 261, 863, 13, 14571, 14573, 797, 1989, 18, 588, 16107, 12, 2270, 559, 16, 10812, 14573, 3748, 797, 1396, 18, 862, 10512, 55, 67, 4296, 67, 24177, 16, 1635, 18, 1106, 11272, 202, 202, 797, 3746, 797, 22802, 273, 446, 31, 9506, 202, 759, 309, 1915, 353, 279, 11499, 852, 999, 716, 358, 1104, 596, 3196, 202, 759, 2856, 518, 353, 5525, 358, 279, 1000, 202, 202, 430, 12, 202, 9243, 797, 17185, 480, 446, 597, 9506, 202, 5, 9243, 797, 17185, 18, 291, 1921, 1435, 262, 288, 6862, 6862, 9506, 202, 780, 3746, 797, 13073, 273, 446, 31, 1082, 202, 759, 4614, 326, 1272, 508, 1082, 202, 1884, 12, 3198, 277, 273, 3746, 797, 17185, 18, 856, 694, 7675, 9838, 5621, 77, 18, 5332, 2134, 5621, 13, 288, 9506, 202, 780, 19447, 273, 261, 780, 13, 77, 18, 4285, 5621, 9506, 202, 797, 28742, 273, 261, 797, 13, 9243, 797, 17185, 18, 588, 12, 19447, 11272, 9506, 202, 430, 12, 4468, 18, 588, 3748, 797, 7675, 588, 14616, 7675, 17994, 7675, 14963, 12, 225, 28742, 18, 17994, 1435, 225, 8623, 288, 6862, 202, 9243, 797, 13073, 273, 19447, 31, 6862, 202, 8820, 31, 9506, 202, 97, 6862, 9506, 202, 97, 1082, 202, 759, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 18312, 3748, 797, 8180, 12, 1868, 14571, 14573, 3748, 797, 1396, 1272, 13, 288, 202, 202, 797, 2270, 559, 273, 1272, 18, 588, 559, 5621, 202, 202, 759, 18312, 5232, 358, 618, 202, 202, 863, 3746, 797, 17185, 273, 261, 863, 13, 14571, 14573, 797, 1989, 18, 588, 16107, 12, 2270, 559, 16, 10812, 14573, 3748, 797, 1396, 18, 862, 10512, 55, 67, 4296, 67, 24177, 16, 1635, 18, 1106, 11272, 202, 202, 797, 3746, 797, 22802, 273, 446, 31, 9506, 202, 759, 309, 1915, 353, 279, 11499, 852, 999, 716, 358, 1104, 596, 3196, 202, 759, 2856, 518, 353, 5525, 358, 279, 1000, 202, 202, 430, 12, 202, 9243, 797, 17185, 480, 446, 597, 2 ]
String base = ConfigurationManager.getProperty("url.base");
String base = ConfigurationManager.getProperty("dspace.url");
private static void sendEmail(String email, boolean isRegister, TableRow rd) throws MessagingException, IOException { String base = ConfigurationManager.getProperty("url.base"); // Note change from "key=" to "token=" String specialLink = new StringBuffer() .append(base) .append(base.endsWith("/") ? "" : "/") .append(isRegister ? "register" : "forgot") .append("?") .append("token=") .append(rd.getStringColumn("token")) .toString(); Email bean = ConfigurationManager.getEmail(isRegister ? "register" : "change_password"); bean.addRecipient(email); bean.addArgument(specialLink); bean.send(); // Breadcrumbs if (log.isInfoEnabled()) log.info("Sent " + (isRegister ? "registration" : "account") + " information to " + email); }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/256e2c1356d1e23609bb6e18891d549cb15a1901/AccountManager.java/buggy/dspace/src/org/dspace/eperson/AccountManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1366, 4134, 12, 780, 2699, 16, 21394, 1250, 353, 3996, 16, 21394, 3555, 1999, 9437, 13, 3639, 1216, 23794, 503, 16, 1860, 565, 288, 3639, 514, 1026, 273, 4659, 1318, 18, 588, 1396, 2932, 2377, 909, 18, 718, 8863, 3639, 368, 225, 3609, 2549, 628, 315, 856, 1546, 358, 315, 2316, 1546, 3639, 514, 4582, 2098, 273, 394, 6674, 1435, 5411, 263, 6923, 12, 1969, 13, 5411, 263, 6923, 12, 1969, 18, 5839, 1190, 2932, 4898, 13, 692, 1408, 294, 4016, 13, 5411, 263, 6923, 12, 291, 3996, 692, 315, 4861, 6, 294, 315, 1884, 13212, 7923, 5411, 263, 6923, 2932, 7225, 13, 5411, 263, 6923, 2932, 2316, 1546, 13, 5411, 263, 6923, 12, 13623, 18, 588, 780, 1494, 2932, 2316, 6, 3719, 5411, 263, 10492, 5621, 3639, 8166, 3931, 273, 4659, 1318, 18, 588, 4134, 12, 291, 3996, 692, 315, 4861, 6, 294, 5411, 315, 3427, 67, 3664, 8863, 3639, 3931, 18, 1289, 18241, 12, 3652, 1769, 3639, 3931, 18, 1289, 1379, 12, 9371, 2098, 1769, 3639, 3931, 18, 4661, 5621, 3639, 368, 605, 12879, 3639, 309, 261, 1330, 18, 291, 966, 1526, 10756, 5411, 613, 18, 1376, 2932, 7828, 315, 397, 261, 291, 3996, 692, 315, 14170, 6, 294, 315, 4631, 7923, 397, 7734, 315, 1779, 358, 315, 397, 2699, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1366, 4134, 12, 780, 2699, 16, 21394, 1250, 353, 3996, 16, 21394, 3555, 1999, 9437, 13, 3639, 1216, 23794, 503, 16, 1860, 565, 288, 3639, 514, 1026, 273, 4659, 1318, 18, 588, 1396, 2932, 2377, 909, 18, 718, 8863, 3639, 368, 225, 3609, 2549, 628, 315, 856, 1546, 358, 315, 2316, 1546, 3639, 514, 4582, 2098, 273, 394, 6674, 1435, 5411, 263, 6923, 12, 1969, 13, 5411, 263, 6923, 12, 1969, 18, 5839, 1190, 2932, 4898, 13, 692, 1408, 294, 4016, 13, 5411, 263, 6923, 12, 291, 3996, 692, 315, 4861, 6, 294, 315, 1884, 13212, 7923, 5411, 263, 6923, 2932, 7225, 13, 5411, 263, 6923, 2932, 2316, 1546, 13, 5411, 263, 6923, 12, 13623, 2 ]
private static HighlightInfo checkAssignability(PsiType lType, PsiType rType, PsiExpression expression, PsiElement elementToHighlight) {
static HighlightInfo checkAssignability(PsiType lType, PsiType rType, PsiExpression expression, PsiElement elementToHighlight) {
private static HighlightInfo checkAssignability(PsiType lType, PsiType rType, PsiExpression expression, PsiElement elementToHighlight) { TextRange textRange = elementToHighlight.getTextRange(); return checkAssignability(lType, rType, expression, textRange); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/649d9a65411ea451539361398ec9a18af83c404e/HighlightUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 31386, 966, 866, 4910, 2967, 12, 52, 7722, 559, 328, 559, 16, 453, 7722, 559, 436, 559, 16, 453, 7722, 2300, 2652, 16, 453, 7722, 1046, 930, 774, 16205, 13, 288, 565, 3867, 2655, 977, 2655, 273, 930, 774, 16205, 18, 588, 1528, 2655, 5621, 565, 327, 866, 4910, 2967, 12, 80, 559, 16, 436, 559, 16, 2652, 16, 977, 2655, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 31386, 966, 866, 4910, 2967, 12, 52, 7722, 559, 328, 559, 16, 453, 7722, 559, 436, 559, 16, 453, 7722, 2300, 2652, 16, 453, 7722, 1046, 930, 774, 16205, 13, 288, 565, 3867, 2655, 977, 2655, 273, 930, 774, 16205, 18, 588, 1528, 2655, 5621, 565, 327, 866, 4910, 2967, 12, 80, 559, 16, 436, 559, 16, 2652, 16, 977, 2655, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public SimpleDeclarationWrapper( CElement item )
public SimpleDeclarationWrapper( IParent item )
public SimpleDeclarationWrapper( CElement item ) { this.element = item; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/aacea7223cbaa112b8e930fd2f33739b1da73851/SimpleDeclarationWrapper.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 6094, 3611, 12, 385, 1046, 761, 262, 202, 95, 202, 202, 2211, 18, 2956, 273, 761, 31, 225, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 6094, 3611, 12, 385, 1046, 761, 262, 202, 95, 202, 202, 2211, 18, 2956, 273, 761, 31, 225, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PsiMethod method1 = MethodSignatureUtil.findMethodBySuperSignature(derived, signature);
PsiMethod method1 = MethodSignatureUtil.findMethodBySuperSignature(derived, signature, false);
private void collectOverridingMethods(PsiElement element, PsiManager manager, List<LineMarkerInfo> result) { PsiMethod method = (PsiMethod)element.getParent(); if (method.getNameIdentifier().equals(element)){ if (!PsiUtil.canBeOverriden(method)) return; PsiClass parentClass = method.getContainingClass(); if ("java.lang.Object".equals(parentClass.getQualifiedName())) return; // It's useless to have overriden markers for object. if (!myClassToFirstDerivedMap.containsKey(parentClass)){ final PsiClass derived = ClassInheritorsSearch.search(parentClass, false).findFirst(); myClassToFirstDerivedMap.put(parentClass, derived); } PsiClass derived = myClassToFirstDerivedMap.get(parentClass); if (derived == null) return; PsiSubstitutor substitutor = TypeConversionUtil.getSuperClassSubstitutor(parentClass, derived, PsiSubstitutor.EMPTY); if (substitutor == null) substitutor = PsiSubstitutor.EMPTY; MethodSignature signature = method.getSignature(substitutor); PsiMethod method1 = MethodSignatureUtil.findMethodBySuperSignature(derived, signature); if (method1 != null) { if (method1.hasModifierProperty(PsiModifier.STATIC) || (method.hasModifierProperty(PsiModifier.PACKAGE_LOCAL) && !manager.arePackagesTheSame(parentClass, derived))) { method1 = null; } } boolean found = method1 != null; if (!found){ found = OverridingMethodsSearch.search(method, true).findFirst() != null; } if (found) { boolean overrides; overrides = !method.hasModifierProperty(PsiModifier.ABSTRACT); int offset = method.getNameIdentifier().getTextRange().getStartOffset(); LineMarkerInfo info = new LineMarkerInfo(LineMarkerInfo.OVERRIDEN_METHOD, method, offset, overrides ? OVERRIDEN_METHOD_MARKER_RENDERER : IMPLEMENTED_METHOD_MARKER_RENDERER); result.add(info); } } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/c4118540b926875162fcf22391a476bb4ab41d6a/OverriddenMarkersPass.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/OverriddenMarkersPass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3274, 22042, 10415, 4712, 12, 52, 7722, 1046, 930, 16, 453, 7722, 1318, 3301, 16, 987, 32, 1670, 7078, 966, 34, 563, 13, 288, 565, 453, 7722, 1305, 707, 273, 261, 52, 7722, 1305, 13, 2956, 18, 588, 3054, 5621, 565, 309, 261, 2039, 18, 17994, 3004, 7675, 14963, 12, 2956, 3719, 95, 1377, 309, 16051, 52, 7722, 1304, 18, 4169, 1919, 22042, 17951, 12, 2039, 3719, 327, 31, 1377, 453, 7722, 797, 21366, 273, 707, 18, 588, 24344, 797, 5621, 1377, 309, 7566, 6290, 18, 4936, 18, 921, 9654, 14963, 12, 2938, 797, 18, 588, 12345, 1435, 3719, 327, 31, 368, 2597, 1807, 26967, 358, 1240, 31736, 11754, 364, 733, 18, 1377, 309, 16051, 4811, 797, 774, 3759, 21007, 863, 18, 12298, 653, 12, 2938, 797, 3719, 95, 3639, 727, 453, 7722, 797, 10379, 273, 1659, 14216, 1383, 2979, 18, 3072, 12, 2938, 797, 16, 629, 2934, 4720, 3759, 5621, 3639, 3399, 797, 774, 3759, 21007, 863, 18, 458, 12, 2938, 797, 16, 10379, 1769, 1377, 289, 1377, 453, 7722, 797, 10379, 273, 3399, 797, 774, 3759, 21007, 863, 18, 588, 12, 2938, 797, 1769, 1377, 309, 261, 765, 2950, 422, 446, 13, 327, 31, 1377, 453, 7722, 1676, 5223, 3408, 7461, 3408, 273, 1412, 6814, 1304, 18, 588, 8051, 797, 1676, 5223, 3408, 12, 2938, 797, 16, 10379, 16, 453, 7722, 1676, 5223, 3408, 18, 13625, 1769, 1377, 309, 261, 1717, 5223, 3408, 422, 446, 13, 7461, 3408, 273, 453, 7722, 1676, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3274, 22042, 10415, 4712, 12, 52, 7722, 1046, 930, 16, 453, 7722, 1318, 3301, 16, 987, 32, 1670, 7078, 966, 34, 563, 13, 288, 565, 453, 7722, 1305, 707, 273, 261, 52, 7722, 1305, 13, 2956, 18, 588, 3054, 5621, 565, 309, 261, 2039, 18, 17994, 3004, 7675, 14963, 12, 2956, 3719, 95, 1377, 309, 16051, 52, 7722, 1304, 18, 4169, 1919, 22042, 17951, 12, 2039, 3719, 327, 31, 1377, 453, 7722, 797, 21366, 273, 707, 18, 588, 24344, 797, 5621, 1377, 309, 7566, 6290, 18, 4936, 18, 921, 9654, 14963, 12, 2938, 797, 18, 588, 12345, 1435, 3719, 327, 31, 368, 2597, 1807, 26967, 358, 1240, 31736, 11754, 364, 733, 18, 1377, 309, 16051, 4811, 2 ]
return TaskListImages.ITALIC;
return TaskListColorsAndFonts.ITALIC;
public Font getFont(Object element) { if (!(element instanceof ITaskListElement)) { return null; } ITask task = getCorrespondingTask((ITaskListElement) element); if (task instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask)task; if (repositoryTask.isCurrentlySynchronizing()) { return TaskListImages.ITALIC; } } if (element instanceof ITaskContainer) { if (element instanceof AbstractRepositoryQuery) { if (((AbstractRepositoryQuery)element).isCurrentlySynchronizing()) { return TaskListImages.ITALIC; } } for (ITask child : ((ITaskContainer) element).getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } } if (task != null) { if (task.isActive()) return TaskListImages.BOLD; for (ITask child : task.getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } } return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8ddada43011e09377d9d50cee0080113ac1e888a/TaskElementLabelProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskElementLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 12, 2956, 1276, 467, 2174, 682, 1046, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 835, 1562, 273, 18399, 17863, 310, 2174, 12443, 1285, 835, 682, 1046, 13, 930, 1769, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 7469, 3305, 2174, 3352, 2174, 273, 261, 7469, 3305, 2174, 13, 4146, 31, 1082, 202, 430, 261, 9071, 2174, 18, 291, 3935, 715, 19298, 6894, 10756, 288, 9506, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 2956, 1276, 467, 2174, 2170, 13, 288, 1082, 202, 430, 261, 2956, 1276, 4115, 3305, 1138, 13, 288, 9506, 202, 430, 261, 12443, 7469, 3305, 1138, 13, 2956, 2934, 291, 3935, 715, 19298, 6894, 10756, 288, 6862, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 1884, 261, 1285, 835, 1151, 294, 14015, 1285, 835, 2170, 13, 930, 2934, 588, 4212, 10756, 288, 9506, 202, 430, 261, 3624, 18, 291, 3896, 10756, 6862, 202, 2463, 3837, 682, 8946, 18, 38, 11846, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 4146, 480, 446, 13, 288, 1082, 202, 430, 261, 4146, 18, 291, 3896, 10756, 9506, 202, 2463, 3837, 682, 8946, 18, 38, 11846, 31, 1082, 202, 1884, 261, 1285, 835, 1151, 294, 1562, 18, 588, 4212, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 12, 2956, 1276, 467, 2174, 682, 1046, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 835, 1562, 273, 18399, 17863, 310, 2174, 12443, 1285, 835, 682, 1046, 13, 930, 1769, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 7469, 3305, 2174, 3352, 2174, 273, 261, 7469, 3305, 2174, 13, 4146, 31, 1082, 202, 430, 261, 9071, 2174, 18, 291, 3935, 715, 19298, 6894, 10756, 288, 9506, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 2956, 1276, 467, 2174, 2170, 13, 288, 1082, 202, 2 ]
verify(checkConfig, getPath("javadoc/Test2.java"), expected);
verify(mCheckConfig, getPath("javadoc/Test2.java"), expected);
public void test_1168408_2() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(JavadocMethodCheck.class); final String[] expected = {}; verify(checkConfig, getPath("javadoc/Test2.java"), expected); }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/71c10398b6327599255ce4ffc14d7d9dfbfe3349/JavadocMethodCheckTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheckTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 20562, 5193, 6840, 67, 22, 1435, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 24060, 1305, 1564, 18, 1106, 1769, 3639, 727, 514, 8526, 2665, 273, 2618, 31, 3639, 3929, 12, 81, 1564, 809, 16, 4339, 2932, 78, 4805, 19, 4709, 22, 18, 6290, 6, 3631, 2665, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 20562, 5193, 6840, 67, 22, 1435, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 24060, 1305, 1564, 18, 1106, 1769, 3639, 727, 514, 8526, 2665, 273, 2618, 31, 3639, 3929, 12, 81, 1564, 809, 16, 4339, 2932, 78, 4805, 19, 4709, 22, 18, 6290, 6, 3631, 2665, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setNoex(noex);
public AliasMethod(ICallable oldMethod, String oldName, RubyModule origin, int noex) { this.oldMethod = oldMethod; this.oldName = oldName; this.origin = origin; setNoex(noex); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f05423516c2d1bfe54c4363eedb9654f7cfb6898/AliasMethod.java/buggy/org/jruby/internal/runtime/methods/AliasMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11873, 1305, 12, 45, 11452, 1592, 1305, 16, 514, 22916, 16, 19817, 3120, 4026, 16, 509, 1158, 338, 13, 288, 3639, 333, 18, 1673, 1305, 273, 1592, 1305, 31, 3639, 333, 18, 1673, 461, 273, 22916, 31, 3639, 333, 18, 10012, 273, 4026, 31, 5375, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11873, 1305, 12, 45, 11452, 1592, 1305, 16, 514, 22916, 16, 19817, 3120, 4026, 16, 509, 1158, 338, 13, 288, 3639, 333, 18, 1673, 1305, 273, 1592, 1305, 31, 3639, 333, 18, 1673, 461, 273, 22916, 31, 3639, 333, 18, 10012, 273, 4026, 31, 5375, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (results.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } try { Results newResults = results.getObjectStore().execute(results.getQuery()); if (maxBagSize > results.getObjectStore().getMaxLimit()) { newResults.setBatchSize(results.getObjectStore().getMaxLimit()); } else { newResults.setBatchSize(maxBagSize); } try { newResults.get(0); } catch (IndexOutOfBoundsException e) { } allRows = newResults; } catch (RuntimeException e) { if (e.getCause() instanceof ObjectStoreException) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, (ObjectStoreException) e.getCause(), LOG); return mapping.findForward("results"); } throw e; } catch (ObjectStoreException e) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, e, LOG); return mapping.findForward("results"); } } for (Iterator rowIterator = allRows.iterator(); rowIterator.hasNext();) { List thisRow = (List) rowIterator.next();
for (Iterator itemIterator = Arrays.asList(crf.getSelectedObjects()).iterator(); itemIterator.hasNext();) { String selectedObject = (String) itemIterator.next(); int commaIndex = selectedObject.indexOf(","); if (commaIndex == -1) { int column = Integer.parseInt(selectedObject);
public ActionForward saveBag(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException { HttpSession session = request.getSession(); ServletContext servletContext = session.getServletContext(); Profile profile = (Profile) session.getAttribute(Constants.PROFILE); //PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE); PagedTable pt = SessionMethods.getResultsTable(session, request.getParameter("table")); SaveBagForm crf = (SaveBagForm) form; InterMineBag bag = null; boolean storingIds = false; int defaultMax = 10000; int maxBagSize = WebUtil.getIntSessionProperty(session, "max.bag.size", defaultMax); // Create the right kind of bag String selected = crf.getSelectedObjects()[0]; int index = selected.indexOf(","); int col = Integer.parseInt(index == -1 ? selected : selected.substring(0, index)); Object type = ((Column) pt.getColumns().get(col)).getType(); if (type instanceof ClassDescriptor) { bag = new InterMineIdBag(); storingIds = true; } else { bag = new InterMinePrimitiveBag(); } // Go through the selected items and add to the set for (Iterator itemIterator = Arrays.asList(crf.getSelectedObjects()).iterator(); itemIterator.hasNext();) { String selectedObject = (String) itemIterator.next(); // selectedObject is of the form "column,row" or "column" int commaIndex = selectedObject.indexOf(","); if (commaIndex == -1) { int column = Integer.parseInt(selectedObject); List allRows = pt.getAllRows(); if (allRows instanceof Results) { Results results = (Results) allRows; if (results.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } try { // make a copy of the Results object with a larger batch size so the object // store doesn't need to do lots of queries // we copy because setBatchSize() throws an exception if size() has already // been called Results newResults = results.getObjectStore().execute(results.getQuery()); if (maxBagSize > results.getObjectStore().getMaxLimit()) { newResults.setBatchSize(results.getObjectStore().getMaxLimit()); } else { newResults.setBatchSize(maxBagSize); } // make sure we can get the first batch try { newResults.get(0); } catch (IndexOutOfBoundsException e) { // Ignore - that means there are NO rows in this results object. } allRows = newResults; } catch (RuntimeException e) { if (e.getCause() instanceof ObjectStoreException) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, (ObjectStoreException) e.getCause(), LOG); return mapping.findForward("results"); } throw e; } catch (ObjectStoreException e) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, e, LOG); return mapping.findForward("results"); } } for (Iterator rowIterator = allRows.iterator(); rowIterator.hasNext();) { List thisRow = (List) rowIterator.next(); if (storingIds) { Integer id = ((InterMineObject) thisRow.get(column)).getId(); bag.add(id); } else { bag.add(thisRow.get(column)); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } } } else { // use the column,row to pick out the object from PagedTable int column = Integer.parseInt(selectedObject.substring(0, commaIndex)); int row = Integer.parseInt(selectedObject.substring(commaIndex + 1)); Object value = ((List) pt.getRows().get(row)).get(column); if (storingIds) { Integer id = ((InterMineObject) value).getId(); bag.add(id); } else { bag.add(value); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } } } String bagName; if (request.getParameter("saveNewBag") != null) { bagName = crf.getNewBagName(); } else { bagName = crf.getExistingBagName(); } InterMineBag existingBag = (InterMineBag) profile.getSavedBags().get(bagName); if (existingBag != null) { if (!existingBag.getClass().equals(bag.getClass())) { recordError(new ActionMessage("bag.typesDontMatch"), request); return mapping.findForward("results"); } bag.addAll(existingBag); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } profile.saveBag(bagName, bag); recordMessage(new ActionMessage("bag.saved", bagName), request); return mapping.findForward("results"); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/5184009a6198f2907d8c92b488bb32928005458c/SaveBagAction.java/buggy/intermine/web/main/src/org/intermine/web/results/SaveBagAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1923, 5013, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 368, 10156, 329, 1388, 5818, 273, 261, 10156, 329, 1388, 13, 1339, 18, 588, 1499, 12, 2918, 18, 20602, 67, 7775, 1769, 3639, 7724, 329, 1388, 5818, 273, 3877, 4712, 18, 588, 3447, 1388, 12, 3184, 16, 590, 18, 588, 1662, 2932, 2121, 7923, 1769, 3639, 7074, 5013, 1204, 4422, 74, 273, 261, 4755, 5013, 1204, 13, 646, 31, 3639, 5294, 49, 558, 5013, 13189, 273, 446, 31, 3639, 1250, 15729, 2673, 273, 629, 31, 3639, 509, 805, 2747, 273, 12619, 31, 3639, 509, 943, 5013, 1225, 273, 2999, 1304, 18, 588, 1702, 2157, 1396, 12, 3184, 16, 315, 1896, 18, 22551, 18, 1467, 3113, 805, 2747, 1769, 3639, 368, 1788, 326, 2145, 3846, 434, 13189, 3639, 514, 3170, 273, 4422, 74, 18, 588, 7416, 4710, 1435, 63, 20, 15533, 3639, 509, 770, 273, 3170, 18, 31806, 2932, 16, 8863, 3639, 509, 645, 273, 2144, 18, 2670, 1702, 12, 1615, 422, 300, 21, 692, 3170, 294, 3170, 18, 28023, 12, 20, 16, 770, 10019, 3639, 1033, 618, 273, 14015, 1494, 13, 5818, 18, 588, 3380, 7675, 588, 12, 1293, 13, 2934, 588, 559, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1923, 5013, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 368, 10156, 329, 1388, 5818, 273, 261, 10156, 329, 1388, 13, 1339, 18, 588, 1499, 12, 2918, 18, 20602, 67, 7775, 1769, 3639, 7724, 329, 1388, 5818, 273, 3877, 4712, 18, 588, 3447, 1388, 12, 3184, 16, 590, 18, 588, 1662, 2932, 2121, 7923, 1769, 3639, 7074, 5013, 1204, 4422, 74, 273, 261, 4755, 5013, 2 ]
assertEquals(0,xc1.toPrevChar(3)); assertEquals(3,xc2.toPrevChar(3));
assertEquals(TokenType.END,xc1.currentTokenType());
public void testXmlObjectUsingCursor() throws Exception { XmlCursor xc1, xc2, xc3; PurchaseOrderDocument pod = PurchaseOrderDocument.Factory.parse( JarUtil.getResourceFromJar(Common.TRANXML_FILE_XMLCURSOR_PO)); xc1 = pod.newCursor(); xc2 = pod.newCursor(); xc3 = pod.newCursor(); //moving cursor location so that it comes to zip under shipto toNextTokenOfType(xc1, TokenType.START); toNextTokenOfType(xc1, TokenType.START); toNextTokenOfType(xc2, TokenType.START); toNextTokenOfType(xc2, TokenType.START); toNextTokenOfType(xc3, TokenType.START); toNextTokenOfType(xc3, TokenType.START); xc1.toEndToken(); xc2.toEndToken(); xc3.toEndToken(); toPrevTokenOfType(xc1, TokenType.TEXT); toPrevTokenOfType(xc1, TokenType.TEXT); toPrevTokenOfType(xc2, TokenType.TEXT); toPrevTokenOfType(xc2, TokenType.TEXT); toPrevTokenOfType(xc3, TokenType.TEXT); toPrevTokenOfType(xc3, TokenType.TEXT); //all cursors are now at: 90952 assertEquals(xc1.getChars(), xc2.getChars(), xc3.getChars()); //at 52 xc2.toNextChar(3); //after 90952 xc3.toNextChar(5); assertEquals(false, xc2.isAtSamePositionAs(xc3)); assertEquals(false, xc3.isAtSamePositionAs(xc1));//setting zip value through the object . once the set occurs comparing postions of cursors. PurchaseOrderType pt = pod.getPurchaseOrder(); USAddress usa = pt.getShipTo(); usa.setZip(new BigDecimal(500)); assertEquals(500,usa.getZip().intValue()); //xc2 and xc3 should now both be past 500 //xc1 should be right at 500 assertEquals(true, xc2.isAtSamePositionAs(xc3)); assertEquals(false, xc3.isAtSamePositionAs(xc1)); assertEquals(0,xc1.toPrevChar(3)); assertEquals(3,xc2.toPrevChar(3)); //System.out.println(xc1.getChars()); assertEquals(xc1.getChars(), xc2.getChars()); assertEquals(1, xc3.comparePosition(xc1));//inserting an element through the cursor under zip and then doing a set of a valid value through object.. xc1.insertElementWithText("foo", "text"); toPrevTokenOfType(xc1, TokenType.START); toPrevTokenOfType(xc1, TokenType.START); //System.out.println("here" + xc1.getTextValue()); toNextTokenOfType(xc1, TokenType.START); xc1.toNextChar(2); usa.setZip(new BigDecimal(90852)); assertEquals(true, xc2.isAtSamePositionAs(xc3)); assertEquals(true, xc3.isAtSamePositionAs(xc1)); xc1.toPrevChar(5); assertEquals("90852", xc1.getChars()); xc1.dispose(); xc2.dispose(); xc3.dispose(); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/baa3877e901e579b464c363a52d98a2b1d094136/CursorLocations.java/clean/v2/test/src/xmlcursor/detailed/CursorLocations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4432, 921, 7736, 6688, 1435, 1216, 1185, 288, 3639, 5714, 6688, 15192, 21, 16, 15192, 22, 16, 15192, 23, 31, 4202, 26552, 2448, 2519, 3713, 273, 26552, 2448, 2519, 18, 1733, 18, 2670, 12, 1171, 15644, 1304, 18, 588, 1420, 1265, 10813, 12, 6517, 18, 8989, 4201, 67, 3776, 67, 4201, 7509, 55, 916, 67, 2419, 10019, 3639, 15192, 21, 273, 3713, 18, 2704, 6688, 5621, 3639, 15192, 22, 273, 3713, 18, 2704, 6688, 5621, 3639, 15192, 23, 273, 3713, 18, 2704, 6688, 5621, 3639, 368, 81, 13767, 3347, 2117, 1427, 716, 518, 14535, 358, 3144, 3613, 699, 8138, 83, 3639, 358, 9399, 18859, 12, 6511, 21, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 18859, 12, 6511, 21, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 18859, 12, 6511, 22, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 18859, 12, 6511, 22, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 18859, 12, 6511, 23, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 18859, 12, 6511, 23, 16, 18794, 18, 7570, 1769, 3639, 15192, 21, 18, 869, 1638, 1345, 5621, 3639, 15192, 22, 18, 869, 1638, 1345, 5621, 3639, 15192, 23, 18, 869, 1638, 1345, 5621, 3639, 358, 9958, 1345, 18859, 12, 6511, 21, 16, 18794, 18, 5151, 1769, 3639, 358, 9958, 1345, 18859, 12, 6511, 21, 16, 18794, 18, 5151, 1769, 3639, 358, 9958, 1345, 18859, 12, 6511, 22, 16, 18794, 18, 5151, 1769, 3639, 358, 9958, 1345, 18859, 12, 6511, 22, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4432, 921, 7736, 6688, 1435, 1216, 1185, 288, 3639, 5714, 6688, 15192, 21, 16, 15192, 22, 16, 15192, 23, 31, 4202, 26552, 2448, 2519, 3713, 273, 26552, 2448, 2519, 18, 1733, 18, 2670, 12, 1171, 15644, 1304, 18, 588, 1420, 1265, 10813, 12, 6517, 18, 8989, 4201, 67, 3776, 67, 4201, 7509, 55, 916, 67, 2419, 10019, 3639, 15192, 21, 273, 3713, 18, 2704, 6688, 5621, 3639, 15192, 22, 273, 3713, 18, 2704, 6688, 5621, 3639, 15192, 23, 273, 3713, 18, 2704, 6688, 5621, 3639, 368, 81, 13767, 3347, 2117, 1427, 716, 518, 14535, 358, 3144, 3613, 699, 8138, 83, 3639, 358, 9399, 18859, 12, 6511, 21, 16, 18794, 18, 7570, 1769, 3639, 358, 9399, 2 ]
|| myDocument.getLineNumber(highlighter.getEndOffset()) < myDocument.getLineCount() - 1) continue;
|| myDocument.getLineNumber(highlighter.getEndOffset()) < myDocument.getLineCount() - 1) { continue; }
public Color getPastFileEndBackground() { boolean isInCaretRow = myEditor.getCaretModel().getLogicalPosition().line >= myDocument.getLineCount() - 1; Color caret = isInCaretRow && myCaretRowAttributes != null ? myCaretRowAttributes.getBackgroundColor() : null; if (myCurrentHighlighters.size() > 1) { Collections.sort(myCurrentHighlighters, new Comparator() { public int compare(Object o1, Object o2) { RangeHighlighter h1 = (RangeHighlighter)o1; RangeHighlighter h2 = (RangeHighlighter)o2; return h2.getLayer() - h1.getLayer(); } }); } for (int i = 0; i < myCurrentHighlighters.size(); i++) { RangeHighlighterImpl highlighter = myCurrentHighlighters.get(i); if (caret != null && highlighter.getLayer() < HighlighterLayer.CARET_ROW) { return caret; } if (highlighter.getTargetArea() != HighlighterTargetArea.LINES_IN_RANGE || myDocument.getLineNumber(highlighter.getEndOffset()) < myDocument.getLineCount() - 1) continue; TextAttributes textAttributes = highlighter.getTextAttributes(); if (textAttributes != null) { Color backgroundColor = textAttributes.getBackgroundColor(); if (backgroundColor != null) return backgroundColor; } } return caret; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6e2b1d29a6b918c9dd17b0a9bc5aff67b02fff98/IterationState.java/buggy/source/com/intellij/openapi/editor/impl/IterationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5563, 1689, 689, 812, 1638, 8199, 1435, 288, 565, 1250, 8048, 39, 20731, 1999, 273, 3399, 6946, 18, 588, 39, 20731, 1488, 7675, 588, 17955, 2555, 7675, 1369, 1545, 3399, 2519, 18, 588, 1670, 1380, 1435, 300, 404, 31, 565, 5563, 21683, 273, 8048, 39, 20731, 1999, 597, 3399, 39, 20731, 1999, 2498, 480, 446, 692, 3399, 39, 20731, 1999, 2498, 18, 588, 21699, 1435, 294, 446, 31, 565, 309, 261, 4811, 3935, 8573, 80, 2031, 5432, 18, 1467, 1435, 405, 404, 13, 288, 1377, 5737, 18, 3804, 12, 4811, 3935, 8573, 80, 2031, 5432, 16, 394, 13359, 1435, 288, 3639, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 1850, 8086, 8573, 23624, 366, 21, 273, 261, 2655, 8573, 23624, 13, 83, 21, 31, 1850, 8086, 8573, 23624, 366, 22, 273, 261, 2655, 8573, 23624, 13, 83, 22, 31, 1850, 327, 366, 22, 18, 588, 4576, 1435, 300, 366, 21, 18, 588, 4576, 5621, 3639, 289, 1377, 15549, 565, 289, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3399, 3935, 8573, 80, 2031, 5432, 18, 1467, 5621, 277, 27245, 288, 1377, 8086, 8573, 23624, 2828, 3551, 23624, 273, 3399, 3935, 8573, 80, 2031, 5432, 18, 588, 12, 77, 1769, 1377, 309, 261, 71, 20731, 480, 446, 597, 3551, 23624, 18, 588, 4576, 1435, 411, 15207, 23624, 4576, 18, 3587, 10238, 67, 11226, 13, 288, 3639, 327, 21683, 31, 1377, 289, 1377, 309, 261, 8766, 23624, 18, 588, 2326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5563, 1689, 689, 812, 1638, 8199, 1435, 288, 565, 1250, 8048, 39, 20731, 1999, 273, 3399, 6946, 18, 588, 39, 20731, 1488, 7675, 588, 17955, 2555, 7675, 1369, 1545, 3399, 2519, 18, 588, 1670, 1380, 1435, 300, 404, 31, 565, 5563, 21683, 273, 8048, 39, 20731, 1999, 597, 3399, 39, 20731, 1999, 2498, 480, 446, 692, 3399, 39, 20731, 1999, 2498, 18, 588, 21699, 1435, 294, 446, 31, 565, 309, 261, 4811, 3935, 8573, 80, 2031, 5432, 18, 1467, 1435, 405, 404, 13, 288, 1377, 5737, 18, 3804, 12, 4811, 3935, 8573, 80, 2031, 5432, 16, 394, 13359, 1435, 288, 3639, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 1850, 8086, 8573, 2 ]
public void setInto(ReadWritableInterval interval, Object object) {}
public void setInto(ReadWritableTimePeriod duration, Object object) {}
public void setInto(ReadWritableInterval interval, Object object) {}
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/226fd68cc77369f5c7cec5195e32c41229a7cac1/TestConverterManager.java/clean/JodaTime/src/test/org/joda/time/convert/TestConverterManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 444, 5952, 12, 1994, 12061, 4006, 3673, 16, 1033, 733, 13, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 444, 5952, 12, 1994, 12061, 4006, 3673, 16, 1033, 733, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/0c6c148f7be6e4cc0e87c12a307232047c894d1b/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 622, 315, 397, 15604, 846, 87, 1228, 18, 588, 1670, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 6153, 397, 15604, 846, 87, 1228, 18, 588, 1494, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 1368, 392, 2756, 8863, 1377, 289, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 576, 30, 225, 14488, 559, 493, 33, 16980, 559, 5411, 368, 5411, 648, 576, 30, 7734, 898, 31, 2398, 368, 5411, 368, 6781, 890, 30, 225, 14488, 559, 493, 33, 1250, 5411, 368, 5411, 648, 890, 30, 288, 7734, 10921, 2678, 18, 542, 11901, 21, 12, 82, 74, 18, 15512, 559, 907, 12, 917, 9334, 3742, 18, 5507, 1435, 10019, 7734, 898, 31, 5411, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 2 ]
this(input, boundary, DEFAULT_BUFSIZE);
public MultipartFormInputStream(InputStream input, byte[] boundary) { this(input, boundary, DEFAULT_BUFSIZE); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/6764aa7a4d7815b3367b2e036bce1d91ad902997/MultipartFormInputStream.java/buggy/wicket/src/java/wicket/util/upload/MultipartFormInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19919, 1204, 4348, 12, 4348, 810, 16, 1160, 8526, 7679, 13, 202, 95, 202, 202, 2211, 12, 2630, 16, 7679, 16, 3331, 67, 3000, 42, 4574, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19919, 1204, 4348, 12, 4348, 810, 16, 1160, 8526, 7679, 13, 202, 95, 202, 202, 2211, 12, 2630, 16, 7679, 16, 3331, 67, 3000, 42, 4574, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String errorMessage = null; int newValue=0; Text src= (Text) e.widget; if (fTextOptions == null) return; for (int i=0; i < fTextOptions.length; i++) { int val=0; try
if (fTextOptions == null) return; Integer newValue = new Integer(0); Text source = (Text)e.widget; if (checkAllTextInputs(source))
public void modifyText(ModifyEvent e) { String errorMessage = null; int newValue=0; Text src= (Text) e.widget; if (fTextOptions == null) return; for (int i=0; i < fTextOptions.length; i++) { int val=0; try { val = parseTextInput(fTextOptions[i].getText()); if (src == fTextOptions[i]) newValue = val; } catch (NumberFormatException nex) { errorMessage = new String("Error: " + fTextOptions[i].getText() + " is not valid number"); } } setErrorMessage(errorMessage); if (errorMessage != null) { return; } ConfigurableOption option= retrieveOption(src); option.setValueIndex(newValue); updatePreview(fNewOptions); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8ebb65c1c2f479365b7eabfc139b5d6a723992db/CodeFormatterPreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1082, 202, 95, 1082, 202, 780, 9324, 273, 446, 31, 1082, 202, 474, 6129, 33, 20, 31, 1082, 202, 1528, 1705, 33, 261, 1528, 13, 425, 18, 6587, 31, 1082, 202, 430, 261, 74, 1528, 1320, 422, 446, 13, 327, 31, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 411, 284, 1528, 1320, 18, 2469, 31, 277, 27245, 1082, 202, 95, 9506, 202, 474, 1244, 33, 20, 31, 9506, 202, 698, 4697, 202, 95, 6862, 202, 1125, 273, 1109, 1528, 1210, 12, 74, 1528, 1320, 63, 77, 8009, 588, 1528, 10663, 6862, 202, 430, 261, 4816, 422, 284, 1528, 1320, 63, 77, 5717, 25083, 202, 2704, 620, 273, 1244, 31, 9506, 202, 97, 1044, 261, 1854, 9291, 290, 338, 13, 288, 6862, 202, 1636, 1079, 273, 394, 514, 2932, 668, 30, 315, 397, 284, 1528, 1320, 63, 77, 8009, 588, 1528, 1435, 397, 315, 353, 486, 923, 1300, 8863, 9506, 202, 97, 9506, 202, 97, 1082, 202, 542, 14935, 12, 1636, 1079, 1769, 1082, 202, 430, 261, 1636, 1079, 480, 446, 13, 1082, 202, 95, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 31660, 1895, 1456, 33, 4614, 1895, 12, 4816, 1769, 1082, 202, 3482, 18, 542, 620, 1016, 12, 2704, 620, 1769, 1082, 202, 2725, 11124, 12, 74, 1908, 1320, 1769, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1082, 202, 95, 1082, 202, 780, 9324, 273, 446, 31, 1082, 202, 474, 6129, 33, 20, 31, 1082, 202, 1528, 1705, 33, 261, 1528, 13, 425, 18, 6587, 31, 1082, 202, 430, 261, 74, 1528, 1320, 422, 446, 13, 327, 31, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 411, 284, 1528, 1320, 18, 2469, 31, 277, 27245, 1082, 202, 95, 9506, 202, 474, 1244, 33, 20, 31, 9506, 202, 698, 4697, 202, 95, 6862, 202, 1125, 273, 1109, 1528, 1210, 12, 74, 1528, 1320, 63, 77, 8009, 588, 1528, 10663, 6862, 202, 430, 261, 4816, 422, 284, 1528, 1320, 63, 77, 5717, 25083, 202, 2704, 2 ]
Logger.minor(this, "Done");
public void checkFilters(Message m) { boolean matched = false; if (!(m.getSpec().equals(DMT.packetTransmit))) { if (m.getSpec().equals(DMT.ping) || m.getSpec().equals(DMT.pong)) { Logger.debug(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } else { Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } } synchronized (_filters) { for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } } // Feed unmatched messages to the dispatcher if ((!matched) && (_dispatcher != null)) { try { Logger.minor(this, "Feeding to dispatcher: "+m); matched = _dispatcher.handleMessage(m); } catch (Throwable t) { Logger.error(this, "Dispatcher threw "+t, t); } } // Keep the last few _unclaimed messages around in case the intended receiver isn't receiving yet if (!matched) { Logger.minor(this, "Unclaimed: "+m); /** Check filters and then add to _unmatched is ATOMIC * It has to be atomic, because otherwise we can get a * race condition that results in timeouts on MFs. * * Specifically: * - Thread A receives packet * - Thread A checks filters. It doesn't match any. * - Thread A feeds to Dispatcher. * - Thread B creates filter. * - Thread B checks _unmatched. * - Thread B adds filter. * - Thread B sleeps. * - Thread A returns from Dispatcher. Which didn't match. * - Thread A adds to _unmatched. * * OOPS! * The only way to fix this is to have checking the * filters and unmatched be a single atomic operation. * Another race is possible if we merely recheck the * filters after we return from dispatcher, for example. */ synchronized (_filters) { Logger.minor(this, "Rechecking filters and adding message"); for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } if(!matched) { while (_unclaimed.size() > 500) { Message removed = (Message)_unclaimed.removeFirst(); Logger.normal(this, "Dropping unclaimed: "+removed); } _unclaimed.addLast(m); } Logger.minor(this, "Done"); } } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/507be95bac7f2ea2c3e7628c8932949b10568ffd/UdpSocketManager.java/buggy/src/freenet/io/comm/UdpSocketManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 866, 5422, 12, 1079, 312, 13, 288, 202, 202, 6494, 4847, 273, 629, 31, 202, 202, 430, 16051, 12, 81, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 11482, 1429, 1938, 20349, 288, 1082, 202, 430, 261, 81, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 1382, 13, 747, 312, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 500, 75, 3719, 288, 9506, 202, 3328, 18, 4148, 12, 2211, 16, 1408, 397, 261, 3163, 18, 2972, 28512, 1435, 738, 1666, 2787, 13, 397, 315, 315, 397, 389, 15031, 18, 588, 2042, 2617, 1435, 397, 315, 3290, 315, 25083, 202, 15, 312, 18, 588, 1830, 1435, 397, 315, 294, 315, 397, 312, 1769, 1082, 202, 97, 469, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 1408, 397, 261, 3163, 18, 2972, 28512, 1435, 738, 1666, 2787, 13, 397, 315, 315, 397, 389, 15031, 18, 588, 2042, 2617, 1435, 397, 315, 3290, 315, 25083, 202, 15, 312, 18, 588, 1830, 1435, 397, 315, 294, 315, 397, 312, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 22043, 261, 67, 6348, 13, 288, 1082, 202, 1884, 261, 682, 3198, 277, 273, 389, 6348, 18, 1098, 3198, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 9506, 202, 1079, 1586, 284, 273, 261, 1079, 1586, 13, 277, 18, 4285, 5621, 9506, 202, 430, 261, 74, 18, 1916, 12, 81, 3719, 288, 6862, 202, 11073, 273, 638, 31, 6862, 202, 74, 18, 542, 1079, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 866, 5422, 12, 1079, 312, 13, 288, 202, 202, 6494, 4847, 273, 629, 31, 202, 202, 430, 16051, 12, 81, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 11482, 1429, 1938, 20349, 288, 1082, 202, 430, 261, 81, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 1382, 13, 747, 312, 18, 588, 1990, 7675, 14963, 12, 40, 6152, 18, 500, 75, 3719, 288, 9506, 202, 3328, 18, 4148, 12, 2211, 16, 1408, 397, 261, 3163, 18, 2972, 28512, 1435, 738, 1666, 2787, 13, 397, 315, 315, 397, 389, 15031, 18, 588, 2042, 2617, 1435, 397, 315, 3290, 315, 25083, 202, 15, 312, 18, 588, 1830, 1435, 397, 315, 294, 315, 397, 312, 1769, 2 ]
return;
return;
protected void saveFrameAs () { FileDialog fc2=new FileDialog (PatchEdit.this); fc2.setMode(fc2.SAVE); FilenameFilter type1 = new ExtensionFilter("PatchEdit Library Files (*.patchlib)", ".patchlib"); fc2.setFilenameFilter(type1); File file = null; try { try { file = ((LibraryFrame) desktop.getSelectedFrame()).filename; } catch (Exception e) { file = ((SceneFrame) desktop.getSelectedFrame()).filename; } fc2.setDirectory(file.getParent()); fc2.setFile(file.getName()); } catch (Exception e) { fc2.setDirectory(appConfig.getLibPath()); fc2.setFile("Untitled.patchlib"); } fc2.show(); if (fc2.getFile() == null) return; file = new File(fc2.getDirectory(), fc2.getFile()); try { if (desktop.getSelectedFrame() == null) { ErrorMsg.reportError("Error", "Unable to Save Library. Library to save must be focused"); } else { if (!file.getName().toUpperCase().endsWith(".PATCHLIB")) file = new File(file.getPath() + ".patchlib"); if (file.isDirectory()) { ErrorMsg.reportError("Error", "Can not Save over a Directory"); return; } if (file.exists()) if (JOptionPane.showConfirmDialog(null, "Are you sure?", "File Exists", JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) return; try { ((LibraryFrame) desktop.getSelectedFrame()).save(file); } catch (Exception pr) { ((SceneFrame) desktop.getSelectedFrame()).save(file); } } } catch (Exception ex) { ErrorMsg.reportError("Error", "Unable to Save Library", ex); } }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/497be036ae1a86e2d69f94781ff3f4c8bc65f3c7/PatchEdit.java/clean/JSynthLib/core/PatchEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1923, 3219, 1463, 1832, 565, 288, 3639, 1387, 6353, 8036, 22, 33, 2704, 1387, 6353, 261, 7332, 4666, 18, 2211, 1769, 202, 7142, 22, 18, 542, 2309, 12, 7142, 22, 18, 25242, 1769, 3639, 16671, 1586, 618, 21, 273, 394, 10021, 1586, 2932, 7332, 4666, 18694, 6471, 261, 11146, 2272, 2941, 2225, 16, 3552, 2272, 2941, 8863, 3639, 8036, 22, 18, 542, 5359, 1586, 12, 723, 21, 1769, 202, 812, 585, 273, 446, 31, 202, 698, 288, 202, 225, 775, 288, 202, 202, 768, 273, 14015, 9313, 3219, 13, 21304, 18, 588, 7416, 3219, 1435, 2934, 3459, 31, 202, 225, 289, 1044, 261, 503, 425, 13, 288, 202, 202, 768, 273, 14015, 14370, 3219, 13, 21304, 18, 588, 7416, 3219, 1435, 2934, 3459, 31, 202, 225, 289, 202, 225, 8036, 22, 18, 542, 2853, 12, 768, 18, 588, 3054, 10663, 202, 225, 8036, 22, 18, 542, 812, 12, 768, 18, 17994, 10663, 202, 97, 1044, 261, 503, 425, 13, 288, 202, 565, 8036, 22, 18, 542, 2853, 12, 2910, 809, 18, 588, 5664, 743, 10663, 202, 225, 8036, 22, 18, 542, 812, 2932, 57, 496, 305, 1259, 18, 2272, 2941, 8863, 202, 97, 202, 7142, 22, 18, 4500, 5621, 202, 430, 261, 7142, 22, 18, 29925, 1435, 422, 446, 13, 202, 225, 327, 31, 202, 768, 273, 394, 1387, 12, 7142, 22, 18, 588, 2853, 9334, 8036, 22, 18, 29925, 10663, 202, 698, 288, 202, 565, 309, 261, 31949, 18, 588, 7416, 3219, 1435, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1923, 3219, 1463, 1832, 565, 288, 3639, 1387, 6353, 8036, 22, 33, 2704, 1387, 6353, 261, 7332, 4666, 18, 2211, 1769, 202, 7142, 22, 18, 542, 2309, 12, 7142, 22, 18, 25242, 1769, 3639, 16671, 1586, 618, 21, 273, 394, 10021, 1586, 2932, 7332, 4666, 18694, 6471, 261, 11146, 2272, 2941, 2225, 16, 3552, 2272, 2941, 8863, 3639, 8036, 22, 18, 542, 5359, 1586, 12, 723, 21, 1769, 202, 812, 585, 273, 446, 31, 202, 698, 288, 202, 225, 775, 288, 202, 202, 768, 273, 14015, 9313, 3219, 13, 21304, 18, 588, 7416, 3219, 1435, 2934, 3459, 31, 202, 225, 289, 1044, 261, 503, 425, 13, 288, 202, 202, 768, 273, 14015, 14370, 3219, 13, 21304, 2 ]
public void init(ServletConfig servletConfig) throws ServletException;
void init(ServletConfig servletConfig) throws ServletException;
public void init(ServletConfig servletConfig) throws ServletException;
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/41e43f806f666da1ff483ebb20820e61433739e2/XmlaRequestCallback.java/buggy/src/main/mondrian/xmla/XmlaRequestCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 4745, 809, 8100, 809, 13, 1216, 16517, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 4745, 809, 8100, 809, 13, 1216, 16517, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void validate() throws BuildException { if (destdir == null) { throw new BuildException("Need to specify the 'destdir' attribute"); } if (!destdir.exists() || !destdir.isDirectory()) { if (!destdir.mkdirs()) { throw new BuildException("Could not create the specified destdir"); } } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/6c6a574b8da6a8f7989e99ea78e4db5cb63abe6b/TaglibDoc.java/buggy/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 5662, 1435, 15069, 3116, 503, 95, 202, 202, 430, 12, 10488, 1214, 631, 2011, 15329, 1082, 202, 12849, 2704, 3116, 503, 2932, 14112, 14627, 705, 1164, 5787, 14271, 395, 1214, 11, 4589, 8863, 202, 202, 97, 202, 202, 430, 12, 5, 10488, 1214, 18, 1808, 1435, 20081, 5, 10488, 1214, 18, 291, 2853, 10756, 95, 1082, 202, 430, 12, 5, 10488, 1214, 18, 24816, 8291, 10756, 95, 9506, 202, 12849, 2704, 3116, 503, 2932, 4445, 902, 27350, 546, 281, 705, 939, 10488, 1214, 8863, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 5662, 1435, 15069, 3116, 503, 95, 202, 202, 430, 12, 10488, 1214, 631, 2011, 15329, 1082, 202, 12849, 2704, 3116, 503, 2932, 14112, 14627, 705, 1164, 5787, 14271, 395, 1214, 11, 4589, 8863, 202, 202, 97, 202, 202, 430, 12, 5, 10488, 1214, 18, 1808, 1435, 20081, 5, 10488, 1214, 18, 291, 2853, 10756, 95, 1082, 202, 430, 12, 5, 10488, 1214, 18, 24816, 8291, 10756, 95, 9506, 202, 12849, 2704, 3116, 503, 2932, 4445, 902, 27350, 546, 281, 705, 939, 10488, 1214, 8863, 1082, 202, 97, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void widgetSelected( SelectionEvent e ) { Object oSource = e.getSource( ); if ( oSource.equals( btnDown ) ) { fireHandleEvent( MOUSE_CLICKED_EVENT ); toggleDropDown( ); } else if ( oSource.equals( this.btnImage ) ) { FileDialog fDlg = new FileDialog( this.getShell( ), SWT.OPEN ); cmpDropDown.getParent( ).dispose( ); fDlg.setFilterExtensions( saImageTypes ); String sStartFolder = System.getProperty( "user.dir" ); //$NON-NLS-1$ String sImageFile = ""; //$NON-NLS-1$ if ( fCurrent instanceof Image ) { String sFullPath = ( (Image) fCurrent ).getURL( ).toString( ); sImageFile = sFullPath.substring( sFullPath.lastIndexOf( "/" ) + 1 ); //$NON-NLS-1$ sStartFolder = sFullPath.substring( 0, sFullPath.lastIndexOf( "/" ) ); //$NON-NLS-1$ } fDlg.setFilterPath( sStartFolder ); fDlg.setFileName( sImageFile ); String sImgPath = fDlg.open( ); // Do nothing if dialog was cancelled if ( sImgPath == null ) { return; } try { new URL( sImgPath ); } catch ( MalformedURLException e1 ) { sImgPath = "file:///" + fDlg.getFilterPath( ) + File.separator + fDlg.getFileName( ); //$NON-NLS-1$ } if ( sImgPath != null && sImgPath.trim( ).length( ) > 0 ) { Image imgFill = AttributeFactory.eINSTANCE.createImage( ); imgFill.setURL( sImgPath ); if ( fCurrent != null ) { imgFill.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } this.setFill( imgFill ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } else if ( oSource.equals( this.btnCustom ) ) { ColorDialog cDlg = new ColorDialog( this.getShell( ), SWT.NONE ); cmpDropDown.getParent( ).dispose( ); int iTrans = 255; if ( fCurrent instanceof ColorDefinition ) { if ( !fCurrent.equals( ColorDefinitionImpl.TRANSPARENT( ) ) ) { iTransparency = ( (ColorDefinition) fCurrent ).getTransparency( ); } cDlg.setRGB( new RGB( ( (ColorDefinition) this.fCurrent ).getRed( ), ( (ColorDefinition) this.fCurrent ).getGreen( ), ( (ColorDefinition) this.fCurrent ).getBlue( ) ) ); } RGB rgb = cDlg.open( ); if ( rgb != null ) { ColorDefinition cdNew = AttributeFactory.eINSTANCE.createColorDefinition( ); cdNew.set( rgb.red, rgb.green, rgb.blue ); cdNew.setTransparency( ( bTransparencyChanged ) ? this.iTransparency : iTrans ); if ( fCurrent != null ) { cdNew.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } this.setFill( cdNew ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } else if ( oSource.equals( this.btnGradient ) ) { GradientEditorDialog ged = null; cmpDropDown.getParent( ).dispose( ); if ( fCurrent instanceof Gradient ) { ged = new GradientEditorDialog( this.getShell( ), (Gradient) fCurrent ); } else if ( fCurrent instanceof ColorDefinition ) { ged = new GradientEditorDialog( this.getShell( ), null, (ColorDefinition) fCurrent ); } else { ged = new GradientEditorDialog( this.getShell( ), null ); } if ( ged.getGradient( ) != null ) { Fill fTmp = ged.getGradient( ); if ( fCurrent != null ) { fTmp.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } if ( fCurrent == null || !( fCurrent.equals( fTmp ) ) ) { this.setFill( fTmp ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } } else if ( oSource.equals( srTransparency ) ) { iTransparency = srTransparency.getSelection( ); lblTransparency.setText( new MessageFormat( Messages.getString( "FillChooserComposite.Lbl.Opacity" ) ) //$NON-NLS-1$ .format( new Object[]{ new Integer( iTransparency ) } ) ); srTransparency.setToolTipText( String.valueOf( srTransparency.getSelection( ) ) ); if ( fCurrent instanceof ColorDefinition ) { ( (ColorDefinition) fCurrent ).setTransparency( iTransparency ); } setFill( fCurrent ); bTransparencyChanged = true; } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/99ab478a2cd0ab25560606c29779d9cf026ebe25/FillChooserComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, 262, 262, 202, 202, 95, 1082, 202, 12179, 3259, 1133, 12, 16070, 8001, 67, 7697, 3507, 2056, 67, 10454, 11272, 1082, 202, 14401, 7544, 4164, 12, 11272, 202, 202, 97, 202, 202, 12107, 309, 261, 320, 1830, 18, 14963, 12, 333, 18, 11898, 2040, 262, 262, 202, 202, 95, 1082, 202, 812, 6353, 284, 40, 23623, 273, 394, 1387, 6353, 12, 333, 18, 588, 13220, 12, 262, 16, 348, 8588, 18, 11437, 11272, 1082, 202, 9625, 7544, 4164, 18, 588, 3054, 12, 262, 18, 2251, 4150, 12, 11272, 1082, 202, 74, 40, 23623, 18, 542, 1586, 7513, 12, 7864, 2040, 2016, 11272, 1082, 202, 780, 272, 1685, 3899, 273, 2332, 18, 588, 1396, 12, 315, 1355, 18, 1214, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 780, 272, 2040, 812, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 284, 3935, 1276, 3421, 262, 1082, 202, 95, 9506, 202, 780, 272, 24173, 273, 261, 261, 2040, 13, 284, 3935, 262, 18, 588, 1785, 12, 262, 18, 10492, 12, 11272, 9506, 202, 87, 2040, 812, 273, 272, 24173, 18, 28023, 12, 272, 24173, 18, 2722, 31985, 12, 4016, 262, 397, 404, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 87, 1685, 3899, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, 262, 262, 202, 202, 95, 1082, 202, 12179, 3259, 1133, 12, 16070, 8001, 67, 7697, 3507, 2056, 67, 10454, 11272, 1082, 202, 14401, 7544, 4164, 12, 11272, 202, 202, 97, 202, 202, 12107, 309, 261, 320, 1830, 18, 14963, 12, 333, 18, 11898, 2040, 262, 262, 202, 202, 95, 1082, 202, 812, 6353, 284, 40, 23623, 273, 394, 1387, 6353, 12, 333, 18, 588, 13220, 12, 262, 16, 348, 8588, 18, 11437, 11272, 1082, 202, 9625, 7544, 4164, 18, 588, 3054, 12, 262, 2 ]
IResource resource = (IResource) event.getElement();
IAdaptable element= (IAdaptable) event.getElement();
public void run() { IResource resource = (IResource) event.getElement(); boolean state = event.getChecked(); tree.setGrayed(resource, false); if (resource instanceof IContainer) { setSubtreeChecked((IContainer) resource, state, true); } updateParentState(resource); validateInput(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ead46b18a7f254959c1428306b90fb9479690b28/CElementWorkingSetPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/workingsets/CElementWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 1420, 1058, 273, 261, 45, 1420, 13, 871, 18, 21336, 5621, 9506, 202, 6494, 919, 273, 871, 18, 588, 11454, 5621, 6862, 9506, 202, 3413, 18, 542, 23521, 329, 12, 3146, 16, 629, 1769, 9506, 202, 430, 261, 3146, 1276, 467, 2170, 13, 288, 6862, 202, 542, 18615, 11454, 12443, 45, 2170, 13, 1058, 16, 919, 16, 638, 1769, 9506, 202, 97, 9506, 202, 2725, 3054, 1119, 12, 3146, 1769, 9506, 202, 5662, 1210, 5621, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 1420, 1058, 273, 261, 45, 1420, 13, 871, 18, 21336, 5621, 9506, 202, 6494, 919, 273, 871, 18, 588, 11454, 5621, 6862, 9506, 202, 3413, 18, 542, 23521, 329, 12, 3146, 16, 629, 1769, 9506, 202, 430, 261, 3146, 1276, 467, 2170, 13, 288, 6862, 202, 542, 18615, 11454, 12443, 45, 2170, 13, 1058, 16, 919, 16, 638, 1769, 9506, 202, 97, 9506, 202, 2725, 3054, 1119, 12, 3146, 1769, 9506, 202, 5662, 1210, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MemoryManager mm)
MemoryManager mm, boolean managed)
public Channel createChannel(String name, String templateName, String label, ChannelProperties params, boolean initialized, MemoryManager mm) throws AppiaXMLException { final ChannelTemplate chnt = ((ChannelTemplate) templates.get(templateName)); final Channel chn = chnt.createChannel(name,label,params,globalSessions,labelSessions,globalEventScheduler,mm); channels.put(name,chn); // Should the channel be returned already "started"? if (initialized){ try { chn.start(); } catch (AppiaDuplicatedSessionsException e) { throw new AppiaXMLException("Unable to start the channel: "+chn.getChannelID(),e); } } return chn; }
47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/b2cc3c3ef2baf1d7a548b743014724024b61d629/Configuration.java/clean/trunk/appia/src/org/continuent/appia/xml/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5307, 752, 2909, 12, 780, 508, 16, 1082, 202, 780, 15523, 16, 1082, 202, 780, 1433, 16, 1082, 202, 2909, 2297, 859, 16, 1082, 202, 6494, 6454, 16, 1875, 202, 6031, 1318, 9740, 16, 1250, 7016, 13, 225, 202, 15069, 4677, 1155, 4201, 503, 288, 202, 202, 6385, 5307, 2283, 462, 496, 273, 14015, 2909, 2283, 13, 5539, 18, 588, 12, 3202, 461, 10019, 202, 202, 6385, 5307, 462, 82, 273, 462, 496, 18, 2640, 2909, 12, 529, 16, 1925, 16, 2010, 16, 6347, 13566, 16, 1925, 13566, 16, 6347, 1133, 11870, 16, 7020, 1769, 202, 202, 9114, 18, 458, 12, 529, 16, 343, 82, 1769, 202, 202, 759, 9363, 326, 1904, 506, 2106, 1818, 315, 14561, 6, 35, 202, 202, 430, 261, 13227, 15329, 5411, 775, 288, 7734, 462, 82, 18, 1937, 5621, 5411, 289, 1044, 261, 3371, 1155, 19682, 690, 13566, 503, 425, 13, 288, 7734, 604, 394, 4677, 1155, 4201, 503, 2932, 3370, 358, 787, 326, 1904, 30, 13773, 343, 82, 18, 588, 2909, 734, 9334, 73, 1769, 5411, 289, 10792, 289, 202, 202, 2463, 462, 82, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5307, 752, 2909, 12, 780, 508, 16, 1082, 202, 780, 15523, 16, 1082, 202, 780, 1433, 16, 1082, 202, 2909, 2297, 859, 16, 1082, 202, 6494, 6454, 16, 1875, 202, 6031, 1318, 9740, 16, 1250, 7016, 13, 225, 202, 15069, 4677, 1155, 4201, 503, 288, 202, 202, 6385, 5307, 2283, 462, 496, 273, 14015, 2909, 2283, 13, 5539, 18, 588, 12, 3202, 461, 10019, 202, 202, 6385, 5307, 462, 82, 273, 462, 496, 18, 2640, 2909, 12, 529, 16, 1925, 16, 2010, 16, 6347, 13566, 16, 1925, 13566, 16, 6347, 1133, 11870, 16, 7020, 1769, 202, 202, 9114, 18, 458, 12, 529, 16, 343, 82, 1769, 202, 202, 759, 9363, 326, 1904, 506, 2106, 1818, 315, 2 ]
textUpdate();
textUpdate(e);
public void changedUpdate(DocumentEvent e) { textUpdate(); }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/49618fea7e143a942cf267731630c242b451018b/PictureInspector.java/buggy/com/gallery/GalleryRemote/PictureInspector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3550, 1891, 12, 2519, 1133, 425, 13, 288, 202, 202, 955, 1891, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3550, 1891, 12, 2519, 1133, 425, 13, 288, 202, 202, 955, 1891, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Node nuChild = new Node(TO_OBJECT, child);
Node nuChild = new Node(Token.TO_OBJECT, child);
private void rewriteAsObjectChildren(Node n, Node child) { // Force optimized children to be objects while (child != null) { Node nextChild = child.getNext(); int type = rewriteForNumberVariables(child); if (type == NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TO_OBJECT, child); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/f534359b03da94ab48bfc8f2027296f3dc01e5a4/Optimizer.java/clean/src/org/mozilla/javascript/optimizer/Optimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10738, 1463, 921, 4212, 12, 907, 290, 16, 2029, 1151, 13, 565, 288, 3639, 368, 11889, 15411, 2325, 358, 506, 2184, 3639, 1323, 261, 3624, 480, 446, 13, 288, 5411, 2029, 1024, 1763, 273, 1151, 18, 588, 2134, 5621, 5411, 509, 618, 273, 10738, 1290, 1854, 6158, 12, 3624, 1769, 5411, 309, 261, 723, 422, 3588, 559, 13, 288, 7734, 309, 16051, 6283, 1662, 12, 3624, 3719, 288, 10792, 290, 18, 4479, 1763, 12, 3624, 1769, 10792, 2029, 9244, 1763, 273, 394, 2029, 12, 1345, 18, 4296, 67, 9422, 16, 1151, 1769, 10792, 309, 261, 4285, 1763, 422, 446, 13, 13491, 290, 18, 1289, 1763, 774, 2711, 12, 13053, 1763, 1769, 10792, 469, 13491, 290, 18, 1289, 1763, 4649, 12, 13053, 1763, 16, 1024, 1763, 1769, 7734, 289, 5411, 289, 5411, 1151, 273, 1024, 1763, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10738, 1463, 921, 4212, 12, 907, 290, 16, 2029, 1151, 13, 565, 288, 3639, 368, 11889, 15411, 2325, 358, 506, 2184, 3639, 1323, 261, 3624, 480, 446, 13, 288, 5411, 2029, 1024, 1763, 273, 1151, 18, 588, 2134, 5621, 5411, 509, 618, 273, 10738, 1290, 1854, 6158, 12, 3624, 1769, 5411, 309, 261, 723, 422, 3588, 559, 13, 288, 7734, 309, 16051, 6283, 1662, 12, 3624, 3719, 288, 10792, 290, 18, 4479, 1763, 12, 3624, 1769, 10792, 2029, 9244, 1763, 273, 394, 2029, 12, 1345, 18, 4296, 67, 9422, 16, 1151, 1769, 10792, 309, 261, 4285, 1763, 422, 446, 13, 13491, 290, 18, 1289, 1763, 774, 2711, 12, 13053, 1763, 1769, 10792, 469, 13491, 290, 18, 2 ]
public void testWrite_ShouldMaskOutputDirsNestedWithinAnExistingOutputDir() throws MojoExecutionException, JDOMException, IOException { TestEclipseWriterConfig config = new TestEclipseWriterConfig(); File basedir = fileManager.createTempDir(); config.setProjectBaseDir( basedir ); config.setEclipseProjectDirectory( basedir ); String baseOutputDir = "target/classes"; String maskedOutputDir = "target/classes/main-resources"; File buildOutputDir = new File( basedir, baseOutputDir ); buildOutputDir.mkdirs(); config.setBuildOutputDirectory( buildOutputDir ); new File( basedir, maskedOutputDir ).mkdirs(); EclipseSourceDir dir = new EclipseSourceDir( "src/main/resources", "target/classes", true, false, null, null, false ); EclipseSourceDir testDir = new EclipseSourceDir( "src/test/resources", "target/classes/test-resources", true, true, null, null, false ); EclipseSourceDir[] dirs = { dir, testDir }; config.setSourceDirs( dirs ); config.setEclipseProjectName( "test-project" ); TestLog log = new TestLog(); EclipseClasspathWriter classpathWriter = new EclipseClasspathWriter(); classpathWriter.init( log, config ); classpathWriter.write(); SAXBuilder builder = new SAXBuilder( false ); Document doc = builder.build( new File( basedir, ".classpath" ) ); XPath resourcePath = XPath.newInstance( "//classpathentry[@path='src/main/resources']" ); assertTrue( "resources classpath entry not found.", resourcePath.selectSingleNode( doc ) != null ); XPath testResourcePath = XPath.newInstance( "//classpathentry[@path='src/test/resources']" ); assertTrue( "test resources (minus custom output dir) classpath entry not found.", testResourcePath.selectSingleNode( doc ) != null ); XPath stdOutputPath = XPath.newInstance( "//classpathentry[@kind='output' && @path='target/classes']" ); assertTrue( "standard output classpath entry not found.", stdOutputPath.selectSingleNode( doc ) != null ); }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/ad6a4d9f76873917335fd374cbdf14ef1400690f/EclipseClasspathWriterUnitTest.java/clean/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriterUnitTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3067, 67, 14309, 5796, 1447, 9872, 8649, 18949, 979, 9895, 1447, 1621, 1435, 3639, 1216, 18780, 16, 804, 8168, 503, 16, 1860, 565, 288, 3639, 7766, 23057, 10472, 2289, 809, 642, 273, 394, 7766, 23057, 10472, 2289, 809, 5621, 3639, 1387, 15573, 273, 585, 1318, 18, 2640, 7185, 1621, 5621, 3639, 642, 18, 542, 4109, 2171, 1621, 12, 15573, 11272, 3639, 642, 18, 542, 23057, 10472, 4109, 2853, 12, 15573, 11272, 3639, 514, 1026, 1447, 1621, 273, 315, 3299, 19, 4701, 14432, 3639, 514, 13196, 1447, 1621, 273, 315, 3299, 19, 4701, 19, 5254, 17, 4683, 14432, 3639, 1387, 1361, 1447, 1621, 273, 394, 1387, 12, 15573, 16, 1026, 1447, 1621, 11272, 3639, 1361, 1447, 1621, 18, 24816, 8291, 5621, 3639, 642, 18, 542, 3116, 1447, 2853, 12, 1361, 1447, 1621, 11272, 3639, 394, 1387, 12, 15573, 16, 13196, 1447, 1621, 262, 18, 24816, 8291, 5621, 3639, 20840, 10472, 1830, 1621, 1577, 273, 394, 20840, 10472, 1830, 1621, 12, 315, 4816, 19, 5254, 19, 4683, 3113, 315, 3299, 19, 4701, 3113, 638, 16, 629, 16, 446, 16, 446, 16, 4766, 5397, 629, 11272, 3639, 20840, 10472, 1830, 1621, 1842, 1621, 273, 394, 20840, 10472, 1830, 1621, 12, 315, 4816, 19, 3813, 19, 4683, 3113, 315, 3299, 19, 4701, 19, 3813, 17, 4683, 3113, 638, 16, 4766, 7682, 638, 16, 446, 16, 446, 16, 629, 11272, 3639, 20840, 10472, 1830, 1621, 8526, 7717, 273, 288, 1577, 16, 1842, 1621, 289, 31, 3639, 642, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3067, 67, 14309, 5796, 1447, 9872, 8649, 18949, 979, 9895, 1447, 1621, 1435, 3639, 1216, 18780, 16, 804, 8168, 503, 16, 1860, 565, 288, 3639, 7766, 23057, 10472, 2289, 809, 642, 273, 394, 7766, 23057, 10472, 2289, 809, 5621, 3639, 1387, 15573, 273, 585, 1318, 18, 2640, 7185, 1621, 5621, 3639, 642, 18, 542, 4109, 2171, 1621, 12, 15573, 11272, 3639, 642, 18, 542, 23057, 10472, 4109, 2853, 12, 15573, 11272, 3639, 514, 1026, 1447, 1621, 273, 315, 3299, 19, 4701, 14432, 3639, 514, 13196, 1447, 1621, 273, 315, 3299, 19, 4701, 19, 5254, 17, 4683, 14432, 3639, 1387, 1361, 1447, 1621, 273, 394, 1387, 12, 15573, 16, 1026, 1447, 1621, 11272, 3639, 1361, 1447, 2 ]
assertTrue(t.toString().equals(TS3WOTZ_JAVAFORMAT));
assertTrue(t.equals(TS3WOTZ)); assertTrue(rs.next()); t = rs.getTimestamp(1); assertNotNull(t); assertTrue(t.equals(TS4WOTZ));
private void timestampTestWOTZ() throws SQLException { Statement stmt = con.createStatement(); ResultSet rs; java.sql.Timestamp t; rs = stmt.executeQuery("select ts from " + TSWOTZ_TABLE + " order by ts"); assertNotNull(rs); assertTrue(rs.next()); t = rs.getTimestamp(1); assertNotNull(t); assertTrue(t.toString().equals(TS1WOTZ_JAVAFORMAT)); assertTrue(rs.next()); t = rs.getTimestamp(1); assertNotNull(t); assertTrue(t.toString().equals(TS2WOTZ_JAVAFORMAT)); assertTrue(rs.next()); t = rs.getTimestamp(1); assertNotNull(t); assertTrue(t.toString().equals(TS3WOTZ_JAVAFORMAT)); assertTrue(! rs.next()); // end of table. Fail if more entries exist. rs.close(); stmt.close(); }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/feefc329bd64ee552d12c8e40bed76e3573c3fa4/TimestampTest.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2858, 4709, 59, 1974, 62, 1435, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 31, 202, 202, 6290, 18, 4669, 18, 4921, 268, 31, 202, 202, 5453, 273, 3480, 18, 8837, 1138, 2932, 4025, 3742, 628, 315, 397, 15508, 59, 1974, 62, 67, 7775, 397, 315, 1353, 635, 3742, 8863, 202, 202, 11231, 5962, 12, 5453, 1769, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 88, 273, 3597, 18, 588, 4921, 12, 21, 1769, 202, 202, 11231, 5962, 12, 88, 1769, 202, 202, 11231, 5510, 12, 88, 18, 10492, 7675, 14963, 12, 8047, 21, 59, 1974, 62, 67, 27264, 7254, 10019, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 88, 273, 3597, 18, 588, 4921, 12, 21, 1769, 202, 202, 11231, 5962, 12, 88, 1769, 202, 202, 11231, 5510, 12, 88, 18, 10492, 7675, 14963, 12, 8047, 22, 59, 1974, 62, 67, 27264, 7254, 10019, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 88, 273, 3597, 18, 588, 4921, 12, 21, 1769, 202, 202, 11231, 5962, 12, 88, 1769, 202, 202, 11231, 5510, 12, 88, 18, 10492, 7675, 14963, 12, 8047, 23, 59, 1974, 62, 67, 27264, 7254, 10019, 202, 202, 11231, 5510, 12, 5, 3597, 18, 4285, 10663, 368, 679, 434, 1014, 18, 8911, 309, 1898, 3222, 1005, 18, 202, 202, 5453, 18, 4412, 5621, 202, 202, 10589, 18, 4412, 5621, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2858, 4709, 59, 1974, 62, 1435, 1216, 6483, 202, 95, 202, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 202, 202, 13198, 3597, 31, 202, 202, 6290, 18, 4669, 18, 4921, 268, 31, 202, 202, 5453, 273, 3480, 18, 8837, 1138, 2932, 4025, 3742, 628, 315, 397, 15508, 59, 1974, 62, 67, 7775, 397, 315, 1353, 635, 3742, 8863, 202, 202, 11231, 5962, 12, 5453, 1769, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 88, 273, 3597, 18, 588, 4921, 12, 21, 1769, 202, 202, 11231, 5962, 12, 88, 1769, 202, 202, 11231, 5510, 12, 88, 18, 10492, 7675, 14963, 12, 8047, 21, 59, 1974, 62, 67, 27264, 7254, 10019, 202, 2 ]
loc -= prefs.width; closeButton.setVisible(true); closeButton.setBounds(loc, top, prefs.width, prefs.height);
loc -= buttonWidth + 2; maxButton.setBounds(loc, top, buttonWidth, buttonHeight);
public void layoutContainer(Container c) { enableActions(); Insets insets = c.getInsets(); int width = c.getBounds().width - insets.left - insets.right; int height = c.getBounds().height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimension menupref = menuBar.getPreferredSize(); menuBar.setBounds(insets.left, insets.top, menupref.width, height); int loc = width + insets.left; Insets i = closeButton.getInsets(); Dimension prefs = new Dimension(iconSize + i.left + i.right, iconSize + i.top + i.bottom); int top = insets.top + (height - prefs.height) / 2; if (closeAction.isEnabled()) { loc -= prefs.width; closeButton.setVisible(true); closeButton.setBounds(loc, top, prefs.width, prefs.height); } else closeButton.setVisible(false); if (maximizeAction.isEnabled()) { loc -= prefs.width; maxButton.setVisible(true); maxButton.setBounds(loc, top, prefs.width, prefs.height); } else maxButton.setVisible(false); if (iconifyAction.isEnabled()) { loc -= prefs.width; iconButton.setVisible(true); iconButton.setBounds(loc, top, prefs.width, prefs.height); } else iconButton.setVisible(false); if (title != null) title.setBounds(insets.left + menupref.width, insets.top, loc - menupref.width - insets.left, height); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3511, 2170, 12, 2170, 276, 13, 565, 288, 1377, 4237, 6100, 5621, 1377, 22300, 23576, 273, 276, 18, 588, 382, 4424, 5621, 1377, 509, 1835, 273, 276, 18, 588, 5694, 7675, 2819, 300, 23576, 18, 4482, 300, 23576, 18, 4083, 31, 1377, 509, 2072, 273, 276, 18, 588, 5694, 7675, 4210, 300, 23576, 18, 3669, 300, 23576, 18, 9176, 31, 1377, 368, 9809, 5190, 353, 3712, 3430, 471, 13801, 622, 326, 1760, 2002, 11055, 18, 1377, 13037, 21247, 416, 1734, 273, 3824, 5190, 18, 588, 16028, 1225, 5621, 1377, 3824, 5190, 18, 542, 5694, 12, 267, 4424, 18, 4482, 16, 23576, 18, 3669, 16, 21247, 416, 1734, 18, 2819, 16, 2072, 1769, 1377, 509, 1515, 273, 1835, 397, 23576, 18, 4482, 31, 1377, 22300, 277, 273, 1746, 3616, 18, 588, 382, 4424, 5621, 1377, 13037, 15503, 273, 394, 13037, 12, 3950, 1225, 397, 277, 18, 4482, 397, 277, 18, 4083, 16, 4766, 1377, 4126, 1225, 397, 277, 18, 3669, 397, 277, 18, 9176, 1769, 1377, 509, 1760, 273, 23576, 18, 3669, 397, 261, 4210, 300, 15503, 18, 4210, 13, 342, 576, 31, 1377, 309, 261, 4412, 1803, 18, 291, 1526, 10756, 3639, 288, 202, 225, 1515, 3947, 15503, 18, 2819, 31, 202, 225, 1746, 3616, 18, 542, 6207, 12, 3767, 1769, 202, 225, 1746, 3616, 18, 542, 5694, 12, 1829, 16, 1760, 16, 15503, 18, 2819, 16, 15503, 18, 4210, 1769, 3639, 289, 1377, 469, 202, 4412, 3616, 18, 542, 6207, 12, 5743, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3511, 2170, 12, 2170, 276, 13, 565, 288, 1377, 4237, 6100, 5621, 1377, 22300, 23576, 273, 276, 18, 588, 382, 4424, 5621, 1377, 509, 1835, 273, 276, 18, 588, 5694, 7675, 2819, 300, 23576, 18, 4482, 300, 23576, 18, 4083, 31, 1377, 509, 2072, 273, 276, 18, 588, 5694, 7675, 4210, 300, 23576, 18, 3669, 300, 23576, 18, 9176, 31, 1377, 368, 9809, 5190, 353, 3712, 3430, 471, 13801, 622, 326, 1760, 2002, 11055, 18, 1377, 13037, 21247, 416, 1734, 273, 3824, 5190, 18, 588, 16028, 1225, 5621, 1377, 3824, 5190, 18, 542, 5694, 12, 267, 4424, 18, 4482, 16, 23576, 18, 3669, 16, 21247, 416, 1734, 18, 2819, 16, 2072, 1769, 1377, 509, 1515, 273, 2 ]
if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { return; } origin = methodNode.getMethodOrigin();
if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { return; } origin = methodNode.getMethodOrigin();
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2308, 1305, 12, 54, 10340, 548, 27598, 16, 19817, 548, 1592, 548, 13, 288, 202, 202, 3813, 42, 9808, 5621, 202, 202, 430, 261, 1673, 548, 422, 27598, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 921, 797, 10756, 288, 1082, 202, 588, 54, 10340, 7675, 8869, 12, 24, 1769, 202, 202, 97, 202, 202, 1305, 907, 707, 907, 273, 1623, 1305, 12, 1673, 548, 1769, 202, 202, 54, 10340, 3120, 4026, 273, 446, 31, 202, 202, 430, 261, 2039, 907, 422, 446, 747, 707, 907, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 1082, 202, 430, 261, 291, 3120, 10756, 288, 9506, 202, 2039, 907, 273, 4170, 10340, 7675, 588, 4818, 7675, 588, 921, 797, 7675, 3072, 1305, 12, 1673, 548, 1769, 9506, 202, 10012, 273, 707, 907, 18, 588, 1305, 7571, 5621, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 2039, 907, 422, 446, 747, 707, 907, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 1082, 202, 759, 1172, 67, 318, 536, 12, 7352, 16, 1652, 11272, 1082, 202, 2463, 31, 368, 1441, 42, 202, 202, 97, 202, 202, 10012, 273, 707, 907, 18, 588, 1305, 7571, 5621, 202, 202, 907, 1417, 273, 707, 907, 18, 588, 2250, 907, 5621, 202, 202, 759, 707, 907, 18, 542, 11750, 12, 2039, 907, 18, 4880, 67, 13085, 1435, 397, 404, 1769, 202, 202, 430, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2308, 1305, 12, 54, 10340, 548, 27598, 16, 19817, 548, 1592, 548, 13, 288, 202, 202, 3813, 42, 9808, 5621, 202, 202, 430, 261, 1673, 548, 422, 27598, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 430, 261, 2211, 422, 4170, 10340, 7675, 588, 4818, 7675, 588, 921, 797, 10756, 288, 1082, 202, 588, 54, 10340, 7675, 8869, 12, 24, 1769, 202, 202, 97, 202, 202, 1305, 907, 707, 907, 273, 1623, 1305, 12, 1673, 548, 1769, 202, 202, 54, 10340, 3120, 4026, 273, 446, 31, 202, 202, 430, 261, 2039, 907, 422, 446, 747, 707, 907, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 1082, 202, 430, 261, 291, 3120, 2 ]
public org.quickfix.field.NetMoney getNetMoney() throws FieldNotFound { org.quickfix.field.NetMoney value = new org.quickfix.field.NetMoney();
public quickfix.field.NetMoney getNetMoney() throws FieldNotFound { quickfix.field.NetMoney value = new quickfix.field.NetMoney();
public org.quickfix.field.NetMoney getNetMoney() throws FieldNotFound { org.quickfix.field.NetMoney value = new org.quickfix.field.NetMoney(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/CrossOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 336, 7308, 23091, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 336, 7308, 23091, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 7308, 23091, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
saveAs( "OdaDataSourceDesignerState_out.xml" ); compareTextFile( "OdaDataSourceDesignerState_golden.xml", "OdaDataSourceDesignerState_out.xml" );
save( ); compareTextFile( "OdaDataSourceDesignerState_golden.xml" );
public void testDesignerState( ) throws Exception { openDesign( INPUT_FILE ); OdaDataSourceHandle sourceHandle = (OdaDataSourceHandle) designHandle .findDataSource( "myDataSource1" ); //$NON-NLS-1$ DesignerState designerState = new ModelOdaAdapter( ) .newOdaDesignerState( sourceHandle ); assertEquals( "1.1", designerState.getVersion( ) ); //$NON-NLS-1$ DesignerStateContent stateContent = designerState.getStateContent( ); assertEquals( "content as blob", new String( stateContent //$NON-NLS-1$ .getStateContentAsBlob( ), "8859_1" ) ); //$NON-NLS-1$ assertNull( stateContent.getStateContentAsString( ) ); designerState.setVersion( "2.0" ); //$NON-NLS-1$ designerState.setNewStateContentAsString( "content as string 2.0" ); //$NON-NLS-1$ new ModelOdaAdapter( ).updateROMDesignerState( designerState, sourceHandle ); saveAs( "OdaDataSourceDesignerState_out.xml" ); //$NON-NLS-1$ compareTextFile( "OdaDataSourceDesignerState_golden.xml", //$NON-NLS-1$ "OdaDataSourceDesignerState_out.xml" ); //$NON-NLS-1$ sourceHandle.setDesignerState( null ); assertNull( sourceHandle.getDesignerState( ) ); new ModelOdaAdapter( ) .updateROMDesignerState( designerState, sourceHandle ); OdaDesignerStateHandle romDesignerState = sourceHandle.getDesignerState( ); assertNotNull( romDesignerState ); assertEquals( "2.0", romDesignerState.getVersion( ) ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/279e880701212f0b542ee4033d1023e75d24ac39/OdaDataSourceAdapterTest.java/clean/model/org.eclipse.birt.report.model.adapter.oda.tests/test/org/eclipse/birt/report/model/adapter/oda/api/OdaDataSourceAdapterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15478, 264, 1119, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 12943, 67, 3776, 11272, 202, 202, 51, 2414, 8597, 3259, 1084, 3259, 273, 261, 51, 2414, 8597, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 8597, 12, 315, 4811, 8597, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 15478, 264, 1119, 8281, 264, 1119, 273, 394, 3164, 51, 2414, 4216, 12, 262, 9506, 202, 18, 2704, 51, 2414, 15478, 264, 1119, 12, 1084, 3259, 11272, 202, 202, 11231, 8867, 12, 315, 21, 18, 21, 3113, 8281, 264, 1119, 18, 588, 1444, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 15478, 264, 1119, 1350, 919, 1350, 273, 8281, 264, 1119, 18, 588, 1119, 1350, 12, 11272, 202, 202, 11231, 8867, 12, 315, 1745, 487, 4795, 3113, 394, 514, 12, 919, 1350, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 18, 588, 1119, 1350, 1463, 9405, 12, 262, 16, 315, 17258, 67, 21, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 2041, 12, 919, 1350, 18, 588, 1119, 1350, 8092, 12, 262, 11272, 202, 202, 16934, 264, 1119, 18, 542, 1444, 12, 315, 22, 18, 20, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 16934, 264, 1119, 18, 542, 1908, 1119, 1350, 8092, 12, 315, 1745, 487, 533, 576, 18, 20, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2704, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15478, 264, 1119, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 12943, 67, 3776, 11272, 202, 202, 51, 2414, 8597, 3259, 1084, 3259, 273, 261, 51, 2414, 8597, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 8597, 12, 315, 4811, 8597, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 15478, 264, 1119, 8281, 264, 1119, 273, 394, 3164, 51, 2414, 4216, 12, 262, 9506, 202, 18, 2704, 51, 2414, 15478, 264, 1119, 12, 1084, 3259, 11272, 202, 202, 11231, 8867, 12, 315, 21, 18, 21, 3113, 8281, 264, 1119, 18, 588, 1444, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 15478, 264, 1119, 2 ]
public void doSave(Project project, File file) throws SaveException { File lastArchiveFile = new File(file.getAbsolutePath() + "~"); File tempFile = null; try { tempFile = createTempFile(file); } catch (FileNotFoundException e) { throw new SaveException( "Failed to archive the previous file version", e); } catch (IOException e) { throw new SaveException( "Failed to archive the previous file version", e); } try { project.setFile(file); project.setVersion(ArgoVersion.getVersion()); project.setPersistenceVersion(PERSISTENCE_VERSION); FileOutputStream stream = new FileOutputStream(file); writeProject(project, stream); stream.close(); String path = file.getParent(); if (LOG.isInfoEnabled()) { LOG.info("Dir ==" + path); } // if save did not raise an exception // and name+"#" exists move name+"#" to name+"~" // this is the correct backup file if (lastArchiveFile.exists()) { lastArchiveFile.delete(); } if (tempFile.exists() && !lastArchiveFile.exists()) { tempFile.renameTo(lastArchiveFile); } if (tempFile.exists()) { tempFile.delete(); } } catch (Exception e) { LOG.error("Exception occured during save attempt", e); // frank: in case of exception // delete name and mv name+"#" back to name if name+"#" exists // this is the "rollback" to old file file.delete(); tempFile.renameTo(file); // we have to give a message to user and set the system to unsaved! throw new SaveException(e); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/a038faf9f5f8ec0d052f96da0b2eee418ebc490e/UmlFilePersister.java/buggy/src_new/org/argouml/persistence/UmlFilePersister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2896, 4755, 12, 4109, 4406, 16, 812, 768, 13, 15069, 4755, 503, 95, 25579, 292, 689, 7465, 812, 33, 2704, 812, 12, 768, 18, 588, 10368, 743, 1435, 9078, 98, 8863, 25579, 278, 30752, 812, 33, 2011, 31, 698, 95, 5814, 812, 33, 2640, 20181, 12, 768, 1769, 97, 14683, 12, 812, 3990, 73, 15329, 12849, 2704, 4755, 503, 2932, 2925, 869, 991, 427, 546, 881, 266, 2084, 768, 1589, 3113, 73, 1769, 97, 14683, 12, 14106, 73, 15329, 12849, 2704, 4755, 503, 2932, 2925, 869, 991, 427, 546, 881, 266, 2084, 768, 1589, 3113, 73, 1769, 97, 698, 95, 4406, 18, 542, 812, 12, 768, 1769, 4406, 18, 542, 1444, 12, 686, 3240, 1444, 18, 588, 1444, 10663, 4406, 18, 542, 13182, 1444, 12, 3194, 18732, 7535, 67, 5757, 1769, 812, 4632, 3256, 33, 2704, 812, 4632, 12, 768, 1769, 2626, 4109, 12, 4406, 16, 3256, 1769, 3256, 18, 4412, 5621, 780, 803, 33, 768, 18, 588, 3054, 5621, 430, 12, 4842, 18, 291, 966, 1526, 10756, 95, 4842, 18, 1376, 2932, 1621, 31713, 15, 803, 1769, 97, 759, 430, 14077, 350, 2135, 2033, 784, 304, 4064, 759, 464, 529, 9078, 17133, 1808, 81, 1527, 1069, 9078, 17133, 1917, 339, 9078, 98, 6, 759, 2211, 376, 76, 557, 280, 2607, 9572, 768, 430, 12, 2722, 7465, 812, 18, 1808, 10756, 95, 2722, 7465, 812, 18, 3733, 5621, 97, 430, 12, 5814, 812, 18, 1808, 1435, 10, 10, 5, 2722, 7465, 812, 18, 1808, 10756, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2896, 4755, 12, 4109, 4406, 16, 812, 768, 13, 15069, 4755, 503, 95, 25579, 292, 689, 7465, 812, 33, 2704, 812, 12, 768, 18, 588, 10368, 743, 1435, 9078, 98, 8863, 25579, 278, 30752, 812, 33, 2011, 31, 698, 95, 5814, 812, 33, 2640, 20181, 12, 768, 1769, 97, 14683, 12, 812, 3990, 73, 15329, 12849, 2704, 4755, 503, 2932, 2925, 869, 991, 427, 546, 881, 266, 2084, 768, 1589, 3113, 73, 1769, 97, 14683, 12, 14106, 73, 15329, 12849, 2704, 4755, 503, 2932, 2925, 869, 991, 427, 546, 881, 266, 2084, 768, 1589, 3113, 73, 1769, 97, 698, 95, 4406, 18, 542, 812, 12, 768, 1769, 4406, 18, 542, 1444, 12, 686, 3240, 1444, 18, 588, 2 ]
rule.setProperty( MapRule.DISPLAY_MEMBER, DEUtil .resolveNull( display.getText( ) ) );
rule.setProperty( MapRule.DISPLAY_MEMBER, DEUtil.resolveNull( display.getText( ) ) );
protected void okPressed( ) { try { // provider.setTestExpression( DEUtil.resolveNull( // expression.getText( ) ) ); if ( handle == null ) { MapRule rule = StructureFactory.createMapRule( ); rule.setProperty( HighlightRule.OPERATOR_MEMBER, DEUtil.resolveNull( getValueForOperator( operator .getText( ) ) ) ); rule.setProperty( HighlightRule.VALUE1_MEMBER, DEUtil .resolveNull( value1.getText( ) ) ); rule.setProperty( HighlightRule.VALUE2_MEMBER, DEUtil .resolveNull( value2.getText( ) ) ); rule.setProperty( MapRule.DISPLAY_MEMBER, DEUtil .resolveNull( display.getText( ) ) ); // set test expression for new map rule rule.setTestExpression( DEUtil.resolveNull( expression .getText( ) ) ); handle = provider.doAddItem( rule, handleCount ); } else { handle .setOperator( DEUtil .resolveNull( getValueForOperator( operator .getText( ) ) ) ); handle.setValue1( DEUtil.resolveNull( value1.getText( ) ) ); handle.setValue2( DEUtil.resolveNull( value2.getText( ) ) ); handle.setDisplay( DEUtil.resolveNull( display.getText( ) ) ); handle.setTestExpression( DEUtil.resolveNull( expression .getText( ) ) ); } } catch ( Exception e ) { WidgetUtil.processError( getShell( ), e ); } super.okPressed( ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/47cb9d1e314ec934b60372a05286146a66022b78/MapRuleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/MapRuleBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 2893, 18, 542, 4709, 2300, 12, 2030, 1304, 18, 10828, 2041, 12, 1082, 202, 759, 2652, 18, 588, 1528, 12, 262, 262, 11272, 1082, 202, 430, 261, 1640, 422, 446, 262, 1082, 202, 95, 9506, 202, 863, 2175, 1720, 273, 13348, 1733, 18, 2640, 863, 2175, 12, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 31386, 2175, 18, 26110, 67, 19630, 16, 25083, 202, 1639, 1304, 18, 10828, 2041, 12, 2366, 1290, 5592, 12, 3726, 6862, 9506, 202, 18, 588, 1528, 12, 262, 262, 262, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 31386, 2175, 18, 4051, 21, 67, 19630, 16, 2030, 1304, 25083, 202, 18, 10828, 2041, 12, 460, 21, 18, 588, 1528, 12, 262, 262, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 31386, 2175, 18, 4051, 22, 67, 19630, 16, 2030, 1304, 25083, 202, 18, 10828, 2041, 12, 460, 22, 18, 588, 1528, 12, 262, 262, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 1635, 2175, 18, 17463, 67, 19630, 16, 2030, 1304, 25083, 202, 18, 10828, 2041, 12, 2562, 18, 588, 1528, 12, 262, 262, 11272, 9506, 202, 759, 444, 1842, 2652, 364, 394, 852, 1720, 9506, 202, 5345, 18, 542, 4709, 2300, 12, 2030, 1304, 18, 10828, 2041, 12, 2652, 25083, 202, 18, 588, 1528, 12, 262, 262, 11272, 9506, 202, 4110, 273, 2893, 18, 2896, 986, 1180, 12, 1720, 16, 1640, 1380, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 759, 2893, 18, 542, 4709, 2300, 12, 2030, 1304, 18, 10828, 2041, 12, 1082, 202, 759, 2652, 18, 588, 1528, 12, 262, 262, 11272, 1082, 202, 430, 261, 1640, 422, 446, 262, 1082, 202, 95, 9506, 202, 863, 2175, 1720, 273, 13348, 1733, 18, 2640, 863, 2175, 12, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 31386, 2175, 18, 26110, 67, 19630, 16, 25083, 202, 1639, 1304, 18, 10828, 2041, 12, 2366, 1290, 5592, 12, 3726, 6862, 9506, 202, 18, 588, 1528, 12, 262, 262, 262, 11272, 9506, 202, 5345, 18, 542, 1396, 12, 31386, 2175, 18, 4051, 21, 67, 19630, 2 ]
AtomContainer acetone = new org.openscience.cdk.AtomContainer(); Atom c1 = new Atom("C"); Atom c2 = new Atom("C"); Atom o = new Atom("O"); Atom c3 = new Atom("C");
AtomContainer acetone = builder.newAtomContainer(); Atom c1 = builder.newAtom("C"); Atom c2 = builder.newAtom("C"); Atom o = builder.newAtom("O"); Atom c3 = builder.newAtom("C");
public void testCrystal_AtomContainer() { AtomContainer acetone = new org.openscience.cdk.AtomContainer(); Atom c1 = new Atom("C"); Atom c2 = new Atom("C"); Atom o = new Atom("O"); Atom c3 = new Atom("C"); acetone.addAtom(c1); acetone.addAtom(c2); acetone.addAtom(c3); acetone.addAtom(o); Bond b1 = new Bond(c1, c2,1); Bond b2 = new Bond(c1, o, 2); Bond b3 = new Bond(c1, c3,1); acetone.addBond(b1); acetone.addBond(b2); acetone.addBond(b3); Crystal crystal = new Crystal(acetone); assertNotNull(crystal); assertEquals(4, crystal.getAtomCount()); assertEquals(3, crystal.getBondCount()); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/d21f277c120791acd10319bbfe4f2deaa0db1306/CrystalTest.java/buggy/src/org/openscience/cdk/test/CrystalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12893, 31365, 67, 3641, 2170, 1435, 288, 3639, 7149, 2170, 1721, 278, 476, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 2170, 5621, 3639, 7149, 276, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 276, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 320, 273, 394, 7149, 2932, 51, 8863, 3639, 7149, 276, 23, 273, 394, 7149, 2932, 39, 8863, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 21, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 22, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 23, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 83, 1769, 3639, 605, 1434, 324, 21, 273, 394, 605, 1434, 12, 71, 21, 16, 276, 22, 16, 21, 1769, 3639, 605, 1434, 324, 22, 273, 394, 605, 1434, 12, 71, 21, 16, 320, 16, 576, 1769, 3639, 605, 1434, 324, 23, 273, 394, 605, 1434, 12, 71, 21, 16, 276, 23, 16, 21, 1769, 3639, 1721, 278, 476, 18, 1289, 9807, 12, 70, 21, 1769, 3639, 1721, 278, 476, 18, 1289, 9807, 12, 70, 22, 1769, 3639, 1721, 278, 476, 18, 1289, 9807, 12, 70, 23, 1769, 7734, 14998, 31365, 4422, 31365, 273, 394, 14998, 31365, 12, 1077, 278, 476, 1769, 3639, 25395, 12, 3353, 31365, 1769, 3639, 1815, 8867, 12, 24, 16, 4422, 31365, 18, 588, 3641, 1380, 10663, 3639, 1815, 8867, 12, 23, 16, 4422, 31365, 18, 588, 9807, 1380, 10663, 565, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12893, 31365, 67, 3641, 2170, 1435, 288, 3639, 7149, 2170, 1721, 278, 476, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 3641, 2170, 5621, 3639, 7149, 276, 21, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 276, 22, 273, 394, 7149, 2932, 39, 8863, 3639, 7149, 320, 273, 394, 7149, 2932, 51, 8863, 3639, 7149, 276, 23, 273, 394, 7149, 2932, 39, 8863, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 21, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 22, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 71, 23, 1769, 3639, 1721, 278, 476, 18, 1289, 3641, 12, 83, 1769, 3639, 605, 1434, 324, 21, 273, 2 ]
df = new DecimalFormat( getNumericPattern( ) );
df = computeDecimalFormat( dAxisValue, dAxisStep );
final double computeAxisLabelThickness( IDisplayServer xs, Label la, int iOrientation ) throws ChartException { if ( !la.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.unset.label.visibility", //$NON-NLS-1$ new Object[]{ la.getCaption( ).getValue( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } if ( !la.isVisible( ) ) { return 0; } String sText; double[] da = getTickCordinates( ); if ( iOrientation == VERTICAL ) { double dW, dMaxW = 0, dMaxW2 = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); int i = 0; while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); dW = computeWidth( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxW2 = Math.max( dW, dMaxW2 ); } else if ( dW > dMaxW ) { dMaxW = dW; } i++; } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxW2 = Math.max( dW, dMaxW2 ); } else if ( dW > dMaxW ) { dMaxW = dW; } dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxW2 = Math.max( dW, dMaxW2 ); } else if ( dW > dMaxW ) { dMaxW = dW; } dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); int iStep = asInteger( getStep( ) ); int iUnit = asInteger( getUnit( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dW = computeWidth( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxW2 = Math.max( dW, dMaxW2 ); } else if ( dW > dMaxW ) { dMaxW = dW; } cdtAxisValue = cdtAxisValue.forward( iUnit, iStep ); } } return dMaxW + dMaxW2; } else if ( iOrientation == HORIZONTAL ) { double dH, dMaxH = 0, dMaxH2 = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); int i = 0; while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); dH = computeHeight( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxH2 = Math.max( dH, dMaxH2 ); } else if ( dH > dMaxH ) { dMaxH = dH; } i++; } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxH2 = Math.max( dH, dMaxH2 ); } else if ( dH > dMaxH ) { dMaxH = dH; } dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxH2 = Math.max( dH, dMaxH2 ); } else if ( dH > dMaxH ) { dMaxH = dH; } dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); final int iStep = asInteger( getStep( ) ); final int iUnit = asInteger( getUnit( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); dH = computeHeight( xs, la ); if ( isAxisLabelStaggered( ) && baTickLabelStaggered[i] ) { dMaxH2 = Math.max( dH, dMaxH2 ); } else if ( dH > dMaxH ) { dMaxH = dH; } cdtAxisValue.forward( iUnit, iStep ); } } return dMaxH + dMaxH2; } return 0; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1db269ddab11c27e468307ae5cd39daa0fada25b/AutoScale.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 1645, 3671, 6558, 2224, 1315, 19517, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 14097, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 11821, 18, 291, 694, 6207, 12, 262, 262, 202, 202, 95, 1082, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 6862, 202, 7984, 503, 18, 13990, 2689, 16, 6862, 202, 6, 4064, 18, 18579, 18, 1925, 18, 14422, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 2704, 1033, 63, 7073, 25083, 202, 11821, 18, 588, 21158, 12, 262, 18, 24805, 12, 262, 6862, 202, 5779, 6862, 202, 5058, 18, 588, 18731, 12, 436, 5111, 18, 588, 57, 3916, 12, 262, 262, 11272, 202, 202, 97, 202, 202, 430, 261, 401, 11821, 18, 291, 6207, 12, 262, 262, 202, 202, 95, 1082, 202, 2463, 374, 31, 202, 202, 97, 202, 202, 780, 272, 1528, 31, 202, 202, 9056, 8526, 5248, 273, 3181, 1200, 39, 27934, 12, 11272, 202, 202, 430, 261, 277, 14097, 422, 29109, 262, 202, 202, 95, 1082, 202, 9056, 302, 59, 16, 302, 2747, 59, 273, 374, 16, 302, 2747, 59, 22, 273, 374, 31, 1082, 202, 430, 261, 261, 3130, 12, 262, 473, 9204, 262, 422, 9204, 747, 324, 4457, 5587, 262, 1082, 202, 95, 9506, 202, 6385, 14065, 3198, 3780, 77, 273, 4303, 12, 11272, 9506, 202, 6385, 509, 277, 5096, 2802, 273, 261, 3130, 12, 262, 422, 467, 2918, 18, 4594, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 1645, 3671, 6558, 2224, 1315, 19517, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 14097, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 11821, 18, 291, 694, 6207, 12, 262, 262, 202, 202, 95, 1082, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 6862, 202, 7984, 503, 18, 13990, 2689, 16, 6862, 202, 6, 4064, 18, 18579, 18, 1925, 18, 14422, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 2704, 1033, 63, 7073, 25083, 202, 11821, 18, 588, 21158, 12, 262, 18, 24805, 12, 262, 6862, 202, 5779, 6862, 202, 5058, 18, 588, 18731, 12, 436, 5111, 18, 588, 57, 3916, 2 ]
public void modifyText( ModifyEvent e )
public void widgetSelected( SelectionEvent e )
private void createBookmarkBar( boolean isRequired ) { String label; if ( isRequired ) { label = REQUIED_MARK + LABEL_BOOKMARK; } else { label = LABEL_BOOKMARK; } new Label( displayArea, SWT.NONE ).setText( label ); bookmarkEditor = new Text( displayArea, SWT.BORDER | SWT.SINGLE ); bookmarkEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); bookmarkEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); createExpressionButton( displayArea, bookmarkEditor ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3e2c1be1ac9faee6d7ec61134399939c0f19b485/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 22966, 5190, 12, 1250, 14967, 262, 202, 95, 202, 202, 780, 1433, 31, 202, 202, 430, 261, 14967, 262, 202, 202, 95, 1082, 202, 1925, 273, 2438, 8627, 2056, 67, 12693, 397, 18210, 67, 28163, 12693, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 1925, 273, 18210, 67, 28163, 12693, 31, 202, 202, 97, 202, 202, 2704, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 262, 18, 542, 1528, 12, 1433, 11272, 202, 202, 3618, 3355, 6946, 273, 394, 3867, 12, 2562, 5484, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 11272, 202, 202, 3618, 3355, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 3618, 3355, 6946, 18, 1289, 11047, 2223, 12, 394, 9518, 2223, 12, 262, 288, 1082, 202, 482, 918, 5612, 1528, 12, 9518, 1133, 425, 262, 1082, 202, 95, 9506, 202, 2725, 14388, 12, 11272, 1082, 202, 97, 202, 202, 97, 11272, 202, 202, 2640, 2300, 3616, 12, 2562, 5484, 16, 13696, 6946, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 22966, 5190, 12, 1250, 14967, 262, 202, 95, 202, 202, 780, 1433, 31, 202, 202, 430, 261, 14967, 262, 202, 202, 95, 1082, 202, 1925, 273, 2438, 8627, 2056, 67, 12693, 397, 18210, 67, 28163, 12693, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 1925, 273, 18210, 67, 28163, 12693, 31, 202, 202, 97, 202, 202, 2704, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 262, 18, 542, 1528, 12, 1433, 11272, 202, 202, 3618, 3355, 6946, 273, 394, 3867, 12, 2562, 5484, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 11272, 202, 202, 3618, 3355, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 2 ]
empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.getInserted()));
empty.setCreated(PrimitiveTypesMapper.getTimestamp(image.getCreated())); empty.setInserted( PrimitiveTypesMapper.getTimestamp(image.getInserted()));
public static void fillImage(Image image, ImageData empty) { //Fill in the data coming from OMEDS object. empty.setID(image.getID()); empty.setName(image.getName()); empty.setDescription(image.getDescription()); empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.getInserted())); //Fill in the data coming from Experimenter. Experimenter owner = image.getOwner(); empty.setOwnerID(owner.getID()); empty.setOwnerFirstName(owner.getFirstName()); empty.setOwnerLastName(owner.getLastName()); empty.setOwnerEmail(owner.getEmail()); empty.setOwnerInstitution(owner.getInstitution()); //Fill in the data coming from Group. Group group = owner.getGroup(); empty.setOwnerGroupID(group.getID()); empty.setOwnerGroupName(group.getName()); //dataset summary list. List datasets = new ArrayList(); Iterator i = image.getDatasets().iterator(); Dataset d; while (i.hasNext()) { d = (Dataset) i.next(); datasets.add(new DatasetSummary(d.getID(), d.getName())); } empty.setDatasets(datasets); // pixelsDescription list. if (image.getDefaultPixels() != null) { List pixels = fillPixels(image.getDefaultPixels()); empty.setPixels(pixels); } }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/5dbbc3e7786c9d237cda00632eddf9d6b5a29870/ImageMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/ImageMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3636, 2040, 12, 2040, 1316, 16, 3421, 751, 1008, 13, 202, 95, 1082, 202, 759, 8026, 316, 326, 501, 19283, 628, 531, 958, 3948, 733, 18, 202, 202, 5531, 18, 542, 734, 12, 2730, 18, 588, 734, 10663, 202, 202, 5531, 18, 542, 461, 12, 2730, 18, 17994, 10663, 202, 202, 5531, 18, 542, 3291, 12, 2730, 18, 588, 3291, 10663, 202, 202, 5531, 18, 542, 6119, 12, 4921, 18, 1132, 951, 12, 2730, 18, 588, 6119, 1435, 10019, 202, 202, 5531, 18, 542, 27329, 12, 4921, 18, 1132, 951, 12, 2730, 18, 588, 27329, 1435, 10019, 9506, 202, 759, 8026, 316, 326, 501, 19283, 628, 1312, 457, 381, 2328, 18, 202, 202, 424, 457, 381, 2328, 3410, 273, 1316, 18, 588, 5541, 5621, 202, 202, 5531, 18, 542, 5541, 734, 12, 8443, 18, 588, 734, 10663, 202, 202, 5531, 18, 542, 5541, 3759, 461, 12, 8443, 18, 588, 3759, 461, 10663, 202, 202, 5531, 18, 542, 5541, 3024, 461, 12, 8443, 18, 588, 3024, 461, 10663, 202, 202, 5531, 18, 542, 5541, 4134, 12, 8443, 18, 588, 4134, 10663, 202, 202, 5531, 18, 542, 5541, 382, 14278, 12, 8443, 18, 588, 382, 14278, 10663, 1082, 202, 759, 8026, 316, 326, 501, 19283, 628, 3756, 18, 202, 202, 1114, 1041, 273, 3410, 18, 588, 1114, 5621, 202, 202, 5531, 18, 542, 5541, 30876, 12, 1655, 18, 588, 734, 10663, 202, 202, 5531, 18, 542, 5541, 3943, 12, 1655, 18, 17994, 10663, 9506, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3636, 2040, 12, 2040, 1316, 16, 3421, 751, 1008, 13, 202, 95, 1082, 202, 759, 8026, 316, 326, 501, 19283, 628, 531, 958, 3948, 733, 18, 202, 202, 5531, 18, 542, 734, 12, 2730, 18, 588, 734, 10663, 202, 202, 5531, 18, 542, 461, 12, 2730, 18, 17994, 10663, 202, 202, 5531, 18, 542, 3291, 12, 2730, 18, 588, 3291, 10663, 202, 202, 5531, 18, 542, 6119, 12, 4921, 18, 1132, 951, 12, 2730, 18, 588, 6119, 1435, 10019, 202, 202, 5531, 18, 542, 27329, 12, 4921, 18, 1132, 951, 12, 2730, 18, 588, 27329, 1435, 10019, 9506, 202, 759, 8026, 316, 326, 501, 19283, 628, 1312, 457, 381, 2328, 18, 202, 202, 424, 2 ]
return RubyRegexp.newRegexp((RubyString) other, 0, null).match(this);
throw getRuntime().newTypeError("type mismatch: String given");
public IRubyObject match(IRubyObject other) { if (other instanceof RubyRegexp) { return ((RubyRegexp) other).match(this); } else if (other instanceof RubyString) { return RubyRegexp.newRegexp((RubyString) other, 0, null).match(this); } return other.callMethod(getRuntime().getCurrentContext(), "=~", this); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/7b23b70f45474e63112c871e538a0247a1f5722b/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 845, 12, 7937, 10340, 921, 1308, 13, 288, 202, 202, 430, 261, 3011, 1276, 19817, 14621, 13, 288, 1082, 202, 2463, 14015, 54, 10340, 14621, 13, 1308, 2934, 1916, 12, 2211, 1769, 202, 202, 97, 469, 309, 261, 3011, 1276, 19817, 780, 13, 288, 1082, 202, 2463, 19817, 14621, 18, 2704, 14621, 12443, 54, 10340, 780, 13, 1308, 16, 374, 16, 446, 2934, 1916, 12, 2211, 1769, 202, 202, 97, 202, 202, 2463, 1308, 18, 1991, 1305, 12, 588, 5576, 7675, 588, 3935, 1042, 9334, 29199, 98, 3113, 333, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 845, 12, 7937, 10340, 921, 1308, 13, 288, 202, 202, 430, 261, 3011, 1276, 19817, 14621, 13, 288, 1082, 202, 2463, 14015, 54, 10340, 14621, 13, 1308, 2934, 1916, 12, 2211, 1769, 202, 202, 97, 469, 309, 261, 3011, 1276, 19817, 780, 13, 288, 1082, 202, 2463, 19817, 14621, 18, 2704, 14621, 12443, 54, 10340, 780, 13, 1308, 16, 374, 16, 446, 2934, 1916, 12, 2211, 1769, 202, 202, 97, 202, 202, 2463, 1308, 18, 1991, 1305, 12, 588, 5576, 7675, 588, 3935, 1042, 9334, 29199, 98, 3113, 333, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
__log.info("Using database " + dbProductName + " major version " + dbMajorVer);
__log.info("Using database " + dbProductName + " major version " + dbMajorVer);
private String guessDialect(DataSource dataSource) throws Exception { String dialect = null; // Open a connection and use that connection to figure out database // product name/version number in order to decide which Hibernate // dialect to use. Connection conn = dataSource.getConnection(); try { DatabaseMetaData metaData = conn.getMetaData(); if (metaData != null) { String dbProductName = metaData.getDatabaseProductName(); int dbMajorVer = metaData.getDatabaseMajorVersion(); __log.info("Using database " + dbProductName + " major version " + dbMajorVer); DialectFactory.DatabaseDialectMapper mapper = (DialectFactory.DatabaseDialectMapper) HIBERNATE_DIALECTS .get(dbProductName); if (mapper != null) { dialect = mapper.getDialectClass(dbMajorVer); } else { Dialect hbDialect = DialectFactory.determineDialect( dbProductName, dbMajorVer); if (hbDialect != null) dialect = hbDialect.getClass().getName(); } } } finally { conn.close(); } if (dialect == null) { __log .info("Cannot determine hibernate dialect for this database: using the default one."); dialect = DEFAULT_HIBERNATE_DIALECT; } assert dialect != null; return dialect; }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/1a15505e6abed48284394b7c9c2a03b5f1150491/OdeLifeCycle.java/clean/jbi/src/main/java/org/apache/ode/jbi/OdeLifeCycle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7274, 23030, 12, 8597, 10233, 13, 1216, 1185, 288, 3639, 514, 10864, 273, 446, 31, 3639, 368, 3502, 279, 1459, 471, 999, 716, 1459, 358, 7837, 596, 2063, 3639, 368, 3017, 508, 19, 1589, 1300, 316, 1353, 358, 16288, 1492, 670, 24360, 3639, 368, 10864, 358, 999, 18, 3639, 4050, 1487, 273, 10233, 18, 588, 1952, 5621, 3639, 775, 288, 5411, 5130, 6998, 11651, 273, 1487, 18, 588, 6998, 5621, 5411, 309, 261, 3901, 751, 480, 446, 13, 288, 7734, 514, 1319, 4133, 461, 273, 11651, 18, 588, 4254, 4133, 461, 5621, 7734, 509, 1319, 17581, 3945, 273, 11651, 18, 588, 4254, 17581, 1444, 5621, 7734, 1001, 1330, 18, 1376, 2932, 7736, 2063, 315, 397, 1319, 4133, 461, 397, 315, 7888, 1177, 315, 13491, 397, 1319, 17581, 3945, 1769, 7734, 27420, 1733, 18, 4254, 23030, 4597, 5815, 273, 261, 23030, 1733, 18, 4254, 23030, 4597, 13, 670, 45, 6271, 50, 1777, 67, 2565, 37, 3918, 55, 13491, 263, 588, 12, 1966, 4133, 461, 1769, 7734, 309, 261, 13919, 480, 446, 13, 288, 10792, 10864, 273, 5815, 18, 588, 23030, 797, 12, 1966, 17581, 3945, 1769, 7734, 289, 469, 288, 10792, 27420, 21749, 23030, 273, 27420, 1733, 18, 24661, 23030, 12, 18701, 1319, 4133, 461, 16, 1319, 17581, 3945, 1769, 10792, 309, 261, 76, 70, 23030, 480, 446, 13, 13491, 10864, 273, 21749, 23030, 18, 588, 797, 7675, 17994, 5621, 7734, 289, 5411, 289, 3639, 289, 3095, 288, 5411, 1487, 18, 4412, 5621, 3639, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7274, 23030, 12, 8597, 10233, 13, 1216, 1185, 288, 3639, 514, 10864, 273, 446, 31, 3639, 368, 3502, 279, 1459, 471, 999, 716, 1459, 358, 7837, 596, 2063, 3639, 368, 3017, 508, 19, 1589, 1300, 316, 1353, 358, 16288, 1492, 670, 24360, 3639, 368, 10864, 358, 999, 18, 3639, 4050, 1487, 273, 10233, 18, 588, 1952, 5621, 3639, 775, 288, 5411, 5130, 6998, 11651, 273, 1487, 18, 588, 6998, 5621, 5411, 309, 261, 3901, 751, 480, 446, 13, 288, 7734, 514, 1319, 4133, 461, 273, 11651, 18, 588, 4254, 4133, 461, 5621, 7734, 509, 1319, 17581, 3945, 273, 11651, 18, 588, 4254, 17581, 1444, 5621, 7734, 1001, 1330, 18, 1376, 2932, 7736, 2063, 315, 397, 1319, 2 ]
String value = cssValue.substring( start + 1, end ).trim( ); return value;
if ( cssURLPattern_1.matcher( cssValue ).matches( ) ) { int start = cssValue.indexOf( '(' ); int end = cssValue.indexOf( ')' ); String value = cssValue.substring( start + 1, end ).trim( ); return value; } else if ( cssURLPattern_2.matcher( cssValue ).matches( ) ) { int start = cssValue.indexOf( '(' ); int end = cssValue.indexOf( ')' ); String value = cssValue.substring( start + 1, end ).trim( ); int length = value.length( ); value = value.substring( 1, length - 1 ); value = value.trim( ); return value; } return WRONG_URL;
public static String getURLValue( String cssValue ) { if ( !cssURLPattern.matcher( cssValue ).matches( ) ) return WRONG_URL; int start = cssValue.indexOf( '(' ); int end = cssValue.indexOf( ')' ); String value = cssValue.substring( start + 1, end ).trim( ); return value; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e9642c0515de5486d51361ae53a7ec1d3830834a/CssPropertyUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/CssPropertyUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 19341, 620, 12, 514, 3747, 620, 262, 202, 95, 202, 202, 430, 261, 401, 5212, 1785, 3234, 18, 22761, 12, 3747, 620, 262, 18, 8436, 12, 262, 262, 1082, 202, 2463, 12984, 7390, 67, 1785, 31, 202, 202, 474, 787, 273, 3747, 620, 18, 31806, 12, 7321, 11272, 202, 202, 474, 679, 273, 3747, 620, 18, 31806, 12, 5777, 11272, 9506, 202, 780, 460, 273, 3747, 620, 18, 28023, 12, 787, 397, 404, 16, 679, 262, 18, 5290, 12, 11272, 202, 202, 2463, 460, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 19341, 620, 12, 514, 3747, 620, 262, 202, 95, 202, 202, 430, 261, 401, 5212, 1785, 3234, 18, 22761, 12, 3747, 620, 262, 18, 8436, 12, 262, 262, 1082, 202, 2463, 12984, 7390, 67, 1785, 31, 202, 202, 474, 787, 273, 3747, 620, 18, 31806, 12, 7321, 11272, 202, 202, 474, 679, 273, 3747, 620, 18, 31806, 12, 5777, 11272, 9506, 202, 780, 460, 273, 3747, 620, 18, 28023, 12, 787, 397, 404, 16, 679, 262, 18, 5290, 12, 11272, 202, 202, 2463, 460, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if the separator should be inserted here or what // this thing is supposed to do. Note: The JDK does NOT insert another // component at this place. The JOptionPane only has two panels in it // and there actually are applications that depend on this beeing so. Container sep = createSeparator(); if (sep != null) optionPane.add(sep); Container button = createButtonArea(); if (button != null) { ((JComponent) button).setBorder(buttonBorder); buttonContainer = button; optionPane.add(button); } optionPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11)); optionPane.invalidate(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicOptionPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7171, 1435, 225, 288, 225, 368, 2715, 518, 18, 225, 711, 3802, 7171, 273, 629, 31, 225, 4039, 1234, 273, 23836, 5484, 5621, 225, 309, 261, 3576, 480, 446, 13, 565, 288, 202, 12443, 46, 1841, 13, 1234, 2934, 542, 8107, 12, 2150, 8107, 1769, 202, 3576, 18, 542, 23206, 12, 2150, 23206, 1769, 202, 2150, 5484, 2170, 273, 1234, 31, 202, 3482, 8485, 18, 1289, 12, 3576, 1769, 565, 289, 225, 368, 9852, 30, 18818, 596, 309, 326, 4182, 1410, 506, 9564, 2674, 578, 4121, 225, 368, 333, 7757, 353, 18405, 358, 741, 18, 3609, 30, 1021, 24387, 1552, 4269, 2243, 4042, 225, 368, 1794, 622, 333, 3166, 18, 1021, 804, 1895, 8485, 1338, 711, 2795, 20582, 316, 518, 225, 368, 471, 1915, 6013, 854, 12165, 716, 2447, 603, 333, 27203, 310, 1427, 18, 225, 4039, 5478, 273, 752, 6581, 5621, 225, 309, 261, 10814, 480, 446, 13, 565, 1456, 8485, 18, 1289, 12, 10814, 1769, 225, 4039, 3568, 273, 752, 3616, 5484, 5621, 225, 309, 261, 5391, 480, 446, 13, 565, 288, 202, 12443, 46, 1841, 13, 3568, 2934, 542, 8107, 12, 5391, 8107, 1769, 202, 5391, 2170, 273, 3568, 31, 202, 3482, 8485, 18, 1289, 12, 5391, 1769, 565, 289, 225, 1456, 8485, 18, 542, 8107, 12, 8107, 1733, 18, 2640, 1921, 8107, 12, 2138, 16, 2593, 16, 4648, 16, 4648, 10019, 225, 1456, 8485, 18, 5387, 340, 5621, 225, 289, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7171, 1435, 225, 288, 225, 368, 2715, 518, 18, 225, 711, 3802, 7171, 273, 629, 31, 225, 4039, 1234, 273, 23836, 5484, 5621, 225, 309, 261, 3576, 480, 446, 13, 565, 288, 202, 12443, 46, 1841, 13, 1234, 2934, 542, 8107, 12, 2150, 8107, 1769, 202, 3576, 18, 542, 23206, 12, 2150, 23206, 1769, 202, 2150, 5484, 2170, 273, 1234, 31, 202, 3482, 8485, 18, 1289, 12, 3576, 1769, 565, 289, 225, 368, 9852, 30, 18818, 596, 309, 326, 4182, 1410, 506, 9564, 2674, 578, 4121, 225, 368, 333, 7757, 353, 18405, 358, 741, 18, 3609, 30, 1021, 24387, 1552, 4269, 2243, 4042, 225, 368, 1794, 622, 333, 3166, 18, 1021, 804, 1895, 8485, 1338, 2 ]
ParameterDefn paramDefn = (ParameterDefn) paramMetadataList.get( param -1 );
ParameterDefn paramDefn = (ParameterDefn) paramMetadataArray[param - 1];
public int isNullable( int param ) throws OdaException { logger.logp( java.util.logging.Level.FINE, SPParameterMetaData.class.getName( ), "isNullable", "SPParameterMetaData.isNullable( )" ); assertNotNull( paramMetadataList ); int result = IParameterMetaData.parameterNullableUnknown; ParameterDefn paramDefn = (ParameterDefn) paramMetadataList.get( param -1 ); if ( paramDefn.getIsNullable( ) == java.sql.ParameterMetaData.parameterNullable ) result = IParameterMetaData.parameterNullable; else if ( paramDefn.getIsNullable( ) == java.sql.ParameterMetaData.parameterNoNulls ) result = IParameterMetaData.parameterNoNulls; return result; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ffb75d5484105e6870f95047f1810070f5320bc4/SPParameterMetaData.java/clean/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/SPParameterMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 31384, 12, 509, 579, 262, 1216, 531, 2414, 503, 202, 95, 202, 202, 4901, 18, 1330, 84, 12, 2252, 18, 1367, 18, 11167, 18, 2355, 18, 42, 3740, 16, 9506, 202, 3118, 1662, 6998, 18, 1106, 18, 17994, 12, 262, 16, 9506, 202, 6, 291, 13349, 3113, 9506, 202, 6, 3118, 1662, 6998, 18, 291, 13349, 12, 28796, 11272, 202, 202, 11231, 5962, 12, 579, 2277, 682, 11272, 202, 202, 474, 563, 273, 467, 1662, 6998, 18, 6775, 13349, 4874, 31, 202, 202, 1662, 3262, 82, 579, 3262, 82, 273, 261, 1662, 3262, 82, 13, 579, 2277, 682, 18, 588, 12, 579, 300, 21, 11272, 202, 202, 430, 261, 579, 3262, 82, 18, 588, 2520, 13349, 12, 262, 422, 2252, 18, 4669, 18, 1662, 6998, 18, 6775, 13349, 262, 1082, 202, 2088, 273, 467, 1662, 6998, 18, 6775, 13349, 31, 202, 202, 12107, 309, 261, 579, 3262, 82, 18, 588, 2520, 13349, 12, 262, 422, 2252, 18, 4669, 18, 1662, 6998, 18, 6775, 2279, 31326, 262, 1082, 202, 2088, 273, 467, 1662, 6998, 18, 6775, 2279, 31326, 31, 202, 202, 2463, 563, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 31384, 12, 509, 579, 262, 1216, 531, 2414, 503, 202, 95, 202, 202, 4901, 18, 1330, 84, 12, 2252, 18, 1367, 18, 11167, 18, 2355, 18, 42, 3740, 16, 9506, 202, 3118, 1662, 6998, 18, 1106, 18, 17994, 12, 262, 16, 9506, 202, 6, 291, 13349, 3113, 9506, 202, 6, 3118, 1662, 6998, 18, 291, 13349, 12, 28796, 11272, 202, 202, 11231, 5962, 12, 579, 2277, 682, 11272, 202, 202, 474, 563, 273, 467, 1662, 6998, 18, 6775, 13349, 4874, 31, 202, 202, 1662, 3262, 82, 579, 3262, 82, 273, 261, 1662, 3262, 82, 13, 579, 2277, 682, 18, 588, 12, 579, 300, 21, 11272, 202, 202, 430, 261, 579, 3262, 82, 18, 588, 2520, 2 ]
if (getCommonAncestorContainer() == null ) { collapse(true); }
if (getCommonAncestorContainer() == null || (fStartContainer == fEndContainer && fEndOffset < fStartOffset)) { collapse(true); }
public void setStart(Node refNode, int offset) throws RangeException, DOMException { if( fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if ( !isLegalContainer(refNode)) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } if ( fDocument != refNode.getOwnerDocument() && fDocument != refNode) { throw new DOMException( DOMException.WRONG_DOCUMENT_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null)); } checkIndex(refNode, offset); fStartContainer = refNode; fStartOffset = offset; // If one boundary-point of a Range is set to have a root container other // than the current one for the Range, the Range should be collapsed to // the new position. if (getCommonAncestorContainer() == null ) { collapse(true); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/20aaed291b0cb2d6ac24310f19a72c5555d8a52d/RangeImpl.java/buggy/src/org/apache/xerces/dom/RangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18171, 12, 907, 1278, 907, 16, 509, 1384, 13, 7682, 1216, 8086, 503, 16, 4703, 503, 565, 288, 377, 202, 430, 12, 284, 17650, 13, 288, 377, 202, 202, 12849, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 9347, 67, 7998, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 7998, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 401, 291, 30697, 2170, 12, 1734, 907, 3719, 288, 377, 202, 202, 12849, 394, 8086, 503, 2828, 12, 377, 202, 202, 2655, 503, 18, 9347, 67, 8744, 67, 2399, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 8744, 67, 2399, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 284, 2519, 480, 1278, 907, 18, 588, 5541, 2519, 1435, 597, 284, 2519, 480, 1278, 907, 13, 288, 5411, 604, 394, 4703, 503, 12, 7734, 4703, 503, 18, 7181, 7390, 67, 18450, 67, 9712, 16, 7734, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 7181, 7390, 67, 18450, 67, 9712, 3113, 446, 10019, 3639, 289, 7734, 866, 1016, 12, 1734, 907, 16, 1384, 1769, 7734, 284, 1685, 2170, 273, 1278, 907, 31, 3639, 284, 1685, 2335, 273, 1384, 31, 7734, 368, 971, 1245, 7679, 17, 1153, 434, 279, 8086, 353, 444, 358, 1240, 279, 1365, 1478, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18171, 12, 907, 1278, 907, 16, 509, 1384, 13, 7682, 1216, 8086, 503, 16, 4703, 503, 565, 288, 377, 202, 430, 12, 284, 17650, 13, 288, 377, 202, 202, 12849, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 9347, 67, 7998, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 7998, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 401, 291, 30697, 2170, 12, 1734, 907, 3719, 288, 377, 202, 202, 12849, 394, 8086, 503, 2828, 12, 377, 202, 202, 2655, 503, 18, 9347, 67, 8744, 67, 2399, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 2 ]
case TOTAL_BCAST: type = "TOTAL_BCAST"; break;
case TOTAL_BCAST: type="TOTAL_BCAST"; break;
public String toString() { String type = ""; switch( total_header_type ) { case TOTAL_UNICAST: type = "TOTAL_UNICAST"; break; case TOTAL_BCAST: type = "TOTAL_BCAST"; break; case TOTAL_REQUEST: type = "TOTAL_REQUEST"; break; case TOTAL_NEW_VIEW: type = "NEW_VIEW"; break; case TOTAL_NEW_VIEW_ACK: type = "NEW_VIEW_ACK"; break; case TOTAL_CUM_SEQ_ACK: type = "TOTAL_CUM_SEQ_ACK"; break; case TOTAL_SEQ_ACK: type = "TOTAL_SEQ_ACK"; break; case TOTAL_RESEND: type = "TOTAL_RESEND"; break; default: type = "UNKNOWN TYPE (" + total_header_type + ')'; break; } return "[ TOTAL_OLD: type=" + type + ", seq=" + seq_id + " ]"; }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 565, 514, 618, 273, 1408, 31, 202, 565, 1620, 12, 2078, 67, 3374, 67, 723, 262, 288, 202, 565, 648, 399, 19851, 67, 2124, 2871, 9053, 30, 202, 202, 723, 273, 315, 28624, 67, 2124, 2871, 9053, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 38, 21871, 30, 202, 202, 723, 273, 315, 28624, 67, 38, 21871, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 5519, 30, 202, 202, 723, 273, 315, 28624, 67, 5519, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 12917, 67, 12145, 30, 202, 202, 723, 273, 315, 12917, 67, 12145, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 12917, 67, 12145, 67, 3649, 30, 202, 202, 723, 273, 315, 12917, 67, 12145, 67, 3649, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 39, 2799, 67, 28114, 67, 3649, 30, 202, 202, 723, 273, 315, 28624, 67, 39, 2799, 67, 28114, 67, 3649, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 28114, 67, 3649, 30, 202, 202, 723, 273, 315, 28624, 67, 28114, 67, 3649, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 862, 21675, 30, 202, 202, 723, 273, 315, 28624, 67, 862, 21675, 14432, 202, 202, 8820, 31, 202, 565, 805, 30, 202, 202, 723, 273, 315, 14737, 3463, 7566, 397, 2078, 67, 3374, 67, 723, 397, 5777, 31, 202, 202, 8820, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 565, 514, 618, 273, 1408, 31, 202, 565, 1620, 12, 2078, 67, 3374, 67, 723, 262, 288, 202, 565, 648, 399, 19851, 67, 2124, 2871, 9053, 30, 202, 202, 723, 273, 315, 28624, 67, 2124, 2871, 9053, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 38, 21871, 30, 202, 202, 723, 273, 315, 28624, 67, 38, 21871, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 5519, 30, 202, 202, 723, 273, 315, 28624, 67, 5519, 14432, 202, 202, 8820, 31, 202, 565, 648, 399, 19851, 67, 12917, 67, 12145, 30, 202, 202, 723, 273, 315, 12917, 67, 12145, 14432, 202, 202, 8820, 31, 202, 565, 2 ]
if ( LA25_61=='a' ) {return s186;}
if ( LA25_61=='n' ) {return s186;}
public DFA.State transition(IntStream input) throws RecognitionException { int LA25_61 = input.LA(1); if ( LA25_61=='a' ) {return s186;} return s45; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 2947, 67, 9498, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 2947, 67, 9498, 18920, 82, 11, 262, 288, 2463, 272, 2643, 26, 31, 97, 7734, 327, 272, 7950, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 2947, 67, 9498, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 2947, 67, 9498, 18920, 82, 11, 262, 288, 2463, 272, 2643, 26, 31, 97, 7734, 327, 272, 7950, 31, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super(allowedPermissions);
super();
public CmsPermissionSetCustom(int allowedPermissions) { super(allowedPermissions); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/3490d71abdd2f86b3a1412c7e7311ab55b31ba53/CmsPermissionSetCustom.java/buggy/src/org/opencms/security/CmsPermissionSetCustom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 5041, 694, 3802, 12, 474, 2935, 6521, 13, 288, 3639, 2240, 5621, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 5041, 694, 3802, 12, 474, 2935, 6521, 13, 288, 3639, 2240, 5621, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
java.util.List neighbours = ac.getConnectedAtomsList(atom); if (ringSet.contains(atom)){ return true; } for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (ringSet.contains(neighbour)) { return true; } } return false; }
java.util.List neighbours = ac.getConnectedAtomsList(atom); if (ringSet.contains(atom)){ return true; } for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (ringSet.contains(neighbour)) { return true; } } return false; }
private boolean checkRingLink(IRingSet ringSet, org.openscience.cdk.interfaces.IAtomContainer ac, org.openscience.cdk.interfaces.IAtom atom) { java.util.List neighbours = ac.getConnectedAtomsList(atom); if (ringSet.contains(atom)){ return true; } for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (ringSet.contains(neighbour)) { return true; } } return false; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 866, 10369, 2098, 12, 7937, 310, 694, 9221, 694, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 3179, 13, 288, 202, 202, 6290, 18, 1367, 18, 682, 27662, 273, 1721, 18, 588, 8932, 14280, 682, 12, 7466, 1769, 202, 202, 430, 261, 8022, 694, 18, 12298, 12, 7466, 3719, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 27662, 18, 1467, 5621, 277, 27245, 288, 1082, 202, 45, 3641, 16497, 273, 261, 45, 3641, 13, 11166, 4390, 18, 588, 12, 77, 1769, 1082, 202, 430, 261, 8022, 694, 18, 12298, 12, 11166, 477, 3719, 288, 9506, 202, 2463, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 866, 10369, 2098, 12, 7937, 310, 694, 9221, 694, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 2170, 1721, 16, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 3641, 3179, 13, 288, 202, 202, 6290, 18, 1367, 18, 682, 27662, 273, 1721, 18, 588, 8932, 14280, 682, 12, 7466, 1769, 202, 202, 430, 261, 8022, 694, 18, 12298, 12, 7466, 3719, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 27662, 18, 1467, 5621, 277, 27245, 288, 1082, 202, 45, 3641, 16497, 273, 261, 45, 3641, 13, 11166, 4390, 18, 588, 12, 77, 1769, 2 ]
public PerspectiveSwitchTest(String [] ids) { super("testPerspectiveSwitch:" + ids[0] + "," + ids[1] + ",editor " + ids[2]);
public PerspectiveSwitchTest(String [] ids, boolean tagAsGlobalSummary) { super("testPerspectiveSwitch:" + ids[0] + "," + ids[1] + ",editor " + ids[2], tagAsGlobalSummary);
public PerspectiveSwitchTest(String [] ids) { super("testPerspectiveSwitch:" + ids[0] + "," + ids[1] + ",editor " + ids[2]); this.id1 = ids[0]; this.id2 = ids[1]; this.activeEditor = ids[2]; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/82d9d864cc11f39e4e74f4a8a7d2a80aa9e10424/PerspectiveSwitchTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/performance/PerspectiveSwitchTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 453, 414, 16772, 10200, 4709, 12, 780, 5378, 3258, 13, 288, 3639, 2240, 2932, 3813, 14781, 16772, 10200, 2773, 397, 3258, 63, 20, 65, 397, 5753, 397, 3258, 63, 21, 65, 397, 3104, 9177, 315, 397, 3258, 63, 22, 19226, 3639, 333, 18, 350, 21, 273, 3258, 63, 20, 15533, 3639, 333, 18, 350, 22, 273, 3258, 63, 21, 15533, 3639, 333, 18, 3535, 6946, 273, 3258, 63, 22, 15533, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 453, 414, 16772, 10200, 4709, 12, 780, 5378, 3258, 13, 288, 3639, 2240, 2932, 3813, 14781, 16772, 10200, 2773, 397, 3258, 63, 20, 65, 397, 5753, 397, 3258, 63, 21, 65, 397, 3104, 9177, 315, 397, 3258, 63, 22, 19226, 3639, 333, 18, 350, 21, 273, 3258, 63, 20, 15533, 3639, 333, 18, 350, 22, 273, 3258, 63, 21, 15533, 3639, 333, 18, 3535, 6946, 273, 3258, 63, 22, 15533, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public FocusEvent (Component source, int id, boolean temporary)
public FocusEvent (Component source, int id)
public FocusEvent (Component source, int id, boolean temporary) { super (source, id); this.temporary = temporary; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/3d75d43c65cad1c53dd9b0321ff7e166c00d1d32/FocusEvent.java/buggy/libjava/java/awt/event/FocusEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 478, 4560, 1133, 261, 1841, 1084, 16, 509, 612, 13, 225, 288, 565, 2240, 261, 3168, 16, 612, 1769, 565, 333, 18, 31143, 273, 6269, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 478, 4560, 1133, 261, 1841, 1084, 16, 509, 612, 13, 225, 288, 565, 2240, 261, 3168, 16, 612, 1769, 565, 333, 18, 31143, 273, 6269, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void unregisterLoaderListener(LoaderListener listener) { loaderListeners.remove(listener); }
public void unregisterLoaderListener(LoaderListener listener) { loaderListeners.remove(listener); }
public void unregisterLoaderListener(LoaderListener listener) { loaderListeners.remove(listener); }
9764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9764/4b1c0901153e2bf5e27c87d2b4da7dde0b46c4fc/PluginLoaderImpl.java/clean/jadabs/bundles/pluginLoader/src/ch/ethz/jadabs/pluginLoader/PluginLoaderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 10232, 2886, 2223, 12, 2886, 2223, 2991, 13, 288, 1377, 4088, 5583, 18, 4479, 12, 12757, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 10232, 2886, 2223, 12, 2886, 2223, 2991, 13, 288, 1377, 4088, 5583, 18, 4479, 12, 12757, 1769, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
aload(variableObjectLocal);
cfw.addALoad(variableObjectLocal);
private void visitGetProp(Node node, Node child) { String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); String runtimeMethod = null; if (s.equals("__proto__")) { runtimeMethod = "getProto"; } else if (s.equals("__parent__")) { runtimeMethod = "getParent"; } else { badTree(); } addScriptRuntimeInvoke( runtimeMethod, "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); return; } Node nameChild = child.getNext(); /* for 'this.foo' we call thisGet which can skip some casting overhead. */ generateCodeFromNode(child, node); // the object generateCodeFromNode(nameChild, node); // the name if (nameChild.getType() == Token.STRING) { if ((child.getType() == Token.THIS) || (child.getType() == Token.NEWTEMP && child.getFirstChild().getType() == Token.THIS)) { aload(variableObjectLocal); addOptRuntimeInvoke( "thisGet", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { aload(variableObjectLocal); addScriptRuntimeInvoke( "getProp", "(Ljava/lang/Object;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } } else { aload(variableObjectLocal); addScriptRuntimeInvoke( "getProp", "(Ljava/lang/Object;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/f4ef5c00b7c63e8fce3655104f541db47ac22d49/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 967, 4658, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 514, 272, 273, 261, 780, 13, 756, 18, 588, 4658, 12, 907, 18, 13847, 6365, 67, 15811, 67, 15811, 1769, 3639, 309, 261, 87, 480, 446, 13, 288, 5411, 1323, 261, 3624, 480, 446, 13, 288, 7734, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 7734, 1151, 273, 1151, 18, 588, 2134, 5621, 5411, 289, 5411, 6080, 91, 18, 1289, 1013, 6189, 12, 6105, 921, 2042, 1769, 5411, 514, 3099, 1305, 273, 446, 31, 5411, 309, 261, 87, 18, 14963, 2932, 972, 9393, 14437, 3719, 288, 7734, 3099, 1305, 273, 315, 588, 6262, 14432, 5411, 289, 469, 309, 261, 87, 18, 14963, 2932, 972, 2938, 14437, 3719, 288, 7734, 3099, 1305, 273, 315, 588, 3054, 14432, 5411, 289, 469, 288, 7734, 5570, 2471, 5621, 5411, 289, 5411, 527, 3651, 5576, 10969, 12, 7734, 3099, 1305, 16, 7734, 7751, 21159, 19, 4936, 19, 921, 4868, 7734, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 7734, 397, 7923, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 1769, 5411, 327, 31, 3639, 289, 3639, 2029, 508, 1763, 273, 1151, 18, 588, 2134, 5621, 3639, 1748, 5411, 364, 296, 2211, 18, 11351, 11, 732, 745, 333, 967, 1492, 848, 2488, 2690, 5411, 27660, 23188, 18, 3639, 1195, 3639, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 1377, 368, 326, 733, 3639, 2103, 1085, 28570, 12, 529, 1763, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 967, 4658, 12, 907, 756, 16, 2029, 1151, 13, 565, 288, 3639, 514, 272, 273, 261, 780, 13, 756, 18, 588, 4658, 12, 907, 18, 13847, 6365, 67, 15811, 67, 15811, 1769, 3639, 309, 261, 87, 480, 446, 13, 288, 5411, 1323, 261, 3624, 480, 446, 13, 288, 7734, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 7734, 1151, 273, 1151, 18, 588, 2134, 5621, 5411, 289, 5411, 6080, 91, 18, 1289, 1013, 6189, 12, 6105, 921, 2042, 1769, 5411, 514, 3099, 1305, 273, 446, 31, 5411, 309, 261, 87, 18, 14963, 2932, 972, 9393, 14437, 3719, 288, 7734, 3099, 1305, 273, 315, 588, 6262, 14432, 5411, 289, 469, 309, 261, 87, 18, 14963, 2932, 2 ]
Icon icon = expanded ? group.getOpenIcon() : group.getIcon();
icon = expanded ? group.getOpenIcon() : group.getIcon();
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); if (value instanceof DefaultMutableTreeNode) { boolean used = false; Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (userObject instanceof Group) { Group group = (Group)userObject; final String name = group.getName(); setText(name != null ? name : group.getId()); Icon icon = expanded ? group.getOpenIcon() : group.getIcon(); if (icon == null) { icon = expanded ? getOpenIcon() : getClosedIcon(); } setIcon(icon); } else if (userObject instanceof String) { String actionId = (String)userObject; used = ((DefaultListModel)myActionsList.getModel()).lastIndexOf(actionId) >= 0; AnAction action = ActionManager.getInstance().getAction(actionId); setText(action != null ? action.getTemplatePresentation().getText() : actionId); Icon icon = EMPTY_ICON; if (action != null) { Icon actionIcon = action.getTemplatePresentation().getIcon(); if (actionIcon != null) { icon = actionIcon; } } setIcon(icon); } else if (userObject instanceof QuickList) { QuickList list = (QuickList)userObject; setIcon(EMPTY_ICON); setText(list.getDisplayName()); used = ((DefaultListModel)myActionsList.getModel()).lastIndexOf(list.getActionId()) >= 0; } else if (userObject instanceof Separator) { // TODO[vova,anton]: beautify setText("-------------"); setIcon(EMPTY_ICON); } else { throw new IllegalArgumentException("unknown userObject: " + userObject); } if (sel) { setForeground(UIManager.getColor("Tree.selectionForeground")); } else { Color foreground = used ? UIManager.getColor("textInactiveText") : UIManager.getColor("Tree.foreground"); setForeground(foreground); } } return this; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/245da178d413eea24d068084b4127ccf905c25f5/QuickListPanel.java/clean/source/com/intellij/openapi/keymap/impl/ui/QuickListPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 4766, 5375, 1033, 460, 16, 4766, 5375, 1250, 357, 16, 4766, 5375, 1250, 8406, 16, 4766, 5375, 1250, 7839, 16, 4766, 5375, 509, 1027, 16, 4766, 5375, 1250, 711, 9233, 13, 288, 1377, 2240, 18, 588, 2471, 4020, 6747, 1841, 12, 3413, 16, 460, 16, 357, 16, 8406, 16, 7839, 16, 1027, 16, 711, 9233, 1769, 1377, 309, 261, 1132, 1276, 2989, 19536, 12513, 13, 288, 3639, 1250, 1399, 273, 629, 31, 3639, 1033, 729, 921, 273, 14015, 1868, 19536, 12513, 13, 1132, 2934, 588, 1299, 921, 5621, 3639, 309, 261, 1355, 921, 1276, 3756, 13, 288, 1850, 3756, 1041, 273, 261, 1114, 13, 1355, 921, 31, 1850, 727, 514, 508, 273, 1041, 18, 17994, 5621, 1850, 7883, 12, 529, 480, 446, 692, 508, 294, 1041, 18, 26321, 10663, 1850, 4126, 273, 8406, 692, 1041, 18, 588, 3678, 5554, 1435, 294, 1041, 18, 588, 5554, 5621, 1850, 309, 261, 3950, 422, 446, 13, 288, 5411, 4126, 273, 8406, 692, 29607, 5554, 1435, 294, 1927, 13783, 5554, 5621, 1850, 289, 1850, 21481, 12, 3950, 1769, 3639, 289, 3639, 469, 309, 261, 1355, 921, 1276, 514, 13, 288, 1850, 514, 1301, 548, 273, 261, 780, 13, 1355, 921, 31, 1850, 1399, 273, 14015, 1868, 682, 1488, 13, 4811, 6100, 682, 18, 588, 1488, 1435, 2934, 2722, 31985, 12, 1128, 548, 13, 1545, 374, 31, 1850, 1922, 1803, 1301, 273, 4382, 1318, 18, 588, 1442, 7675, 588, 1803, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 4766, 5375, 1033, 460, 16, 4766, 5375, 1250, 357, 16, 4766, 5375, 1250, 8406, 16, 4766, 5375, 1250, 7839, 16, 4766, 5375, 509, 1027, 16, 4766, 5375, 1250, 711, 9233, 13, 288, 1377, 2240, 18, 588, 2471, 4020, 6747, 1841, 12, 3413, 16, 460, 16, 357, 16, 8406, 16, 7839, 16, 1027, 16, 711, 9233, 1769, 1377, 309, 261, 1132, 1276, 2989, 19536, 12513, 13, 288, 3639, 1250, 1399, 273, 629, 31, 3639, 1033, 729, 921, 273, 14015, 1868, 19536, 12513, 13, 1132, 2934, 588, 1299, 921, 5621, 3639, 309, 261, 1355, 921, 1276, 3756, 13, 288, 1850, 3756, 1041, 273, 261, 1114, 13, 1355, 921, 31, 2 ]
Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); container.setLayout(layout); layout.numColumns = 3; layout.verticalSpacing = 9; Label label = new Label(container, SWT.NULL); label.setText("&Container:");
Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); container.setLayout(layout); layout.numColumns = 3; layout.verticalSpacing = 9; Label label = new Label(container, SWT.NULL); label.setText("&Container:");
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); container.setLayout(layout); layout.numColumns = 3; layout.verticalSpacing = 9; Label label = new Label(container, SWT.NULL); label.setText("&Container:"); containerText = new Text(container, SWT.BORDER | SWT.SINGLE); GridData gd = new GridData(GridData.FILL_HORIZONTAL); containerText.setLayoutData(gd); containerText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { dialogChanged(); } }); Button button = new Button(container, SWT.PUSH); button.setText("Browse..."); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleBrowse(); } }); label = new Label(container, SWT.NULL); label.setText("&File name:"); fileText = new Text(container, SWT.BORDER | SWT.SINGLE); gd = new GridData(GridData.FILL_HORIZONTAL); fileText.setLayoutData(gd); fileText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { dialogChanged(); } }); initialize(); dialogChanged(); setControl(container); }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/7b8e2a977acbc867813917275995f613b061ec47/SampleNewWizardPage.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/wizards/SampleNewWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 3782, 18, 542, 3744, 12, 6741, 1769, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 17824, 18006, 273, 2468, 31, 202, 202, 2224, 1433, 273, 394, 5287, 12, 3782, 16, 348, 8588, 18, 8560, 1769, 202, 202, 1925, 18, 542, 1528, 2932, 10, 2170, 2773, 1769, 202, 202, 3782, 1528, 273, 394, 3867, 12, 3782, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 1769, 202, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 1769, 202, 202, 3782, 1528, 18, 542, 3744, 751, 12, 19016, 1769, 202, 202, 3782, 1528, 18, 1289, 11047, 2223, 12, 2704, 9518, 2223, 1435, 288, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 288, 9506, 202, 12730, 5033, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 3616, 3568, 273, 394, 12569, 12, 3782, 16, 348, 8588, 18, 30348, 1769, 202, 202, 5391, 18, 542, 1528, 2932, 27304, 7070, 1769, 202, 202, 5391, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 1082, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 4110, 27304, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 1925, 273, 394, 5287, 12, 3782, 16, 348, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 3782, 18, 542, 3744, 12, 6741, 1769, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 17824, 18006, 273, 2468, 31, 202, 202, 2224, 1433, 273, 394, 5287, 12, 3782, 16, 348, 8588, 18, 8560, 1769, 202, 202, 1925, 18, 542, 1528, 2932, 10, 2170, 2773, 1769, 202, 202, 3782, 1528, 273, 394, 3867, 12, 3782, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 1769, 202, 202, 6313, 751, 15551, 273, 394, 7145, 751, 2 ]
filename, code.indexOf("#inc"), code.indexOf(".h\"\n") + ".h\"".length() - code.indexOf("#inc"));
filename, code.indexOf("#inc"), code.indexOf(".h\"\n") + ".h\"".length() - code.indexOf("#inc"));
public void testSimpleInclusion2() throws Exception { String foo = "int FOO;"; //$NON-NLS-1$ String code = "int bar;\n#include \"foo.h\"\nfloat byob;\n"; //$NON-NLS-1$ importFile("foo.h", foo); //$NON-NLS-1$ for (ParserLanguage p = ParserLanguage.C; p != null; p = (p == ParserLanguage.C) ? ParserLanguage.CPP : null) { String filename = ( p == ParserLanguage.CPP ) ? "code.cc" : "code.c"; //$NON-NLS-1$ //$NON-NLS-2$ IFile cpp = importFile(filename, code); //$NON-NLS-1$ IASTTranslationUnit tu = parse(cpp); //$NON-NLS-1$ IASTDeclaration[] declarations = tu.getDeclarations(); assertEquals(declarations.length, 3); IASTSimpleDeclaration bar = (IASTSimpleDeclaration) declarations[0]; IASTSimpleDeclaration FOO = (IASTSimpleDeclaration) declarations[1]; IASTSimpleDeclaration byob = (IASTSimpleDeclaration) declarations[2]; assertSoleFileLocation( bar, filename, code.indexOf("int"), code.indexOf("r;") + 2 - code.indexOf("int")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ assertSoleFileLocation( FOO, "foo.h", foo.indexOf("int"), foo.indexOf(";") + 1 - foo.indexOf("int")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ assertSoleFileLocation( byob, filename, code.indexOf("float"), code.indexOf("b;") + 2 - code.indexOf("float")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ IASTPreprocessorIncludeStatement[] incs = tu.getIncludeDirectives(); assertNotNull(incs); assertEquals(incs.length, 1); assertSoleFileLocation( incs[0], filename, code.indexOf("#inc"), code.indexOf(".h\"\n") + ".h\"".length() - code.indexOf("#inc")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6314ff0d79515d7e8b9748a23cc48ec5e4c86f69/DOMLocationInclusionTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationInclusionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 382, 15335, 22, 1435, 1216, 1185, 288, 3639, 514, 8431, 273, 315, 474, 17634, 51, 4868, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 514, 981, 273, 315, 474, 4653, 9747, 82, 7, 6702, 1239, 11351, 18, 76, 31670, 82, 5659, 635, 947, 9747, 82, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1930, 812, 2932, 11351, 18, 76, 3113, 8431, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 364, 261, 2678, 3779, 293, 273, 6783, 3779, 18, 39, 31, 293, 480, 446, 31, 293, 273, 261, 84, 422, 6783, 3779, 18, 39, 13, 692, 6783, 3779, 18, 4258, 52, 7734, 294, 446, 13, 288, 5411, 514, 1544, 273, 261, 293, 422, 6783, 3779, 18, 4258, 52, 262, 692, 315, 710, 18, 952, 6, 294, 315, 710, 18, 71, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 5411, 467, 812, 3283, 84, 273, 1930, 812, 12, 3459, 16, 981, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 467, 9053, 6717, 2802, 28325, 273, 1109, 12, 4057, 84, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 467, 9053, 6094, 8526, 12312, 273, 28325, 18, 588, 21408, 5621, 5411, 1815, 8867, 12, 8840, 9642, 18, 2469, 16, 890, 1769, 5411, 467, 9053, 5784, 6094, 4653, 273, 261, 45, 9053, 5784, 6094, 13, 12312, 63, 20, 15533, 5411, 467, 9053, 5784, 6094, 17634, 51, 273, 261, 45, 9053, 5784, 6094, 13, 12312, 63, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 382, 15335, 22, 1435, 1216, 1185, 288, 3639, 514, 8431, 273, 315, 474, 17634, 51, 4868, 31, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 514, 981, 273, 315, 474, 4653, 9747, 82, 7, 6702, 1239, 11351, 18, 76, 31670, 82, 5659, 635, 947, 9747, 82, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1930, 812, 2932, 11351, 18, 76, 3113, 8431, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 364, 261, 2678, 3779, 293, 273, 6783, 3779, 18, 39, 31, 293, 480, 446, 31, 293, 273, 261, 84, 422, 6783, 3779, 18, 39, 13, 692, 6783, 3779, 18, 4258, 52, 7734, 294, 446, 13, 288, 5411, 514, 1544, 273, 261, 293, 2 ]
leftTuple.release();
public void retractTuple(final ReteTuple leftTuple, final PropagationContext context, final InternalWorkingMemory workingMemory) { final TerminalNodeMemory memory = (TerminalNodeMemory) workingMemory.getNodeMemory( this ); final ReteTuple tuple = (ReteTuple) memory.getTupleMemory().remove( leftTuple ); //an activation is null if the tuple was never propagated as an assert if ( tuple != null && tuple.getActivation() != null ) { final Activation activation = tuple.getActivation(); if ( activation.isActivated() ) { activation.remove(); workingMemory.getAgendaEventSupport().fireActivationCancelled( activation ); } workingMemory.getTruthMaintenanceSystem().removeLogicalDependencies( activation, context, this.rule ); tuple.release(); } leftTuple.release(); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/94ddc3ab4561ddb57bea933d7e189787b24f60c9/TerminalNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/TerminalNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 18778, 907, 6031, 3778, 273, 261, 11336, 907, 6031, 13, 5960, 6031, 18, 588, 907, 6031, 12, 333, 11272, 3639, 727, 534, 12865, 9038, 3193, 273, 261, 7055, 73, 9038, 13, 3778, 18, 588, 9038, 6031, 7675, 4479, 12, 2002, 9038, 11272, 3639, 368, 304, 10027, 353, 446, 309, 326, 3193, 1703, 5903, 29786, 487, 392, 1815, 3639, 309, 261, 3193, 480, 446, 597, 3193, 18, 588, 14857, 1435, 480, 446, 262, 288, 5411, 727, 26015, 10027, 273, 3193, 18, 588, 14857, 5621, 5411, 309, 261, 10027, 18, 291, 28724, 1435, 262, 288, 7734, 10027, 18, 4479, 5621, 7734, 5960, 6031, 18, 588, 2577, 18883, 1133, 6289, 7675, 12179, 14857, 21890, 12, 10027, 11272, 5411, 289, 5411, 5960, 6031, 18, 588, 1070, 795, 11045, 3163, 7675, 4479, 17955, 8053, 12, 10027, 16, 28524, 1171, 819, 16, 28524, 1171, 333, 18, 5345, 11272, 5411, 3193, 18, 9340, 5621, 3639, 289, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 18778, 907, 6031, 3778, 273, 261, 11336, 907, 6031, 13, 5960, 6031, 18, 588, 907, 6031, 12, 333, 11272, 3639, 727, 534, 12865, 9038, 3193, 273, 261, 7055, 73, 9038, 13, 3778, 18, 588, 9038, 6031, 7675, 4479, 12, 2002, 9038, 11272, 3639, 368, 304, 10027, 353, 446, 309, 326, 3193, 1703, 5903, 29786, 487, 392, 1815, 3639, 309, 261, 3193, 480, 446, 597, 3193, 18, 588, 14857, 1435, 480, 446, 262, 288, 5411, 727, 26015, 10027, 273, 3193, 18, 588, 14857, 5621, 5411, 309, 261, 2 ]
if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } }
if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } }
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10759, 12, 54, 10340, 548, 612, 16, 1250, 855, 16, 1250, 1045, 16, 1250, 431, 13, 288, 202, 202, 759, 19817, 30010, 28600, 683, 313, 273, 4170, 10340, 7675, 588, 30010, 5621, 202, 202, 474, 1158, 338, 273, 5245, 18, 3417, 2294, 67, 14939, 31, 202, 202, 430, 261, 338, 13, 288, 1082, 202, 430, 261, 588, 54, 10340, 7675, 588, 2459, 1305, 3876, 1435, 422, 5245, 18, 19444, 67, 20055, 13, 288, 9506, 202, 2135, 338, 273, 5245, 18, 3417, 2294, 67, 20055, 31, 1082, 202, 97, 469, 309, 261, 588, 54, 10340, 7675, 588, 2459, 1305, 3876, 1435, 422, 5245, 18, 19444, 67, 3373, 26729, 13, 288, 9506, 202, 2135, 338, 273, 5245, 18, 3417, 2294, 67, 3373, 26729, 31, 1082, 202, 97, 469, 288, 9506, 202, 2135, 338, 273, 5245, 18, 3417, 2294, 67, 14939, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 780, 508, 273, 612, 18, 869, 461, 5621, 202, 202, 54, 10340, 548, 1604, 8188, 273, 4170, 10340, 7675, 267, 798, 2932, 27614, 397, 508, 1769, 202, 202, 430, 261, 896, 13, 288, 1082, 202, 1289, 1305, 12, 350, 16, 394, 2029, 1733, 12, 588, 54, 10340, 1435, 2934, 2704, 45, 1537, 12, 1747, 8188, 3631, 1158, 338, 1769, 1082, 202, 759, 612, 18, 8507, 1649, 5621, 1082, 202, 644, 454, 12, 588, 54, 10340, 7675, 267, 798, 2932, 2039, 67, 9665, 6, 3631, 612, 18, 869, 5335, 10663, 202, 202, 97, 202, 202, 430, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10759, 12, 54, 10340, 548, 612, 16, 1250, 855, 16, 1250, 1045, 16, 1250, 431, 13, 288, 202, 202, 759, 19817, 30010, 28600, 683, 313, 273, 4170, 10340, 7675, 588, 30010, 5621, 202, 202, 474, 1158, 338, 273, 5245, 18, 3417, 2294, 67, 14939, 31, 202, 202, 430, 261, 338, 13, 288, 1082, 202, 430, 261, 588, 54, 10340, 7675, 588, 2459, 1305, 3876, 1435, 422, 5245, 18, 19444, 67, 20055, 13, 288, 9506, 202, 2135, 338, 273, 5245, 18, 3417, 2294, 67, 20055, 31, 1082, 202, 97, 469, 309, 261, 588, 54, 10340, 7675, 588, 2459, 1305, 3876, 1435, 422, 5245, 18, 19444, 67, 3373, 26729, 13, 288, 9506, 202, 2135, 338, 273, 5245, 2 ]
if (p.isSingleton()) { continue; }
public RubyArray ancestors() { RubyArray ary = getRuntime().newArray(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.isSingleton()) { continue; } if (p.isIncluded()) { ary.append(((IncludedModuleWrapper) p).getDelegate()); } else { ary.append(p); } } return ary; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/d166adca82dbf831b1e455c4d157b0033e10a6f1/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 14322, 1435, 288, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 364, 261, 54, 10340, 3120, 293, 273, 333, 31, 293, 480, 446, 31, 293, 273, 293, 18, 588, 8051, 797, 10756, 288, 5411, 309, 261, 84, 18, 291, 19571, 10756, 288, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 84, 18, 291, 19323, 10756, 288, 7734, 11841, 18, 6923, 12443, 12, 19323, 3120, 3611, 13, 293, 2934, 588, 9586, 10663, 5411, 289, 469, 288, 7734, 11841, 18, 6923, 12, 84, 1769, 5411, 289, 3639, 289, 3639, 327, 11841, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 14322, 1435, 288, 3639, 19817, 1076, 11841, 273, 18814, 7675, 2704, 1076, 5621, 3639, 364, 261, 54, 10340, 3120, 293, 273, 333, 31, 293, 480, 446, 31, 293, 273, 293, 18, 588, 8051, 797, 10756, 288, 5411, 309, 261, 84, 18, 291, 19571, 10756, 288, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 84, 18, 291, 19323, 10756, 288, 7734, 11841, 18, 6923, 12443, 12, 19323, 3120, 3611, 13, 293, 2934, 588, 9586, 10663, 5411, 289, 469, 288, 7734, 11841, 18, 6923, 12, 84, 1769, 5411, 289, 3639, 289, 3639, 327, 11841, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static ICModelStatus newMultiStatus(int code, ICModelStatus[] children) { CModelStatus jms = new CModelStatus(code);
public static ICModelStatus newMultiStatus(ICModelStatus[] children) { CModelStatus jms = new CModelStatus();
public static ICModelStatus newMultiStatus(int code, ICModelStatus[] children) { CModelStatus jms = new CModelStatus(code); jms.fChildren = children; return jms; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/CModelStatus.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 26899, 1488, 1482, 394, 5002, 1482, 12, 474, 981, 16, 26899, 1488, 1482, 8526, 2325, 13, 288, 202, 202, 39, 1488, 1482, 23007, 273, 394, 385, 1488, 1482, 12, 710, 1769, 202, 202, 78, 959, 18, 74, 4212, 273, 2325, 31, 202, 202, 2463, 23007, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 26899, 1488, 1482, 394, 5002, 1482, 12, 474, 981, 16, 26899, 1488, 1482, 8526, 2325, 13, 288, 202, 202, 39, 1488, 1482, 23007, 273, 394, 385, 1488, 1482, 12, 710, 1769, 202, 202, 78, 959, 18, 74, 4212, 273, 2325, 31, 202, 202, 2463, 23007, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( ch == ' ' || ch == '\f' || ch == '\t' || ch == '\n' )
if ( ch == ' ' || ch == '\f' || ch == '\t' || ch == '\n' || ch == '\r' )
protected final void printText( char[] chars, int start, int length, boolean preserveSpace, boolean unescaped ) throws IOException { int index; char ch; if ( preserveSpace ) { // Preserving spaces: the text must print exactly as it is, // without breaking when spaces appear in the text and without // consolidating spaces. If a line terminator is used, a line // break will occur. while ( length-- > 0 ) { ch = chars[ start ]; ++start; if ( ch == '\n' || unescaped ) _printer.printText( ch ); else printEscaped( ch ); } } else { // Not preserving spaces: print one part at a time, and // use spaces between parts to break them into different // lines. Spaces at beginning of line will be stripped // by printing mechanism. Line terminator is treated // no different than other text part. while ( length-- > 0 ) { ch = chars[ start ]; ++start; if ( ch == ' ' || ch == '\f' || ch == '\t' || ch == '\n' ) _printer.printSpace(); else if ( unescaped ) _printer.printText( ch ); else printEscaped( ch ); } } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/ff51d5e238aee131f4c56d56f236a1691866b723/BaseMarkupSerializer.java/clean/src/org/apache/xml/serialize/BaseMarkupSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 918, 1172, 1528, 12, 1149, 8526, 5230, 16, 509, 787, 16, 509, 769, 16, 4766, 565, 1250, 9420, 3819, 16, 1250, 27869, 262, 3639, 1216, 1860, 565, 288, 3639, 509, 770, 31, 3639, 1149, 462, 31, 3639, 309, 261, 9420, 3819, 262, 288, 5411, 368, 18346, 264, 6282, 7292, 30, 326, 977, 1297, 1172, 8950, 487, 518, 353, 16, 5411, 368, 2887, 24412, 1347, 7292, 9788, 316, 326, 977, 471, 2887, 5411, 368, 21785, 1776, 7292, 18, 971, 279, 980, 24965, 353, 1399, 16, 279, 980, 5411, 368, 898, 903, 3334, 18, 5411, 1323, 261, 769, 413, 405, 374, 262, 288, 7734, 462, 273, 5230, 63, 787, 308, 31, 7734, 965, 1937, 31, 7734, 309, 261, 462, 422, 2337, 82, 11, 747, 27869, 262, 10792, 389, 30439, 18, 1188, 1528, 12, 462, 11272, 7734, 469, 10792, 1172, 17208, 12, 462, 11272, 5411, 289, 3639, 289, 469, 288, 5411, 368, 2288, 27995, 7292, 30, 1172, 1245, 1087, 622, 279, 813, 16, 471, 5411, 368, 999, 7292, 3086, 2140, 358, 898, 2182, 1368, 3775, 5411, 368, 2362, 18, 348, 4996, 622, 8435, 434, 980, 903, 506, 13300, 5411, 368, 635, 19171, 12860, 18, 5377, 24965, 353, 13974, 5411, 368, 1158, 3775, 2353, 1308, 977, 1087, 18, 5411, 1323, 261, 769, 413, 405, 374, 262, 288, 7734, 462, 273, 5230, 63, 787, 308, 31, 7734, 965, 1937, 31, 7734, 309, 261, 462, 422, 296, 296, 747, 462, 422, 2337, 74, 11, 747, 462, 422, 2337, 88, 11, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 918, 1172, 1528, 12, 1149, 8526, 5230, 16, 509, 787, 16, 509, 769, 16, 4766, 565, 1250, 9420, 3819, 16, 1250, 27869, 262, 3639, 1216, 1860, 565, 288, 3639, 509, 770, 31, 3639, 1149, 462, 31, 3639, 309, 261, 9420, 3819, 262, 288, 5411, 368, 18346, 264, 6282, 7292, 30, 326, 977, 1297, 1172, 8950, 487, 518, 353, 16, 5411, 368, 2887, 24412, 1347, 7292, 9788, 316, 326, 977, 471, 2887, 5411, 368, 21785, 1776, 7292, 18, 971, 279, 980, 24965, 353, 1399, 16, 279, 980, 5411, 368, 898, 903, 3334, 18, 5411, 1323, 261, 769, 413, 405, 374, 262, 288, 7734, 462, 273, 5230, 63, 787, 308, 31, 7734, 965, 1937, 31, 7734, 309, 261, 2 ]
SizeRequirements res = super.calculateMinorAxisRequirements(axis, r);
SizeRequirements res = r; if (res == null) res = new SizeRequirements();
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) { // We need to call super here so that the alignment is properly // calculated. SizeRequirements res = super.calculateMinorAxisRequirements(axis, r); res.minimum = (int) layoutPool.getMinimumSpan(axis); res.preferred = (int) layoutPool.getPreferredSpan(axis); res.maximum = (int) layoutPool.getMaximumSpan(axis); return res; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/FlowView.java/buggy/core/src/classpath/javax/javax/swing/text/FlowView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 6321, 15465, 4604, 19549, 6558, 15465, 12, 474, 2654, 16, 4766, 18701, 6321, 15465, 436, 13, 225, 288, 565, 368, 1660, 1608, 358, 745, 2240, 2674, 1427, 716, 326, 8710, 353, 8214, 565, 368, 8894, 18, 225, 6321, 15465, 400, 273, 436, 31, 309, 261, 455, 422, 446, 13, 400, 273, 394, 6321, 15465, 5621, 565, 400, 18, 15903, 273, 261, 474, 13, 3511, 2864, 18, 588, 13042, 6952, 12, 4890, 1769, 565, 400, 18, 23616, 273, 261, 474, 13, 3511, 2864, 18, 588, 16028, 6952, 12, 4890, 1769, 565, 400, 18, 15724, 273, 261, 474, 13, 3511, 2864, 18, 588, 13528, 6952, 12, 4890, 1769, 565, 327, 400, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 6321, 15465, 4604, 19549, 6558, 15465, 12, 474, 2654, 16, 4766, 18701, 6321, 15465, 436, 13, 225, 288, 565, 368, 1660, 1608, 358, 745, 2240, 2674, 1427, 716, 326, 8710, 353, 8214, 565, 368, 8894, 18, 225, 6321, 15465, 400, 273, 436, 31, 309, 261, 455, 422, 446, 13, 400, 273, 394, 6321, 15465, 5621, 565, 400, 18, 15903, 273, 261, 474, 13, 3511, 2864, 18, 588, 13042, 6952, 12, 4890, 1769, 565, 400, 18, 23616, 273, 261, 474, 13, 3511, 2864, 18, 588, 16028, 6952, 12, 4890, 1769, 565, 400, 18, 15724, 273, 261, 474, 13, 3511, 2864, 18, 588, 13528, 6952, 12, 4890, 1769, 565, 327, 400, 31, 225, 289, 2, -100, -100, -100, -100, -100 ]
if (_log.shouldLog(Log.DEBUG)) _log.debug("Sending closest routers to key " + key.toBase64() + ": # peers = " + routerInfoSet.size() + " tunnel " + replyTunnel); DatabaseSearchReplyMessage msg = new DatabaseSearchReplyMessage(); msg.setFromHash(Router.getInstance().getRouterInfo().getIdentity().getHash()); msg.setSearchKey(key); if (routerInfoSet.size() <= 0) { routerInfoSet.add(Router.getInstance().getRouterInfo()); } msg.addReplies(routerInfoSet); sendMessage(msg, toPeer, replyTunnel);
if (_log.shouldLog(Log.DEBUG)) _log.debug("Sending closest routers to key " + key.toBase64() + ": # peers = " + routerInfoSet.size() + " tunnel " + replyTunnel); DatabaseSearchReplyMessage msg = new DatabaseSearchReplyMessage(); msg.setFromHash(Router.getInstance().getRouterInfo().getIdentity().getHash()); msg.setSearchKey(key); if (routerInfoSet.size() <= 0) { routerInfoSet.add(Router.getInstance().getRouterInfo()); } msg.addReplies(routerInfoSet); sendMessage(msg, toPeer, replyTunnel);
private void sendClosest(Hash key, Set routerInfoSet, Hash toPeer, TunnelId replyTunnel) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Sending closest routers to key " + key.toBase64() + ": # peers = " + routerInfoSet.size() + " tunnel " + replyTunnel); DatabaseSearchReplyMessage msg = new DatabaseSearchReplyMessage(); msg.setFromHash(Router.getInstance().getRouterInfo().getIdentity().getHash()); msg.setSearchKey(key); if (routerInfoSet.size() <= 0) { // always include something, so lets toss ourselves in there routerInfoSet.add(Router.getInstance().getRouterInfo()); } msg.addReplies(routerInfoSet); sendMessage(msg, toPeer, replyTunnel); // should this go via garlic messages instead? }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/86759d2f9c63d203488c7e8b34e64be162a16ce9/HandleDatabaseLookupMessageJob.java/clean/router/java/src/net/i2p/router/networkdb/HandleDatabaseLookupMessageJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 4082, 7781, 12, 2310, 498, 16, 1000, 4633, 966, 694, 16, 2474, 358, 6813, 16, 399, 8564, 548, 4332, 20329, 13, 288, 202, 430, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 202, 565, 389, 1330, 18, 4148, 2932, 16322, 9219, 28944, 358, 498, 315, 397, 498, 18, 869, 2171, 1105, 1435, 397, 6398, 468, 10082, 273, 315, 397, 4633, 966, 694, 18, 1467, 1435, 397, 315, 14825, 315, 397, 4332, 20329, 1769, 202, 4254, 2979, 7817, 1079, 1234, 273, 394, 5130, 2979, 7817, 1079, 5621, 202, 3576, 18, 542, 1265, 2310, 12, 8259, 18, 588, 1442, 7675, 588, 8259, 966, 7675, 588, 4334, 7675, 588, 2310, 10663, 202, 3576, 18, 542, 2979, 653, 12, 856, 1769, 202, 430, 261, 10717, 966, 694, 18, 1467, 1435, 1648, 374, 13, 288, 202, 565, 368, 3712, 2341, 5943, 16, 1427, 14557, 358, 1049, 19801, 316, 1915, 202, 565, 4633, 966, 694, 18, 1289, 12, 8259, 18, 588, 1442, 7675, 588, 8259, 966, 10663, 202, 97, 202, 3576, 18, 1289, 17647, 12, 10717, 966, 694, 1769, 202, 4661, 1079, 12, 3576, 16, 358, 6813, 16, 4332, 20329, 1769, 368, 1410, 333, 1960, 3970, 314, 13007, 335, 2743, 3560, 35, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 4082, 7781, 12, 2310, 498, 16, 1000, 4633, 966, 694, 16, 2474, 358, 6813, 16, 399, 8564, 548, 4332, 20329, 13, 288, 202, 430, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 202, 565, 389, 1330, 18, 4148, 2932, 16322, 9219, 28944, 358, 498, 315, 397, 498, 18, 869, 2171, 1105, 1435, 397, 6398, 468, 10082, 273, 315, 397, 4633, 966, 694, 18, 1467, 1435, 397, 315, 14825, 315, 397, 4332, 20329, 1769, 202, 4254, 2979, 7817, 1079, 1234, 273, 394, 5130, 2979, 7817, 1079, 5621, 202, 3576, 18, 542, 1265, 2310, 12, 8259, 18, 588, 1442, 7675, 588, 8259, 966, 7675, 588, 4334, 7675, 588, 2310, 10663, 202, 3576, 18, 542, 2 ]
* naked '&' chars can be left alone or quoted as &amp; The latter is required for XML where naked '&' are * illegal.
* naked '&' chars can be left alone or quoted as &amp; The latter is required for XML where naked '&' * are illegal.
private void printChar(int c, short mode) { String entity; if (c == ' ' && !((mode & (PREFORMATTED | COMMENT | ATTRIBVALUE)) != 0)) { /* coerce a space character to a non-breaking space */ if ((mode & NOWRAP) != 0) { /* by default XML doesn't define &nbsp; */ if (this.configuration.NumEntities || this.configuration.XmlTags) { addC('&', linelen++); addC('#', linelen++); addC('1', linelen++); addC('6', linelen++); addC('0', linelen++); addC(';', linelen++); } else { /* otherwise use named entity */ addC('&', linelen++); addC('n', linelen++); addC('b', linelen++); addC('s', linelen++); addC('p', linelen++); addC(';', linelen++); } return; } else { wraphere = linelen; } } /* comment characters are passed raw */ if ((mode & COMMENT) != 0) { addC(c, linelen++); return; } /* except in CDATA map < to &lt; etc. */ if (!((mode & CDATA) != 0)) { if (c == '<') { addC('&', linelen++); addC('l', linelen++); addC('t', linelen++); addC(';', linelen++); return; } if (c == '>') { addC('&', linelen++); addC('g', linelen++); addC('t', linelen++); addC(';', linelen++); return; } /* * naked '&' chars can be left alone or quoted as &amp; The latter is required for XML where naked '&' are * illegal. */ if (c == '&' && this.configuration.QuoteAmpersand) { addC('&', linelen++); addC('a', linelen++); addC('m', linelen++); addC('p', linelen++); addC(';', linelen++); return; } if (c == '"' && this.configuration.QuoteMarks) { addC('&', linelen++); addC('q', linelen++); addC('u', linelen++); addC('o', linelen++); addC('t', linelen++); addC(';', linelen++); return; } if (c == '\'' && this.configuration.QuoteMarks) { addC('&', linelen++); addC('#', linelen++); addC('3', linelen++); addC('9', linelen++); addC(';', linelen++); return; } if (c == 160 && this.configuration.CharEncoding != Configuration.RAW) { if (this.configuration.QuoteNbsp) { addC('&', linelen++); if (this.configuration.NumEntities) { addC('#', linelen++); addC('1', linelen++); addC('6', linelen++); addC('0', linelen++); } else { addC('n', linelen++); addC('b', linelen++); addC('s', linelen++); addC('p', linelen++); } addC(';', linelen++); } else { addC(c, linelen++); } return; } } /* otherwise ISO 2022 characters are passed raw */ if (this.configuration.CharEncoding == Configuration.ISO2022 || this.configuration.CharEncoding == Configuration.RAW) { addC(c, linelen++); return; } /* if preformatted text, map &nbsp; to space */ if (c == 160 && ((mode & PREFORMATTED) != 0)) { addC(' ', linelen++); return; } /* * Filters from Word and PowerPoint often use smart quotes resulting in character codes between 128 and 159. * Unfortunately, the corresponding HTML 4.0 entities for these are not widely supported. The following * converts dashes and quotation marks to the nearest ASCII equivalent. My thanks to Andrzej Novosiolov for his * help with this code. */ if (this.configuration.MakeClean) { if (c >= 0x2013 && c <= 0x201E) { switch (c) { case 0x2013 : case 0x2014 : c = '-'; break; case 0x2018 : case 0x2019 : case 0x201A : c = '\''; break; case 0x201C : case 0x201D : case 0x201E : c = '"'; break; } } } /* don't map latin-1 chars to entities */ if (this.configuration.CharEncoding == Configuration.LATIN1) { if (c > 255) /* multi byte chars */ { if (!this.configuration.NumEntities) { entity = EntityTable.getDefaultEntityTable().entityName((short) c); if (entity != null) { entity = "&" + entity + ";"; } else { entity = "&#" + c + ";"; } } else { entity = "&#" + c + ";"; } for (int i = 0; i < entity.length(); i++) { addC((int) entity.charAt(i), linelen++); } return; } if (c > 126 && c < 160) { entity = "&#" + c + ";"; for (int i = 0; i < entity.length(); i++) { addC((int) entity.charAt(i), linelen++); } return; } addC(c, linelen++); return; } /* don't map utf8 chars to entities */ if (this.configuration.CharEncoding == Configuration.UTF8) { addC(c, linelen++); return; } /* use numeric entities only for XML */ if (this.configuration.XmlTags) { /* if ASCII use numeric entities for chars > 127 */ if (c > 127 && this.configuration.CharEncoding == Configuration.ASCII) { entity = "&#" + c + ";"; for (int i = 0; i < entity.length(); i++) { addC((int) entity.charAt(i), linelen++); } return; } /* otherwise output char raw */ addC(c, linelen++); return; } /* default treatment for ASCII */ if (c > 126 || (c < ' ' && c != '\t')) { if (!this.configuration.NumEntities) { entity = EntityTable.getDefaultEntityTable().entityName((short) c); if (entity != null) { entity = "&" + entity + ";"; } else { entity = "&#" + c + ";"; } } else { entity = "&#" + c + ";"; } for (int i = 0; i < entity.length(); i++) { addC((int) entity.charAt(i), linelen++); } return; } addC(c, linelen++); }
53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/0c586eb2c88ed281bbf674538acf34b91ad121e4/PPrint.java/clean/jtidy/src/main/org/w3c/tidy/PPrint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 2156, 12, 474, 276, 16, 3025, 1965, 13, 565, 288, 3639, 514, 1522, 31, 3639, 309, 261, 71, 422, 296, 296, 597, 401, 12443, 3188, 473, 261, 3670, 7254, 6404, 571, 19400, 571, 14043, 38, 4051, 3719, 480, 374, 3719, 3639, 288, 5411, 1748, 12270, 279, 3476, 3351, 358, 279, 1661, 17, 8820, 310, 3476, 1195, 5411, 309, 14015, 3188, 473, 3741, 27664, 13, 480, 374, 13, 5411, 288, 7734, 1748, 635, 805, 3167, 3302, 1404, 4426, 473, 10600, 31, 1195, 7734, 309, 261, 2211, 18, 7025, 18, 2578, 8108, 747, 333, 18, 7025, 18, 4432, 3453, 13, 7734, 288, 10792, 527, 39, 2668, 10, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 7, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 21, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 26, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 20, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 31, 2187, 4739, 292, 275, 9904, 1769, 7734, 289, 7734, 469, 7734, 288, 10792, 1748, 3541, 999, 4141, 1522, 1195, 10792, 527, 39, 2668, 10, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 82, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 70, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 87, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 84, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 31, 2187, 4739, 292, 275, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 2156, 12, 474, 276, 16, 3025, 1965, 13, 565, 288, 3639, 514, 1522, 31, 3639, 309, 261, 71, 422, 296, 296, 597, 401, 12443, 3188, 473, 261, 3670, 7254, 6404, 571, 19400, 571, 14043, 38, 4051, 3719, 480, 374, 3719, 3639, 288, 5411, 1748, 12270, 279, 3476, 3351, 358, 279, 1661, 17, 8820, 310, 3476, 1195, 5411, 309, 14015, 3188, 473, 3741, 27664, 13, 480, 374, 13, 5411, 288, 7734, 1748, 635, 805, 3167, 3302, 1404, 4426, 473, 10600, 31, 1195, 7734, 309, 261, 2211, 18, 7025, 18, 2578, 8108, 747, 333, 18, 7025, 18, 4432, 3453, 13, 7734, 288, 10792, 527, 39, 2668, 10, 2187, 4739, 292, 275, 9904, 1769, 10792, 527, 39, 2668, 2 ]