rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if (tmpDataSource.getAvailable()) { if (dataSource == null) { dataSource = tmpDataSource; } else { throw new MoreThanOneActiveDataSourceException("More than one active data source is configured!"); } }
this.dataSourceMap.put(GrailsClassUtils.getPropertyNameRepresentation(tmpDataSource.getName()),tmpDataSource);
private void configureLoadedClasses(Class[] classes) { // first load the domain classes this.domainMap = new HashMap(); log.debug("Going to inspect domain classes."); for (int i = 0; i < classes.length; i++) { log.debug("Inspecting [" + classes[i].getName() + "]"); if (Modifier.isAbstract(classes[i].getModifiers())) { log.debug("[" + classes[i].getName() + "] is abstract."); continue; } // check that it is a domain class if(GrailsClassUtils.isDomainClass(classes[i])) { log.debug("[" + classes[i].getName() + "] is a domain class."); GrailsDomainClass grailsDomainClass = new DefaultGrailsDomainClass(classes[i]); this.domainMap.put(grailsDomainClass.getFullName(), grailsDomainClass); } else { log.debug("[" + classes[i].getName() + "] is not a domain class."); } } this.controllerMap = new HashMap(); this.pageFlowMap = new HashMap(); this.serviceMap = new HashMap(); Map bootstrapMap = new HashMap(); this.taglibMap = new HashMap(); this.taskMap = new HashMap(); for (int i = 0; i < classes.length; i++) { if (Modifier.isAbstract(classes[i].getModifiers()) || GrailsClassUtils.isDomainClass(classes[i])) { continue; } if (GrailsClassUtils.isControllerClass(classes[i]) /* && not ends with FromController */) { GrailsControllerClass grailsControllerClass = new DefaultGrailsControllerClass(classes[i]); if (grailsControllerClass.getAvailable()) { this.controllerMap.put(grailsControllerClass.getFullName(), grailsControllerClass); } } else if (GrailsClassUtils.isPageFlowClass(classes[i])) { GrailsPageFlowClass grailsPageFlowClass = new DefaultGrailsPageFlowClass(classes[i]); if (grailsPageFlowClass.getAvailable()) { this.pageFlowMap.put(grailsPageFlowClass.getFullName(), grailsPageFlowClass); } } else if (GrailsClassUtils.isDataSource(classes[i])) { GrailsDataSource tmpDataSource = new DefaultGrailsDataSource(classes[i]); if (tmpDataSource.getAvailable()) { if (dataSource == null) { dataSource = tmpDataSource; } else { throw new MoreThanOneActiveDataSourceException("More than one active data source is configured!"); } } } else if (GrailsClassUtils.isService(classes[i])) { GrailsServiceClass grailsServiceClass = new DefaultGrailsServiceClass(classes[i]); serviceMap.put(grailsServiceClass.getFullName(), grailsServiceClass); } else if(GrailsClassUtils.isBootstrapClass(classes[i])) { GrailsBootstrapClass grailsBootstrapClass = new DefaultGrailsBootstrapClass(classes[i]); bootstrapMap.put(grailsBootstrapClass.getFullName(),grailsBootstrapClass); } else if(GrailsClassUtils.isTagLibClass(classes[i])) { GrailsTagLibClass grailsTagLibClass = new DefaultGrailsTagLibClass(classes[i]); this.taglibMap.put(grailsTagLibClass.getFullName(),grailsTagLibClass); } else if(GrailsClassUtils.isTaskClass(classes[i])){ GrailsTaskClass grailsTaskClass = new DefaultGrailsTaskClass(classes[i]); taskMap.put(grailsTaskClass.getFullName(), grailsTaskClass); log.debug("[" + classes[i].getName() + "] is a task class."); } } this.controllerClasses = ((GrailsControllerClass[])controllerMap.values().toArray(new GrailsControllerClass[controllerMap.size()])); this.pageFlows = ((GrailsPageFlowClass[])pageFlowMap.values().toArray(new GrailsPageFlowClass[pageFlowMap.size()])); this.domainClasses = ((GrailsDomainClass[])this.domainMap.values().toArray(new GrailsDomainClass[domainMap.size()])); this.services = ((GrailsServiceClass[])this.serviceMap.values().toArray(new GrailsServiceClass[serviceMap.size()])); this.bootstrapClasses = ((GrailsBootstrapClass[])bootstrapMap.values().toArray(new GrailsBootstrapClass[bootstrapMap.size()])); this.taglibClasses = ((GrailsTagLibClass[])this.taglibMap.values().toArray(new GrailsTagLibClass[taglibMap.size()])); this.taskClasses = ((GrailsTaskClass[])this.taskMap.values().toArray(new GrailsTaskClass[taskMap.size()])); configureDomainClassRelationships(); configureTagLibraries(); }
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/aecd878096980b72ceddf7ab258a9a9344f916a7/DefaultGrailsApplication.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5068, 8835, 4818, 12, 797, 8526, 3318, 13, 288, 3639, 368, 1122, 1262, 326, 2461, 3318, 3639, 333, 18, 4308, 863, 273, 394, 4317, 5621, 3639, 613, 18, 4148, 2932, 5741, 310, 358, 5334, 2461, 3318, 1199, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3318, 18, 2469, 31, 277, 27245, 288, 5411, 613, 18, 4148, 2932, 12073, 310, 8247, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9870, 1769, 5411, 309, 261, 9829, 18, 291, 7469, 12, 4701, 63, 77, 8009, 588, 11948, 1435, 3719, 288, 7734, 613, 18, 4148, 2932, 9614, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9850, 353, 8770, 1199, 1769, 7734, 1324, 31, 5411, 289, 5411, 368, 866, 716, 518, 353, 279, 2461, 667, 5411, 309, 12, 14571, 14573, 797, 1989, 18, 291, 3748, 797, 12, 4701, 63, 77, 22643, 288, 7734, 613, 18, 4148, 2932, 9614, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9850, 353, 279, 2461, 667, 1199, 1769, 7734, 10812, 14573, 3748, 797, 3087, 14573, 3748, 797, 273, 394, 2989, 14571, 14573, 3748, 797, 12, 4701, 63, 77, 19226, 7734, 333, 18, 4308, 863, 18, 458, 12, 2752, 14573, 3748, 797, 18, 588, 19223, 9334, 3087, 14573, 3748, 797, 1769, 5411, 289, 469, 288, 7734, 613, 18, 4148, 2932, 9614, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9850, 353, 486, 279, 2461, 667, 1199, 1769, 5411, 289, 3639, 289, 3639, 333, 18, 5723, 863, 273, 394, 4317, 5621, 3639, 333, 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, 5068, 8835, 4818, 12, 797, 8526, 3318, 13, 288, 3639, 368, 1122, 1262, 326, 2461, 3318, 3639, 333, 18, 4308, 863, 273, 394, 4317, 5621, 3639, 613, 18, 4148, 2932, 5741, 310, 358, 5334, 2461, 3318, 1199, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3318, 18, 2469, 31, 277, 27245, 288, 5411, 613, 18, 4148, 2932, 12073, 310, 8247, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9870, 1769, 5411, 309, 261, 9829, 18, 291, 7469, 12, 4701, 63, 77, 8009, 588, 11948, 1435, 3719, 288, 7734, 613, 18, 4148, 2932, 9614, 397, 3318, 63, 77, 8009, 17994, 1435, 397, 9850, 353, 8770, 1199, 1769, 7734, 1324, 31, 5411, 289, 5411, 368, 2 ]
BigInteger p,q,g; StringTokenizer str=new StringTokenizer(field, ","); if (str.countTokens() != 3) throw new NumberFormatException(); p = new NativeBigInteger(str.nextToken(), 16); q = new NativeBigInteger(str.nextToken(), 16); g = new NativeBigInteger(str.nextToken(), 16); DSAGroup r = new DSAGroup(p,q,g); return ( r.equals(Global.DSAgroupA) ? Global.DSAgroupA : (r.equals(Global.DSAgroupB) ? Global.DSAgroupB : (r.equals(Global.DSAgroupC) ? Global.DSAgroupC : r)));
BigInteger p, q, g; StringTokenizer str = new StringTokenizer(field, ","); if (str.countTokens() != 3) throw new NumberFormatException(); p = new NativeBigInteger(str.nextToken(), 16); q = new NativeBigInteger(str.nextToken(), 16); g = new NativeBigInteger(str.nextToken(), 16); DSAGroup r = new DSAGroup(p, q, g); return (r.equals(Global.DSAgroupA) ? Global.DSAgroupA : (r .equals(Global.DSAgroupB) ? Global.DSAgroupB : (r .equals(Global.DSAgroupC) ? Global.DSAgroupC : r)));
public static DSAGroup readFromField(String field) { BigInteger p,q,g; StringTokenizer str=new StringTokenizer(field, ","); if (str.countTokens() != 3) throw new NumberFormatException(); p = new NativeBigInteger(str.nextToken(), 16); q = new NativeBigInteger(str.nextToken(), 16); g = new NativeBigInteger(str.nextToken(), 16); DSAGroup r = new DSAGroup(p,q,g); return ( r.equals(Global.DSAgroupA) ? Global.DSAgroupA : (r.equals(Global.DSAgroupB) ? Global.DSAgroupB : (r.equals(Global.DSAgroupC) ? Global.DSAgroupC : r))); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/0400e73e7503ab43211657c44d8448afd6346cce/DSAGroup.java/buggy/src/freenet/crypt/DSAGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 463, 5233, 1114, 20876, 974, 12, 780, 652, 13, 288, 202, 202, 24198, 293, 16, 85, 16, 75, 31, 202, 202, 780, 10524, 609, 33, 2704, 16370, 12, 1518, 16, 5753, 1769, 202, 202, 430, 261, 701, 18, 1883, 5157, 1435, 480, 890, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 84, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 85, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 75, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 19748, 1114, 436, 273, 394, 463, 5233, 1114, 12, 84, 16, 85, 16, 75, 1769, 202, 202, 2463, 261, 1082, 202, 86, 18, 14963, 12, 5160, 18, 19748, 1655, 37, 13, 9506, 202, 35, 8510, 18, 19748, 1655, 37, 9506, 202, 30, 261, 86, 18, 14963, 12, 5160, 18, 19748, 1655, 38, 13, 6862, 202, 35, 8510, 18, 19748, 1655, 38, 6862, 202, 30, 261, 86, 18, 14963, 12, 5160, 18, 19748, 1655, 39, 13, 692, 8510, 18, 19748, 1655, 39, 294, 436, 3719, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 463, 5233, 1114, 20876, 974, 12, 780, 652, 13, 288, 202, 202, 24198, 293, 16, 85, 16, 75, 31, 202, 202, 780, 10524, 609, 33, 2704, 16370, 12, 1518, 16, 5753, 1769, 202, 202, 430, 261, 701, 18, 1883, 5157, 1435, 480, 890, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 84, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 85, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 75, 273, 394, 16717, 24198, 12, 701, 18, 4285, 1345, 9334, 2872, 1769, 202, 202, 19748, 1114, 436, 273, 394, 463, 5233, 1114, 12, 84, 16, 85, 16, 75, 1769, 202, 202, 2463, 261, 2 ]
key.recycle (dbmap, kstr);
public Node getNode (String kstr, DbMapping dbmap) throws Exception { if (kstr == null) return null; Transactor tx = (Transactor) Thread.currentThread (); // tx.timer.beginEvent ("getNode "+kstr); Key key = tx.key; key.recycle (dbmap, kstr); // See if Transactor has already come across this node Node node = tx.getVisitedNode (key); if (node != null && node.getState() != Node.INVALID) { // tx.timer.endEvent ("getNode "+kstr); return node; } // try to get the node from the shared cache node = (Node) cache.get (key); if (node == null || node.getState() == Node.INVALID) { // The requested node isn't in the shared cache. Synchronize with key to make sure only one // version is fetched from the database. node = getNodeByKey (db, tx.txn, kstr, dbmap); key.recycle (dbmap, kstr); if (node != null) { synchronized (cache) { Node oldnode = (Node) cache.put (node.getKey (), node); if (oldnode != null && oldnode.getState () != Node.INVALID) { cache.put (node.getKey (), oldnode); node = oldnode; } } // synchronized } } if (node != null) { tx.visitCleanNode (key.duplicate(), node); } // tx.timer.endEvent ("getNode "+kstr); return node; }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/683263b9d9257a87faf31df6a55da7f287bd6f4a/NodeManager.java/clean/src/helma/objectmodel/db/NodeManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 5973, 261, 780, 417, 701, 16, 8408, 3233, 1319, 1458, 13, 1216, 1185, 288, 202, 430, 261, 79, 701, 422, 446, 13, 202, 565, 327, 446, 31, 202, 1429, 3362, 2229, 273, 261, 1429, 3362, 13, 4884, 18, 2972, 3830, 261, 1769, 202, 759, 2229, 18, 12542, 18, 10086, 1133, 7566, 588, 907, 13773, 79, 701, 1769, 202, 653, 498, 273, 2229, 18, 856, 31, 202, 856, 18, 266, 13946, 261, 1966, 1458, 16, 417, 701, 1769, 202, 759, 2164, 309, 2604, 3362, 711, 1818, 12404, 10279, 333, 756, 202, 907, 756, 273, 2229, 18, 588, 30019, 907, 261, 856, 1769, 202, 430, 261, 2159, 480, 446, 597, 756, 18, 588, 1119, 1435, 480, 2029, 18, 9347, 13, 288, 202, 565, 368, 2229, 18, 12542, 18, 409, 1133, 7566, 588, 907, 13773, 79, 701, 1769, 202, 565, 327, 756, 31, 202, 97, 202, 759, 775, 358, 336, 326, 756, 628, 326, 5116, 1247, 202, 2159, 273, 261, 907, 13, 1247, 18, 588, 261, 856, 1769, 202, 430, 261, 2159, 422, 446, 747, 756, 18, 588, 1119, 1435, 422, 2029, 18, 9347, 13, 288, 202, 565, 368, 1021, 3764, 756, 5177, 1404, 316, 326, 5116, 1247, 18, 26535, 554, 598, 498, 358, 1221, 3071, 1338, 1245, 202, 565, 368, 1177, 353, 12807, 628, 326, 2063, 18, 202, 565, 756, 273, 5973, 14560, 261, 1966, 16, 2229, 18, 24790, 16, 417, 701, 16, 1319, 1458, 1769, 202, 565, 498, 18, 266, 13946, 261, 1966, 1458, 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, 2029, 5973, 261, 780, 417, 701, 16, 8408, 3233, 1319, 1458, 13, 1216, 1185, 288, 202, 430, 261, 79, 701, 422, 446, 13, 202, 565, 327, 446, 31, 202, 1429, 3362, 2229, 273, 261, 1429, 3362, 13, 4884, 18, 2972, 3830, 261, 1769, 202, 759, 2229, 18, 12542, 18, 10086, 1133, 7566, 588, 907, 13773, 79, 701, 1769, 202, 653, 498, 273, 2229, 18, 856, 31, 202, 856, 18, 266, 13946, 261, 1966, 1458, 16, 417, 701, 1769, 202, 759, 2164, 309, 2604, 3362, 711, 1818, 12404, 10279, 333, 756, 202, 907, 756, 273, 2229, 18, 588, 30019, 907, 261, 856, 1769, 202, 430, 261, 2159, 480, 446, 597, 756, 18, 588, 1119, 1435, 480, 2029, 18, 2 ]
if (DocumentDomainObject.STATUS_NEW == document.getStatus()) {
if ( DocumentDomainObject.STATUS_NEW == document.getStatus() ) {
public String getStatusIconTemplate( DocumentDomainObject document, UserDomainObject user ) { String statusIconTemplateName = null; if (DocumentDomainObject.STATUS_NEW == document.getStatus()) { statusIconTemplateName = TEMPLATE__STATUS_NEW; } else if (DocumentDomainObject.STATUS_PUBLICATION_DISAPPROVED == document.getStatus()) { statusIconTemplateName = TEMPLATE__STATUS_DISAPPROVED; } else if (document.isPublishedAndNotArchived()) { statusIconTemplateName = TEMPLATE__STATUS_PUBLISHED; } else if (document.isNoLongerPublished()) { statusIconTemplateName = TEMPLATE__STATUS_UNPUBLISHED; } else if (document.isArchived()) { statusIconTemplateName = TEMPLATE__STATUS_ARCHIVED; } else { statusIconTemplateName = TEMPLATE__STATUS_APPROVED; } String statusIconTemplate = service.getAdminTemplate( statusIconTemplateName, user, null ); return statusIconTemplate; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/54567949e7925946b53c3e8da3c43b2ac114b2ed/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5870, 5554, 2283, 12, 4319, 3748, 921, 1668, 16, 2177, 3748, 921, 729, 262, 288, 3639, 514, 1267, 5554, 28917, 273, 446, 31, 3639, 309, 261, 4319, 3748, 921, 18, 8608, 67, 12917, 422, 1668, 18, 588, 1482, 1435, 262, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 12917, 31, 3639, 289, 469, 309, 261, 2519, 3748, 921, 18, 8608, 67, 14939, 2689, 67, 13498, 2203, 3373, 12135, 422, 1668, 18, 588, 1482, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 13498, 2203, 3373, 12135, 31, 3639, 289, 469, 309, 261, 5457, 18, 291, 16451, 1876, 1248, 12269, 2950, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 22224, 2056, 31, 3639, 289, 469, 309, 261, 5457, 18, 291, 2279, 15927, 693, 16451, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 2124, 22224, 2056, 31, 3639, 289, 469, 309, 261, 5457, 18, 291, 12269, 2950, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 10586, 20764, 31, 3639, 289, 469, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 2203, 3373, 12135, 31, 3639, 289, 3639, 514, 1267, 5554, 2283, 273, 1156, 18, 588, 4446, 2283, 12, 1267, 5554, 28917, 16, 729, 16, 446, 11272, 3639, 327, 1267, 5554, 2283, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 514, 5870, 5554, 2283, 12, 4319, 3748, 921, 1668, 16, 2177, 3748, 921, 729, 262, 288, 3639, 514, 1267, 5554, 28917, 273, 446, 31, 3639, 309, 261, 4319, 3748, 921, 18, 8608, 67, 12917, 422, 1668, 18, 588, 1482, 1435, 262, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 12917, 31, 3639, 289, 469, 309, 261, 2519, 3748, 921, 18, 8608, 67, 14939, 2689, 67, 13498, 2203, 3373, 12135, 422, 1668, 18, 588, 1482, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 13498, 2203, 3373, 12135, 31, 3639, 289, 469, 309, 261, 5457, 18, 291, 16451, 1876, 1248, 12269, 2950, 10756, 288, 5411, 1267, 5554, 28917, 273, 20835, 972, 8608, 67, 22224, 2 ]
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">");
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); ctx.getPageMaker().makeHead(buf, "Darknet Peers"); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime:&nbsp;").append(bwlimitDelayTime).append("ms</li>"); buf.append("<li>nodeAveragePingTime:&nbsp;").append(nodeAveragePingTime).append("ms</li>"); buf.append("<li>networkSizeEstimate:&nbsp;").append(networkSizeEstimate).append("&nbsp;nodes</li>"); buf.append("<li>nodeUptime:&nbsp;").append(nodeUptimeString).append("</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<ul id=\"activity\">\n"); if (numInserts > 0) { buf.append("<li>Inserts:&nbsp;").append(numInserts).append("</li>"); } if (numRequests > 0) { buf.append("<li>Requests:&nbsp;").append(numRequests).append("</li>"); } if (numTransferringRequests > 0) { buf.append("<li>Transferring&nbsp;Requests:&nbsp;").append(numTransferringRequests).append("</li>"); } if (numARKFetchers > 0) { buf.append("<li>ARK&nbsp;Fetch&nbsp;Requests:&nbsp;").append(numARKFetchers).append("</li>"); } buf.append("</ul>\n"); buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected:&nbsp;").append(numberOfConnected).append("</span></li>"); } if (numberOfRoutingBackedOff > 0) { buf.append("<li><span class=\"peer_backedoff\">Backed off:&nbsp;").append(numberOfRoutingBackedOff).append("</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new:&nbsp;").append(numberOfTooNew).append("</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old:&nbsp;").append(numberOfTooOld).append("</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;").append(numberOfDisconnected).append("</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected:&nbsp;").append(numberOfNeverConnected).append("</span></li>"); } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); buf.append("</td><td class=\"last\">"); // Peer routing backoff reason box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { buf.append("<ul>\n"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append("<li>").append(routingBackoffReasons[i]).append(":&nbsp;").append(reasonCount).append("</li>\n"); } } buf.append("</ul>\n"); } buf.append("</div>"); buf.append("</div>\n"); buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append("<tr><th></th><th>Status</th><th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th><th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th><th>Version</th><th>Location</th><th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th><th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th></tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); boolean routingBackedOffNow = (now < routingBackedOffUntil); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if(backoff > 0 && backoff < 1000 ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = "/"; String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } String avgPingTimeString = ""; if(pn.isConnected()) avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; String VersionPrefixString = ""; String VersionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { VersionPrefixString = "<span class=\"peer_version_problem\">"; VersionSuffixString = "</span>"; } String NamePrefixString = ""; String NameSuffixString = ""; if(pn.isConnected()) { NamePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; NameSuffixString = "</a>"; } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"delete_node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = NamePrefixString+HTMLEncoder.encode(pn.getName())+NameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = VersionPrefixString+HTMLEncoder.encode(pn.getVersion())+VersionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; int x = ((Integer) row[2]).intValue(); String arkAsterisk = ""; if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+((PeerNode) row[0]).getPeerNodeStatusString()+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) // skip index 9 as it's used for sorting purposes only continue; buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />&nbsp;&nbsp;&nbsp;<span class=\"darknet_connections\">* Requesting ARK</span>\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/5e25523493fdeb68f80e2a61cbf6edcde7282040/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 780, 1892, 1681, 273, 394, 6674, 12, 2163, 3247, 1769, 9506, 202, 759, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 202, 202, 5900, 18, 588, 1964, 12373, 7675, 6540, 1414, 12, 4385, 16, 315, 40, 1313, 2758, 19622, 414, 8863, 9506, 202, 759, 9852, 5, 1660, 1608, 2690, 13752, 4602, 202, 202, 6813, 907, 8526, 4261, 3205, 273, 756, 18, 588, 40, 1313, 2758, 9314, 5621, 9506, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 9506, 202, 2159, 18, 11798, 87, 18, 869, 4733, 4353, 12, 4385, 1769, 9506, 202, 20308, 756, 1267, 924, 1195, 202, 202, 474, 12986, 3595, 6763, 950, 273, 261, 474, 13, 756, 18, 588, 38, 91, 3595, 6763, 950, 5621, 202, 202, 474, 756, 17115, 17223, 950, 273, 261, 474, 13, 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, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2 ]
public void visitPostExeNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitPostExeNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitPostExeNode(Node iVisited) { visit(iVisited); leave(iVisited); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 3349, 424, 73, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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, 918, 3757, 3349, 424, 73, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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 ]
private TableViewer createTable(Composite parent, FormToolkit toolkit, String[] columnNames, int[] columnWidths, int[] sortConstants) { int style = SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION | SWT.FILL; Table table = toolkit.createTable(parent, style); table.setLayout(new GridLayout()); table.setLayoutData(new GridData(GridData.FILL_BOTH)); table.setLinesVisible(true); table.setHeaderVisible(true); table.setEnabled(true); // TableColumn firstColumn = new TableColumn(table, SWT.LEFT, 0); // firstColumn.setText(" "); // firstColumn.setWidth(30); for (int i = 0; i < columnNames.length; i++) { TableColumn column = new TableColumn(table, SWT.LEFT, i); column.setText(columnNames[i]); column.setWidth(columnWidths[i]); } TableViewer tableViewer = new TableViewer(table); tableViewer.setUseHashlookup(true); tableViewer.setColumnProperties(columnNames); final OpenTaskEditorAction openAction = new OpenTaskEditorAction(tableViewer); tableViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { openAction.run(); } }); return tableViewer; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/eeb53aab38077c76ff3ba62448eae5b71a2ad1a4/TaskPlannerEditorPart.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/ui/TaskPlannerEditorPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3555, 18415, 19565, 12, 9400, 982, 16, 2748, 6364, 8691, 5226, 8691, 16, 514, 8526, 19975, 16, 509, 8526, 1057, 22407, 16, 1082, 202, 474, 8526, 1524, 2918, 13, 288, 202, 202, 474, 2154, 273, 348, 8588, 18, 26588, 571, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 571, 348, 8588, 18, 44, 10385, 67, 1090, 15445, 571, 348, 8588, 18, 29818, 31, 202, 202, 1388, 1014, 273, 5226, 8691, 18, 2640, 1388, 12, 2938, 16, 2154, 1769, 9506, 202, 2121, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 2121, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 202, 202, 2121, 18, 542, 5763, 6207, 12, 3767, 1769, 202, 202, 2121, 18, 542, 1864, 6207, 12, 3767, 1769, 202, 202, 2121, 18, 542, 1526, 12, 3767, 1769, 202, 202, 759, 3555, 1494, 1122, 1494, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 10066, 16, 374, 1769, 202, 202, 759, 1122, 1494, 18, 542, 1528, 2932, 315, 1769, 202, 202, 759, 1122, 1494, 18, 542, 2384, 12, 5082, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 19975, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1388, 1494, 1057, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 10066, 16, 277, 1769, 1082, 202, 2827, 18, 542, 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, 3555, 18415, 19565, 12, 9400, 982, 16, 2748, 6364, 8691, 5226, 8691, 16, 514, 8526, 19975, 16, 509, 8526, 1057, 22407, 16, 1082, 202, 474, 8526, 1524, 2918, 13, 288, 202, 202, 474, 2154, 273, 348, 8588, 18, 26588, 571, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 18111, 67, 1090, 15445, 571, 348, 8588, 18, 44, 10385, 67, 1090, 15445, 571, 348, 8588, 18, 29818, 31, 202, 202, 1388, 1014, 273, 5226, 8691, 18, 2640, 1388, 12, 2938, 16, 2154, 1769, 9506, 202, 2121, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 2121, 18, 542, 3744, 2 ]
public void visitDALOAD(DALOAD obj) { pushValue(Type.DOUBLE); }
public void visitDALOAD(DALOAD obj) { consumeStack(obj); pushValue(Type.DOUBLE); }
public void visitDALOAD(DALOAD obj) { pushValue(Type.DOUBLE); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/9e55b32a478d9bf623212d8a8aa6e1446e58c8b5/TypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/TypeFrameModelingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 40, 1013, 51, 1880, 12, 40, 1013, 51, 1880, 1081, 13, 9506, 202, 95, 1817, 620, 12, 559, 18, 17088, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 40, 1013, 51, 1880, 12, 40, 1013, 51, 1880, 1081, 13, 9506, 202, 95, 1817, 620, 12, 559, 18, 17088, 1769, 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 ]
il, ih, cg, calleeMethodName, methodSequence, factory, joinPointType);
il, ih, cg, calleeMethodName, methodSequence, factory, joinPointType);
public void transformCode(final UnextendableClassSet cs) { final Iterator iterator = cs.getIteratorForTransformableClasses(); while (iterator.hasNext()) { final ClassGen cg = (ClassGen)iterator.next(); if (classFilter(cg)) { continue; } final Method[] methods = cg.getMethods(); // get the index for the <clinit> method (if there is one) boolean hasClInitMethod = false; int clinitIndex = -1; for (int i = 0; i < methods.length; i++) { if (methods[i].getName().equals("<clinit>")) { clinitIndex = i; hasClInitMethod = true; break; } } final ConstantPoolGen cpg = cg.getConstantPool(); final String className = cg.getClassName(); final InstructionFactory factory = new InstructionFactory(cg); final Set callerSideJoinPoints = new HashSet(); Method clInitMethod = null; final Map methodSequences = new HashMap(); final List newMethods = new ArrayList(); boolean isClassAdvised = false; for (int i = 0; i < methods.length; i++) { if (methodFilter(methods[i])) { continue; } final MethodGen mg = new MethodGen(methods[i], className, cpg); if (methodFilter(mg.getMethod())) { continue; } final InstructionList il = mg.getInstructionList(); if (il == null) { continue; } InstructionHandle ih = il.getStart(); // search for all InvokeInstruction instructions and // inserts the call side pointcuts while (ih != null) { final Instruction ins = ih.getInstruction(); if (ins instanceof INVOKESPECIAL || ins instanceof INVOKESTATIC || ins instanceof INVOKEVIRTUAL) { final InvokeInstruction invokeInstruction = (InvokeInstruction)ins; // get the callee method name, signature and class name final String calleeMethodName = invokeInstruction.getName(cpg); final String calleeClassName = invokeInstruction.getClassName(cpg); final String calleeMethodSignature = invokeInstruction.getSignature(cpg); // create the meta-data MethodMetaData callerSideMethodMetaData = BcelMetaDataMaker.createMethodMetaData(invokeInstruction, cpg); // is this a caller side method pointcut? if (m_weaveModel.isCallerSideMethod(calleeClassName, callerSideMethodMetaData)) { // get the caller method name and signature Method method = mg.getMethod(); String callerMethodName = method.getName(); String callerMethodSignature = method.getSignature(); final Type joinPointType = TransformationUtil. CALLER_SIDE_JOIN_POINT_TYPE; // take care of identification of overloaded methods // by inserting a sequence number if (methodSequences.containsKey(calleeMethodName)) { int sequence = ((Integer)methodSequences. get(calleeMethodName)).intValue(); methodSequences.remove(calleeMethodName); sequence++; methodSequences.put( calleeMethodName, new Integer(sequence)); } else { methodSequences.put( calleeMethodName, new Integer(1)); } final int methodSequence = ((Integer)methodSequences. get(calleeMethodName)).intValue(); isClassAdvised = true; insertPreAdvice( il, ih, cg, calleeMethodName, methodSequence, factory, joinPointType); insertPostAdvice( il, ih.getNext(), cg, calleeMethodName, methodSequence, factory, joinPointType); StringBuffer key = new StringBuffer(); key.append(className); key.append(TransformationUtil.DELIMITER); key.append(calleeMethodName); key.append(TransformationUtil.DELIMITER); key.append(methodSequence); // skip the creation of the join point if we already have one if (!callerSideJoinPoints.contains(key.toString())) { callerSideJoinPoints.add(key.toString()); addStaticJoinPointField( cpg, cg, calleeMethodName, methodSequence, joinPointType); if (hasClInitMethod) { methods[clinitIndex] = createStaticJoinPointField( cpg, cg, methods[clinitIndex], callerMethodName, calleeClassName, calleeMethodName, methodSequence, callerMethodSignature, calleeMethodSignature, factory, joinPointType, m_weaveModel.getUuid()); } else if (clInitMethod == null) { clInitMethod = createClInitMethodWithStaticJoinPointField( cpg, cg, callerMethodName, calleeClassName, calleeMethodName, methodSequence, callerMethodSignature, calleeMethodSignature, factory, joinPointType, m_weaveModel.getUuid()); } else { clInitMethod = createStaticJoinPointField( cpg, cg, clInitMethod, callerMethodName, calleeClassName, calleeMethodName, methodSequence, callerMethodSignature, calleeMethodSignature, factory, joinPointType, m_weaveModel.getUuid()); } } } } ih = ih.getNext(); } mg.setMaxStack(); methods[i] = mg.getMethod(); } if (isClassAdvised) { // if we have transformed methods, create the static class field if (!hasClInitMethod && clInitMethod != null) { addStaticClassField(cpg, cg); clInitMethod = createStaticClassField( cpg, cg, clInitMethod, factory); newMethods.add(clInitMethod); } else { addStaticClassField(cpg, cg); methods[clinitIndex] = createStaticClassField( cpg, cg, methods[clinitIndex], factory); } } // update the old methods cg.setMethods(methods); // add the new methods for (Iterator it = newMethods.iterator(); it.hasNext();) { Method method = (Method)it.next(); cg.addMethod(method); } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/AdviseCallerSideMethodTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AdviseCallerSideMethodTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2510, 1085, 12, 6385, 1351, 14313, 429, 797, 694, 2873, 13, 288, 3639, 727, 4498, 2775, 273, 2873, 18, 588, 3198, 1290, 4059, 429, 4818, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 5411, 727, 1659, 7642, 14947, 273, 261, 797, 7642, 13, 9838, 18, 4285, 5621, 5411, 309, 261, 1106, 1586, 12, 26275, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 727, 2985, 8526, 2590, 273, 14947, 18, 588, 4712, 5621, 5411, 368, 336, 326, 770, 364, 326, 411, 830, 2738, 34, 707, 261, 430, 1915, 353, 1245, 13, 5411, 1250, 711, 2009, 2570, 1305, 273, 629, 31, 5411, 509, 927, 2738, 1016, 273, 300, 21, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2590, 18, 2469, 31, 277, 27245, 288, 7734, 309, 261, 5163, 63, 77, 8009, 17994, 7675, 14963, 2932, 32, 830, 2738, 2984, 3719, 288, 10792, 927, 2738, 1016, 273, 277, 31, 10792, 711, 2009, 2570, 1305, 273, 638, 31, 10792, 898, 31, 7734, 289, 5411, 289, 5411, 727, 10551, 2864, 7642, 3283, 75, 273, 14947, 18, 588, 6902, 2864, 5621, 5411, 727, 514, 2658, 273, 14947, 18, 588, 3834, 5621, 5411, 727, 24605, 1733, 3272, 273, 394, 24605, 1733, 12, 26275, 1769, 5411, 727, 1000, 4894, 8895, 4572, 5636, 273, 394, 6847, 5621, 5411, 2985, 927, 2570, 1305, 273, 446, 31, 5411, 727, 1635, 707, 21710, 273, 394, 4317, 5621, 5411, 727, 987, 394, 4712, 273, 394, 2407, 5621, 5411, 1250, 25975, 1871, 26779, 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, 2510, 1085, 12, 6385, 1351, 14313, 429, 797, 694, 2873, 13, 288, 3639, 727, 4498, 2775, 273, 2873, 18, 588, 3198, 1290, 4059, 429, 4818, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 5411, 727, 1659, 7642, 14947, 273, 261, 797, 7642, 13, 9838, 18, 4285, 5621, 5411, 309, 261, 1106, 1586, 12, 26275, 3719, 288, 7734, 1324, 31, 5411, 289, 5411, 727, 2985, 8526, 2590, 273, 14947, 18, 588, 4712, 5621, 5411, 368, 336, 326, 770, 364, 326, 411, 830, 2738, 34, 707, 261, 430, 1915, 353, 1245, 13, 5411, 1250, 711, 2009, 2570, 1305, 273, 629, 31, 5411, 509, 927, 2738, 1016, 273, 300, 21, 31, 5411, 364, 261, 474, 277, 273, 2 ]
public String toString() { return String.valueOf((Object)xs); }
public String toString() { return String.valueOf((Object)value); }
public String toString() { return String.valueOf((Object)xs); }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/clean/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 327, 514, 18, 1132, 951, 12443, 921, 13, 13713, 1769, 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, 514, 1762, 1435, 288, 327, 514, 18, 1132, 951, 12443, 921, 13, 13713, 1769, 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 ]
} else if (oldOffset + BYTES_PER_ELEMENT[oldType] == raf.length()) { newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: old entry is at EOF");
public static void overwriteIFDValue(RandomAccessFile raf, int ifd, int tag, Object value) throws FormatException, IOException { if (DEBUG) { debug("overwriteIFDValue (ifd=" + ifd + "; tag=" + tag + "; value=" + value + ")"); } byte[] header = new byte[4]; raf.seek(0); raf.readFully(header); if (!isValidHeader(header)) { throw new FormatException("Invalid TIFF header"); } boolean little = header[0] == LITTLE && header[1] == LITTLE; // II long offset = 4; // offset to the IFD int num = 0; // number of directory entries // skip to the correct IFD for (int i=0; i<=ifd; i++) { offset = DataTools.read4UnsignedBytes(raf, little); if (offset <= 0) { throw new FormatException("No such IFD (" + ifd + " of " + i + ")"); } raf.seek(offset); num = DataTools.read2UnsignedBytes(raf, little); if (i < ifd) raf.seek(offset + 2 + 12 * num); } // search directory entries for proper tag for (int i=0; i<num; i++) { int oldTag = DataTools.read2UnsignedBytes(raf, little); int oldType = DataTools.read2UnsignedBytes(raf, little); int oldCount = DataTools.read4SignedBytes(raf, little); int oldOffset = DataTools.read4SignedBytes(raf, little); if (oldTag == tag) { // write new value to buffers ByteArrayOutputStream ifdBuf = new ByteArrayOutputStream(14); DataOutputStream ifdOut = new DataOutputStream(ifdBuf); ByteArrayOutputStream extraBuf = new ByteArrayOutputStream(); DataOutputStream extraOut = new DataOutputStream(extraBuf); writeIFDValue(ifdOut, extraBuf, extraOut, oldOffset, tag, value); byte[] bytes = ifdBuf.toByteArray(); byte[] extra = extraBuf.toByteArray(); // extract new directory entry parameters int newTag = DataTools.bytesToInt(bytes, 0, 2, false); int newType = DataTools.bytesToInt(bytes, 2, 2, false); int newCount = DataTools.bytesToInt(bytes, 4, false); int newOffset = DataTools.bytesToInt(bytes, 8, false); if (DEBUG) { debug("overwriteIFDValue:\n\told: (tag=" + oldTag + "; type=" + oldType + "; count=" + oldCount + "; offset=" + oldOffset + ");\n\tnew: (tag=" + newTag + "; type=" + newType + "; count=" + newCount + "; offset=" + newOffset + ")"); } // determine the best way to overwrite the old entry if (extra.length == 0) { // new entry is inline; if old entry wasn't, old data is orphaned // do not override new offset value since data is inline if (DEBUG) debug("overwriteIFDValue: new entry is inline"); } else if (newCount <= oldCount) { // new entry is as small or smaller than old entry; overwrite it newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: new entry is <= old entry"); } else if (oldOffset + BYTES_PER_ELEMENT[oldType] == raf.length()) { // old entry was already at EOF; overwrite it newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: old entry is at EOF"); } else { // old entry was elsewhere; append to EOF, orphaning old entry newOffset = (int) raf.length(); if (DEBUG) debug("overwriteIFDValue: old entry will be orphaned"); } // overwrite old entry raf.seek(raf.getFilePointer() - 10); // jump back DataTools.writeShort(raf, newType, little); DataTools.writeInt(raf, newCount, little); DataTools.writeInt(raf, newOffset, little); if (extra.length > 0) { raf.seek(newOffset); raf.write(extra); } return; } } throw new FormatException("Tag not found (" + getIFDTagName(tag) + ")"); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/4b0723edb4db82cde3ec9b1d49556e7e9107ef46/TiffTools.java/clean/loci/formats/TiffTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 6156, 5501, 40, 620, 12, 8529, 26933, 24671, 16, 565, 509, 309, 72, 16, 509, 1047, 16, 1033, 460, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, 13, 288, 1377, 1198, 2932, 19274, 5501, 40, 620, 261, 430, 72, 1546, 397, 309, 72, 397, 13636, 1047, 1546, 397, 1047, 397, 13636, 460, 1546, 397, 3639, 460, 397, 7310, 1769, 565, 289, 565, 1160, 8526, 1446, 273, 394, 1160, 63, 24, 15533, 565, 24671, 18, 16508, 12, 20, 1769, 565, 24671, 18, 896, 16999, 12, 3374, 1769, 565, 309, 16051, 26810, 1864, 12, 3374, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 27491, 1446, 8863, 565, 289, 565, 1250, 12720, 273, 1446, 63, 20, 65, 422, 511, 30972, 900, 597, 1446, 63, 21, 65, 422, 511, 30972, 900, 31, 368, 23076, 565, 1525, 1384, 273, 1059, 31, 368, 1384, 358, 326, 11083, 40, 565, 509, 818, 273, 374, 31, 368, 1300, 434, 1867, 3222, 565, 368, 2488, 358, 326, 3434, 11083, 40, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 33, 430, 72, 31, 277, 27245, 288, 1377, 1384, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 13308, 16, 12720, 1769, 1377, 309, 261, 3348, 1648, 374, 13, 288, 3639, 604, 394, 4077, 503, 2932, 2279, 4123, 11083, 40, 7566, 397, 309, 72, 397, 315, 434, 315, 397, 277, 397, 7310, 1769, 1377, 289, 1377, 24671, 18, 16508, 12, 3348, 1769, 1377, 818, 273, 1910, 10348, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 6156, 5501, 40, 620, 12, 8529, 26933, 24671, 16, 565, 509, 309, 72, 16, 509, 1047, 16, 1033, 460, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, 13, 288, 1377, 1198, 2932, 19274, 5501, 40, 620, 261, 430, 72, 1546, 397, 309, 72, 397, 13636, 1047, 1546, 397, 1047, 397, 13636, 460, 1546, 397, 3639, 460, 397, 7310, 1769, 565, 289, 565, 1160, 8526, 1446, 273, 394, 1160, 63, 24, 15533, 565, 24671, 18, 16508, 12, 20, 1769, 565, 24671, 18, 896, 16999, 12, 3374, 1769, 565, 309, 16051, 26810, 1864, 12, 3374, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 27491, 1446, 8863, 565, 289, 565, 1250, 12720, 273, 2 ]
list.add( elementHandle.getQualifiedName( ) );
list.add( elementHandle.getName( ) );
public static String[] getThemes( ) { ArrayList list = new ArrayList( ); list.add( CHOICE_NONE ); ModuleHandle handle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); Iterator iterator = handle.getAllThemes( ).iterator( ); if ( iterator != null ) { while ( iterator.hasNext( ) ) { ReportElementHandle elementHandle = (ReportElementHandle) iterator.next( ); list.add( elementHandle.getQualifiedName( ) ); } } return (String[]) list.toArray( new String[0] ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8a526feb12504129505e0176f815856da16b99c1/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 336, 30224, 12, 262, 202, 95, 202, 202, 19558, 666, 273, 394, 2407, 12, 11272, 202, 202, 1098, 18, 1289, 12, 6469, 51, 11774, 67, 9826, 11272, 202, 202, 3120, 3259, 1640, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 18, 588, 4820, 15478, 3259, 12, 11272, 202, 202, 3198, 2775, 273, 1640, 18, 588, 1595, 30224, 12, 262, 18, 9838, 12, 11272, 202, 202, 430, 261, 2775, 480, 446, 262, 202, 202, 95, 1082, 202, 17523, 261, 2775, 18, 5332, 2134, 12, 262, 262, 1082, 202, 95, 9506, 202, 4820, 1046, 3259, 930, 3259, 273, 261, 4820, 1046, 3259, 13, 2775, 18, 4285, 12, 11272, 9506, 202, 1098, 18, 1289, 12, 930, 3259, 18, 588, 12345, 12, 262, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 780, 63, 5717, 666, 18, 31447, 12, 394, 514, 63, 20, 65, 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, 0, 0, 0, 0, 0, 0, 0, 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, 482, 760, 514, 8526, 336, 30224, 12, 262, 202, 95, 202, 202, 19558, 666, 273, 394, 2407, 12, 11272, 202, 202, 1098, 18, 1289, 12, 6469, 51, 11774, 67, 9826, 11272, 202, 202, 3120, 3259, 1640, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 18, 588, 4820, 15478, 3259, 12, 11272, 202, 202, 3198, 2775, 273, 1640, 18, 588, 1595, 30224, 12, 262, 18, 9838, 12, 11272, 202, 202, 430, 261, 2775, 480, 446, 262, 202, 202, 95, 1082, 202, 17523, 261, 2775, 18, 5332, 2134, 12, 262, 262, 1082, 202, 95, 9506, 202, 4820, 1046, 3259, 930, 3259, 273, 261, 4820, 1046, 3259, 13, 2775, 18, 4285, 12, 11272, 9506, 202, 1098, 18, 2 ]
else model.setArmed(false);
public void mouseEntered(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if (button.isRolloverEnabled()) model.setRollover(true); if (model.isPressed() && (e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0) model.setArmed(true); else model.setArmed(false); } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/282091173a7e2729106d4b782d7bd7d98837dbba/BasicButtonListener.java/buggy/javax/swing/plaf/basic/BasicButtonListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 18, 588, 1830, 1435, 1276, 4115, 3616, 13, 1377, 288, 3639, 4115, 3616, 3568, 273, 261, 7469, 3616, 13, 425, 18, 588, 1830, 5621, 3639, 12569, 1488, 938, 273, 3568, 18, 588, 1488, 5621, 3639, 309, 261, 5391, 18, 291, 4984, 21896, 1526, 10756, 1850, 938, 18, 542, 4984, 21896, 12, 3767, 1769, 7734, 309, 261, 2284, 18, 291, 24624, 1435, 2398, 597, 261, 73, 18, 588, 11948, 424, 1435, 473, 2741, 1133, 18, 20068, 21, 67, 12711, 67, 11704, 13, 480, 374, 13, 1850, 938, 18, 542, 686, 2937, 12, 3767, 1769, 3639, 469, 1850, 938, 18, 542, 686, 2937, 12, 5743, 1769, 1377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7644, 10237, 329, 12, 9186, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 18, 588, 1830, 1435, 1276, 4115, 3616, 13, 1377, 288, 3639, 4115, 3616, 3568, 273, 261, 7469, 3616, 13, 425, 18, 588, 1830, 5621, 3639, 12569, 1488, 938, 273, 3568, 18, 588, 1488, 5621, 3639, 309, 261, 5391, 18, 291, 4984, 21896, 1526, 10756, 1850, 938, 18, 542, 4984, 21896, 12, 3767, 1769, 7734, 309, 261, 2284, 18, 291, 24624, 1435, 2398, 597, 261, 73, 18, 588, 11948, 424, 1435, 473, 2741, 1133, 18, 20068, 21, 67, 12711, 67, 11704, 13, 480, 374, 13, 1850, 938, 18, 542, 686, 2937, 12, 3767, 1769, 3639, 469, 1850, 938, 18, 542, 686, 2937, 12, 2 ]
String fileDocumentIdStr = "dummy text"; String gotoImageArchive = req.getParameter( "GotoImageArchive"); if( null != gotoImageArchive ) { ImageArchiveFacade imageArhiveFacade = ImageArchiveFacade.getInstance( req ); if ( !imageArhiveFacade.isImageSelected() ) { imageArhiveFacade.setForwardReturnUrl( "ChangeImage?meta_id=" + req.getParameter("meta_id") + "&img=" + req.getParameter( "img" ) + "&label=" + req.getParameter( "label" ) ); imageArhiveFacade.forward( req, res );
REQUEST_PARAM__TO_FROM_IMAGE_ARCHIVE = imagArchiveToFrom = "GotoImageArchive"; String toFromImageArchive = req.getParameter( imagArchiveToFrom ); if( null != toFromImageArchive ) { ImageArchive imageArhive = (ImageArchive) ImageArchive.getInstance( req ); if ( !imageArhive.isImageSelected() ) { imageArhive.setForwardReturnUrl( "ChangeImage?meta_id=" + req.getParameter("meta_id") + "&img=" + getImageNumberParam(req) + "&label=" + req.getParameter( "label" ) + "&" + REQUEST_PARAM__TO_FROM_IMAGE_ARCHIVE + "=" + toFromImageArchive ); imageArhive.forward( req, res );
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String metaIdStr = req.getParameter( "meta_id" ); int meta_id = Integer.parseInt( metaIdStr ); UserDomainObject user = Utility.getLoggedOnUser( req ); // Check if user has write rights IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); if ( !imcref.checkDocAdminRights( meta_id, user ) ) { Utility.redirectToStartDocument( req, res ); return; } int widthFromFile = 0; int heightFromFile = 0; boolean fileImageDocumentChoosen = false; String fileDocumentIdStr = "dummy text"; String gotoImageArchive = req.getParameter( "GotoImageArchive"); if( null != gotoImageArchive ) { ImageArchiveFacade imageArhiveFacade = ImageArchiveFacade.getInstance( req ); if ( !imageArhiveFacade.isImageSelected() ) { imageArhiveFacade.setForwardReturnUrl( "ChangeImage?meta_id=" + req.getParameter("meta_id") + "&img=" + req.getParameter( "img" ) + "&label=" + req.getParameter( "label" ) ); imageArhiveFacade.forward( req, res ); } else { FileDocumentDomainObject imageFileDocument = imageArhiveFacade.getSelectedImage(); if( null != imageFileDocument ) { fileImageDocumentChoosen = true; fileDocumentIdStr = ""+imageFileDocument.getId(); ImageFileMetaData imageFileMetaData = new ImageFileMetaData( imageFileDocument.getInputStreamSource().getInputStream(), imageFileDocument.getFilename() ); widthFromFile = imageFileMetaData.getWidth(); heightFromFile = imageFileMetaData.getHeight(); } } } File image_path = Utility.getDomainPrefPath( "image_path" ); List imageFolders = GetImages.getImageFolders( image_path, true ); imageFolders.add( 0, image_path ); HttpSession session = req.getSession( true ); StringBuffer folderOptions = createImageFolderOptionList(imageFolders,image_path); session.setAttribute( "imageFolderOptionList", folderOptions.toString() ); DocumentMapper documentMapper = imcref.getDocumentMapper() ; ImageDomainObject imageDomainObject = documentMapper.getDocumentImage( meta_id, getImageNumberParam( req ) ); String browsedImageUrl = getChoosenImageFromImageBrowse( req ); String imageUrl = ( "".equals( browsedImageUrl ) && null != imageDomainObject ? imageDomainObject.getUrl() : browsedImageUrl ); // selected OPTION or "" File imageFile = new File( image_path, imageUrl ); if (imageFile.isFile()) { ImageFileMetaData imageFileMetaData = new ImageFileMetaData( new FileInputStream(imageFile), imageUrl ); widthFromFile = imageFileMetaData.getWidth(); heightFromFile = imageFileMetaData.getHeight(); } Vector vec = new Vector(); boolean useFileData = null == imageDomainObject; if ( useFileData ) { vec.add( "#imgName#" ); vec.add( "" ); vec.add( "#imgRef#" ); vec.add( imageUrl ); vec.add( "#imgWidth#" ); vec.add( "" + widthFromFile ); vec.add( "#imgHeight#" ); vec.add( "" + heightFromFile ); vec.add( "#origW#" ); vec.add( "" + widthFromFile ); vec.add( "#origH#" ); vec.add( "" + heightFromFile ); vec.add( "#imgBorder#" ); vec.add( "0" ); vec.add( "#imgVerticalSpace#" ); vec.add( "0" ); vec.add( "#imgHorizontalSpace#" ); vec.add( "0" ); vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); vec.add( "selected" ); vec.add( "#top_selected#" ); vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( "" ); vec.add( "#imgLowScr#" ); vec.add( "" ); vec.add( "#imgRefLink#" ); vec.add( "" ); } else { int current_width = 0; try { current_width = "".equals( browsedImageUrl ) ? imageDomainObject.getWidth() : widthFromFile; } catch ( NumberFormatException ex ) { } int current_height = 0; try { current_height = "".equals( browsedImageUrl ) ? imageDomainObject.getHeight() : heightFromFile; } catch ( NumberFormatException ex ) { } int aspect = 0; if ( current_width * current_height != 0 ) { aspect = 100 * current_width / current_height; } String keepAspect = "checked"; if ( widthFromFile * heightFromFile != 0 && aspect != ( 100 * widthFromFile / heightFromFile ) ) { keepAspect = ""; } vec.add( "#imgName#" ); vec.add( HTMLConv.toHTMLSpecial(imageDomainObject.getName())); vec.add( "#imgRef#" ); vec.add( HTMLConv.toHTMLSpecial(imageUrl)); vec.add( "#imgWidth#" ); vec.add( current_width != 0 ? "" + current_width : "" + widthFromFile ); vec.add( "#origW#" ); // original imageWidth vec.add( "" + widthFromFile ); vec.add( "#imgHeight#" ); vec.add( current_height != 0 ? "" + current_height : "" + heightFromFile ); vec.add( "#origH#" ); vec.add( "" + heightFromFile ); // original imageHeight vec.add( "#keep_aspect#" ); vec.add( keepAspect ); vec.add( "#imgBorder#" ); vec.add( ""+imageDomainObject.getBorder() ); vec.add( "#imgVerticalSpace#" ); vec.add( ""+imageDomainObject.getVerticalSpace() ); vec.add( "#imgHorizontalSpace#" ); vec.add( ""+imageDomainObject.getHorizontalSpace() ); if ( "_top".equals( imageDomainObject.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#top_checked#" ); } else if ( "_self".equals( imageDomainObject.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#self_checked#" ); } else if ( "_blank".equals( imageDomainObject.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else if ( "_parent".equals( imageDomainObject.getTarget() ) ) { vec.add( "#target_name#" ); vec.add( "" ); vec.add( "#blank_checked#" ); } else { vec.add( "#target_name#" ); vec.add( imageDomainObject.getTarget() ); vec.add( "#other_checked#" ); } vec.add( "selected" ); if ( "baseline".equals( imageDomainObject.getAlign() ) ) { vec.add( "#baseline_selected#" ); } else if ( "top".equals( imageDomainObject.getAlign() ) ) { vec.add( "#top_selected#" ); } else if ( "middle".equals( imageDomainObject.getAlign() ) ) { vec.add( "#middle_selected#" ); } else if ( "bottom".equals( imageDomainObject.getAlign() ) ) { vec.add( "#bottom_selected#" ); } else if ( "texttop".equals( imageDomainObject.getAlign() ) ) { vec.add( "#texttop_selected#" ); } else if ( "absmiddle".equals( imageDomainObject.getAlign() ) ) { vec.add( "#absmiddle_selected#" ); } else if ( "absbottom".equals( imageDomainObject.getAlign() ) ) { vec.add( "#absbottom_selected#" ); } else if ( "left".equals( imageDomainObject.getAlign() ) ) { vec.add( "#left_selected#" ); } else if ( "right".equals( imageDomainObject.getAlign() ) ) { vec.add( "#right_selected#" ); } else { vec.add( "#none_selected#" ); } vec.add( "selected" ); vec.add( "#imgAltText#" ); vec.add( imageDomainObject.getAlternateText()); vec.add( "#imgLowScr#" ); vec.add( imageDomainObject.getLowResolutionUrl() ); vec.add( "#imgRefLink#" ); vec.add( imageDomainObject.getLinkUrl() ); } vec.add( "#imgUrl#" ); vec.add( imcref.getImageUrl() ); vec.add( "#getMetaId#" ); vec.add( String.valueOf( meta_id ) ); vec.add( "#img_no#" ); vec.add( String.valueOf( getImageNumberParam( req ) ) ); vec.add( "#folders#" ); vec.add( folderOptions.toString() ); vec.add( "#label#" ); vec.add( getLabelParam( req ) ); vec.add( "#imageFileDocumentId#" ); vec.add( fileDocumentIdStr ); String htmlStr = imcref.getAdminTemplate( "change_img.html", user, vec ); Utility.setDefaultHtmlContentType( res ); PrintWriter out = res.getWriter(); out.print( htmlStr ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1b70eac4ee5f0d6018421c1745e3b8af84fc3b58/ChangeImage.java/buggy/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 2191, 548, 1585, 273, 1111, 18, 588, 1662, 12, 315, 3901, 67, 350, 6, 11272, 3639, 509, 2191, 67, 350, 273, 2144, 18, 2670, 1702, 12, 2191, 548, 1585, 11272, 3639, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 1111, 11272, 3639, 368, 2073, 309, 729, 711, 1045, 14989, 3639, 6246, 39, 18348, 709, 71, 1734, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 5621, 3639, 309, 261, 401, 381, 71, 1734, 18, 1893, 1759, 4446, 18464, 12, 2191, 67, 350, 16, 729, 262, 262, 288, 5411, 13134, 18, 7590, 28939, 2519, 12, 1111, 16, 400, 11272, 5411, 327, 31, 3639, 289, 3639, 509, 1835, 13087, 273, 374, 31, 3639, 509, 2072, 13087, 273, 374, 31, 3639, 1250, 585, 2040, 2519, 9636, 8918, 273, 629, 31, 3639, 514, 585, 2519, 548, 1585, 273, 315, 21050, 977, 14432, 3639, 514, 2897, 2040, 7465, 273, 1111, 18, 588, 1662, 12, 315, 43, 6302, 2040, 7465, 8863, 3639, 309, 12, 446, 480, 2897, 2040, 7465, 262, 288, 5411, 3421, 7465, 12467, 1316, 686, 76, 688, 12467, 273, 3421, 7465, 12467, 18, 588, 1442, 12, 1111, 11272, 5411, 309, 261, 401, 2730, 686, 76, 688, 12467, 18, 291, 2040, 7416, 1435, 262, 288, 7734, 1316, 686, 76, 688, 12467, 18, 542, 8514, 990, 1489, 12, 315, 3043, 2040, 35, 3901, 67, 350, 1546, 397, 1111, 18, 588, 1662, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 514, 2191, 548, 1585, 273, 1111, 18, 588, 1662, 12, 315, 3901, 67, 350, 6, 11272, 3639, 509, 2191, 67, 350, 273, 2144, 18, 2670, 1702, 12, 2191, 548, 1585, 11272, 3639, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 1111, 11272, 3639, 368, 2073, 309, 729, 711, 1045, 14989, 3639, 6246, 39, 18348, 709, 71, 1734, 273, 4257, 2081, 18, 588, 3445, 39, 18348, 5621, 3639, 309, 261, 401, 381, 71, 1734, 18, 1893, 1759, 4446, 18464, 12, 2191, 67, 350, 16, 729, 262, 262, 288, 5411, 13134, 18, 7590, 28939, 2519, 12, 1111, 16, 400, 11272, 2 ]
log.finest("commit commiting txn " + txnID);
log.log(Level.FINEST, "commit commiting txn {0}", txnID);
public void commit() { if (DEBUG) { if (log.isLoggable(Level.FINEST)) { int i; long[] dbgDeleted = new long[deletedIDs.size()]; i = 0; for (long key : deletedIDs) { dbgDeleted[i++] = key; } Arrays.sort(dbgDeleted); log.finest("trans in txn " + txnID + " deleting " + Arrays.toString(dbgDeleted)); long[] dbgLocked = new long[lockedObjectsMap.size()]; i = 0; for (long key : lockedObjectsMap.keySet()) { dbgLocked[i++] = key; } Arrays.sort(dbgLocked); log.finest("trans in txn " + txnID + " updating/locked " + Arrays.toString(dbgLocked)); } } Set<SGSUUID> listeners = new HashSet<SGSUUID>(); Set<Long> dataspaceLocks = new HashSet<Long>(); for (Long l : deletedIDs) { try { if (! dataspaceLocks.contains(l)) { trans.lock(l); dataspaceLocks.add(l); } TSODataHeader hdr = (TSODataHeader) trans.read(l); listeners.addAll(hdr.availabilityListeners); log.finest("commit-delete " + hdr); trans.destroy(hdr.objectID); trans.destroy(l); lockedObjectsMap.remove(l); } catch (Exception e) { // XXX Remember to throw something at the end e.printStackTrace(); } } for (Entry<Long, Serializable> entry : lockedObjectsMap.entrySet()) { Long l = entry.getKey(); try { if (! dataspaceLocks.contains(l)) { trans.lock(l); dataspaceLocks.add(l); } TSODataHeader hdr = (TSODataHeader) trans.read(l); listeners.addAll(hdr.availabilityListeners); if (DEBUG) { log.finest("commit-update hdr before (" + l + ") " + hdr); } hdr.free = true; hdr.createNotCommitted = false; // not needed for everyone trans.write(l, hdr); trans.write(hdr.objectID, entry.getValue()); if (DEBUG) { log.finest("commit-update hdr after " + hdr); } } catch (NonExistantObjectIDException e) { e.printStackTrace(); } } if (DEBUG) { log.finest("commit commiting txn " + txnID); } trans.commit(); peekedObjectsMap.clear(); lockedObjectsMap.clear(); createdIDs.clear(); deletedIDs.clear(); ostore.notifyAvailabilityListeners(new ArrayList<SGSUUID>(listeners)); ostore.deregisterActiveTransaction(this); // Use the deadline as a sentinel in case someone tries to // reuse this transaction. currentTransactionDeadline = 0; }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/38cd635e4893bdb1f49db4d30432c11bf7409566/TSOTransaction.java/clean/src/com/sun/gi/objectstore/tso/TSOTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3294, 1435, 288, 202, 430, 261, 9394, 13, 288, 202, 565, 309, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882, 3719, 288, 202, 202, 474, 277, 31, 202, 202, 5748, 8526, 28966, 7977, 273, 394, 1525, 63, 8600, 5103, 18, 1467, 1435, 15533, 202, 202, 77, 273, 374, 31, 202, 202, 1884, 261, 5748, 498, 294, 4282, 5103, 13, 288, 1082, 565, 28966, 7977, 63, 77, 9904, 65, 273, 498, 31, 202, 202, 97, 202, 202, 12726, 18, 3804, 12, 1966, 75, 7977, 1769, 202, 202, 1330, 18, 926, 395, 2932, 2338, 316, 7827, 315, 397, 7827, 734, 397, 1082, 202, 6, 12993, 315, 397, 5647, 18, 10492, 12, 1966, 75, 7977, 10019, 202, 202, 5748, 8526, 28966, 8966, 273, 394, 1525, 63, 15091, 4710, 863, 18, 1467, 1435, 15533, 202, 202, 77, 273, 374, 31, 202, 202, 1884, 261, 5748, 498, 294, 8586, 4710, 863, 18, 856, 694, 10756, 288, 1082, 565, 28966, 8966, 63, 77, 9904, 65, 273, 498, 31, 202, 202, 97, 202, 202, 12726, 18, 3804, 12, 1966, 75, 8966, 1769, 202, 202, 1330, 18, 926, 395, 2932, 2338, 316, 7827, 315, 397, 7827, 734, 397, 1082, 202, 6, 9702, 19, 15091, 315, 397, 5647, 18, 10492, 12, 1966, 75, 8966, 10019, 202, 565, 289, 202, 97, 3639, 1000, 32, 55, 16113, 5562, 34, 4679, 273, 394, 6847, 32, 55, 16113, 5562, 34, 5621, 3639, 1000, 32, 3708, 34, 5386, 909, 19159, 273, 394, 6847, 32, 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, 3294, 1435, 288, 202, 430, 261, 9394, 13, 288, 202, 565, 309, 261, 1330, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 882, 3719, 288, 202, 202, 474, 277, 31, 202, 202, 5748, 8526, 28966, 7977, 273, 394, 1525, 63, 8600, 5103, 18, 1467, 1435, 15533, 202, 202, 77, 273, 374, 31, 202, 202, 1884, 261, 5748, 498, 294, 4282, 5103, 13, 288, 1082, 565, 28966, 7977, 63, 77, 9904, 65, 273, 498, 31, 202, 202, 97, 202, 202, 12726, 18, 3804, 12, 1966, 75, 7977, 1769, 202, 202, 1330, 18, 926, 395, 2932, 2338, 316, 7827, 315, 397, 7827, 734, 397, 1082, 202, 6, 12993, 315, 397, 5647, 18, 10492, 12, 1966, 75, 7977, 2 ]
true, 2, true); /* getCHKOnly */
true, 2, false); /* getCHKOnly */
public void actionPerformed(ActionEvent e) { if(fileList == null || !(fileList instanceof Index)) return; String keys = ""; Vector files = null; Index index = (Index)fileList; java.io.File destination = null; if(e.getSource() == downloadFiles) { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle(I18n.getMessage("thaw.plugin.fetch.destinationDirectory")); fileChooser.setDirectoryOnly(true); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); destination = fileChooser.askOneFile(); if(destination == null) return; } if(e.getSource() == removeFiles) { files = fileList.getFileList(); } for(int i = 0 ; i < selectedRows.length ; i++) { if(e.getSource() == removeFiles) { index.removeFile((thaw.plugins.index.File)files.get(selectedRows[i])); } if(e.getSource() == insertFiles) { thaw.plugins.index.File file = index.getFile(selectedRows[i]); FCPClientPut clientPut = new FCPClientPut(new java.io.File(file.getLocalPath()), 0, 0, null, null, 4, true, 0); queueManager.addQueryToThePendingQueue(clientPut); file.setTransfer(clientPut); } if(e.getSource() == downloadFiles) { thaw.plugins.index.File file = index.getFile(selectedRows[i]); FCPClientGet clientGet = new FCPClientGet(file.getPublicKey(), 4, 0, true, destination.getPath()); queueManager.addQueryToThePendingQueue(clientGet); file.setTransfer(clientGet); } if(e.getSource() == copyFileKeys) { thaw.plugins.index.File file = index.getFile(selectedRows[i]); if(file.getPublicKey() != null) keys = keys + file.getPublicKey() + "\n"; } if(e.getSource() == recalculateKeys) { thaw.plugins.index.File file = index.getFile(selectedRows[i]); FCPClientPut insertion = new FCPClientPut(new java.io.File(file.getLocalPath()), 0, 0, null, null, 4, true, 2, true); /* getCHKOnly */ insertion.start(queueManager); file.setTransfer(insertion); } } if(e.getSource() == copyFileKeys) { Toolkit tk = Toolkit.getDefaultToolkit(); StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, null); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/9961876a9bd0555c15ea18503b6b5c5cb5545c52/FileTable.java/clean/src/thaw/plugins/index/FileTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 12, 768, 682, 422, 446, 1082, 282, 747, 401, 12, 768, 682, 1276, 3340, 3719, 1082, 202, 2463, 31, 202, 202, 780, 1311, 273, 1408, 31, 9506, 202, 5018, 1390, 273, 446, 31, 202, 202, 1016, 770, 273, 261, 1016, 13, 768, 682, 31, 202, 202, 6290, 18, 1594, 18, 812, 2929, 273, 446, 31, 202, 202, 430, 12, 73, 18, 588, 1830, 1435, 422, 4224, 2697, 13, 288, 1082, 202, 812, 17324, 585, 17324, 273, 394, 1387, 17324, 5621, 1082, 202, 768, 17324, 18, 542, 4247, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 4094, 18, 5754, 18, 10590, 2853, 7923, 1769, 1082, 202, 768, 17324, 18, 542, 2853, 3386, 12, 3767, 1769, 1082, 202, 768, 17324, 18, 542, 6353, 559, 12, 46, 812, 17324, 18, 25242, 67, 2565, 18683, 1769, 25083, 202, 10590, 273, 585, 17324, 18, 835, 3335, 812, 5621, 1082, 202, 430, 12, 10590, 422, 446, 13, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 430, 12, 73, 18, 588, 1830, 1435, 422, 1206, 2697, 13, 288, 1082, 202, 2354, 273, 18645, 18, 588, 26098, 5621, 202, 202, 97, 202, 202, 1884, 12, 474, 277, 273, 374, 274, 277, 411, 3170, 4300, 18, 2469, 274, 277, 27245, 288, 1082, 202, 430, 12, 73, 18, 588, 1830, 1435, 422, 1206, 2697, 13, 288, 9506, 202, 1615, 18, 4479, 812, 12443, 451, 2219, 18, 8057, 18, 1615, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 12, 768, 682, 422, 446, 1082, 282, 747, 401, 12, 768, 682, 1276, 3340, 3719, 1082, 202, 2463, 31, 202, 202, 780, 1311, 273, 1408, 31, 9506, 202, 5018, 1390, 273, 446, 31, 202, 202, 1016, 770, 273, 261, 1016, 13, 768, 682, 31, 202, 202, 6290, 18, 1594, 18, 812, 2929, 273, 446, 31, 202, 202, 430, 12, 73, 18, 588, 1830, 1435, 422, 4224, 2697, 13, 288, 1082, 202, 812, 17324, 585, 17324, 273, 394, 1387, 17324, 5621, 1082, 202, 768, 17324, 18, 542, 4247, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 4094, 18, 5754, 18, 10590, 2853, 7923, 1769, 2 ]
if (perspectiveId == null) perspectiveId = WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(); WorkbenchPage page; try { page = (WorkbenchPage) workbench.showPerspective( perspectiveId, workbench.getActiveWorkbenchWindow()); } catch (WorkbenchException e) { return;
if (perspectiveId == null) { page = window.getActivePage(); if (page == null || page.getPerspective() == null) { perspectiveId = WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(); }
public void run() { // Ask the user to select a feature AboutInfo[] features = ((Workbench)workbench).getFeaturesInfo(); ArrayList welcomeFeatures = new ArrayList(); for (int i = 0; i < features.length; i++) { if (features[i].getWelcomePageURL() != null) welcomeFeatures.add(features[i]); } Shell shell = workbench.getActiveWorkbenchWindow().getShell(); if (welcomeFeatures.size() == 0) { MessageDialog.openInformation( shell, WorkbenchMessages.getString("QuickStartMessageDialog.title"), WorkbenchMessages.getString("QuickStartMessageDialog.message")); return; } features = new AboutInfo[welcomeFeatures.size()]; welcomeFeatures.toArray(features); // Sort ascending Arrays.sort(features, new Comparator() { Collator coll = Collator.getInstance(Locale.getDefault()); public int compare(Object a, Object b) { AboutInfo i1, i2; String name1, name2; i1 = (AboutInfo)a; name1 = i1.getFeatureLabel(); i2 = (AboutInfo)b; name2 = i2.getFeatureLabel(); if (name1 == null) name1 = ""; if (name2 == null) name2 = ""; return coll.compare(name1, name2); } }); // Find primary feature AboutInfo primaryFeature = ((Workbench)workbench).getAboutInfo(); int index = -1; if (primaryFeature != null) { for (int i = 0; i < features.length; i++) { if (features[i].getFeatureId().equals(primaryFeature.getFeatureId())) { index = i; break; } } } WelcomePageSelectionDialog d = new WelcomePageSelectionDialog( workbench.getActiveWorkbenchWindow().getShell(), features, index); if(d.open() != d.OK || d.getResult().length != 1) return; AboutInfo feature = (AboutInfo)d.getResult()[0]; // See if the feature wants a specific perspective String perspectiveId = feature.getWelcomePerspective(); if (perspectiveId == null) perspectiveId = WorkbenchPlugin.getDefault().getPerspectiveRegistry().getDefaultPerspective(); WorkbenchPage page; try { page = (WorkbenchPage) workbench.showPerspective( perspectiveId, workbench.getActiveWorkbenchWindow()); } catch (WorkbenchException e) { return; } page.setEditorAreaVisible(true); // create input WelcomeEditorInput input = new WelcomeEditorInput(feature); // see if we already have a welcome editor IEditorPart editor = page.findEditor(input); if(editor != null) { page.activate(editor); return; } try { page.openEditor(input, EDITOR_ID); } catch (PartInitException e) { IStatus status = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, 1, WorkbenchMessages.getString("QuickStartAction.openEditorException"), e); //$NON-NLS-1$ ErrorDialog.openError( workbench.getActiveWorkbenchWindow().getShell(), WorkbenchMessages.getString("QuickStartAction.errorDialogTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("QuickStartAction.errorDialogMessage"), //$NON-NLS-1$ status); }}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f6cd5d12c0a8b47b51117aa642f5d171e2641de5/QuickStartAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/QuickStartAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 759, 25747, 326, 729, 358, 2027, 279, 2572, 202, 24813, 966, 8526, 4467, 273, 14015, 2421, 22144, 13, 1252, 22144, 2934, 588, 8696, 966, 5621, 202, 19558, 28329, 8696, 273, 394, 2407, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4467, 18, 2469, 31, 277, 27245, 288, 202, 202, 430, 261, 7139, 63, 77, 8009, 588, 59, 16312, 1964, 1785, 1435, 480, 446, 13, 1875, 202, 91, 16312, 8696, 18, 1289, 12, 7139, 63, 77, 19226, 202, 97, 202, 13220, 5972, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 202, 202, 430, 261, 91, 16312, 8696, 18, 1467, 1435, 422, 374, 13, 288, 202, 202, 1079, 6353, 18, 3190, 5369, 12, 1082, 202, 10304, 16, 1875, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 13663, 1685, 1079, 6353, 18, 2649, 6, 3631, 1082, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 13663, 1685, 1079, 6353, 18, 2150, 7923, 1769, 202, 202, 2463, 31, 202, 97, 6862, 202, 7139, 273, 394, 9771, 659, 966, 63, 91, 16312, 8696, 18, 1467, 1435, 15533, 202, 91, 16312, 8696, 18, 31447, 12, 7139, 1769, 202, 202, 759, 5928, 13976, 202, 12726, 18, 3804, 12, 7139, 16, 394, 13359, 1435, 288, 202, 202, 13535, 639, 4508, 273, 17596, 639, 18, 588, 1442, 12, 3916, 18, 588, 1868, 10663, 1082, 202, 482, 509, 3400, 12, 921, 279, 16, 1033, 324, 13, 288, 9506, 202, 24813, 966, 277, 21, 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, 1071, 918, 1086, 1435, 288, 202, 759, 25747, 326, 729, 358, 2027, 279, 2572, 202, 24813, 966, 8526, 4467, 273, 14015, 2421, 22144, 13, 1252, 22144, 2934, 588, 8696, 966, 5621, 202, 19558, 28329, 8696, 273, 394, 2407, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4467, 18, 2469, 31, 277, 27245, 288, 202, 202, 430, 261, 7139, 63, 77, 8009, 588, 59, 16312, 1964, 1785, 1435, 480, 446, 13, 1875, 202, 91, 16312, 8696, 18, 1289, 12, 7139, 63, 77, 19226, 202, 97, 202, 13220, 5972, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 202, 202, 430, 261, 91, 16312, 8696, 18, 1467, 1435, 422, 374, 13, 288, 202, 202, 2 ]
public String getDescription() { return "desc"; }
public String getDescription() { return "desc"; }
public String getDescription() { return "desc"; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2b2869b853b82f1d7f51afd0964a012b9c1eb3e2/AbstractRendererTst.java/clean/pmd/regress/test/net/sourceforge/pmd/renderers/AbstractRendererTst.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 11056, 1435, 288, 5411, 327, 315, 5569, 14432, 3639, 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 ]
[ 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, 540, 1071, 514, 11056, 1435, 288, 5411, 327, 315, 5569, 14432, 3639, 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 ]
return (((ruleText == null) && (h.ruleText == null)) || ((ruleText != null) && ruleText.equals(h.ruleText)));
return (((ruleText == null) && (h.ruleText == null)) || ((ruleText != null) && ruleText.equals(h.ruleText))); } return false;
public boolean equals(Object o) { if (o instanceof ColorRuleHolder) { ColorRuleHolder h = (ColorRuleHolder) o; return (((ruleText == null) && (h.ruleText == null)) || ((ruleText != null) && ruleText.equals(h.ruleText))); } return false; }
47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/ccaad31a0144fc02f957bb9095b196a34594e1ab/ColorPanel.java/buggy/src/java/org/apache/log4j/chainsaw/color/ColorPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 12, 921, 320, 13, 288, 565, 309, 261, 83, 1276, 5563, 2175, 6064, 13, 288, 1377, 5563, 2175, 6064, 366, 273, 261, 2957, 2175, 6064, 13, 320, 31, 1377, 327, 261, 12443, 5345, 1528, 422, 446, 13, 597, 261, 76, 18, 5345, 1528, 422, 446, 3719, 1377, 747, 14015, 5345, 1528, 480, 446, 13, 597, 1720, 1528, 18, 14963, 12, 76, 18, 5345, 1528, 3719, 1769, 565, 289, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 12, 921, 320, 13, 288, 565, 309, 261, 83, 1276, 5563, 2175, 6064, 13, 288, 1377, 5563, 2175, 6064, 366, 273, 261, 2957, 2175, 6064, 13, 320, 31, 1377, 327, 261, 12443, 5345, 1528, 422, 446, 13, 597, 261, 76, 18, 5345, 1528, 422, 446, 3719, 1377, 747, 14015, 5345, 1528, 480, 446, 13, 597, 1720, 1528, 18, 14963, 12, 76, 18, 5345, 1528, 3719, 1769, 565, 289, 565, 327, 629, 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 ]
serviceEnabled = JiveGlobals.getBooleanProperty("plugin.broadcast.serviceEnabled", true);
serviceEnabled = JiveGlobals.getBooleanProperty("plugin.search.serviceEnabled", true);
public SearchPlugin() { serviceName = JiveGlobals.getProperty("plugin.search.serviceName", "search"); serviceEnabled = JiveGlobals.getBooleanProperty("plugin.broadcast.serviceEnabled", true); server = XMPPServer.getInstance(); serverName = server.getServerInfo().getName(); // See if the installed provider supports searching. If not, workaround // by providing our own searching. UserManager manager = UserManager.getInstance(); try { searchFields = manager.getSearchFields(); userManager = UserManager.getInstance(); searchFields = userManager.getSearchFields(); } catch (UnsupportedOperationException uoe) { // Use a SearchPluginUserManager instead. searchFields = getSearchFields(); } }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/503e111ae2224b9d5214f4c846c0fad72e8f1e8e/SearchPlugin.java/buggy/src/plugins/search/src/java/org/jivesoftware/messenger/plugin/SearchPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5167, 3773, 1435, 288, 3639, 6773, 273, 804, 688, 19834, 18, 588, 1396, 2932, 4094, 18, 3072, 18, 15423, 3113, 315, 3072, 8863, 3639, 1156, 1526, 273, 804, 688, 19834, 18, 588, 5507, 1396, 2932, 4094, 18, 3072, 18, 3278, 1526, 3113, 638, 1769, 7734, 1438, 273, 23216, 2081, 18, 588, 1442, 5621, 3639, 10926, 273, 1438, 18, 588, 2081, 966, 7675, 17994, 5621, 3639, 368, 2164, 309, 326, 5876, 2893, 6146, 15300, 18, 971, 486, 16, 18975, 3639, 368, 635, 17721, 3134, 4953, 15300, 18, 3639, 2177, 1318, 3301, 273, 2177, 1318, 18, 588, 1442, 5621, 3639, 775, 288, 5411, 1623, 2314, 273, 3301, 18, 588, 2979, 2314, 5621, 5411, 30833, 273, 2177, 1318, 18, 588, 1442, 5621, 5411, 1623, 2314, 273, 30833, 18, 588, 2979, 2314, 5621, 3639, 289, 3639, 1044, 261, 8544, 10602, 582, 15548, 13, 288, 5411, 368, 2672, 279, 5167, 3773, 1299, 1318, 3560, 18, 5411, 1623, 2314, 273, 15627, 2314, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5167, 3773, 1435, 288, 3639, 6773, 273, 804, 688, 19834, 18, 588, 1396, 2932, 4094, 18, 3072, 18, 15423, 3113, 315, 3072, 8863, 3639, 1156, 1526, 273, 804, 688, 19834, 18, 588, 5507, 1396, 2932, 4094, 18, 3072, 18, 3278, 1526, 3113, 638, 1769, 7734, 1438, 273, 23216, 2081, 18, 588, 1442, 5621, 3639, 10926, 273, 1438, 18, 588, 2081, 966, 7675, 17994, 5621, 3639, 368, 2164, 309, 326, 5876, 2893, 6146, 15300, 18, 971, 486, 16, 18975, 3639, 368, 635, 17721, 3134, 4953, 15300, 18, 3639, 2177, 1318, 3301, 273, 2177, 1318, 18, 588, 1442, 5621, 3639, 775, 288, 5411, 1623, 2314, 273, 3301, 18, 588, 2979, 2314, 5621, 5411, 30833, 273, 2177, 1318, 18, 588, 2 ]
throw new PainterException("wrong arguments");
throw new PainterException("if: wrong arguments");
protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // userdict systemDict.put("userdict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Float(1.0f)); } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Integer(randomNumberGenerator.nextInt(231))); } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { // context.operands.push(new Long(System.currentTimeMillis())); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); return systemDict; }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/a9e36ef1e4e4be2e6d4839ed4e5a42aabe172a12/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 81, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 6692, 1527, 11453, 565, 2619, 5014, 18, 458, 2932, 8864, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 8864, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 4739, 11453, 565, 2619, 5014, 18, 458, 2932, 7511, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 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, 282, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 81, 1527, 11453, 2 ]
isReady = true;
_readyJobs.notifyAll();
public void addJob(Job job) { if (job == null) return; if (job instanceof JobImpl) ((JobImpl)job).addedToQueue(); boolean isReady = false; long numReady = 0; boolean alreadyExists = false; synchronized (_readyJobs) { if (_readyJobs.contains(job)) alreadyExists = true; numReady = _readyJobs.size(); } if (!alreadyExists) { synchronized (_timedJobs) { if (_timedJobs.contains(job)) alreadyExists = true; } } _context.statManager().addRateData("jobQueue.readyJobs", numReady, 0); if (shouldDrop(job, numReady)) { if (_log.shouldLog(Log.WARN)) _log.warn("Dropping job due to overload! # ready jobs: " + numReady + ": job = " + job); job.dropped(); _context.statManager().addRateData("jobQueue.droppedJobs", 1, 1); awaken(1); return; } if (!alreadyExists) { if (job.getTiming().getStartAfter() <= _context.clock().now()) { // don't skew us - its 'start after' its been queued, or later job.getTiming().setStartAfter(_context.clock().now()); if (job instanceof JobImpl) ((JobImpl)job).madeReady(); synchronized (_readyJobs) { _readyJobs.add(job); isReady = true; } } else { synchronized (_timedJobs) { _timedJobs.add(job); _timedJobs.notifyAll(); } } } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Not adding already enqueued job " + job.getName()); } if (isReady) { // wake up at most one runner awaken(1); } return; }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/6ef22166f97d655b56ae3ef97650d494ac89f3d8/JobQueue.java/clean/router/java/src/net/i2p/router/JobQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2278, 12, 2278, 1719, 13, 288, 3639, 309, 261, 4688, 422, 446, 13, 327, 31, 3639, 309, 261, 4688, 1276, 3956, 2828, 13, 5411, 14015, 2278, 2828, 13, 4688, 2934, 9665, 774, 3183, 5621, 3639, 1250, 353, 8367, 273, 629, 31, 3639, 1525, 818, 8367, 273, 374, 31, 3639, 1250, 1818, 4002, 273, 629, 31, 3639, 3852, 261, 67, 1672, 7276, 13, 288, 5411, 309, 261, 67, 1672, 7276, 18, 12298, 12, 4688, 3719, 7734, 1818, 4002, 273, 638, 31, 5411, 818, 8367, 273, 389, 1672, 7276, 18, 1467, 5621, 3639, 289, 3639, 309, 16051, 17583, 4002, 13, 288, 5411, 3852, 261, 67, 20905, 7276, 13, 288, 7734, 309, 261, 67, 20905, 7276, 18, 12298, 12, 4688, 3719, 10792, 1818, 4002, 273, 638, 31, 5411, 289, 3639, 289, 3639, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 4688, 3183, 18, 1672, 7276, 3113, 818, 8367, 16, 374, 1769, 3639, 309, 261, 13139, 7544, 12, 4688, 16, 818, 8367, 3719, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 7544, 1382, 1719, 6541, 358, 30402, 5, 225, 468, 5695, 6550, 30, 315, 21821, 397, 818, 8367, 397, 6398, 1719, 273, 315, 397, 1719, 1769, 5411, 1719, 18, 7285, 1845, 5621, 5411, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 4688, 3183, 18, 7285, 1845, 7276, 3113, 404, 16, 404, 1769, 5411, 1690, 7940, 12, 21, 1769, 5411, 327, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2278, 12, 2278, 1719, 13, 288, 3639, 309, 261, 4688, 422, 446, 13, 327, 31, 3639, 309, 261, 4688, 1276, 3956, 2828, 13, 5411, 14015, 2278, 2828, 13, 4688, 2934, 9665, 774, 3183, 5621, 3639, 1250, 353, 8367, 273, 629, 31, 3639, 1525, 818, 8367, 273, 374, 31, 3639, 1250, 1818, 4002, 273, 629, 31, 3639, 3852, 261, 67, 1672, 7276, 13, 288, 5411, 309, 261, 67, 1672, 7276, 18, 12298, 12, 4688, 3719, 7734, 1818, 4002, 273, 638, 31, 5411, 818, 8367, 273, 389, 1672, 7276, 18, 1467, 5621, 3639, 289, 3639, 309, 16051, 17583, 4002, 13, 288, 5411, 3852, 261, 67, 20905, 7276, 13, 288, 7734, 309, 261, 67, 20905, 7276, 18, 12298, 2 ]
remoteHost = socket.getInetAddress().getHostName ();
remoteHost = org.apache.james.dnsserver.DNSServer.getHostName(socket.getInetAddress());
public void handleConnection( Socket connection ) throws IOException { String remoteHost = ""; String remoteIP = ""; try { this.socket = connection; synchronized (this) { handlerThread = Thread.currentThread(); } // in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "ASCII"), 512); in = new CRLFTerminatedReader(new BufferedInputStream(socket.getInputStream(), 512), "ASCII"); remoteIP = socket.getInetAddress().getHostAddress (); remoteHost = socket.getInetAddress().getHostName (); } catch (Exception e) { if (getLogger().isErrorEnabled()) { StringBuffer exceptionBuffer = new StringBuffer(256) .append("Cannot open connection from ") .append(remoteHost) .append(" (") .append(remoteIP) .append("): ") .append(e.getMessage()); getLogger().error( exceptionBuffer.toString(), e ); } } if (getLogger().isInfoEnabled()) { StringBuffer logBuffer = new StringBuffer(128) .append("Connection from ") .append(remoteHost) .append(" (") .append(remoteIP) .append(") "); getLogger().info(logBuffer.toString()); } try { outs = new BufferedOutputStream(socket.getOutputStream(), 1024); out = new InternetPrintWriter(outs, true); state = AUTHENTICATION_READY; user = "unknown"; StringBuffer responseBuffer = new StringBuffer(256) .append(OK_RESPONSE) .append(" ") .append(theConfigData.getHelloName()) .append(" POP3 server (") .append(POP3Handler.softwaretype) .append(") ready "); out.println(responseBuffer.toString()); theWatchdog.start(); while (parseCommand(readCommandLine())) { theWatchdog.reset(); } theWatchdog.stop(); if (getLogger().isInfoEnabled()) { StringBuffer logBuffer = new StringBuffer(128) .append("Connection for ") .append(user) .append(" from ") .append(remoteHost) .append(" (") .append(remoteIP) .append(") closed."); getLogger().info(logBuffer.toString()); } } catch (Exception e) { out.println(ERR_RESPONSE + " Error closing connection."); out.flush(); StringBuffer exceptionBuffer = new StringBuffer(128) .append("Exception during connection from ") .append(remoteHost) .append(" (") .append(remoteIP) .append(") : ") .append(e.getMessage()); getLogger().error(exceptionBuffer.toString(), e ); } finally { resetHandler(); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/a50b140cfcfa01881d0bfeac9e7fa9d0dbd23262/POP3Handler.java/buggy/branches/v2.3/src/java/org/apache/james/pop3server/POP3Handler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1952, 12, 8758, 1459, 262, 5411, 1216, 1860, 288, 3639, 514, 2632, 2594, 273, 1408, 31, 3639, 514, 2632, 2579, 273, 1408, 31, 3639, 775, 288, 5411, 333, 18, 7814, 273, 1459, 31, 5411, 3852, 261, 2211, 13, 288, 7734, 1838, 3830, 273, 4884, 18, 2972, 3830, 5621, 5411, 289, 5411, 368, 316, 273, 394, 10633, 12, 2704, 15322, 12, 7814, 18, 588, 4348, 9334, 315, 13756, 6, 3631, 13908, 1769, 5411, 316, 273, 394, 21791, 21888, 2514, 12, 2704, 24742, 12, 7814, 18, 588, 4348, 9334, 13908, 3631, 315, 13756, 8863, 5411, 2632, 2579, 273, 2987, 18, 588, 382, 278, 1887, 7675, 588, 2594, 1887, 261, 1769, 5411, 2632, 2594, 273, 2358, 18, 19211, 18, 78, 753, 18, 14926, 3567, 18, 11602, 2081, 18, 588, 20946, 12, 7814, 18, 588, 382, 278, 1887, 10663, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 309, 261, 588, 3328, 7675, 291, 668, 1526, 10756, 288, 7734, 6674, 1520, 1892, 273, 10792, 394, 6674, 12, 5034, 13, 18701, 263, 6923, 2932, 4515, 1696, 1459, 628, 9369, 18701, 263, 6923, 12, 7222, 2594, 13, 18701, 263, 6923, 2932, 7566, 13, 18701, 263, 6923, 12, 7222, 2579, 13, 18701, 263, 6923, 2932, 4672, 9369, 18701, 263, 6923, 12, 73, 18, 24906, 10663, 7734, 7156, 7675, 1636, 12, 1520, 1892, 18, 10492, 9334, 425, 11272, 5411, 289, 3639, 289, 3639, 309, 261, 588, 3328, 7675, 291, 966, 1526, 10756, 288, 5411, 6674, 613, 1892, 273, 7734, 394, 6674, 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, 1640, 1952, 12, 8758, 1459, 262, 5411, 1216, 1860, 288, 3639, 514, 2632, 2594, 273, 1408, 31, 3639, 514, 2632, 2579, 273, 1408, 31, 3639, 775, 288, 5411, 333, 18, 7814, 273, 1459, 31, 5411, 3852, 261, 2211, 13, 288, 7734, 1838, 3830, 273, 4884, 18, 2972, 3830, 5621, 5411, 289, 5411, 368, 316, 273, 394, 10633, 12, 2704, 15322, 12, 7814, 18, 588, 4348, 9334, 315, 13756, 6, 3631, 13908, 1769, 5411, 316, 273, 394, 21791, 21888, 2514, 12, 2704, 24742, 12, 7814, 18, 588, 4348, 9334, 13908, 3631, 315, 13756, 8863, 5411, 2632, 2579, 273, 2987, 18, 588, 382, 278, 1887, 7675, 588, 2594, 1887, 261, 1769, 5411, 2632, 2594, 273, 2358, 18, 19211, 2 ]
private int readReverseHex( int offset, int length )
private int readReverseHex(int offset, int length)
private int readReverseHex( int offset, int length ) { int returnValue = 0; if( length > 0 && length < 4 ) { for( int i = 0; i < length; i++ ) { returnValue += rom.read( offset + i ) << ( i * 8 ); } } return returnValue; }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/e3746491678a9f0bdee74ba64d785d53772c8516/FlyoverEditor.java/clean/src/net/starmen/pkhack/eb/FlyoverEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 509, 855, 12650, 7037, 12, 474, 1384, 16, 509, 769, 13, 3639, 288, 5411, 509, 7750, 273, 374, 31, 5411, 309, 12, 769, 405, 374, 597, 769, 411, 1059, 262, 5411, 288, 7734, 364, 12, 509, 277, 273, 374, 31, 277, 411, 769, 31, 277, 9904, 262, 7734, 288, 10792, 7750, 1011, 24137, 18, 896, 12, 1384, 397, 277, 262, 2296, 261, 277, 380, 1725, 11272, 7734, 289, 5411, 289, 5411, 327, 7750, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 509, 855, 12650, 7037, 12, 474, 1384, 16, 509, 769, 13, 3639, 288, 5411, 509, 7750, 273, 374, 31, 5411, 309, 12, 769, 405, 374, 597, 769, 411, 1059, 262, 5411, 288, 7734, 364, 12, 509, 277, 273, 374, 31, 277, 411, 769, 31, 277, 9904, 262, 7734, 288, 10792, 7750, 1011, 24137, 18, 896, 12, 1384, 397, 277, 262, 2296, 261, 277, 380, 1725, 11272, 7734, 289, 5411, 289, 5411, 327, 7750, 31, 3639, 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 ]
UltrapeerSettings.MAX_LEAVES.setValue(1);
UltrapeerSettings.MAX_LEAVES.setValue(4);
public static void setSettings() { //Setup LimeWire backend. For testing other vendors, you can skip all //this and manually configure a client to listen on port 6667, with //incoming slots and no connections. //To keep LimeWire from connecting to the outside network, we filter out //all addresses but localhost and 18.239.0.*. The latter is used in //pongs for testing. TODO: it would be nice to have a way to prevent //BootstrapServerManager from adding defaults and connecting. FilterSettings.BLACK_LISTED_IP_ADDRESSES.setValue( new String[] {"*.*.*.*"}); FilterSettings.WHITE_LISTED_IP_ADDRESSES.setValue( new String[] {"127.*.*.*"}); ConnectionSettings.PORT.setValue(PORT); SharingSettings.EXTENSIONS_TO_SHARE.setValue("txt;"); // get the resource file for com/limegroup/gnutella File berkeley = CommonUtils.getResourceFile("com/limegroup/gnutella/berkeley.txt"); File susheel = CommonUtils.getResourceFile("com/limegroup/gnutella/susheel.txt"); // now move them to the share dir CommonUtils.copy(berkeley, new File(_sharedDir, "berkeley.txt")); CommonUtils.copy(susheel, new File(_sharedDir, "susheel.txt")); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(true); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(false); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.MAX_LEAVES.setValue(1); ConnectionSettings.NUM_CONNECTIONS.setValue(3); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); ConnectionSettings.USE_GWEBCACHE.setValue(false); ConnectionSettings.WATCHDOG_ACTIVE.setValue(false); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/b4a624b9222353901bdfcfcfd83dd199043faf91/ServerSidePushProxyTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ServerSidePushProxyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, 1004, 358, 6514, 603, 1756, 1666, 6028, 27, 16, 598, 3639, 368, 31033, 12169, 471, 1158, 5921, 18, 3639, 368, 774, 3455, 511, 494, 15249, 628, 14244, 358, 326, 8220, 2483, 16, 732, 1034, 596, 3639, 368, 454, 6138, 1496, 17365, 471, 6549, 18, 4366, 29, 18, 20, 4509, 18, 225, 1021, 23740, 353, 1399, 316, 3639, 368, 500, 564, 364, 7769, 18, 225, 2660, 30, 518, 4102, 506, 13752, 358, 1240, 279, 4031, 358, 5309, 3639, 368, 10445, 2081, 1318, 628, 6534, 3467, 471, 14244, 18, 3639, 4008, 2628, 18, 14618, 3649, 67, 7085, 2056, 67, 2579, 67, 8355, 7031, 1090, 55, 18, 542, 620, 12, 5411, 394, 514, 8526, 12528, 14, 4509, 4509, 4509, 6, 22938, 3639, 4008, 2628, 18, 16861, 67, 7085, 2056, 67, 2579, 67, 8355, 7031, 1090, 55, 18, 542, 620, 12, 5411, 394, 514, 8526, 12528, 14260, 4509, 4509, 4509, 6, 22938, 3639, 4050, 2628, 18, 6354, 18, 542, 620, 12, 6354, 1769, 3639, 2638, 5968, 2628, 18, 12796, 55, 67, 4296, 67, 8325, 862, 18, 542, 620, 2932, 5830, 4868, 1769, 3639, 368, 336, 326, 1058, 585, 364, 532, 19, 80, 494, 1655, 19, 1600, 322, 1165, 69, 3639, 1387, 27965, 79, 292, 402, 273, 2398, 5658, 1989, 18, 588, 1420, 812, 2932, 832, 19, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, 1004, 358, 6514, 603, 1756, 1666, 6028, 27, 16, 598, 3639, 368, 31033, 12169, 471, 1158, 5921, 18, 3639, 368, 774, 3455, 511, 494, 15249, 628, 14244, 358, 326, 8220, 2483, 16, 732, 1034, 596, 3639, 368, 454, 6138, 1496, 17365, 471, 6549, 18, 4366, 29, 18, 20, 4509, 18, 225, 1021, 23740, 353, 1399, 316, 3639, 368, 500, 564, 364, 7769, 18, 225, 2660, 30, 518, 4102, 506, 13752, 358, 1240, 279, 4031, 358, 5309, 3639, 368, 10445, 2081, 1318, 628, 6534, 3467, 2 ]
replace.add(filterEntry.get(1).replaceAll("\\\\n", System.getProperty("line.separator")));
public PatternFilter(String filterName) throws IOException { super(); final int idx = filterName.lastIndexOf('.'); if (idx >= 0) { filterName = filterName.substring(idx + 1); } filterName = filterName.toLowerCase(); if (filterName.equals(outputFilterName)) { return; } filterName = Globals.getDefaultPath() + File.separator + "system" + File.separator + "outputFilters" + File.separator + "re" + filterName + Constants.s_PCGEN_LIST_EXTENSION; Logging.debugPrint("Creating filter from " + filterName); final File filterFile = new File(filterName); if (filterFile.canRead() && filterFile.isFile()) { final BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filterFile), "UTF-8")); if (br != null) { outputFilterName = filterName; match = new ArrayList<String>(); replace = new ArrayList<String>(); for (;;) { final String aLine = br.readLine(); Logging.debugPrint("Line read:" + aLine); if (aLine == null) { break; } String aLineWOComment; if (aLine.length() == 0 || aLine.charAt(0) == '#') continue; else if (0 < aLine.indexOf("\t#")) aLineWOComment = aLine.substring(0, aLine.indexOf("\t#")); else aLineWOComment = aLine; Logging.debugPrint("Stripped line:" + aLineWOComment); final List<String> filterEntry = CoreUtility.split(aLineWOComment, '\t'); try { if (filterEntry.size() == 2) { match.add(filterEntry.get(0)); replace.add(filterEntry.get(1).replaceAll("\\\\n", System.getProperty("line.separator"))); Logging.debugPrint("Match: [" + filterEntry.get(0) + "] and replace with [" + filterEntry.get(1) + "]"); } else if (filterEntry.size() == 1) { match.add(filterEntry.get(0)); replace.add(""); Logging.debugPrint("Match: [" + filterEntry.get(0) + "] and replace with []"); } else { Logging.errorPrint("Incorrect line format in PatternFilter: Line ignored"); } } catch (NullPointerException e) { Logging.errorPrint("Exception in setCurrentOutputFilter", e); } catch (NumberFormatException e) { Logging.errorPrint("Exception in setCurrentOutputFilter", e); } } br.close(); } } }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/449c3dc02d0685c7ac25971dbb12de791e2cfe45/PatternFilter.java/buggy/code/src/java/pcgen/io/filters/PatternFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6830, 1586, 12, 780, 25469, 13, 1216, 1860, 288, 202, 202, 9565, 5621, 9506, 202, 6385, 509, 2067, 273, 25469, 18, 2722, 31985, 2668, 1093, 1769, 202, 202, 430, 261, 3465, 1545, 374, 13, 202, 202, 95, 1082, 202, 2188, 461, 273, 25469, 18, 28023, 12, 3465, 397, 404, 1769, 202, 202, 97, 202, 202, 2188, 461, 273, 25469, 18, 869, 5630, 5621, 202, 202, 430, 261, 2188, 461, 18, 14963, 12, 2844, 1586, 461, 3719, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2188, 461, 273, 18901, 1031, 18, 588, 1868, 743, 1435, 397, 1387, 18, 11287, 397, 315, 4299, 6, 397, 1387, 18, 11287, 397, 315, 2844, 5422, 6, 1082, 202, 15, 1387, 18, 11287, 397, 315, 266, 6, 397, 25469, 397, 5245, 18, 87, 67, 3513, 16652, 67, 7085, 67, 12796, 31, 202, 202, 7735, 18, 4148, 5108, 2932, 11092, 1034, 628, 315, 397, 25469, 1769, 202, 202, 6385, 1387, 1034, 812, 273, 394, 1387, 12, 2188, 461, 1769, 202, 202, 430, 261, 2188, 812, 18, 4169, 1994, 1435, 597, 1034, 812, 18, 291, 812, 10756, 202, 202, 95, 1082, 202, 6385, 10633, 5186, 273, 394, 10633, 12, 2704, 15322, 12, 2704, 11907, 12, 2188, 812, 3631, 315, 5159, 17, 28, 7923, 1769, 1082, 202, 430, 261, 2848, 480, 446, 13, 1082, 202, 95, 9506, 202, 2844, 1586, 461, 273, 25469, 31, 9506, 202, 1916, 273, 394, 2407, 32, 780, 34, 5621, 9506, 202, 2079, 273, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6830, 1586, 12, 780, 25469, 13, 1216, 1860, 288, 202, 202, 9565, 5621, 9506, 202, 6385, 509, 2067, 273, 25469, 18, 2722, 31985, 2668, 1093, 1769, 202, 202, 430, 261, 3465, 1545, 374, 13, 202, 202, 95, 1082, 202, 2188, 461, 273, 25469, 18, 28023, 12, 3465, 397, 404, 1769, 202, 202, 97, 202, 202, 2188, 461, 273, 25469, 18, 869, 5630, 5621, 202, 202, 430, 261, 2188, 461, 18, 14963, 12, 2844, 1586, 461, 3719, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2188, 461, 273, 18901, 1031, 18, 588, 1868, 743, 1435, 397, 1387, 18, 11287, 397, 315, 4299, 6, 397, 1387, 18, 11287, 397, 315, 2844, 5422, 6, 1082, 2 ]
ITurnoAluno ta = (ITurnoAluno)sp.getITurnoAlunoPersistente().readByTurnoAndAluno(turno, student);
ITurnoAluno ta = sp.getITurnoAlunoPersistente().readByTurnoAndAluno(turno, student);
public Object run(Integer executionCourseCode, List curricularPlansIds, List enrollmentTypeFilters, List shiftIds) throws ExcepcaoInexistente, FenixServiceException{ ISite site = null; try { final ISuportePersistente sp = SuportePersistenteOJB.getInstance(); final IPersistentEnrollment persistentEnrollment = sp.getIPersistentEnrolment(); final IExecutionCourse executionCourse = (IExecutionCourse)sp.getIPersistentExecutionCourse().readByOID(ExecutionCourse.class,executionCourseCode); InfoExecutionCourse infoExecutionCourse = InfoExecutionCourseWithExecutionPeriod.newInfoFromDomain(executionCourse); IPersistentSite persistentSite = sp.getIPersistentSite(); site = persistentSite.readByExecutionCourse(executionCourse); List attends = executionCourse.getAttends(); List allDegreeCurricularPlans = getDegreeCurricularPlansFromAttends(attends); List allShifts = sp.getITurnoPersistente().readByExecutionCourse(executionCourse); List groupProperties = executionCourse.getGroupProperties(); Map studentGroupsMap = getStudentGroupsMapFromGroupPropertiesList(groupProperties,sp); InfoAttendsSummary infoAttendsSummary = new InfoAttendsSummary(); Map enrollmentDistribution = new HashMap(); List enrollmentDistributionKeys = new ArrayList(); // filter by Course if (curricularPlansIds != null) { final List dcpIds = new ArrayList(); dcpIds.addAll(curricularPlansIds); Predicate pCourses = new Predicate() { public boolean evaluate (Object o) { IFrequenta attendance = (IFrequenta)o; List scps = attendance.getAluno().getStudentCurricularPlans(); if(scps != null && !scps.isEmpty()) { IStudentCurricularPlan lastSCP = getStudentCurricularPlanFromAttends(attendance); final Integer lastDCPId = lastSCP.getDegreeCurricularPlan().getIdInternal(); return dcpIds.contains(lastDCPId); } else return false; } }; attends=(List)CollectionUtils.select(attends,pCourses); } // filter by Enrollment type if (enrollmentTypeFilters != null) { boolean enrolledFilter = enrollmentTypeFilters.contains(AttendacyStateSelectionType.ENROLLED); boolean notEnrolledFilter = enrollmentTypeFilters.contains(AttendacyStateSelectionType.NOT_ENROLLED); boolean improvementFilter = enrollmentTypeFilters.contains(AttendacyStateSelectionType.IMPROVEMENT); List newAttends = new ArrayList(); Iterator attendsIterator = attends.iterator(); while(attendsIterator.hasNext()){ IFrequenta attendacy = (IFrequenta)attendsIterator.next(); // improvement student (he/she is enrolled) if (improvementFilter && attendacy.getEnrolment() != null && (!attendacy.getEnrolment().getExecutionPeriod().equals(executionCourse.getExecutionPeriod()))){ newAttends.add(attendacy); // normal student (cannot be an improvement student) } else if (enrolledFilter && attendacy.getEnrolment() != null && (attendacy.getEnrolment().getExecutionPeriod().equals(executionCourse.getExecutionPeriod()))){ newAttends.add(attendacy); // not enrolled student } else if (notEnrolledFilter && attendacy.getEnrolment() == null){ newAttends.add(attendacy); } } attends = newAttends; } // filter by Shift if (shiftIds != null){ Iterator shiftIterator = shiftIds.iterator(); List collectedAttends = new ArrayList(); while(shiftIterator.hasNext()) { Integer shiftId = (Integer)shiftIterator.next(); final ITurno turno = (ITurno) sp.getITurnoPersistente().readByOID(Turno.class,shiftId); Iterator attendsIterator = attends.iterator(); while(attendsIterator.hasNext()){ IFrequenta attendance = (IFrequenta)attendsIterator.next(); // if an attendance is related to a Shift IStudent student = attendance.getAluno(); try { ITurnoAluno ta = (ITurnoAluno)sp.getITurnoAlunoPersistente().readByTurnoAndAluno(turno, student); if (ta != null) collectedAttends.add(attendance); } catch(ExcepcaoPersistencia ep) { FenixServiceException newEx = new FenixServiceException("Persistence layer error"); newEx.fillInStackTrace(); throw newEx; } } } attends = collectedAttends; } // building the info InfoForReadStudentsWithAttendsByExecutionCourse infoDTO = new InfoForReadStudentsWithAttendsByExecutionCourse(); List shifts = sp.getITurnoPersistente().readByExecutionCourseID(executionCourse.getIdInternal()); List infoCompositions = new ArrayList(); Iterator it = attends.iterator(); while(it.hasNext()){ IFrequenta iFrequenta = (IFrequenta)it.next(); InfoCompositionOfAttendAndDegreeCurricularPlanAndShiftsAndStudentGroups infoComposition = new InfoCompositionOfAttendAndDegreeCurricularPlanAndShiftsAndStudentGroups(); InfoFrequenta infoFrequenta = InfoAttendsWithInfoStudentAndPersonAndInfoEnrollment.newInfoFromDomain(iFrequenta); infoComposition.setInfoAttends(infoFrequenta); // determining the EnrolmentEvaluationType if (iFrequenta.getEnrolment() != null){ EnrolmentEvaluationType enrollmentEvaluationType = null; if (iFrequenta.getEnrolment().getExecutionPeriod().equals(executionCourse.getExecutionPeriod())){ enrollmentEvaluationType = EnrolmentEvaluationType.NORMAL_OBJ; } else{ enrollmentEvaluationType = EnrolmentEvaluationType.IMPROVEMENT_OBJ; } infoFrequenta.getInfoEnrolment().setEnrolmentEvaluationType(enrollmentEvaluationType); } IStudentCurricularPlan studentCurricularPlan = getStudentCurricularPlanFromAttends(iFrequenta); IDegreeCurricularPlan degreeCP = studentCurricularPlan.getDegreeCurricularPlan(); InfoDegreeCurricularPlan infoDCP = InfoDegreeCurricularPlanWithDegree.newInfoFromDomain(degreeCP); infoComposition.setAttendingStudentInfoDCP(infoDCP); Map infoShifts = getShiftsByAttends(shifts,iFrequenta,sp); infoComposition.setInfoShifts(infoShifts); Map infoStudentGroups = getInfoStudentGroupsByAttends(studentGroupsMap,iFrequenta); infoComposition.setInfoStudentGroups(infoStudentGroups); IStudent student = iFrequenta.getAluno(); IEnrollment enrollment = iFrequenta.getEnrolment(); Integer numberOfEnrollments = null; if (enrollment != null){ List studentEnrollments = persistentEnrollment.readEnrollmentsByStudentAndCurricularCourseNameAndDegree(student,enrollment.getCurricularCourse(),studentCurricularPlan.getDegreeCurricularPlan().getDegree()); numberOfEnrollments = new Integer(studentEnrollments.size()); } else{ numberOfEnrollments = new Integer(0); } Integer num = (Integer)enrollmentDistribution.get(numberOfEnrollments); if (num == null) num = new Integer(0); enrollmentDistribution.put(numberOfEnrollments,new Integer(num.intValue()+1)); if (!enrollmentDistributionKeys.contains(numberOfEnrollments)){ enrollmentDistributionKeys.add(numberOfEnrollments); } infoComposition.setNumberOfEnrollments(numberOfEnrollments); infoCompositions.add(infoComposition); } infoDTO.setInfoAttends(infoCompositions); infoDTO.setInfoExecutionCourse(infoExecutionCourse); List tipoAulas = getClassTypesFromExecutionCourse(executionCourse); infoDTO.setClassTypes(tipoAulas); infoDTO.setInfoShifts(getInfoShiftsFromList(allShifts)); infoDTO.setInfoDegreeCurricularPlans(getInfoDegreeCurricularPlansFromList(allDegreeCurricularPlans)); List infoGroupProperties = getInfoGroupPropertiesFromList(groupProperties); infoDTO.setInfoGroupProperties(infoGroupProperties); Collections.sort(enrollmentDistributionKeys); infoAttendsSummary.setEnrollmentDistribution(enrollmentDistribution); infoAttendsSummary.setNumberOfEnrollments(enrollmentDistributionKeys); infoDTO.setInfoAttendsSummary(infoAttendsSummary); TeacherAdministrationSiteView siteView = createSiteView(infoDTO, site); return siteView; } catch (ExcepcaoPersistencia ex) { ex.printStackTrace(); FenixServiceException newEx = new FenixServiceException(""); newEx.fillInStackTrace(); throw newEx; } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b7f726134ce029e2dca438e00666d8a9a42fc1cd/ReadStudentsWithAttendsByExecutionCourse.java/clean/src/ServidorAplicacao/Servico/teacher/ReadStudentsWithAttendsByExecutionCourse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1086, 12, 4522, 4588, 39, 3117, 1085, 16, 987, 662, 1512, 2490, 22846, 2673, 16, 987, 25821, 559, 5422, 16, 987, 4654, 2673, 13, 1216, 1312, 311, 2436, 6033, 382, 19041, 73, 16, 5411, 478, 275, 697, 15133, 95, 3639, 4437, 1137, 2834, 273, 446, 31, 3639, 775, 288, 5411, 727, 467, 3088, 499, 73, 11906, 73, 1694, 273, 3425, 499, 73, 11906, 73, 51, 8877, 18, 588, 1442, 5621, 5411, 727, 2971, 6572, 664, 17118, 9195, 664, 17118, 273, 1694, 18, 588, 2579, 6572, 664, 922, 475, 5621, 5411, 727, 467, 3210, 39, 3117, 4588, 39, 3117, 273, 261, 45, 3210, 39, 3117, 13, 1752, 18, 588, 2579, 6572, 3210, 39, 3117, 7675, 896, 858, 12945, 12, 3210, 39, 3117, 18, 1106, 16, 16414, 39, 3117, 1085, 1769, 5411, 3807, 3210, 39, 3117, 1123, 3210, 39, 3117, 273, 3807, 3210, 39, 3117, 1190, 3210, 5027, 18, 2704, 966, 1265, 3748, 12, 16414, 39, 3117, 1769, 13491, 2971, 6572, 4956, 9195, 4956, 273, 1694, 18, 588, 2579, 6572, 4956, 5621, 5411, 2834, 273, 9195, 4956, 18, 896, 858, 3210, 39, 3117, 12, 16414, 39, 3117, 1769, 5411, 987, 2403, 5839, 273, 4588, 39, 3117, 18, 588, 3075, 5839, 5621, 13491, 987, 777, 22885, 2408, 1512, 2490, 22846, 273, 336, 22885, 2408, 1512, 2490, 22846, 1265, 3075, 5839, 12, 4558, 5839, 1769, 5411, 987, 777, 10544, 87, 273, 1694, 18, 588, 1285, 321, 83, 11906, 73, 7675, 896, 858, 3210, 39, 3117, 12, 16414, 39, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1086, 12, 4522, 4588, 39, 3117, 1085, 16, 987, 662, 1512, 2490, 22846, 2673, 16, 987, 25821, 559, 5422, 16, 987, 4654, 2673, 13, 1216, 1312, 311, 2436, 6033, 382, 19041, 73, 16, 5411, 478, 275, 697, 15133, 95, 3639, 4437, 1137, 2834, 273, 446, 31, 3639, 775, 288, 5411, 727, 467, 3088, 499, 73, 11906, 73, 1694, 273, 3425, 499, 73, 11906, 73, 51, 8877, 18, 588, 1442, 5621, 5411, 727, 2971, 6572, 664, 17118, 9195, 664, 17118, 273, 1694, 18, 588, 2579, 6572, 664, 922, 475, 5621, 5411, 727, 467, 3210, 39, 3117, 4588, 39, 3117, 273, 261, 45, 3210, 39, 3117, 13, 1752, 18, 588, 2579, 6572, 3210, 39, 3117, 7675, 896, 858, 2 ]
yaxisNumber == 1 ? text : ( text + " - " + ( i + 1 ) ), AngleType.Y, treeIndex++ ).placeComponents( cmpContent );
yaxisNumber == 1 ? text : ( text + " - " + ( i + 1 ) ), AngleType.Y, treeIndex++ ).placeComponents( cmpList );
public void getComponent( Composite parent ) { final int COLUMN_NUMBER = ChartUIUtil.is3DType( getChart( ) ) ? 5 : 4; cmpContent = new Composite( parent, SWT.NONE ); { GridLayout glContent = new GridLayout( COLUMN_NUMBER, false ); glContent.horizontalSpacing = HORIZONTAL_SPACING; cmpContent.setLayout( glContent ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpContent.setLayoutData( gd ); } Label lblAxis = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblAxis.setLayoutData( gd ); lblAxis.setFont( JFaceResources.getBannerFont( ) ); lblAxis.setText( Messages.getString( "AxisSheetImpl.Label.Axis" ) ); //$NON-NLS-1$ } Label lblVisible = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblVisible.setLayoutData( gd ); lblVisible.setFont( JFaceResources.getBannerFont( ) ); lblVisible.setText( Messages.getString( "AxisSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ } Label lblType = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblType.setLayoutData( gd ); lblType.setFont( JFaceResources.getBannerFont( ) ); lblType.setText( Messages.getString( "AxisSheetImpl.Label.Type" ) ); //$NON-NLS-1$ } Label lblColor = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.CENTER; lblColor.setLayoutData( gd ); lblColor.setFont( JFaceResources.getBannerFont( ) ); lblColor.setText( Messages.getString( "AxisSheetImpl.Label.Color" ) ); //$NON-NLS-1$ } if ( ChartUIUtil.is3DType( getChart( ) ) ) { Label lblRotation = new Label( cmpContent, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalAlignment = SWT.BEGINNING; lblRotation.setLayoutData( gd ); lblRotation.setFont( JFaceResources.getBannerFont( ) ); lblRotation.setText( Messages.getString( "AxisSheetImpl.Label.Rotation" ) ); //$NON-NLS-1$ } } int treeIndex = 0; new AxisOptionChoser( ChartUIUtil.getAxisXForProcessing( (ChartWithAxes) getChart( ) ), Messages.getString( "AxisSheetImpl.Label.CategoryX" ), //$NON-NLS-1$ AngleType.X, treeIndex++ ).placeComponents( cmpContent ); int yaxisNumber = ChartUIUtil.getOrthogonalAxisNumber( getChart( ) ); for ( int i = 0; i < yaxisNumber; i++ ) { String text = Messages.getString( "AxisSheetImpl.Label.ValueY" ); //$NON-NLS-1$ new AxisOptionChoser( ChartUIUtil.getAxisYForProcessing( (ChartWithAxes) getChart( ), i ), yaxisNumber == 1 ? text : ( text + " - " + ( i + 1 ) ), AngleType.Y, treeIndex++ ).placeComponents( cmpContent ); //$NON-NLS-1$ } if ( ChartUIUtil.is3DType( getChart( ) ) ) { new AxisOptionChoser( ChartUIUtil.getAxisZForProcessing( (ChartWithAxes) getChart( ) ), Messages.getString( "AxisSheetImpl.Label.AncillaryZ" ), //$NON-NLS-1$ AngleType.Z, treeIndex++ ).placeComponents( cmpContent ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/78f76553a1f11fcaa5ed317654b674aab583e177/AxisSheetImpl.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/axis/AxisSheetImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 6385, 509, 13473, 67, 9931, 273, 14804, 5370, 1304, 18, 291, 23, 40, 559, 12, 336, 7984, 12, 262, 262, 692, 1381, 294, 1059, 31, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 13473, 67, 9931, 16, 629, 11272, 1082, 202, 7043, 1350, 18, 18396, 18006, 273, 24606, 67, 3118, 2226, 1360, 31, 1082, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 11272, 1082, 202, 9625, 1350, 18, 542, 3744, 751, 12, 15551, 11272, 202, 202, 97, 202, 202, 2224, 14284, 6558, 273, 394, 5287, 12, 9411, 1350, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 11272, 1082, 202, 19016, 18, 18396, 11535, 273, 348, 8588, 18, 19835, 31, 1082, 202, 31885, 6558, 18, 542, 3744, 751, 12, 15551, 11272, 1082, 202, 31885, 6558, 18, 542, 5711, 12, 804, 11824, 3805, 18, 588, 27398, 5711, 12, 262, 11272, 1082, 202, 31885, 6558, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 6558, 8229, 2828, 18, 2224, 18, 6558, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 2224, 14284, 6207, 273, 394, 5287, 12, 9411, 1350, 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, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 6385, 509, 13473, 67, 9931, 273, 14804, 5370, 1304, 18, 291, 23, 40, 559, 12, 336, 7984, 12, 262, 262, 692, 1381, 294, 1059, 31, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 13473, 67, 9931, 16, 629, 11272, 1082, 202, 7043, 1350, 18, 18396, 18006, 273, 24606, 67, 3118, 2226, 1360, 31, 1082, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 11272, 1082, 202, 9625, 2 ]
Map context = RequestContext.clearProperties(); if (context != null) { returnMessage.addProperties(context); }
public Object onCall(UMOEvent event) throws UMOException { logger.trace("MuleProxy: sync call for Mule UMO " + descriptor.getName()); UMOMessage returnMessage = null; try { if (event.getEndpoint().canReceive()) { RequestContext.setEvent(event); Object replyTo = event.getMessage().getReplyTo(); ReplyToHandler replyToHandler = getReplyToHandler(event); InterceptorsInvoker invoker = new InterceptorsInvoker(interceptorList, descriptor, event.getMessage()); // stats long startTime = 0; if (stat.isEnabled()) { startTime = System.currentTimeMillis(); } returnMessage = invoker.execute(); // stats if (stat.isEnabled()) { stat.addExecutionTime(System.currentTimeMillis() - startTime); } // this is the request event event = RequestContext.getEvent(); if (event.isStopFurtherProcessing()) { logger.debug("Event stop further processing has been set, no outbound routing will be performed."); } if (returnMessage != null && !event.isStopFurtherProcessing()) { Map context = RequestContext.clearProperties(); if (context != null) { returnMessage.addProperties(context); } if(descriptor.getOutboundRouter().hasEndpoints()) { UMOMessage outboundReturnMessage = descriptor.getOutboundRouter().route(returnMessage, event.getSession(), event.isSynchronous()); if(outboundReturnMessage!=null) { returnMessage = outboundReturnMessage; } } else { logger.debug("Outbound router on component '" + descriptor.getName() + "' doesn't have any endpoints configured."); } } //Process Response Router if (returnMessage != null && descriptor.getResponseRouter() != null) { logger.debug("Waiting for response router message"); returnMessage = descriptor.getResponseRouter().getResponse(returnMessage); } // process repltyTo if there is one if (returnMessage != null && replyToHandler != null) { String requestor = (String) returnMessage.getProperty(MuleProperties.MULE_REPLY_TO_REQUESTOR_PROPERTY); if ((requestor != null && !requestor.equals(descriptor.getName())) || requestor == null) { replyToHandler.processReplyTo(event, returnMessage, replyTo); } } } else { returnMessage = event.getSession().sendEvent(event); processReplyTo(returnMessage); } // stats if (stat.isEnabled()) { stat.incSentEventSync(); } } catch (Exception e) { event.getSession().setValid(false); if (e instanceof UMOException) { handleException(e); } else { handleException(new MessagingException(new Message(Messages.EVENT_PROCESSING_FAILED_FOR_X, descriptor.getName()), event.getMessage(), e)); } if(returnMessage==null) { returnMessage = new MuleMessage(new NullPayload()); } returnMessage.setExceptionPayload(new ExceptionPayload(e)); } return returnMessage; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c16135aeffdc8654133a2cfd4e29e2561335937/DefaultMuleProxy.java/buggy/mule/src/java/org/mule/impl/model/DefaultMuleProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 603, 1477, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 1194, 18, 5129, 2932, 49, 725, 3886, 30, 3792, 745, 364, 490, 725, 587, 5980, 315, 397, 4950, 18, 17994, 10663, 3639, 587, 5980, 1079, 327, 1079, 273, 446, 31, 3639, 775, 288, 5411, 309, 261, 2575, 18, 588, 3293, 7675, 4169, 11323, 10756, 288, 7734, 20479, 18, 542, 1133, 12, 2575, 1769, 7734, 1033, 30934, 273, 871, 18, 24906, 7675, 588, 7817, 774, 5621, 7734, 16202, 774, 1503, 30934, 1503, 273, 5561, 1283, 774, 1503, 12, 2575, 1769, 7734, 5294, 956, 1383, 24455, 24920, 273, 394, 5294, 956, 1383, 24455, 12, 2761, 6757, 682, 16, 4950, 16, 871, 18, 24906, 10663, 7734, 368, 3177, 7734, 1525, 8657, 273, 374, 31, 7734, 309, 261, 5642, 18, 291, 1526, 10756, 288, 10792, 8657, 273, 2332, 18, 2972, 28512, 5621, 7734, 289, 7734, 327, 1079, 273, 24920, 18, 8837, 5621, 7734, 368, 3177, 7734, 309, 261, 5642, 18, 291, 1526, 10756, 288, 10792, 610, 18, 1289, 3210, 950, 12, 3163, 18, 2972, 28512, 1435, 300, 8657, 1769, 7734, 289, 7734, 368, 333, 353, 326, 590, 871, 7734, 871, 273, 20479, 18, 588, 1133, 5621, 7734, 309, 261, 2575, 18, 291, 4947, 42, 8753, 7798, 10756, 288, 10792, 1194, 18, 4148, 2932, 1133, 2132, 9271, 4929, 711, 2118, 444, 16, 1158, 11663, 7502, 903, 506, 9591, 1199, 1769, 7734, 289, 7734, 309, 261, 2463, 1079, 480, 446, 597, 401, 2575, 18, 291, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 603, 1477, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 1194, 18, 5129, 2932, 49, 725, 3886, 30, 3792, 745, 364, 490, 725, 587, 5980, 315, 397, 4950, 18, 17994, 10663, 3639, 587, 5980, 1079, 327, 1079, 273, 446, 31, 3639, 775, 288, 5411, 309, 261, 2575, 18, 588, 3293, 7675, 4169, 11323, 10756, 288, 7734, 20479, 18, 542, 1133, 12, 2575, 1769, 7734, 1033, 30934, 273, 871, 18, 24906, 7675, 588, 7817, 774, 5621, 7734, 16202, 774, 1503, 30934, 1503, 273, 5561, 1283, 774, 1503, 12, 2575, 1769, 7734, 5294, 956, 1383, 24455, 24920, 273, 394, 5294, 956, 1383, 24455, 12, 2761, 6757, 682, 16, 4950, 16, 871, 18, 24906, 2 ]
int width = fm.stringWidth(name);
int width = (int)font.getStringBounds(name,fontRenderContext) .getWidth();
int getEntryWidth(VFSDirectoryEntryTableModel.Entry entry, FontMetrics fm) { String name = entry.dirEntry.name; int width = fm.stringWidth(name); width += ExpansionToggleBorder.ICON_WIDTH + entry.level * ExpansionToggleBorder.LEVEL_WIDTH + 3; if(showIcons) { width += fileIcon.getIconWidth(); width += getIconTextGap(); } return width; } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/bda686a18e894b1f9a34a94a8c4a40e4702319bc/FileCellRenderer.java/buggy/org/gjt/sp/jedit/browser/FileCellRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 15428, 2384, 12, 58, 4931, 2853, 1622, 1388, 1488, 18, 1622, 1241, 16, 202, 202, 5711, 5653, 10940, 13, 202, 95, 202, 202, 780, 508, 273, 1241, 18, 1214, 1622, 18, 529, 31, 202, 202, 474, 1835, 273, 10940, 18, 1080, 2384, 12, 529, 1769, 202, 202, 2819, 1011, 7784, 12162, 17986, 8107, 18, 21745, 67, 10023, 1082, 202, 15, 1241, 18, 2815, 380, 7784, 12162, 17986, 8107, 18, 10398, 67, 10023, 1082, 202, 15, 890, 31, 202, 202, 430, 12, 4500, 27510, 13, 202, 202, 95, 1082, 202, 2819, 1011, 585, 5554, 18, 588, 5554, 2384, 5621, 1082, 202, 2819, 1011, 21724, 1528, 14001, 5621, 202, 202, 97, 202, 202, 2463, 1835, 31, 202, 97, 368, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 15428, 2384, 12, 58, 4931, 2853, 1622, 1388, 1488, 18, 1622, 1241, 16, 202, 202, 5711, 5653, 10940, 13, 202, 95, 202, 202, 780, 508, 273, 1241, 18, 1214, 1622, 18, 529, 31, 202, 202, 474, 1835, 273, 10940, 18, 1080, 2384, 12, 529, 1769, 202, 202, 2819, 1011, 7784, 12162, 17986, 8107, 18, 21745, 67, 10023, 1082, 202, 15, 1241, 18, 2815, 380, 7784, 12162, 17986, 8107, 18, 10398, 67, 10023, 1082, 202, 15, 890, 31, 202, 202, 430, 12, 4500, 27510, 13, 202, 202, 95, 1082, 202, 2819, 1011, 585, 5554, 18, 588, 5554, 2384, 5621, 1082, 202, 2819, 1011, 21724, 1528, 14001, 5621, 202, 202, 97, 202, 202, 2463, 1835, 31, 202, 97, 2 ]
Container examinedDO = (Container)examinedTask.getDirectObject ();
Container examinedDO; if (examinedTask.getDirectObject() instanceof AssetGroup) { examinedDO= (Container) ((AssetGroup) examinedTask.getDirectObject()).getAssets().iterator().next(); } else { examinedDO = (Container)examinedTask.getDirectObject (); }
protected String reportContentTypes (Task task, Task examinedTask){ Container taskDO = (Container)task.getDirectObject (); Container examinedDO = (Container)examinedTask.getDirectObject (); ContentsPG contents = taskDO.getContentsPG (); Collection typeIDs = contents.getTypeIdentifications (); ContentsPG examinedContents = examinedDO.getContentsPG (); Collection examinedTypeIDs = examinedContents.getTypeIdentifications (); StringBuffer buf =new StringBuffer(); buf.append("["); for (Iterator iter = typeIDs.iterator(); iter.hasNext();) buf.append(iter.next() + ", "); buf.append("]"); buf.append(" vs "); buf.append("["); for (Iterator iter = examinedTypeIDs.iterator(); iter.hasNext();) buf.append(iter.next()); buf.append("]"); return buf.toString(); }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/769c6ea8476dcbad552a264bf55aeeb4aad84da1/AmmoProjectionExpanderPlugin.java/clean/bbn/src/org/cougaar/logistics/plugin/trans/AmmoProjectionExpanderPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 2605, 27446, 261, 2174, 1562, 16, 3837, 19707, 1920, 2174, 15329, 565, 4039, 1562, 3191, 273, 261, 2170, 13, 4146, 18, 588, 5368, 921, 261, 1769, 565, 4039, 19707, 1920, 3191, 31, 309, 261, 338, 301, 1920, 2174, 18, 588, 5368, 921, 1435, 1276, 10494, 1114, 13, 288, 19707, 1920, 3191, 33, 261, 2170, 13, 14015, 6672, 1114, 13, 19707, 1920, 2174, 18, 588, 5368, 921, 1435, 2934, 588, 10726, 7675, 9838, 7675, 4285, 5621, 289, 469, 288, 19707, 1920, 3191, 273, 261, 2170, 13, 338, 301, 1920, 2174, 18, 588, 5368, 921, 261, 1769, 289, 565, 21290, 18679, 2939, 273, 1562, 3191, 18, 588, 6323, 18679, 261, 1769, 565, 2200, 618, 5103, 225, 273, 2939, 18, 588, 559, 6106, 6640, 261, 1769, 565, 21290, 18679, 19707, 1920, 6323, 273, 19707, 1920, 3191, 18, 588, 6323, 18679, 261, 1769, 565, 2200, 19707, 1920, 559, 5103, 225, 273, 19707, 1920, 6323, 18, 588, 559, 6106, 6640, 261, 1769, 565, 6674, 1681, 273, 2704, 6674, 5621, 3639, 1681, 18, 6923, 2932, 63, 8863, 565, 364, 261, 3198, 1400, 273, 618, 5103, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 1377, 1681, 18, 6923, 12, 2165, 18, 4285, 1435, 397, 3104, 315, 1769, 565, 1681, 18, 6923, 2932, 4279, 1769, 565, 1681, 18, 6923, 2932, 6195, 315, 1769, 565, 1681, 18, 6923, 2932, 63, 8863, 565, 364, 261, 3198, 1400, 273, 19707, 1920, 559, 5103, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 1377, 1681, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 2605, 27446, 261, 2174, 1562, 16, 3837, 19707, 1920, 2174, 15329, 565, 4039, 1562, 3191, 273, 261, 2170, 13, 4146, 18, 588, 5368, 921, 261, 1769, 565, 4039, 19707, 1920, 3191, 31, 309, 261, 338, 301, 1920, 2174, 18, 588, 5368, 921, 1435, 1276, 10494, 1114, 13, 288, 19707, 1920, 3191, 33, 261, 2170, 13, 14015, 6672, 1114, 13, 19707, 1920, 2174, 18, 588, 5368, 921, 1435, 2934, 588, 10726, 7675, 9838, 7675, 4285, 5621, 289, 469, 288, 19707, 1920, 3191, 273, 261, 2170, 13, 338, 301, 1920, 2174, 18, 588, 5368, 921, 261, 1769, 289, 565, 21290, 18679, 2939, 273, 1562, 3191, 18, 588, 6323, 18679, 261, 1769, 565, 2200, 618, 5103, 225, 273, 2939, 2 ]
((List)props).add(value);
obj= ((PropertyFactory)obj).create((Map)digester.peek(1)); } } if(obj !=null) { if(props instanceof Map) { ((Map)props).put(name, obj); }else { ((List)props).add(obj);
public void begin(String s, String s1, Attributes attributes) throws Exception { String name = attributes.getValue("name"); String key = attributes.getValue("key"); String defaultValue = attributes.getValue("defaultValue"); String value = System.getProperty(key, defaultValue); if(value!=null) { Object props = digester.peek(); if(props instanceof Map) { ((Map)props).put(name, value); } else { ((List)props).add(value); } } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/eacac824b36b602137ce5d1d4e6dff563ab730f0/MuleXmlConfigurationBuilder.java/clean/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 2376, 12, 780, 272, 16, 514, 272, 21, 16, 9055, 1677, 13, 1216, 1185, 5411, 288, 7734, 514, 508, 273, 1677, 18, 24805, 2932, 529, 8863, 7734, 514, 498, 273, 1677, 18, 24805, 2932, 856, 8863, 7734, 514, 4593, 273, 1677, 18, 24805, 2932, 27652, 8863, 7734, 514, 460, 273, 2332, 18, 588, 1396, 12, 856, 16, 4593, 1769, 7734, 309, 12, 1132, 5, 33, 2011, 13, 288, 10792, 1033, 3458, 273, 23821, 18, 347, 3839, 5621, 10792, 309, 12, 9693, 1276, 1635, 13, 288, 13491, 14015, 863, 13, 9693, 2934, 458, 12, 529, 16, 460, 1769, 10792, 289, 469, 288, 7682, 1081, 33, 14015, 1396, 1733, 13, 2603, 2934, 2640, 12443, 863, 13, 5606, 7654, 18, 347, 3839, 12, 21, 10019, 289, 289, 309, 12, 2603, 480, 2011, 13, 288, 309, 12, 9693, 1276, 1635, 13, 288, 14015, 863, 13, 9693, 2934, 458, 12, 529, 16, 1081, 1769, 289, 12107, 288, 14015, 682, 13, 9693, 2934, 1289, 12, 2603, 1769, 10792, 289, 7734, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 2376, 12, 780, 272, 16, 514, 272, 21, 16, 9055, 1677, 13, 1216, 1185, 5411, 288, 7734, 514, 508, 273, 1677, 18, 24805, 2932, 529, 8863, 7734, 514, 498, 273, 1677, 18, 24805, 2932, 856, 8863, 7734, 514, 4593, 273, 1677, 18, 24805, 2932, 27652, 8863, 7734, 514, 460, 273, 2332, 18, 588, 1396, 12, 856, 16, 4593, 1769, 7734, 309, 12, 1132, 5, 33, 2011, 13, 288, 10792, 1033, 3458, 273, 23821, 18, 347, 3839, 5621, 10792, 309, 12, 9693, 1276, 1635, 13, 288, 13491, 14015, 863, 13, 9693, 2934, 458, 12, 529, 16, 460, 1769, 10792, 289, 469, 288, 7682, 1081, 33, 14015, 1396, 1733, 13, 2603, 2934, 2640, 12443, 863, 13, 5606, 7654, 2 ]
cell.setRowSpan( 4 ); assertEquals( 4, cell.getRowSpan( ) );
assertEquals( 1, cell.getRowSpan( ) );
public void testCell( ) throws ScriptException { CellHandle cellHandle = factory.newCell( ); ICell cell = new Cell( cellHandle ); cell.setColumn( 2 ); assertEquals( 2, cell.getColumn( ) ); cell.setColumnSpan( 3 ); assertEquals( 3, cell.getColumnSpan( ) ); cell.setDrop( DesignChoiceConstants.DROP_TYPE_ALL ); assertEquals( DesignChoiceConstants.DROP_TYPE_ALL, cell.getDrop( ) ); cell.setRowSpan( 4 ); assertEquals( 4, cell.getRowSpan( ) ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/768d9097ee2effb2849406e4d7d16073dacd37b6/ElementTest.java/buggy/engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/element/ElementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4020, 12, 262, 1216, 7739, 503, 202, 95, 202, 202, 4020, 3259, 2484, 3259, 273, 3272, 18, 2704, 4020, 12, 11272, 202, 202, 2871, 1165, 2484, 273, 394, 8614, 12, 2484, 3259, 11272, 202, 202, 3855, 18, 542, 1494, 12, 576, 11272, 202, 202, 11231, 8867, 12, 576, 16, 2484, 18, 588, 1494, 12, 262, 11272, 202, 202, 3855, 18, 542, 1494, 6952, 12, 890, 11272, 202, 202, 11231, 8867, 12, 890, 16, 2484, 18, 588, 1494, 6952, 12, 262, 11272, 202, 202, 3855, 18, 542, 7544, 12, 29703, 10538, 2918, 18, 18768, 67, 2399, 67, 4685, 11272, 202, 202, 11231, 8867, 12, 29703, 10538, 2918, 18, 18768, 67, 2399, 67, 4685, 16, 2484, 18, 588, 7544, 12, 262, 11272, 202, 202, 3855, 18, 542, 1999, 6952, 12, 1059, 11272, 202, 202, 11231, 8867, 12, 1059, 16, 2484, 18, 588, 1999, 6952, 12, 262, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4020, 12, 262, 1216, 7739, 503, 202, 95, 202, 202, 4020, 3259, 2484, 3259, 273, 3272, 18, 2704, 4020, 12, 11272, 202, 202, 2871, 1165, 2484, 273, 394, 8614, 12, 2484, 3259, 11272, 202, 202, 3855, 18, 542, 1494, 12, 576, 11272, 202, 202, 11231, 8867, 12, 576, 16, 2484, 18, 588, 1494, 12, 262, 11272, 202, 202, 3855, 18, 542, 1494, 6952, 12, 890, 11272, 202, 202, 11231, 8867, 12, 890, 16, 2484, 18, 588, 1494, 6952, 12, 262, 11272, 202, 202, 3855, 18, 542, 7544, 12, 29703, 10538, 2918, 18, 18768, 67, 2399, 67, 4685, 11272, 202, 202, 11231, 8867, 12, 29703, 10538, 2918, 18, 18768, 67, 2399, 67, 4685, 16, 2484, 2 ]
public ScaffoldingCell() {;}
public ScaffoldingCell() { this.wizardPageDefinition = new WizardPageDefinition(); }
public ScaffoldingCell() {;}
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/241a842c4a61b7847d156a3672055a6b0c8d6b2b/ScaffoldingCell.java/clean/matrix/api/src/java/org/theospi/portfolio/matrix/model/ScaffoldingCell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2850, 14847, 310, 4020, 1435, 288, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2850, 14847, 310, 4020, 1435, 288, 31, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.LegCoveredOrUncovered getLegCoveredOrUncovered() throws FieldNotFound { org.quickfix.field.LegCoveredOrUncovered value = new org.quickfix.field.LegCoveredOrUncovered();
public quickfix.field.LegCoveredOrUncovered getLegCoveredOrUncovered() throws FieldNotFound { quickfix.field.LegCoveredOrUncovered value = new quickfix.field.LegCoveredOrUncovered();
public org.quickfix.field.LegCoveredOrUncovered getLegCoveredOrUncovered() throws FieldNotFound { org.quickfix.field.LegCoveredOrUncovered value = new org.quickfix.field.LegCoveredOrUncovered(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix43/MultilegOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 336, 8329, 8084, 329, 1162, 984, 16810, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 336, 8329, 8084, 329, 1162, 984, 16810, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8084, 329, 1162, 984, 16810, 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 ]
entId = new byte[20];
entId = new byte[Constants.OBJECT_ID_LENGTH];
private void readTree(final InputStream is) throws IOException { final Map tempEnts = new TreeMap(); for (;;) { int c; int mode; final ByteArrayOutputStream nameBuf; final byte[] entId; final byte[] name; final ObjectId id; final TreeEntry ent; int entIdLen; c = is.read(); if (c == -1) { break; } if (c < '0' || c > '7') { throw new CorruptObjectException(getId(), "invalid mode"); } mode = c - '0'; for (;;) { c = is.read(); if (' ' == c) { break; } if (c < '0' || c > '7') { throw new CorruptObjectException(getId(), "invalid mode"); } mode *= 8; mode += c - '0'; } nameBuf = new ByteArrayOutputStream(128); for (;;) { c = is.read(); if (c == -1) { throw new CorruptObjectException(getId(), "unexpected eof"); } if (0 == c) { break; } nameBuf.write(c); } entId = new byte[20]; entIdLen = 0; while ((c = is.read(entId, entIdLen, entId.length - entIdLen)) > 0) { entIdLen += c; } if (entIdLen != entId.length) { throw new CorruptObjectException(getId(), "missing hash"); } id = new ObjectId(entId); name = nameBuf.toByteArray(); if ((mode & 040000) != 0) { ent = new Tree(r, this, id, name); } else if ((mode & 020000) != 0) { ent = new SymlinkTreeEntry(this, id, name); } else { ent = new FileTreeEntry(this, id, name, (mode & 0100) != 0); } tempEnts.put(ent.getName(), ent); } entriesByName = tempEnts; allEntries = Collections.unmodifiableCollection(entriesByName.values()); }
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/0aac8598c895c0d3d7a82e38854f71db607fc209/Tree.java/buggy/org.spearce.jgit/src/org/spearce/jgit/lib/Tree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 855, 2471, 12, 6385, 5037, 353, 13, 1216, 1860, 288, 3639, 727, 1635, 1906, 14199, 87, 273, 394, 16381, 5621, 3639, 364, 261, 25708, 13, 288, 5411, 509, 276, 31, 5411, 509, 1965, 31, 5411, 727, 11559, 508, 5503, 31, 5411, 727, 1160, 8526, 3281, 548, 31, 5411, 727, 1160, 8526, 508, 31, 5411, 727, 21192, 612, 31, 5411, 727, 4902, 1622, 3281, 31, 5411, 509, 3281, 548, 2891, 31, 5411, 276, 273, 353, 18, 896, 5621, 5411, 309, 261, 71, 422, 300, 21, 13, 288, 7734, 898, 31, 5411, 289, 5411, 309, 261, 71, 411, 296, 20, 11, 747, 276, 405, 296, 27, 6134, 288, 7734, 604, 394, 9557, 10433, 921, 503, 12, 26321, 9334, 315, 5387, 1965, 8863, 5411, 289, 5411, 1965, 273, 276, 300, 296, 20, 13506, 5411, 364, 261, 25708, 13, 288, 7734, 276, 273, 353, 18, 896, 5621, 7734, 309, 7707, 296, 422, 276, 13, 288, 10792, 898, 31, 7734, 289, 7734, 309, 261, 71, 411, 296, 20, 11, 747, 276, 405, 296, 27, 6134, 288, 10792, 604, 394, 9557, 10433, 921, 503, 12, 26321, 9334, 315, 5387, 1965, 8863, 7734, 289, 7734, 1965, 6413, 1725, 31, 7734, 1965, 1011, 276, 300, 296, 20, 13506, 5411, 289, 5411, 508, 5503, 273, 394, 11559, 12, 10392, 1769, 5411, 364, 261, 25708, 13, 288, 7734, 276, 273, 353, 18, 896, 5621, 7734, 309, 261, 71, 422, 300, 21, 13, 288, 10792, 604, 394, 9557, 10433, 921, 503, 12, 26321, 9334, 315, 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, 855, 2471, 12, 6385, 5037, 353, 13, 1216, 1860, 288, 3639, 727, 1635, 1906, 14199, 87, 273, 394, 16381, 5621, 3639, 364, 261, 25708, 13, 288, 5411, 509, 276, 31, 5411, 509, 1965, 31, 5411, 727, 11559, 508, 5503, 31, 5411, 727, 1160, 8526, 3281, 548, 31, 5411, 727, 1160, 8526, 508, 31, 5411, 727, 21192, 612, 31, 5411, 727, 4902, 1622, 3281, 31, 5411, 509, 3281, 548, 2891, 31, 5411, 276, 273, 353, 18, 896, 5621, 5411, 309, 261, 71, 422, 300, 21, 13, 288, 7734, 898, 31, 5411, 289, 5411, 309, 261, 71, 411, 296, 20, 11, 747, 276, 405, 296, 27, 6134, 288, 7734, 604, 394, 9557, 10433, 921, 503, 12, 26321, 9334, 2 ]
OnlineBackup backup = new OnlineBackup(TEST_DATABASE_NAME); Thread backupThread = new Thread(backup, "BACKUP"); backupThread.start(); backup.waitForBackupToBegin(); logMessage("BACKUP STARTED");
private void runTest() throws SQLException, Exception { logMessage("Begin Online Backup Test1"); Connection conn = ij.startJBMS(); conn.setAutoCommit(false); DatabaseActions dbActions = new DatabaseActions(conn); //create the test tables. dbActions.createTable(TEST_TABLE_NAME); dbActions.createTable(TEST_TABLE_NAME_1); dbActions.createTable(TEST_TABLE_NAME_2); conn.commit(); // start first unlogged operation dbActions.startUnloggedAction(TEST_TABLE_NAME_1); logMessage("First Transaction with Unlogged Operation Started"); // start second unlogged opearation Connection conn1 = ij.startJBMS(); conn1.setAutoCommit(false); DatabaseActions dbActions1 = new DatabaseActions(conn1); dbActions1.startUnloggedAction(TEST_TABLE_NAME_2); logMessage("Second Transaction with Unlogged Operation Started"); // start a thread to perform online backup OnlineBackup backup = new OnlineBackup(TEST_DATABASE_NAME); Thread backupThread = new Thread(backup, "BACKUP"); backupThread.start(); // wait for the backup to start backup.waitForBackupToBegin(); logMessage("BACKUP STARTED"); // run some dml actions in another thread Connection dmlConn = getConnection(); DatabaseActions dmlActions = new DatabaseActions(DatabaseActions.DMLACTIONS, dmlConn); Thread dmlThread = new Thread(dmlActions, "DML_THREAD"); dmlThread.start(); // run some DDL create/drop tables in another thread Connection ddlConn = getConnection(); DatabaseActions ddlActions = new DatabaseActions(DatabaseActions.CREATEDROPS, ddlConn); Thread ddlThread = new Thread(ddlActions, "DDL_THREAD"); ddlThread.start(); // sleep for few seconds just to make sure backup thread is actually // gone to a wait state for unlogged actions to commit and there is // some ddl and dml activity in progress. java.lang.Thread.sleep(50000); // backup should not even start doing real work before the // unlogged transaction is commited if(!backup.isRunning()) logMessage("Backup is not waiting for unlogged actions to commit"); // end the unlogged work transaction. dbActions.endUnloggedAction(TEST_TABLE_NAME_1); // end the unlogged work transaction. dbActions1.endUnloggedAction(TEST_TABLE_NAME_2); backup.waitForBackupToEnd(); backupThread.join(); dmlActions.stopActivity(); ddlActions.stopActivity(); dmlThread.join(); ddlThread.join(); // close the connections. conn.close(); conn1.close(); dmlConn.close(); ddlConn.close() ; //shutdown the test db shutdown(TEST_DATABASE_NAME); // restore the database from the backup and run some checks backup.restoreFromBackup(); logMessage("Restored From the Backup"); runConsistencyChecker(TEST_DATABASE_NAME); logMessage("Consistency Check is Done"); //shutdown the test db shutdown(TEST_DATABASE_NAME); logMessage("End Online Backup Test1"); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/31083414fafa45e3af2047fc58aec1f1a316b304/OnlineBackupTest1.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/store/OnlineBackupTest1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1086, 4709, 1435, 1216, 6483, 16, 1185, 288, 202, 202, 1330, 1079, 2932, 8149, 2755, 1369, 11856, 7766, 21, 8863, 202, 202, 1952, 1487, 273, 19313, 18, 1937, 8877, 3537, 5621, 202, 202, 4646, 18, 542, 4965, 5580, 12, 5743, 1769, 202, 202, 4254, 6100, 1319, 6100, 273, 394, 5130, 6100, 12, 4646, 1769, 202, 202, 759, 2640, 326, 1842, 225, 4606, 18, 3196, 202, 1966, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 1769, 3639, 1319, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 67, 21, 1769, 3639, 1319, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 67, 22, 1769, 3639, 1487, 18, 7371, 5621, 3639, 368, 787, 1122, 640, 19385, 1674, 202, 202, 1966, 6100, 18, 1937, 984, 19385, 1803, 12, 16961, 67, 7775, 67, 1985, 67, 21, 1769, 202, 202, 1330, 1079, 2932, 3759, 5947, 598, 1351, 19385, 4189, 29386, 8863, 3639, 368, 787, 2205, 640, 19385, 320, 347, 4302, 3639, 4050, 1487, 21, 273, 19313, 18, 1937, 8877, 3537, 5621, 202, 202, 4646, 21, 18, 542, 4965, 5580, 12, 5743, 1769, 202, 202, 4254, 6100, 1319, 6100, 21, 273, 394, 5130, 6100, 12, 4646, 21, 1769, 202, 202, 1966, 6100, 21, 18, 1937, 984, 19385, 1803, 12, 16961, 67, 7775, 67, 1985, 67, 22, 1769, 202, 202, 1330, 1079, 2932, 8211, 5947, 598, 1351, 19385, 4189, 29386, 8863, 540, 202, 202, 759, 787, 279, 225, 2650, 358, 3073, 12365, 5114, 202, 202, 16860, 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, 1086, 4709, 1435, 1216, 6483, 16, 1185, 288, 202, 202, 1330, 1079, 2932, 8149, 2755, 1369, 11856, 7766, 21, 8863, 202, 202, 1952, 1487, 273, 19313, 18, 1937, 8877, 3537, 5621, 202, 202, 4646, 18, 542, 4965, 5580, 12, 5743, 1769, 202, 202, 4254, 6100, 1319, 6100, 273, 394, 5130, 6100, 12, 4646, 1769, 202, 202, 759, 2640, 326, 1842, 225, 4606, 18, 3196, 202, 1966, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 1769, 3639, 1319, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 67, 21, 1769, 3639, 1319, 6100, 18, 2640, 1388, 12, 16961, 67, 7775, 67, 1985, 67, 22, 1769, 3639, 1487, 18, 7371, 5621, 3639, 368, 787, 2 ]
public IRubyObject upto(IRubyObject val) { RubyNumeric to = numericValue(val);
public IRubyObject upto(RubyNumeric to) {
public IRubyObject upto(IRubyObject val) { RubyNumeric to = numericValue(val); RubyNumeric i = this; while (true) { if (i.callMethod(">", to).isTrue()) { break; } getRuntime().yield(i); i = (RubyNumeric) i.callMethod("+", RubyFixnum.one(getRuntime())); } return this; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyInteger.java/clean/src/org/jruby/RubyInteger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 582, 21910, 12, 7937, 10340, 921, 1244, 13, 288, 202, 54, 10340, 9902, 358, 273, 6389, 620, 12, 1125, 1769, 3639, 19817, 9902, 277, 273, 333, 31, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 261, 77, 18, 1991, 1305, 2932, 2984, 16, 358, 2934, 291, 5510, 10756, 288, 7734, 898, 31, 5411, 289, 5411, 18814, 7675, 23604, 12, 77, 1769, 5411, 277, 273, 261, 54, 10340, 9902, 13, 277, 18, 1991, 1305, 2932, 15, 3113, 19817, 8585, 2107, 18, 476, 12, 588, 5576, 1435, 10019, 3639, 289, 3639, 327, 333, 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, 15908, 10340, 921, 582, 21910, 12, 7937, 10340, 921, 1244, 13, 288, 202, 54, 10340, 9902, 358, 273, 6389, 620, 12, 1125, 1769, 3639, 19817, 9902, 277, 273, 333, 31, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 261, 77, 18, 1991, 1305, 2932, 2984, 16, 358, 2934, 291, 5510, 10756, 288, 7734, 898, 31, 5411, 289, 5411, 18814, 7675, 23604, 12, 77, 1769, 5411, 277, 273, 261, 54, 10340, 9902, 13, 277, 18, 1991, 1305, 2932, 15, 3113, 19817, 8585, 2107, 18, 476, 12, 588, 5576, 1435, 10019, 3639, 289, 3639, 327, 333, 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 void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { sp = new ServletPrinter(response, "PubBidAuth"); String value = request.getParameter("itemId"); if ((value == null) || (value.equals(""))) { sp.printHTMLheader("RUBiS ERROR: Authentification for bidding"); sp.printHTML("No item identifier received - Cannot process the request<br>"); sp.printHTMLfooter(); return ; } sp.printHTMLheader("RUBiS: User authentification for bidding"); sp.printFile(Config.HTMLFilesPath+"/put_bid_auth_header.html"); sp.printHTML("<input type=hidden name=\"itemId\" value=\""+value+"\">"); sp.printFile(Config.HTMLFilesPath+"/auth_footer.html"); sp.printHTMLfooter(); }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/PutBidAuth.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/PutBidAuth.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 16, 16517, 225, 288, 565, 1694, 273, 394, 7971, 12149, 12, 2740, 16, 315, 9581, 17763, 1730, 8863, 3639, 514, 460, 273, 590, 18, 588, 1662, 2932, 1726, 548, 8863, 565, 309, 14015, 1132, 422, 446, 13, 747, 261, 1132, 18, 14963, 2932, 6, 20349, 565, 288, 1377, 1694, 18, 1188, 4870, 3374, 2932, 54, 3457, 77, 55, 5475, 30, 3123, 319, 1480, 364, 324, 1873, 310, 8863, 1377, 1694, 18, 1188, 4870, 2932, 2279, 761, 2756, 5079, 300, 14143, 1207, 326, 590, 32, 2848, 2984, 1769, 1377, 1694, 18, 1188, 4870, 14723, 5621, 1377, 327, 274, 565, 289, 565, 1694, 18, 1188, 4870, 3374, 2932, 54, 3457, 77, 55, 30, 2177, 1357, 319, 1480, 364, 324, 1873, 310, 8863, 565, 1694, 18, 1188, 812, 12, 809, 18, 4870, 2697, 743, 9078, 19, 458, 67, 19773, 67, 1944, 67, 3374, 18, 2620, 8863, 565, 1694, 18, 1188, 4870, 2932, 32, 2630, 618, 33, 6345, 508, 5189, 1726, 548, 2412, 460, 13186, 15, 1132, 9078, 21121, 1769, 565, 1694, 18, 1188, 812, 12, 809, 18, 4870, 2697, 743, 9078, 19, 1944, 67, 14723, 18, 2620, 8863, 565, 1694, 18, 1188, 4870, 14723, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 16, 16517, 225, 288, 565, 1694, 273, 394, 7971, 12149, 12, 2740, 16, 315, 9581, 17763, 1730, 8863, 3639, 514, 460, 273, 590, 18, 588, 1662, 2932, 1726, 548, 8863, 565, 309, 14015, 1132, 422, 446, 13, 747, 261, 1132, 18, 14963, 2932, 6, 20349, 565, 288, 1377, 1694, 18, 1188, 4870, 3374, 2932, 54, 3457, 77, 55, 5475, 30, 3123, 319, 1480, 364, 324, 1873, 310, 8863, 1377, 1694, 18, 1188, 4870, 2932, 2279, 761, 2756, 5079, 300, 14143, 1207, 326, 590, 32, 2848, 2984, 1769, 1377, 1694, 18, 1188, 4870, 14723, 5621, 1377, 327, 274, 565, 289, 565, 1694, 18, 1188, 4870, 3374, 2 ]
public void test_117648( ) throws UserPropertyException { DesignEngine engine = new DesignEngine( new DesignConfig( ) ); SessionHandle session = engine.newSessionHandle( ULocale.ENGLISH ); ReportDesignHandle designHandle = session.createDesign( ); ElementFactory factory = designHandle.getElementFactory( ); LabelHandle label = factory.newLabel( "label" ); //$NON-NLS-1$ UserPropertyDefn userProp = new UserPropertyDefn( ); userProp.setName( "prop1" ); //$NON-NLS-1$ userProp.setType( new StringPropertyType( ) ); userProp.setDefault( "default value" ); //$NON-NLS-1$ label.addUserPropertyDefn( userProp ); // TODO: change to GroupElementHandle and GroupPropertyHandle. // retrieve all property definitions. Iterator propIter = label.getPropertyIterator( ); PropertyHandle userPropHandle = null; while ( propIter.hasNext( ) ) { PropertyHandle handle = (PropertyHandle)propIter.next( ); if( "prop1".equals( handle.getDefn( ).getName( ) )); //$NON-NLS-1$ userPropHandle = handle; } assertNotNull( userPropHandle ); assertEquals( "prop1", userPropHandle.getDefn( ).getName( ) ); //$NON-NLS-1$ assertEquals( PropertyType.STRING_TYPE, userPropHandle.getDefn( ).getTypeCode( ) ); assertEquals( "default value", userPropHandle.getDefn( ).getDefault( ) ); //$NON-NLS-1$ }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ffcffffdd2ec70077fffc20100ddf1ba59efbf66/Regression_117648.java/clean/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/regression/Regression_117648.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 23454, 27382, 12, 262, 1216, 2177, 1396, 503, 202, 95, 202, 202, 15478, 4410, 4073, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, 262, 11272, 202, 202, 2157, 3259, 1339, 273, 4073, 18, 2704, 2157, 3259, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 4820, 15478, 3259, 8281, 3259, 273, 1339, 18, 2640, 15478, 12, 11272, 202, 202, 1046, 1733, 3272, 273, 8281, 3259, 18, 21336, 1733, 12, 11272, 202, 202, 2224, 3259, 1433, 273, 3272, 18, 2704, 2224, 12, 315, 1925, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1299, 1396, 3262, 82, 729, 4658, 273, 394, 2177, 1396, 3262, 82, 12, 11272, 202, 202, 1355, 4658, 18, 542, 461, 12, 315, 5986, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1355, 4658, 18, 542, 559, 12, 394, 514, 22802, 12, 262, 11272, 202, 202, 1355, 4658, 18, 542, 1868, 12, 315, 1886, 460, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1925, 18, 1289, 1299, 1396, 3262, 82, 12, 729, 4658, 11272, 9506, 202, 759, 2660, 30, 2549, 358, 3756, 1046, 3259, 471, 3756, 1396, 3259, 18, 9506, 202, 759, 4614, 777, 1272, 6377, 18, 202, 202, 3198, 2270, 2360, 273, 1433, 18, 588, 1396, 3198, 12, 11272, 202, 202, 1396, 3259, 729, 4658, 3259, 273, 446, 31, 202, 202, 17523, 261, 2270, 2360, 18, 5332, 2134, 12, 262, 262, 202, 202, 95, 1082, 202, 1396, 3259, 1640, 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, 67, 23454, 27382, 12, 262, 1216, 2177, 1396, 503, 202, 95, 202, 202, 15478, 4410, 4073, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, 262, 11272, 202, 202, 2157, 3259, 1339, 273, 4073, 18, 2704, 2157, 3259, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 4820, 15478, 3259, 8281, 3259, 273, 1339, 18, 2640, 15478, 12, 11272, 202, 202, 1046, 1733, 3272, 273, 8281, 3259, 18, 21336, 1733, 12, 11272, 202, 202, 2224, 3259, 1433, 273, 3272, 18, 2704, 2224, 12, 315, 1925, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1299, 1396, 3262, 82, 729, 4658, 273, 394, 2177, 1396, 3262, 82, 12, 11272, 202, 202, 1355, 4658, 18, 2 ]
{
public void characters( char[] ch, int start, int length ) throws SAXException { if ( !stateStack.isEmpty( ) ) { topState( ).text.append( ch, start, length ); // "<![CDATA[" identifer is 9-char length if ( start >= 9 ) { StringBuffer b = new StringBuffer( ); b.append( ch, start - 9, 9 ); if ( "<![CDATA[".equals( b.toString( ) ) ) //$NON-NLS-1$ topState( ).isCDataSection = true; } // "]]>" identifer is 3-char length else if ( ch.length >= start + length + 3 ) { StringBuffer b = new StringBuffer( ); b.append( ch, start + length, 3 ); if ( "]]>".equals( b.toString( ) ) ) //$NON-NLS-1$ topState( ).isCDataSection = true; } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8e29fe459e76143400f1166a45a747b49bacce9e/XMLParserHandler.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/XMLParserHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3949, 12, 1149, 8526, 462, 16, 509, 787, 16, 509, 769, 262, 1082, 202, 15069, 14366, 202, 95, 202, 202, 430, 261, 401, 2019, 2624, 18, 291, 1921, 12, 262, 262, 202, 202, 95, 1082, 202, 3669, 1119, 12, 262, 18, 955, 18, 6923, 12, 462, 16, 787, 16, 769, 11272, 1082, 202, 759, 3532, 5, 63, 18375, 9614, 3390, 21549, 353, 2468, 17, 3001, 769, 1082, 202, 430, 261, 787, 1545, 2468, 262, 1082, 202, 95, 9506, 202, 780, 1892, 324, 273, 394, 6674, 12, 11272, 9506, 202, 70, 18, 6923, 12, 462, 16, 787, 300, 2468, 16, 2468, 11272, 9506, 202, 430, 261, 3532, 5, 63, 18375, 9614, 18, 14963, 12, 324, 18, 10492, 12, 262, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 3669, 1119, 12, 262, 18, 291, 39, 751, 5285, 273, 638, 31, 1082, 202, 97, 1082, 202, 759, 9850, 65, 2984, 3390, 21549, 353, 890, 17, 3001, 769, 1082, 202, 12107, 309, 261, 462, 18, 2469, 1545, 787, 397, 769, 397, 890, 262, 1082, 202, 95, 9506, 202, 780, 1892, 324, 273, 394, 6674, 12, 11272, 9506, 202, 70, 18, 6923, 12, 462, 16, 787, 397, 769, 16, 890, 11272, 9506, 202, 430, 261, 9850, 65, 2984, 18, 14963, 12, 324, 18, 10492, 12, 262, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 3669, 1119, 12, 262, 18, 291, 39, 751, 5285, 273, 638, 31, 1082, 202, 97, 202, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3949, 12, 1149, 8526, 462, 16, 509, 787, 16, 509, 769, 262, 1082, 202, 15069, 14366, 202, 95, 202, 202, 430, 261, 401, 2019, 2624, 18, 291, 1921, 12, 262, 262, 202, 202, 95, 1082, 202, 3669, 1119, 12, 262, 18, 955, 18, 6923, 12, 462, 16, 787, 16, 769, 11272, 1082, 202, 759, 3532, 5, 63, 18375, 9614, 3390, 21549, 353, 2468, 17, 3001, 769, 1082, 202, 430, 261, 787, 1545, 2468, 262, 1082, 202, 95, 9506, 202, 780, 1892, 324, 273, 394, 6674, 12, 11272, 9506, 202, 70, 18, 6923, 12, 462, 16, 787, 300, 2468, 16, 2468, 11272, 9506, 202, 430, 261, 3532, 5, 63, 18375, 9614, 18, 14963, 12, 324, 18, 2 ]
out.println("<table align=center class=\"miscTable\">");
out.println("<table align=\"center\" class=\"miscTable\" title=\"Community List\">");
public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); try { out.println("<table align=center class=\"miscTable\">"); // Write column headings out.print("<tr><th class=\"oddRowOddCol\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.CommunityListTag.communityName") + "</th></tr>"); // Row: toggles between Odd and Even String row = "even"; for (int i = 0; i < communities.length; i++) { // name String name = communities[i].getMetadata("name"); // first and only column is 'name' out.print("</td><td class=\"" + row + "RowEvenCol\">"); out.print("<A HREF=\""); HttpServletRequest hrq = (HttpServletRequest) pageContext .getRequest(); out.print(hrq.getContextPath() + "/handle/"); out.print(communities[i].getHandle()); out.print("\">"); out.print(name); out.print("</A>"); out.println("</td></tr>"); row = (row.equals("odd") ? "even" : "odd"); } out.println("</table>"); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/7246c4d1de39cbc642fdd3020918ab51e8c815bd/CommunityListTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/CommunityListTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 775, 3639, 288, 5411, 596, 18, 8222, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 2077, 5189, 12136, 13352, 987, 21121, 1769, 5411, 368, 2598, 1057, 910, 899, 5411, 596, 18, 1188, 2932, 32, 313, 4438, 451, 667, 5189, 31755, 1999, 51, 449, 914, 21121, 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, 12136, 13352, 682, 1805, 18, 20859, 461, 7923, 10792, 397, 6823, 451, 4695, 313, 2984, 1769, 5411, 368, 6556, 30, 6316, 75, 1040, 3086, 531, 449, 471, 25067, 5411, 514, 1027, 273, 315, 16728, 14432, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8391, 1961, 18, 2469, 31, 277, 27245, 5411, 288, 7734, 368, 508, 7734, 514, 508, 273, 8391, 1961, 63, 77, 8009, 588, 2277, 2932, 529, 8863, 7734, 368, 1122, 471, 1338, 1057, 353, 296, 529, 11, 7734, 596, 18, 1188, 2932, 1757, 4465, 4438, 4465, 667, 13186, 397, 1027, 397, 315, 1999, 8321, 914, 21121, 1769, 7734, 596, 18, 1188, 2932, 32, 37, 670, 10771, 5189, 8863, 7734, 9984, 15407, 85, 273, 261, 2940, 18572, 13, 21442, 13491, 263, 588, 691, 5621, 7734, 596, 18, 1188, 12, 7256, 85, 18, 29120, 743, 1435, 397, 2206, 4110, 4898, 1769, 7734, 596, 18, 1188, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 775, 3639, 288, 5411, 596, 18, 8222, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 2077, 5189, 12136, 13352, 987, 21121, 1769, 5411, 368, 2598, 1057, 910, 899, 5411, 596, 18, 1188, 2932, 32, 313, 4438, 451, 667, 5189, 31755, 1999, 51, 449, 914, 21121, 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, 12136, 13352, 682, 1805, 18, 20859, 461, 7923, 10792, 397, 6823, 451, 4695, 313, 2984, 1769, 5411, 368, 6556, 2 ]
this.parentCtx = parent; this.springConfig = new DefaultRuntimeSpringConfiguration(parent);
public BeanBuilder(ApplicationContext parent) { super(); this.parentCtx = parent; this.springConfig = new DefaultRuntimeSpringConfiguration(parent); }
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/40d929bddf558c8ccf3fdf924d6e90a801f47448/BeanBuilder.java/buggy/src/commons/grails/spring/BeanBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7704, 1263, 12, 28278, 982, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 2938, 6442, 273, 982, 31, 202, 202, 2211, 18, 87, 11638, 809, 273, 394, 2989, 5576, 55, 11638, 1750, 12, 2938, 1769, 202, 97, 202, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7704, 1263, 12, 28278, 982, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 2938, 6442, 273, 982, 31, 202, 202, 2211, 18, 87, 11638, 809, 273, 394, 2989, 5576, 55, 11638, 1750, 12, 2938, 1769, 202, 97, 202, 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 ]
if(one!=two && doubleBond && isDoubleBondSpecified[container.getBondNumber(a,nextAtom)]==true)
if(one!=two && doubleBond && doubleBondConfiguration[container.getBondNumber(a,nextAtom)])
private boolean isBeginnOfDoubleBond(AtomContainer container, Atom a, Atom parent, boolean isDoubleBondSpecified[]){ int lengthAtom=container.getConnectedAtoms(a).length+a.getHydrogenCount(); if(lengthAtom!=3) return(false); Atom[] atoms=container.getConnectedAtoms(a); Atom one=null; Atom two=null; boolean doubleBond=false; Atom nextAtom=null; for(int i=0;i< atoms.length;i++){ if(atoms[i]!=parent&& container.getBond(atoms[i],a).getOrder()==CDKConstants.BONDORDER_DOUBLE&&isEndOfDoubleBond(container,atoms[i],a,isDoubleBondSpecified)){ nextAtom=atoms[i]; doubleBond=true; } if(atoms[i]!=parent&&one==null) one=atoms[i]; if(atoms[i]!=parent&&one!=null) two=atoms[i]; } if(one!=two && doubleBond && isDoubleBondSpecified[container.getBondNumber(a,nextAtom)]==true) return(true); else return(false); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/4b1e7af494c54e05c6aca5d83a127557efc5d979/SmilesGenerator.java/buggy/src/org/openscience/cdk/smiles/SmilesGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 353, 8149, 82, 951, 5265, 9807, 12, 3641, 2170, 1478, 16, 7149, 279, 16, 7149, 982, 16, 1250, 353, 5265, 9807, 17068, 63, 5717, 95, 565, 509, 769, 3641, 33, 3782, 18, 588, 8932, 14280, 12, 69, 2934, 2469, 15, 69, 18, 588, 17507, 24096, 1380, 5621, 565, 309, 12, 2469, 3641, 5, 33, 23, 13, 1377, 327, 12, 5743, 1769, 565, 7149, 8526, 9006, 33, 3782, 18, 588, 8932, 14280, 12, 69, 1769, 565, 7149, 1245, 33, 2011, 31, 565, 7149, 2795, 33, 2011, 31, 565, 1250, 1645, 9807, 33, 5743, 31, 565, 7149, 1024, 3641, 33, 2011, 31, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 9006, 18, 2469, 31, 77, 27245, 95, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 1478, 18, 588, 9807, 12, 14937, 63, 77, 6487, 69, 2934, 588, 2448, 1435, 631, 39, 3398, 2918, 18, 38, 673, 40, 7954, 67, 17088, 10, 10, 291, 23358, 5265, 9807, 12, 3782, 16, 14937, 63, 77, 6487, 69, 16, 291, 5265, 9807, 17068, 3719, 95, 3639, 1024, 3641, 33, 14937, 63, 77, 15533, 3639, 1645, 9807, 33, 3767, 31, 1377, 289, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 476, 631, 2011, 13, 3639, 1245, 33, 14937, 63, 77, 15533, 1377, 309, 12, 14937, 63, 77, 65, 5, 33, 2938, 10, 10, 476, 5, 33, 2011, 13, 3639, 2795, 33, 14937, 63, 77, 15533, 565, 289, 565, 309, 12, 476, 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, 1250, 353, 8149, 82, 951, 5265, 9807, 12, 3641, 2170, 1478, 16, 7149, 279, 16, 7149, 982, 16, 1250, 353, 5265, 9807, 17068, 63, 5717, 95, 565, 509, 769, 3641, 33, 3782, 18, 588, 8932, 14280, 12, 69, 2934, 2469, 15, 69, 18, 588, 17507, 24096, 1380, 5621, 565, 309, 12, 2469, 3641, 5, 33, 23, 13, 1377, 327, 12, 5743, 1769, 565, 7149, 8526, 9006, 33, 3782, 18, 588, 8932, 14280, 12, 69, 1769, 565, 7149, 1245, 33, 2011, 31, 565, 7149, 2795, 33, 2011, 31, 565, 1250, 1645, 9807, 33, 5743, 31, 565, 7149, 1024, 3641, 33, 2011, 31, 565, 364, 12, 474, 277, 33, 20, 31, 77, 32, 9006, 18, 2469, 31, 77, 27245, 2 ]
public static JComponent createOptionLine(JComponent option) { return createOptionLine(new JComponent[] {option} );
public static JComponent createOptionLine(JComponent[] options) { JPanel tmp = new JPanel(); tmp.setLayout( new BoxLayout(tmp,BoxLayout.X_AXIS)); for (JComponent option : options) { tmp.add(option); } tmp.add( Box.createHorizontalGlue() ); return tmp;
public static JComponent createOptionLine(JComponent option) { return createOptionLine(new JComponent[] {option} ); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/89cd11decad19ffa2b802c17af5bee9a564095a0/UIUtil.java/buggy/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/UIUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 29058, 752, 1895, 1670, 12, 46, 1841, 1456, 13, 288, 565, 327, 752, 1895, 1670, 12, 2704, 29058, 8526, 288, 3482, 97, 11272, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 29058, 752, 1895, 1670, 12, 46, 1841, 1456, 13, 288, 565, 327, 752, 1895, 1670, 12, 2704, 29058, 8526, 288, 3482, 97, 11272, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ClientWizard(Frame topLevelFrame, boolean isModal, VpnTransform vpnTransform, MTransformControlsJPanel mTransformControlsJPanel) { super(topLevelFrame, isModal); this.mTransformControlsJPanel = mTransformControlsJPanel; setTitle("Metavize OpenVPN Client Setup Wizard"); addWizardPageJPanel(new ClientWizardWelcomeJPanel(vpnTransform), "1. Welcome", false, true); addWizardPageJPanel(new ClientWizardServerJPanel(vpnTransform), "2. Download Configuration", false, true); addWizardPageJPanel(new ClientWizardCongratulationsJPanel(vpnTransform), "3. Congratulations", false, true);
public ClientWizard(Frame topLevelFrame, VpnTransform vpnTransform, MTransformControlsJPanel mTransformControlsJPanel) { super(topLevelFrame, true); init(mTransformControlsJPanel, vpnTransform);
public ClientWizard(Frame topLevelFrame, boolean isModal, VpnTransform vpnTransform, MTransformControlsJPanel mTransformControlsJPanel) { super(topLevelFrame, isModal); this.mTransformControlsJPanel = mTransformControlsJPanel; setTitle("Metavize OpenVPN Client Setup Wizard"); addWizardPageJPanel(new ClientWizardWelcomeJPanel(vpnTransform), "1. Welcome", false, true); addWizardPageJPanel(new ClientWizardServerJPanel(vpnTransform), "2. Download Configuration", false, true); addWizardPageJPanel(new ClientWizardCongratulationsJPanel(vpnTransform), "3. Congratulations", false, true); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/dcd91d2695812a0c34f481becaaab31962871346/ClientWizard.java/clean/tran/openvpn/main/com/metavize/tran/openvpn/gui/ClientWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 27130, 12, 3219, 21289, 3219, 16, 1250, 353, 20191, 16, 31531, 4059, 16872, 4059, 16, 490, 4059, 16795, 46, 5537, 312, 4059, 16795, 46, 5537, 13, 288, 3639, 2240, 12, 3669, 2355, 3219, 16, 353, 20191, 1769, 202, 2211, 18, 81, 4059, 16795, 46, 5537, 273, 312, 4059, 16795, 46, 5537, 31, 3639, 14109, 2932, 12244, 842, 554, 3502, 58, 15124, 2445, 10939, 678, 13412, 8863, 3639, 527, 27130, 1964, 46, 5537, 12, 2704, 2445, 27130, 59, 16312, 46, 5537, 12, 27769, 4059, 3631, 315, 21, 18, 678, 16312, 3113, 629, 16, 638, 1769, 3639, 527, 27130, 1964, 46, 5537, 12, 2704, 2445, 27130, 2081, 46, 5537, 12, 27769, 4059, 3631, 315, 22, 18, 13059, 4659, 3113, 629, 16, 638, 1769, 3639, 527, 27130, 1964, 46, 5537, 12, 2704, 2445, 27130, 442, 3197, 270, 21011, 46, 5537, 12, 27769, 4059, 3631, 315, 23, 18, 735, 3197, 270, 21011, 3113, 629, 16, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 27130, 12, 3219, 21289, 3219, 16, 1250, 353, 20191, 16, 31531, 4059, 16872, 4059, 16, 490, 4059, 16795, 46, 5537, 312, 4059, 16795, 46, 5537, 13, 288, 3639, 2240, 12, 3669, 2355, 3219, 16, 353, 20191, 1769, 202, 2211, 18, 81, 4059, 16795, 46, 5537, 273, 312, 4059, 16795, 46, 5537, 31, 3639, 14109, 2932, 12244, 842, 554, 3502, 58, 15124, 2445, 10939, 678, 13412, 8863, 3639, 527, 27130, 1964, 46, 5537, 12, 2704, 2445, 27130, 59, 16312, 46, 5537, 12, 27769, 4059, 3631, 315, 21, 18, 678, 16312, 3113, 629, 16, 638, 1769, 3639, 527, 27130, 1964, 46, 5537, 12, 2704, 2445, 27130, 2081, 46, 5537, 12, 27769, 4059, 3631, 315, 22, 18, 13059, 4659, 2 ]
throw new IllegalArgumentException("Value is not an integer");
throw new IllegalArgumentException("Value for " + column + " is not an integer");
public int getIntColumn(String column) { if (! hasColumn(column)) throw new IllegalArgumentException("No such column " + column); String name = canonicalize(column); if (isColumnNull(name)) return -1; Object value = data.get(name); if (value == null) throw new IllegalArgumentException("Column " + column + " not present"); if (!(value instanceof Integer)) throw new IllegalArgumentException("Value is not an integer"); return ((Integer) value).intValue(); }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/9576d34509e842c7b121d3d5b1ea4c7dfd752f65/TableRow.java/clean/dspace/src/org/dspace/storage/rdbms/TableRow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8145, 1494, 12, 780, 1057, 13, 565, 288, 3639, 309, 16051, 711, 1494, 12, 2827, 3719, 5411, 604, 394, 2754, 2932, 2279, 4123, 1057, 315, 397, 1057, 1769, 3639, 514, 508, 273, 25839, 12, 2827, 1769, 3639, 309, 261, 291, 1494, 2041, 12, 529, 3719, 5411, 327, 300, 21, 31, 3639, 1033, 460, 273, 501, 18, 588, 12, 529, 1769, 3639, 309, 261, 1132, 422, 446, 13, 5411, 604, 394, 2754, 2932, 1494, 315, 397, 1057, 397, 315, 486, 3430, 8863, 3639, 309, 16051, 12, 1132, 1276, 2144, 3719, 5411, 604, 394, 2754, 2932, 620, 364, 315, 397, 1057, 397, 315, 353, 486, 392, 3571, 8863, 3639, 327, 14015, 4522, 13, 460, 2934, 474, 620, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8145, 1494, 12, 780, 1057, 13, 565, 288, 3639, 309, 16051, 711, 1494, 12, 2827, 3719, 5411, 604, 394, 2754, 2932, 2279, 4123, 1057, 315, 397, 1057, 1769, 3639, 514, 508, 273, 25839, 12, 2827, 1769, 3639, 309, 261, 291, 1494, 2041, 12, 529, 3719, 5411, 327, 300, 21, 31, 3639, 1033, 460, 273, 501, 18, 588, 12, 529, 1769, 3639, 309, 261, 1132, 422, 446, 13, 5411, 604, 394, 2754, 2932, 1494, 315, 397, 1057, 397, 315, 486, 3430, 8863, 3639, 309, 16051, 12, 1132, 1276, 2144, 3719, 5411, 604, 394, 2754, 2932, 620, 364, 315, 397, 1057, 397, 315, 353, 486, 392, 3571, 8863, 3639, 327, 14015, 4522, 13, 460, 2934, 474, 620, 5621, 2 ]
public boolean render( InternalContextAdapter context, Writer writer, Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException { /* * did we get an argument? */ if ( node.jjtGetChild(0) == null) { rsvc.error( "#parse() error : null argument" ); return false; } /* * does it have a value? If you have a null reference, then no. */ Object value = node.jjtGetChild(0).value( context ); if ( value == null) { rsvc.error( "#parse() error : null argument" ); return false; } /* * get the path */ String arg = value.toString(); /* * see if we have exceeded the configured depth. * If it isn't configured, put a stop at 20 just in case. */ Object[] templateStack = context.getTemplateNameStack(); if ( templateStack.length >= rsvc.getInt(RuntimeConstants.PARSE_DIRECTIVE_MAXDEPTH, 20) ) { StringBuffer path = new StringBuffer(); for( int i = 0; i < templateStack.length; ++i) { path.append( " > " + templateStack[i] ); } rsvc.error( "Max recursion depth reached (" + templateStack.length + ")" + " File stack:" + path ); return false; } /* * now use the Runtime resource loader to get the template */ Template t = null; try { t = rsvc.getTemplate( arg, getInputEncoding(context) ); } catch ( ResourceNotFoundException rnfe ) { /* * the arg wasn't found. Note it and throw */ rsvc.error("#parse(): cannot find template '" + arg + "', called from template " + context.getCurrentTemplateName() + " at (" + getLine() + ", " + getColumn() + ")" ); throw rnfe; } catch ( ParseErrorException pee ) { /* * the arg was found, but didn't parse - syntax error * note it and throw */ rsvc.error("#parse(): syntax error in #parse()-ed template '" + arg + "', called from template " + context.getCurrentTemplateName() + " at (" + getLine() + ", " + getColumn() + ")" ); throw pee; } catch ( Exception e) { rsvc.error("#parse() : arg = " + arg + ". Exception : " + e); return false; } /* * and render it */ try { context.pushCurrentTemplateName(arg); ((SimpleNode) t.getData()).render( context, writer ); } catch ( Exception e ) { /* * if it's a MIE, it came from the render.... throw it... */ if ( e instanceof MethodInvocationException) { throw (MethodInvocationException) e; } rsvc.error( "Exception rendering #parse( " + arg + " ) : " + e ); return false; } finally { context.popCurrentTemplateName(); } return true; }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/59780514f566344db5c57333d6182e2f5f040af7/Parse.java/clean/src/java/org/apache/velocity/runtime/directive/Parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1743, 12, 3186, 1042, 4216, 819, 16, 18701, 5497, 2633, 16, 2029, 756, 13, 3639, 1216, 1860, 16, 16676, 16, 2884, 10009, 16, 9079, 2985, 9267, 503, 565, 288, 3639, 1748, 540, 380, 225, 5061, 732, 336, 392, 1237, 35, 540, 1195, 3639, 309, 261, 756, 18, 78, 78, 88, 967, 1763, 12, 20, 13, 422, 446, 13, 3639, 288, 5411, 3597, 4227, 18, 1636, 12, 6619, 2670, 1435, 555, 294, 225, 446, 1237, 6, 11272, 5411, 327, 629, 31, 3639, 289, 7734, 1748, 540, 380, 225, 1552, 518, 1240, 279, 460, 35, 225, 971, 1846, 1240, 279, 446, 2114, 16, 1508, 1158, 18, 540, 1195, 3639, 1033, 460, 273, 225, 756, 18, 78, 78, 88, 967, 1763, 12, 20, 2934, 1132, 12, 819, 11272, 3639, 309, 261, 460, 422, 446, 13, 3639, 288, 5411, 3597, 4227, 18, 1636, 12, 6619, 2670, 1435, 555, 294, 225, 446, 1237, 6, 11272, 5411, 327, 225, 629, 31, 3639, 289, 3639, 1748, 540, 380, 225, 336, 326, 589, 540, 1195, 3639, 514, 1501, 273, 460, 18, 10492, 5621, 7734, 1748, 540, 380, 282, 2621, 309, 732, 1240, 12428, 326, 4351, 3598, 18, 540, 380, 282, 971, 518, 5177, 1404, 4351, 16, 1378, 279, 2132, 622, 4200, 2537, 316, 648, 18, 540, 1195, 3639, 1033, 8526, 1542, 2624, 273, 819, 18, 588, 28917, 2624, 5621, 3639, 309, 261, 1542, 2624, 18, 2469, 1545, 1171, 3597, 4227, 18, 588, 1702, 12, 5576, 2918, 18, 21045, 67, 17541, 5354, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1743, 12, 3186, 1042, 4216, 819, 16, 18701, 5497, 2633, 16, 2029, 756, 13, 3639, 1216, 1860, 16, 16676, 16, 2884, 10009, 16, 9079, 2985, 9267, 503, 565, 288, 3639, 1748, 540, 380, 225, 5061, 732, 336, 392, 1237, 35, 540, 1195, 3639, 309, 261, 756, 18, 78, 78, 88, 967, 1763, 12, 20, 13, 422, 446, 13, 3639, 288, 5411, 3597, 4227, 18, 1636, 12, 6619, 2670, 1435, 555, 294, 225, 446, 1237, 6, 11272, 5411, 327, 629, 31, 3639, 289, 7734, 1748, 540, 380, 225, 1552, 518, 1240, 279, 460, 35, 225, 971, 1846, 1240, 279, 446, 2114, 16, 1508, 1158, 18, 540, 1195, 3639, 1033, 460, 273, 225, 756, 18, 78, 78, 88, 2 ]
int seriesNumber = seriesManager.getCount(); int seriesID = seriesManager.getNextID(); String frameName = "Time Series " + seriesID; PlotControlFrame internal = new PlotControlFrame( frameName, seriesComp ); internal.setSize(650,500); internal.setLocation( seriesNumber*10, seriesNumber*10 ); if( series.getType() == TimeSeries.FOLDED || series.getType() == TimeSeries.BINFOLDED ) { internal.getPlot().setStatusTextOne( " Period: " + series.getEphemeris().getPeriod() ); internal.getPlot().setStatusTextTwo( " Zero Point: " + series.getEphemeris().getZeroPoint() ); } if ( series.isInMags() ) { internal.setInMags( true ); internal.getPlot().updatePlot(); } debugManager.print(" Adding internal to mainDesktop..."); debugManager.print(" SeriesID = " + seriesID); debugManager.print(" SeriesNumber = " + seriesNumber); seriesManager.put( frameName, seriesComp, internal ); seriesManager.display( frameName, mainDesktop ); toggleMenuItemsOnSeriesUpdate();
TimeSeriesFactory factory = TimeSeriesFactory.getReference(); TimeSeries series = factory.get( name ); series.setType( TimeSeries.TIMESERIES ); addSeries( series ); return true;
public void addSeries( TimeSeries series ) { // verbose if in debug mode if (debugManager.getDebugFlag()) { debugManager.print( " void addSeries(" + series.getShortName() +")"); double xData[] = series.getXData(); double yData[] = series.getYData(); double errors[] = series.getYDataErrors(); for ( int i = 0; i < xData.length; i++ ) { if ( errors != null ) { debugManager.print( " " + i + ": " + xData[i] + " " + yData[i] + " " + errors[i] ); } else { debugManager.print( " " + i + ": " + xData[i] + " " + yData[i] ); } } } // update frogStatus line frogStatus.setText( "Registering: " + series.getShortName() ); // Create TimeSeriesComp TimeSeriesComp seriesComp = new TimeSeriesComp( series ); // create an InternalFrame try { // Grab a label for the PlotControl Frame, we'll also use // this as the key to reference the PlotControlFrame and // assocaited TimeSeriesComp object in the TimeSeriesManager int seriesNumber = seriesManager.getCount(); int seriesID = seriesManager.getNextID(); String frameName = "Time Series " + seriesID; // create a new PlotControlFrame PlotControlFrame internal = new PlotControlFrame( frameName, seriesComp ); internal.setSize(650,500); internal.setLocation( seriesNumber*10, seriesNumber*10 ); // Display the ephemeris if its a folded series if( series.getType() == TimeSeries.FOLDED || series.getType() == TimeSeries.BINFOLDED ) { internal.getPlot().setStatusTextOne( " Period: " + series.getEphemeris().getPeriod() ); internal.getPlot().setStatusTextTwo( " Zero Point: " + series.getEphemeris().getZeroPoint() ); } // Toggle the PlotControlFrame yFlipped bit if the TimeSeries // data is in magnitudes if ( series.isInMags() ) { //internal.getPlot().getPlot().getDataLimits().setYFlipped( true ); internal.setInMags( true ); internal.getPlot().updatePlot(); } // Index it in the TimeSeriesManager object and display it debugManager.print(" Adding internal to mainDesktop..."); debugManager.print(" SeriesID = " + seriesID); debugManager.print(" SeriesNumber = " + seriesNumber); seriesManager.put( frameName, seriesComp, internal ); seriesManager.display( frameName, mainDesktop ); // toggle the menu items in the operations menu toggleMenuItemsOnSeriesUpdate(); } catch ( FrogException error ) { JOptionPane.showMessageDialog( this, error.getMessage(), "Error opening time series", JOptionPane.ERROR_MESSAGE); } // Update frogStatus line frogStatus.setText( Utilities.getReleaseName() + " version " + Utilities.getReleaseVersion() ); }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/1f1b8e5efad4f6244c1ea9927b2d47242dd0cdb0/Frog.java/buggy/frog/src/main/uk/ac/starlink/frog/Frog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 6485, 12, 26084, 4166, 262, 565, 288, 3639, 368, 3988, 309, 316, 1198, 1965, 21821, 309, 261, 4148, 1318, 18, 588, 2829, 4678, 10756, 288, 4766, 1198, 1318, 18, 1188, 12, 315, 5411, 918, 527, 6485, 2932, 397, 21394, 4166, 18, 588, 29983, 1435, 397, 6, 2225, 1769, 2398, 1645, 619, 751, 8526, 273, 4166, 18, 588, 60, 751, 5621, 4766, 1377, 1645, 677, 751, 8526, 273, 4166, 18, 588, 61, 751, 5621, 2868, 1645, 1334, 8526, 273, 4166, 18, 588, 61, 751, 4229, 5621, 2398, 364, 261, 509, 277, 273, 374, 31, 277, 411, 619, 751, 18, 2469, 31, 277, 9904, 262, 288, 7734, 309, 261, 1334, 480, 446, 262, 288, 10402, 1198, 1318, 18, 1188, 12, 315, 2868, 315, 397, 277, 397, 6398, 315, 397, 15604, 619, 751, 63, 77, 65, 397, 315, 565, 315, 397, 677, 751, 63, 77, 65, 397, 315, 565, 315, 397, 1334, 63, 77, 65, 11272, 7734, 289, 469, 288, 10792, 1198, 1318, 18, 1188, 12, 315, 2868, 315, 397, 277, 397, 6398, 315, 397, 15604, 619, 751, 63, 77, 65, 397, 315, 565, 315, 397, 677, 751, 63, 77, 65, 225, 11272, 5375, 289, 4766, 1377, 289, 1171, 9079, 289, 540, 368, 1089, 284, 303, 75, 1482, 980, 3639, 284, 303, 75, 1482, 18, 542, 1528, 12, 315, 3996, 310, 30, 315, 397, 4166, 18, 588, 29983, 1435, 11272, 4766, 282, 368, 1788, 26084, 2945, 3639, 26084, 2945, 4166, 2945, 273, 394, 26084, 2945, 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, 377, 1071, 918, 527, 6485, 12, 26084, 4166, 262, 565, 288, 3639, 368, 3988, 309, 316, 1198, 1965, 21821, 309, 261, 4148, 1318, 18, 588, 2829, 4678, 10756, 288, 4766, 1198, 1318, 18, 1188, 12, 315, 5411, 918, 527, 6485, 2932, 397, 21394, 4166, 18, 588, 29983, 1435, 397, 6, 2225, 1769, 2398, 1645, 619, 751, 8526, 273, 4166, 18, 588, 60, 751, 5621, 4766, 1377, 1645, 677, 751, 8526, 273, 4166, 18, 588, 61, 751, 5621, 2868, 1645, 1334, 8526, 273, 4166, 18, 588, 61, 751, 4229, 5621, 2398, 364, 261, 509, 277, 273, 374, 31, 277, 411, 619, 751, 18, 2469, 31, 277, 9904, 262, 288, 7734, 309, 261, 1334, 480, 446, 262, 288, 10402, 1198, 1318, 2 ]
private boolean isDX7(IPatch p) {
private boolean isDX7(Patch p) {
private boolean isDX7(IPatch p) { if (p.getDevice().getModelName() == "DX7") return true; else return false; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8de9e9d107eb8c0487bbadf2f24d3a5cc9bc1add/DX7FamilyPerformanceEditor.java/buggy/JSynthLib/synthdrivers/YamahaDX7/common/DX7FamilyPerformanceEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 28826, 27, 12, 2579, 505, 293, 13, 288, 202, 565, 309, 261, 84, 18, 588, 3654, 7675, 588, 22363, 1435, 422, 315, 28826, 27, 7923, 327, 638, 31, 202, 565, 469, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 28826, 27, 12, 2579, 505, 293, 13, 288, 202, 565, 309, 261, 84, 18, 588, 3654, 7675, 588, 22363, 1435, 422, 315, 28826, 27, 7923, 327, 638, 31, 202, 565, 469, 327, 629, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fDeselectButton.setText( DebugUtil.getResourceString( "Deselect All" ) );
fDeselectButton.setText( Messages.getString("ReportAdvancedLauncherTab.DeselectButtonText") );
private void createButtonContainer( Composite parent ) { Composite composite = new Composite( parent, 0 ); GridLayout layout = new GridLayout( ); layout.marginHeight = layout.marginWidth = 0; composite.setLayout( layout ); composite.setLayoutData( new GridData( 1040 ) ); fSelectAllButton = new Button( composite, 8 ); fSelectAllButton.setText( DebugUtil.getResourceString( "Select All" ) ); fSelectAllButton.setLayoutData( new GridData( 770 ) ); SWTUtil.setButtonDimensionHint( fSelectAllButton ); fDeselectButton = new Button( composite, 8 ); fDeselectButton.setText( DebugUtil.getResourceString( "Deselect All" ) ); fDeselectButton.setLayoutData( new GridData( 768 ) ); SWTUtil.setButtonDimensionHint( fDeselectButton ); fDefaultsButton = new Button( composite, 8 ); fDefaultsButton.setText( DebugUtil .getResourceString( "Restore Defaults" ) ); fDefaultsButton.setLayoutData( new GridData( 768 ) ); SWTUtil.setButtonDimensionHint( fDefaultsButton ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/a65b86554e6b88d27b0f13430395ece7fbe71ea0/ReportAdvancedLauncherTab.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launching/ReportAdvancedLauncherTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3616, 2170, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 374, 11272, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 10107, 2686, 273, 3511, 18, 10107, 2384, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 3511, 11272, 202, 202, 27676, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 1728, 7132, 262, 11272, 202, 202, 74, 3391, 1595, 3616, 273, 394, 12569, 12, 9635, 16, 1725, 11272, 202, 202, 74, 3391, 1595, 3616, 18, 542, 1528, 12, 4015, 1304, 18, 588, 1420, 780, 12, 315, 3391, 4826, 6, 262, 11272, 202, 202, 74, 3391, 1595, 3616, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 2371, 7301, 262, 11272, 202, 202, 55, 8588, 1304, 18, 542, 3616, 8611, 7002, 12, 284, 3391, 1595, 3616, 11272, 202, 202, 74, 6305, 13759, 3616, 273, 394, 12569, 12, 9635, 16, 1725, 11272, 202, 202, 74, 6305, 13759, 3616, 18, 542, 1528, 12, 4015, 1304, 18, 588, 1420, 780, 12, 315, 6305, 13759, 4826, 6, 262, 11272, 202, 202, 74, 6305, 13759, 3616, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 2371, 9470, 262, 11272, 202, 202, 55, 8588, 1304, 18, 542, 3616, 8611, 7002, 12, 284, 6305, 13759, 3616, 11272, 202, 202, 74, 7019, 3616, 273, 394, 12569, 12, 9635, 16, 1725, 11272, 202, 202, 74, 7019, 3616, 18, 542, 1528, 12, 4015, 1304, 9506, 202, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3616, 2170, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 374, 11272, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 10107, 2686, 273, 3511, 18, 10107, 2384, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 3511, 11272, 202, 202, 27676, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 1728, 7132, 262, 11272, 202, 202, 74, 3391, 1595, 3616, 273, 394, 12569, 12, 9635, 16, 1725, 11272, 202, 202, 74, 3391, 1595, 3616, 18, 542, 1528, 12, 4015, 1304, 18, 588, 1420, 780, 12, 315, 3391, 4826, 6, 262, 11272, 202, 202, 74, 3391, 1595, 3616, 18, 2 ]
public final void getDynamicLink(VM_DynamicLink dynamicLink, int instructionOffset) throws UninterruptiblePragma {
public final void getDynamicLink(VM_DynamicLink dynamicLink, Offset instructionOffset) throws UninterruptiblePragma {
public final void getDynamicLink(VM_DynamicLink dynamicLink, int instructionOffset) throws UninterruptiblePragma { // this method should never get called, because exception delivery begins // at site of exception, which is one frame above artificial "trap" frame // corresponding to this compiler-info object // if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/9b22bffbb06319b08a93aed2a8f11de10ba3fecf/VM_HardwareTrapCompiledMethod.java/buggy/rvm/src/vm/compilers/compiledCode/VM_HardwareTrapCompiledMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 2343, 3920, 2098, 12, 7397, 67, 9791, 2098, 5976, 2098, 16, 9874, 7592, 2335, 13, 1216, 1351, 31847, 1523, 2050, 9454, 288, 565, 368, 333, 707, 1410, 5903, 336, 2566, 16, 2724, 1520, 7912, 17874, 565, 368, 622, 2834, 434, 1520, 16, 1492, 353, 1245, 2623, 5721, 3688, 1507, 649, 315, 27170, 6, 2623, 565, 368, 4656, 358, 333, 5274, 17, 1376, 733, 565, 368, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 7397, 18, 4400, 67, 29416, 15023, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 2343, 3920, 2098, 12, 7397, 67, 9791, 2098, 5976, 2098, 16, 9874, 7592, 2335, 13, 1216, 1351, 31847, 1523, 2050, 9454, 288, 565, 368, 333, 707, 1410, 5903, 336, 2566, 16, 2724, 1520, 7912, 17874, 565, 368, 622, 2834, 434, 1520, 16, 1492, 353, 1245, 2623, 5721, 3688, 1507, 649, 315, 27170, 6, 2623, 565, 368, 4656, 358, 333, 5274, 17, 1376, 733, 565, 368, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 7397, 18, 4400, 67, 29416, 15023, 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 ]
log.info("------- Waiting 30 seconds... --------------"); try { Thread.sleep(30L * 1000L); } catch (Exception e) { }
log.info("------- Waiting 30 seconds... --------------"); try { Thread.sleep(30L * 1000L); } catch (Exception e) { }
public void run() throws Exception { final Log log = LogFactory.getLog(CalendarExample.class); log.info("------- Initializing ----------------------"); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete -----------"); log.info("------- Scheduling Jobs -------------------"); // Add the holiday calendar to the schedule AnnualCalendar holidays = new AnnualCalendar(); // fourth of July (July 4) Calendar fourthOfJuly = new GregorianCalendar(2005, 6, 4); holidays.setDayExcluded(fourthOfJuly, true); // halloween (Oct 31) Calendar halloween = new GregorianCalendar(2005, 9, 31); holidays.setDayExcluded(halloween, true); // christmas (Dec 25) Calendar christmas = new GregorianCalendar(2005, 11, 25); holidays.setDayExcluded(christmas, true); // tell the schedule about our holiday calendar sched.addCalendar("holidays", holidays, false, false); // schedule a job to run hourly, starting on halloween // at 10 am Date runDate = TriggerUtils.getDateOf(0,0, 10, 31, 10); JobDetail job = new JobDetail("job1", "group1", SimpleJob.class); SimpleTrigger trigger = new SimpleTrigger("trigger1", "group1", runDate, null, SimpleTrigger.REPEAT_INDEFINITELY, 60L * 60L * 1000L); // tell the trigger to obey the Holidays calendar! trigger.setCalendarName("holidays"); // schedule the job and print the first run date Date firstRunTime = sched.scheduleJob(job, trigger); // print out the first execution date. // Note: Since Halloween (Oct 31) is a holiday, then // we will not run unti the next day! (Nov 1) log.info(job.getFullName() + " will run at: " + firstRunTime + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // All of the jobs have been added to the scheduler, but none of the jobs // will run until the scheduler has been started log.info("------- Starting Scheduler ----------------"); sched.start(); // wait 30 seconds: // note: nothing will run log.info("------- Waiting 30 seconds... --------------"); try { // wait 30 seconds to show jobs Thread.sleep(30L * 1000L); // executing... } catch (Exception e) { } // shut down the scheduler log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/34b91f92fb2ac260d1f46e86f47625d41081621b/CalendarExample.java/clean/examples/src/java/org/quartz/examples/example8/CalendarExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 1216, 1185, 288, 3639, 727, 1827, 613, 273, 1827, 1733, 18, 588, 1343, 12, 7335, 10908, 18, 1106, 1769, 3639, 613, 18, 1376, 2932, 17082, 10188, 6894, 12146, 13465, 8863, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 300, 15392, 8863, 3639, 613, 18, 1376, 2932, 17082, 348, 13252, 26909, 12146, 413, 8863, 3639, 368, 1436, 326, 27836, 5686, 358, 326, 4788, 3639, 24936, 1462, 7335, 28990, 273, 394, 24936, 1462, 7335, 5621, 3639, 368, 12792, 451, 434, 804, 332, 93, 261, 46, 332, 93, 1059, 13, 3639, 5542, 12792, 451, 951, 46, 332, 93, 273, 394, 28033, 12, 6976, 25, 16, 1666, 16, 1059, 1769, 3639, 28990, 18, 542, 4245, 16461, 12, 74, 477, 451, 951, 46, 332, 93, 16, 638, 1769, 3639, 368, 366, 5965, 73, 275, 261, 19320, 8231, 13, 3639, 5542, 366, 5965, 73, 275, 273, 394, 28033, 12, 6976, 25, 16, 2468, 16, 8231, 1769, 3639, 28990, 18, 542, 4245, 16461, 12, 76, 5965, 73, 275, 16, 638, 1769, 3639, 368, 4513, 376, 15260, 261, 1799, 6969, 13, 3639, 5542, 4513, 376, 15260, 273, 394, 28033, 12, 6976, 25, 16, 4648, 16, 6969, 1769, 3639, 28990, 18, 542, 4245, 16461, 12, 15182, 376, 15260, 16, 638, 1769, 3639, 368, 9276, 326, 4788, 2973, 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, 1086, 1435, 1216, 1185, 288, 3639, 727, 1827, 613, 273, 1827, 1733, 18, 588, 1343, 12, 7335, 10908, 18, 1106, 1769, 3639, 613, 18, 1376, 2932, 17082, 10188, 6894, 12146, 13465, 8863, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 300, 15392, 8863, 3639, 613, 18, 1376, 2932, 17082, 348, 13252, 26909, 12146, 413, 8863, 3639, 368, 1436, 326, 27836, 5686, 358, 326, 4788, 3639, 24936, 1462, 7335, 28990, 273, 394, 24936, 1462, 7335, 5621, 3639, 368, 12792, 451, 434, 804, 332, 2 ]
print(str == null ? "null" : str, false);
try { writeChars(str, 0, str.length()); if (println) writeChars(line_separator, 0, line_separator.length); if (auto_flush) flush(); } catch (InterruptedIOException iioe) { Thread.currentThread().interrupt(); } catch (IOException e) { setError (); }
public void print (String str) { print(str == null ? "null" : str, false); }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/07b389269b71520778c555c24488284c9186012e/PrintStream.java/buggy/libjava/java/io/PrintStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1172, 261, 780, 609, 13, 225, 288, 565, 775, 288, 1045, 7803, 12, 701, 16, 374, 16, 609, 18, 2469, 10663, 309, 261, 8222, 13, 1045, 7803, 12, 1369, 67, 11287, 16, 374, 16, 980, 67, 11287, 18, 2469, 1769, 309, 261, 6079, 67, 11330, 13, 3663, 5621, 289, 1044, 261, 24485, 14106, 277, 1594, 73, 13, 288, 4884, 18, 2972, 3830, 7675, 31847, 5621, 289, 1044, 261, 14106, 425, 13, 288, 9967, 261, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1172, 261, 780, 609, 13, 225, 288, 565, 775, 288, 1045, 7803, 12, 701, 16, 374, 16, 609, 18, 2469, 10663, 309, 261, 8222, 13, 1045, 7803, 12, 1369, 67, 11287, 16, 374, 16, 980, 67, 11287, 18, 2469, 1769, 309, 261, 6079, 67, 11330, 13, 3663, 5621, 289, 1044, 261, 24485, 14106, 277, 1594, 73, 13, 288, 4884, 18, 2972, 3830, 7675, 31847, 5621, 289, 1044, 261, 14106, 425, 13, 288, 9967, 261, 1769, 289, 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 ]
public boolean isSet(org.quickfix.field.PartyID field)
public boolean isSet(quickfix.field.PartyID field)
public boolean isSet(org.quickfix.field.PartyID field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/buggy/src/java/src/quickfix/fix43/OrderMassStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 17619, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 17619, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 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 ]
Callback alias_method = new ReflectionCallbackMethod(RubyModule.class, "alias_method", new Class[] { RubyObject.class, RubyObject.class });
Callback alias_method = CallbackFactory.getMethod(RubyModule.class, "alias_method", RubyObject.class, RubyObject.class);
public static void createModuleClass(RubyClass moduleClass) {; Callback op_eqq = CallbackFactory.getMethod(RubyModule.class, "op_eqq", RubyObject.class); Callback op_cmp = CallbackFactory.getMethod(RubyModule.class, "op_cmp", RubyObject.class); Callback op_lt = CallbackFactory.getMethod(RubyModule.class, "op_lt", RubyObject.class); Callback op_le = CallbackFactory.getMethod(RubyModule.class, "op_le", RubyObject.class); Callback op_gt = CallbackFactory.getMethod(RubyModule.class, "op_gt", RubyObject.class); Callback op_ge = CallbackFactory.getMethod(RubyModule.class, "op_ge", RubyObject.class); Callback clone = CallbackFactory.getMethod(RubyModule.class, "rbClone"); Callback dup = CallbackFactory.getMethod(RubyModule.class, "dup"); Callback to_s = CallbackFactory.getMethod(RubyModule.class, "to_s"); Callback included_modules = CallbackFactory.getMethod(RubyModule.class, "included_modules"); Callback name = CallbackFactory.getMethod(RubyModule.class, "name"); Callback ancestors = CallbackFactory.getMethod(RubyModule.class, "ancestors"); Callback attr = CallbackFactory.getOptMethod(RubyModule.class, "attr", RubyObject.class); Callback attr_reader = CallbackFactory.getOptMethod(RubyModule.class, "attr_reader"); Callback attr_writer = CallbackFactory.getOptMethod(RubyModule.class, "attr_writer"); Callback attr_accessor = CallbackFactory.getOptMethod(RubyModule.class, "attr_accessor"); Callback newModule = CallbackFactory.getSingletonMethod(RubyModule.class, "newModule"); Callback initialize = CallbackFactory.getOptMethod(RubyModule.class, "initialize"); Callback instance_methods = CallbackFactory.getOptMethod(RubyModule.class, "instance_methods"); Callback public_instance_methods = CallbackFactory.getOptMethod(RubyModule.class, "instance_methods"); Callback protected_instance_methods = CallbackFactory.getOptMethod(RubyModule.class, "protected_instance_methods"); Callback private_instance_methods = CallbackFactory.getOptMethod(RubyModule.class, "private_instance_methods"); Callback constants = CallbackFactory.getMethod(RubyModule.class, "constants"); Callback const_get = CallbackFactory.getMethod(RubyModule.class, "const_get", RubyObject.class); Callback const_set = new ReflectionCallbackMethod(RubyModule.class, "const_set", new Class[] { RubyObject.class, RubyObject.class }); Callback const_defined = CallbackFactory.getMethod(RubyModule.class, "const_defined", RubyObject.class); Callback class_variables = CallbackFactory.getMethod(RubyModule.class, "class_variables"); Callback remove_class_variable = CallbackFactory.getMethod(RubyModule.class, "remove_class_variable", RubyObject.class); Callback append_features = CallbackFactory.getMethod(RubyModule.class, "append_features", RubyModule.class); Callback extend_object = CallbackFactory.getMethod(RubyModule.class, "extend_object", RubyObject.class); Callback include = CallbackFactory.getOptMethod(RubyModule.class, "include"); Callback rbPublic = CallbackFactory.getOptMethod(RubyModule.class, "rbPublic"); Callback rbProtected = CallbackFactory.getOptMethod(RubyModule.class, "rbProtected"); Callback rbPrivate = CallbackFactory.getOptMethod(RubyModule.class, "rbPrivate"); Callback module_function = CallbackFactory.getOptMethod(RubyModule.class, "module_function"); Callback method_defined = CallbackFactory.getMethod(RubyModule.class, "method_defined", RubyObject.class); Callback public_class_method = CallbackFactory.getOptMethod(RubyModule.class, "public_class_method"); Callback private_class_method = CallbackFactory.getOptMethod(RubyModule.class, "private_class_method"); Callback module_eval = CallbackFactory.getOptMethod(RubyModule.class, "module_eval"); Callback remove_method = CallbackFactory.getMethod(RubyModule.class, "remove_method", RubyObject.class); Callback undef_method = CallbackFactory.getMethod(RubyModule.class, "undef_method", RubyObject.class); Callback alias_method = new ReflectionCallbackMethod(RubyModule.class, "alias_method", new Class[] { RubyObject.class, RubyObject.class }); moduleClass.defineMethod("===", op_eqq); moduleClass.defineMethod("<=>", op_cmp); moduleClass.defineMethod("<", op_lt); moduleClass.defineMethod("<=", op_le); moduleClass.defineMethod(">", op_gt); moduleClass.defineMethod(">=", op_ge); moduleClass.defineMethod("clone", clone); moduleClass.defineMethod("dup", dup); moduleClass.defineMethod("to_s", to_s); moduleClass.defineMethod("included_modules", included_modules); moduleClass.defineMethod("name", name); moduleClass.defineMethod("ancestors", ancestors); moduleClass.definePrivateMethod("attr", attr); moduleClass.definePrivateMethod("attr_reader", attr_reader); moduleClass.definePrivateMethod("attr_writer", attr_writer); moduleClass.definePrivateMethod("attr_accessor", attr_accessor); moduleClass.defineSingletonMethod("new", newModule); moduleClass.defineMethod("initialize", initialize); moduleClass.defineMethod("instance_methods", instance_methods); moduleClass.defineMethod("public_instance_methods", public_instance_methods); moduleClass.defineMethod("protected_instance_methods", protected_instance_methods); moduleClass.defineMethod("private_instance_methods", private_instance_methods); moduleClass.defineMethod("constants", constants); moduleClass.defineMethod("const_get", const_get); moduleClass.defineMethod("const_set", const_set); moduleClass.defineMethod("const_defined?", const_defined); moduleClass.definePrivateMethod("method_added", CallbackFactory.getNilMethod()); moduleClass.defineMethod("class_variables", class_variables); moduleClass.definePrivateMethod("remove_class_variable", remove_class_variable); moduleClass.definePrivateMethod("append_features", append_features); moduleClass.definePrivateMethod("extend_object", extend_object); moduleClass.definePrivateMethod("include", include); moduleClass.definePrivateMethod("public", rbPublic); moduleClass.definePrivateMethod("protected", rbProtected); moduleClass.definePrivateMethod("private", rbPrivate); moduleClass.definePrivateMethod("module_function", module_function); moduleClass.defineMethod("method_defined?", method_defined); moduleClass.defineMethod("public_class_method", public_class_method); moduleClass.defineMethod("private_class_method", private_class_method); moduleClass.defineMethod("module_eval", module_eval); moduleClass.defineMethod("class_eval", module_eval); moduleClass.defineMethod("remove_method", remove_method); moduleClass.defineMethod("undef_method", undef_method); moduleClass.defineMethod("alias_method", alias_method); /*rb_define_private_method(rb_cModule, "define_method", rb_mod_define_method, -1); rb_define_singleton_method(rb_cModule, "constants", rb_mod_s_constants, 0);*/ moduleClass.defineSingletonMethod("nesting", CallbackFactory.getSingletonMethod(RubyModule.class, "nesting")); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 3120, 797, 12, 54, 10340, 797, 1605, 797, 13, 288, 31, 3639, 8444, 1061, 67, 11253, 85, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 11253, 85, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 9625, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 9625, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 5618, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 5618, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 298, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 298, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 4521, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 4521, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 908, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 908, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 3236, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 6731, 10930, 8863, 3639, 8444, 9417, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 26427, 8863, 3639, 8444, 358, 67, 87, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 869, 67, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 752, 3120, 797, 12, 54, 10340, 797, 1605, 797, 13, 288, 31, 3639, 8444, 1061, 67, 11253, 85, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 11253, 85, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 9625, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 9625, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 5618, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 16, 315, 556, 67, 5618, 3113, 19817, 921, 18, 1106, 1769, 3639, 8444, 1061, 67, 298, 273, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 3120, 18, 1106, 2 ]
public void makeIntoExClass(final PCClass aClass) { final String exClass = aClass.getExClass(); if (exClass.length() == 0) { return; } try { PCClass bClass = getClassKeyed(exClass); if (bClass == null) { bClass = Globals.getClassKeyed(exClass); if (bClass == null) { return; } bClass = (PCClass) bClass.clone(); rebuildLists(bClass, aClass, aClass.getLevel(), this); bClass.setLevel(aClass.getLevel(), this); bClass.setHitPointMap(aClass.getHitPointMap()); final int idx = classList.indexOf(aClass); classList.set(idx, bClass);// thePObjectList.remove(aClass);// thePObjectList.add(bClass); } else { rebuildLists(bClass, aClass, aClass.getLevel(), this); bClass.setLevel(bClass.getLevel() + aClass.getLevel(), this); for (int i = 0; i < aClass.getLevel(); ++i) { bClass.setHitPoint(bClass.getLevel() + i + 1, aClass.getHitPoint(i + 1)); } classList.remove(aClass);// thePObjectList.remove(aClass); } // // change all the levelling info to the ex-class as well // for (int idx = pcLevelInfo.size() - 1; idx >= 0; --idx) { final PCLevelInfo li = pcLevelInfo.get(idx); if (li.getClassKeyName().equals(aClass.getKeyName())) { li.setClassKeyName(bClass.getKeyName()); } } // // Find all skills associated with old class and link them to new class // for ( Skill skill : getSkillList() ) { skill.replaceClassRank(aClass.getKeyName(), exClass); } bClass.setSkillPool(aClass.getSkillPool(this)); } catch (NumberFormatException exc) { ShowMessageDelegate.showMessageDialog(exc.getMessage(), Constants.s_APPNAME, MessageType.INFORMATION); } }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1221, 5952, 424, 797, 12, 6385, 26300, 797, 20148, 13, 202, 95, 202, 202, 6385, 514, 431, 797, 273, 20148, 18, 588, 424, 797, 5621, 202, 202, 430, 261, 338, 797, 18, 2469, 1435, 422, 374, 13, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 698, 202, 202, 95, 1082, 202, 3513, 797, 324, 797, 273, 2900, 653, 329, 12, 338, 797, 1769, 1082, 202, 430, 261, 70, 797, 422, 446, 13, 1082, 202, 95, 9506, 202, 70, 797, 273, 18901, 1031, 18, 588, 797, 653, 329, 12, 338, 797, 1769, 9506, 202, 430, 261, 70, 797, 422, 446, 13, 9506, 202, 95, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 70, 797, 273, 261, 3513, 797, 13, 324, 797, 18, 14056, 5621, 9506, 202, 266, 3510, 7432, 12, 70, 797, 16, 20148, 16, 20148, 18, 588, 2355, 9334, 333, 1769, 9506, 202, 70, 797, 18, 542, 2355, 12, 69, 797, 18, 588, 2355, 9334, 333, 1769, 9506, 202, 70, 797, 18, 542, 13616, 2148, 863, 12, 69, 797, 18, 588, 13616, 2148, 863, 10663, 9506, 202, 6385, 509, 2067, 273, 16035, 18, 31806, 12, 69, 797, 1769, 9506, 202, 1106, 682, 18, 542, 12, 3465, 16, 324, 797, 1769, 759, 9506, 202, 5787, 52, 25979, 18, 4479, 12, 69, 797, 1769, 759, 9506, 202, 5787, 52, 25979, 18, 1289, 12, 70, 797, 1769, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 266, 3510, 7432, 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, 1221, 5952, 424, 797, 12, 6385, 26300, 797, 20148, 13, 202, 95, 202, 202, 6385, 514, 431, 797, 273, 20148, 18, 588, 424, 797, 5621, 202, 202, 430, 261, 338, 797, 18, 2469, 1435, 422, 374, 13, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 698, 202, 202, 95, 1082, 202, 3513, 797, 324, 797, 273, 2900, 653, 329, 12, 338, 797, 1769, 1082, 202, 430, 261, 70, 797, 422, 446, 13, 1082, 202, 95, 9506, 202, 70, 797, 273, 18901, 1031, 18, 588, 797, 653, 329, 12, 338, 797, 1769, 9506, 202, 430, 261, 70, 797, 422, 446, 13, 9506, 202, 95, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 2 ]
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
trueTemp = trueValue / adjustCount + trueValue
trueTemp = trueValue / adjustCount + trueValue
private void caleMergeMinWidth( List figures, List adjust, List hasAdjust ) { if ( adjust.isEmpty( ) ) { return; } int size = figures.size( ); Map map = getOwner( ).getViewer( ).getVisualPartMap( ); int adjustMax = 0; int trueAdjustMax = 0; int adjustMaxNumber = 0; for ( int i = 0; i < size; i++ ) { IFigure figure = (IFigure) figures.get( i ); TableCellEditPart cellPart = (TableCellEditPart) map.get( figure ); int columnNumber = cellPart.getColumnNumber( ); int columnSpan = cellPart.getColSpan( ); Dimension minSize = figure.getMinimumSize( ); int samMin = 0; int trueSamMin = 0; int[] adjustNumber = new int[0]; for ( int j = columnNumber; j < columnNumber + columnSpan; j++ ) { TableLayoutData.ColumnData columnData = data.findColumnData( j ); if ( !hasAdjust.contains( new Integer( j ) ) ) { int len = adjustNumber.length; int temp[] = new int[len + 1]; System.arraycopy( adjustNumber, 0, temp, 0, len ); temp[len] = j; adjustNumber = temp; } else { samMin = samMin + columnData.trueMinColumnWidth; trueSamMin = trueSamMin + columnData.trueMinColumnWidth; } } int adjustCount = adjustNumber.length; if ( adjustCount == 0 ) { continue; } int value = minSize.width - samMin; int trueValue = minSize.width - trueSamMin; for ( int j = 0; j < adjustCount; j++ ) { int temp = 0; int trueTemp = 0; if ( j == adjustCount - 1 ) { temp = value / adjustCount + value % adjustCount; trueTemp = trueValue / adjustCount + trueValue % adjustCount; } else { temp = value / adjustCount; trueTemp = trueValue / adjustCount; } TableLayoutData.ColumnData columnData = data .findColumnData( adjustNumber[j] ); temp = Math.max( temp, columnData.minColumnWidth ); trueTemp = Math.max( trueTemp, columnData.trueMinColumnWidth ); if ( trueTemp > trueAdjustMax ) { adjustMax = temp; trueAdjustMax = trueTemp; adjustMaxNumber = adjustNumber[j]; } } } if ( adjustMaxNumber > 0 ) { TableLayoutData.ColumnData columnData = data .findColumnData( adjustMaxNumber ); columnData.minColumnWidth = adjustMax; columnData.trueMinColumnWidth = trueAdjustMax; adjust.remove( new Integer( adjustMaxNumber ) ); hasAdjust.add( new Integer( adjustMaxNumber ) ); caleMergeMinWidth( figures, adjust, hasAdjust ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e051547bba60033b7a064c5e9a52977a6c21df2b/TableLayout.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/layout/TableLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1443, 73, 6786, 2930, 2384, 12, 987, 4291, 1823, 16, 987, 5765, 16, 987, 711, 10952, 262, 202, 95, 202, 202, 430, 261, 5765, 18, 291, 1921, 12, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 474, 963, 273, 4291, 1823, 18, 1467, 12, 11272, 202, 202, 863, 852, 273, 13782, 12, 262, 18, 588, 18415, 12, 262, 18, 588, 25780, 1988, 863, 12, 11272, 202, 202, 474, 5765, 2747, 273, 374, 31, 202, 202, 474, 638, 10952, 2747, 273, 374, 31, 202, 202, 474, 5765, 2747, 1854, 273, 374, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 5501, 15906, 7837, 273, 261, 5501, 15906, 13, 4291, 1823, 18, 588, 12, 277, 11272, 1082, 202, 1388, 4020, 4666, 1988, 2484, 1988, 273, 261, 1388, 4020, 4666, 1988, 13, 852, 18, 588, 12, 7837, 11272, 1082, 202, 474, 1057, 1854, 273, 2484, 1988, 18, 588, 1494, 1854, 12, 11272, 1082, 202, 474, 1057, 6952, 273, 2484, 1988, 18, 588, 914, 6952, 12, 11272, 1082, 202, 8611, 29343, 273, 7837, 18, 588, 13042, 1225, 12, 11272, 1082, 202, 474, 16260, 2930, 273, 374, 31, 1082, 202, 474, 638, 55, 301, 2930, 273, 374, 31, 1082, 202, 474, 8526, 5765, 1854, 273, 394, 509, 63, 20, 15533, 1082, 202, 1884, 261, 509, 525, 273, 1057, 1854, 31, 525, 411, 1057, 1854, 397, 1057, 6952, 31, 525, 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, 1443, 73, 6786, 2930, 2384, 12, 987, 4291, 1823, 16, 987, 5765, 16, 987, 711, 10952, 262, 202, 95, 202, 202, 430, 261, 5765, 18, 291, 1921, 12, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 474, 963, 273, 4291, 1823, 18, 1467, 12, 11272, 202, 202, 863, 852, 273, 13782, 12, 262, 18, 588, 18415, 12, 262, 18, 588, 25780, 1988, 863, 12, 11272, 202, 202, 474, 5765, 2747, 273, 374, 31, 202, 202, 474, 638, 10952, 2747, 273, 374, 31, 202, 202, 474, 5765, 2747, 1854, 273, 374, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 202, 202, 2 ]
} else {
} else {
protected final SimpleNode[] doGetChildren(final DomElement element) { if (!element.isValid()) return NO_CHILDREN; List<SimpleNode> children = new ArrayList<SimpleNode>(); final XmlTag tag = element.getXmlTag(); final XmlElementDescriptor xmlElementDescriptor = tag == null ? null : tag.getDescriptor(); final XmlElementDescriptor[] xmlDescriptors = xmlElementDescriptor == null ? null : xmlElementDescriptor.getElementsDescriptors(tag); for (DomFixedChildDescription description : element.getGenericInfo().getFixedChildrenDescriptions()) { String childName = description.getXmlElementName(); if (xmlDescriptors != null) { boolean found = false; for (XmlElementDescriptor xmlDescriptor: xmlDescriptors) { if (xmlDescriptor.getDefaultName().equals(childName)) { found = true; break; } } if (!found) continue; } final List<? extends DomElement> values = description.getStableValues(element); if (shouldBeShown(description.getType())) { if (DomUtil.isGenericValueType(description.getType())) { for (DomElement value : values) { children.add(new GenericValueNode((GenericDomValue)value, this)); } } else { for (DomElement domElement : values) { children.add(new BaseDomElementNode(domElement, this)); } } } } for (DomCollectionChildDescription description : element.getGenericInfo().getCollectionChildrenDescriptions()) { if (shouldBeShown(description.getType())) { DomElementsGroupNode groupNode = new DomElementsGroupNode(element, description); if (isMarkedType(description.getType(), CONSOLIDATED_NODES_KEY)) { Collections.addAll(children, groupNode.getChildren()); } else { children.add(groupNode); } } } AbstractDomElementNode[] childrenNodes = children.toArray(new AbstractDomElementNode[children.size()]); final Comparator<AbstractDomElementNode> comparator = myDomElement.getRoot().getUserData(COMPARATOR_KEY); if (comparator != null) { Arrays.sort(childrenNodes, comparator); } return childrenNodes; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/a5fe6a8db84a6136534469bf015428d245ca1e06/BaseDomElementNode.java/clean/dom/openapi/src/com/intellij/util/xml/tree/BaseDomElementNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 4477, 907, 8526, 23611, 4212, 12, 6385, 12965, 1046, 930, 13, 288, 565, 309, 16051, 2956, 18, 26810, 10756, 327, 3741, 67, 27043, 24296, 31, 565, 987, 32, 5784, 907, 34, 2325, 273, 394, 2407, 32, 5784, 907, 34, 5621, 565, 727, 5714, 1805, 1047, 273, 930, 18, 588, 4432, 1805, 5621, 565, 727, 15412, 3187, 2025, 1046, 3187, 273, 1047, 422, 446, 692, 446, 294, 1047, 18, 588, 3187, 5621, 565, 727, 15412, 3187, 8526, 2025, 12705, 273, 2025, 1046, 3187, 422, 446, 692, 446, 294, 2025, 1046, 3187, 18, 588, 3471, 12705, 12, 2692, 1769, 565, 364, 261, 8832, 7505, 1763, 3291, 2477, 294, 930, 18, 588, 7014, 966, 7675, 588, 7505, 4212, 16844, 10756, 288, 1377, 514, 27440, 273, 2477, 18, 588, 4432, 30584, 5621, 1377, 309, 261, 2902, 12705, 480, 446, 13, 288, 3639, 1250, 1392, 273, 629, 31, 3639, 364, 261, 4432, 1046, 3187, 2025, 3187, 30, 2025, 12705, 13, 288, 1850, 309, 261, 2902, 3187, 18, 588, 1868, 461, 7675, 14963, 12, 3624, 461, 3719, 288, 5411, 1392, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 289, 3639, 309, 16051, 7015, 13, 1324, 31, 1377, 289, 1377, 727, 987, 12880, 3231, 12965, 1046, 34, 924, 273, 2477, 18, 588, 30915, 1972, 12, 2956, 1769, 1377, 309, 261, 13139, 1919, 27042, 12, 3384, 18, 588, 559, 1435, 3719, 288, 3639, 309, 261, 8832, 1304, 18, 291, 7014, 17930, 12, 3384, 18, 588, 559, 1435, 3719, 288, 1850, 364, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 4477, 907, 8526, 23611, 4212, 12, 6385, 12965, 1046, 930, 13, 288, 565, 309, 16051, 2956, 18, 26810, 10756, 327, 3741, 67, 27043, 24296, 31, 565, 987, 32, 5784, 907, 34, 2325, 273, 394, 2407, 32, 5784, 907, 34, 5621, 565, 727, 5714, 1805, 1047, 273, 930, 18, 588, 4432, 1805, 5621, 565, 727, 15412, 3187, 2025, 1046, 3187, 273, 1047, 422, 446, 692, 446, 294, 1047, 18, 588, 3187, 5621, 565, 727, 15412, 3187, 8526, 2025, 12705, 273, 2025, 1046, 3187, 422, 446, 692, 446, 294, 2025, 1046, 3187, 18, 588, 3471, 12705, 12, 2692, 1769, 565, 364, 261, 8832, 7505, 1763, 3291, 2477, 294, 930, 18, 588, 7014, 966, 7675, 588, 7505, 4212, 16844, 2 ]
this.isFormatSpecifiedEnabled = isEnabled;
if ( isEnabled ) { this.style |= BUTTON_FORMAT; } else { this.style &= ~BUTTON_FORMAT; }
public void setFormatSpecifierEnabled( boolean isEnabled ) { this.isFormatSpecifiedEnabled = isEnabled; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f5958cc05504a8faf3ebe0576b8ecf1c4cf5de7c/BaseDataDefinitionComponent.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/data/BaseDataDefinitionComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26251, 21416, 1526, 12, 1250, 12047, 262, 202, 95, 202, 202, 2211, 18, 291, 1630, 17068, 1526, 273, 12047, 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, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26251, 21416, 1526, 12, 1250, 12047, 262, 202, 95, 202, 202, 2211, 18, 291, 1630, 17068, 1526, 273, 12047, 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, -100, -100, -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 (fromPC + 3 > itsICodeTop) throw Kit.codeBug(); recordJump(fromPC, itsICodeTop);
if (itsICodeTop < fromPC + 3) throw Kit.codeBug(); resolveGoto(fromPC, itsICodeTop);
private void resolveForwardGoto(int fromPC) { if (fromPC + 3 > itsICodeTop) throw Kit.codeBug(); recordJump(fromPC, itsICodeTop); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/d1471187a34ef33101c838cc302bedb3edf275ec/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 8514, 43, 6302, 12, 474, 628, 3513, 13, 565, 288, 3639, 309, 261, 2080, 3513, 397, 890, 405, 2097, 45, 1085, 3401, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 1409, 26743, 12, 2080, 3513, 16, 2097, 45, 1085, 3401, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 2245, 8514, 43, 6302, 12, 474, 628, 3513, 13, 565, 288, 3639, 309, 261, 2080, 3513, 397, 890, 405, 2097, 45, 1085, 3401, 13, 604, 1475, 305, 18, 710, 19865, 5621, 3639, 1409, 26743, 12, 2080, 3513, 16, 2097, 45, 1085, 3401, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int weekday = (day + THURSDAY) % 7;
int weekday = (int)(day + THURSDAY) % 7;
private void calculateDay(int day, boolean gregorian) { // the epoch is a Thursday. int weekday = (day + THURSDAY) % 7; if (weekday <= 0) weekday += 7; fields[DAY_OF_WEEK] = weekday; // get a first approximation of the year. This may be one // year to big. int year = 1970 + (gregorian ? ((day - 100) * 400) / (365 * 400 + 100 - 4 + 1) : ((day - 100) * 4) / (365 * 4 + 1)); if (day >= 0) year++; int firstDayOfYear = getLinearDay(year, 1, gregorian); // Now look in which year day really lies. if (day < firstDayOfYear) { year--; firstDayOfYear = getLinearDay(year, 1, gregorian); } day -= firstDayOfYear - 1; // day of year, one based. fields[DAY_OF_YEAR] = day; if (year <= 0) { fields[ERA] = BC; fields[YEAR] = 1 - year; } else { fields[ERA] = AD; fields[YEAR] = year; } int leapday = isLeapYear(year, gregorian) ? 1 : 0; if (day <= 31 + 28 + leapday) { fields[MONTH] = day / 32; // 31->JANUARY, 32->FEBRUARY fields[DAY_OF_MONTH] = day - 31 * fields[MONTH]; } else { // A few more magic formulas int scaledDay = (day - leapday) * 5 + 8; fields[MONTH] = scaledDay / (31 + 30 + 31 + 30 + 31); fields[DAY_OF_MONTH] = (scaledDay % (31 + 30 + 31 + 30 + 31)) / 5 + 1; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/61b8e27fab61a8487622d1793b61aa19c130c7ab/GregorianCalendar.java/clean/core/src/classpath/java/java/util/GregorianCalendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4604, 4245, 12, 474, 2548, 16, 1250, 314, 14510, 13, 225, 288, 202, 202, 759, 326, 7632, 353, 279, 935, 25152, 2881, 18, 202, 202, 474, 7560, 273, 261, 2881, 397, 7662, 1099, 9903, 5255, 13, 738, 2371, 31, 202, 202, 430, 261, 10741, 2881, 1648, 374, 13, 1082, 202, 10741, 2881, 1011, 2371, 31, 202, 202, 2821, 63, 10339, 67, 3932, 67, 20274, 65, 273, 7560, 31, 202, 202, 759, 336, 279, 1122, 24769, 434, 326, 3286, 18, 225, 1220, 2026, 506, 1245, 3196, 202, 759, 3286, 358, 5446, 18, 565, 509, 3286, 273, 5342, 7301, 397, 261, 2810, 280, 2779, 1082, 4202, 692, 14015, 2881, 300, 2130, 13, 380, 7409, 13, 342, 261, 5718, 25, 380, 7409, 397, 2130, 300, 1059, 397, 404, 13, 1082, 4202, 294, 14015, 2881, 300, 2130, 13, 380, 1059, 13, 342, 261, 5718, 25, 380, 1059, 397, 404, 10019, 202, 202, 430, 261, 2881, 1545, 374, 13, 1082, 202, 6874, 9904, 31, 202, 202, 474, 1122, 4245, 19091, 273, 9851, 297, 4245, 12, 6874, 16, 404, 16, 314, 14510, 1769, 202, 202, 759, 4494, 2324, 316, 1492, 3286, 2548, 8654, 328, 606, 18, 565, 309, 261, 2881, 411, 1122, 4245, 19091, 13, 1377, 288, 1082, 202, 6874, 413, 31, 1082, 202, 3645, 4245, 19091, 273, 9851, 297, 4245, 12, 6874, 16, 404, 16, 314, 14510, 1769, 202, 202, 97, 202, 202, 2881, 3947, 1122, 4245, 19091, 300, 404, 31, 368, 2548, 434, 3286, 16, 225, 1245, 2511, 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, 4604, 4245, 12, 474, 2548, 16, 1250, 314, 14510, 13, 225, 288, 202, 202, 759, 326, 7632, 353, 279, 935, 25152, 2881, 18, 202, 202, 474, 7560, 273, 261, 2881, 397, 7662, 1099, 9903, 5255, 13, 738, 2371, 31, 202, 202, 430, 261, 10741, 2881, 1648, 374, 13, 1082, 202, 10741, 2881, 1011, 2371, 31, 202, 202, 2821, 63, 10339, 67, 3932, 67, 20274, 65, 273, 7560, 31, 202, 202, 759, 336, 279, 1122, 24769, 434, 326, 3286, 18, 225, 1220, 2026, 506, 1245, 3196, 202, 759, 3286, 358, 5446, 18, 565, 509, 3286, 273, 5342, 7301, 397, 261, 2810, 280, 2779, 1082, 4202, 692, 14015, 2881, 300, 2130, 13, 380, 7409, 13, 342, 261, 5718, 2 ]
try { ( (IFacetedProjectListener) itr.next() ).projectChanged(); } catch( Exception e ) { FacetCorePlugin.log( e ); }
( (IFacetedProjectListener) copy[ i ] ).projectChanged(); } catch( Exception e ) { FacetCorePlugin.log( e );
private void notifyListeners() { synchronized( this.listeners ) { for( Iterator itr = this.listeners.iterator(); itr.hasNext(); ) { try { ( (IFacetedProjectListener) itr.next() ).projectChanged(); } catch( Exception e ) { FacetCorePlugin.log( e ); } } } }
13789 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13789/a623ed977f0340d8923d815668940dbc88baeb41/FacetedProject.java/clean/plugins/org.eclipse.wst.common.project.facet.core/src/org/eclipse/wst/common/project/facet/core/internal/FacetedProject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5066, 5583, 1435, 565, 288, 3639, 3852, 12, 333, 18, 16072, 262, 3639, 288, 5411, 364, 12, 4498, 11176, 273, 333, 18, 16072, 18, 9838, 5621, 11176, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 775, 7734, 288, 10792, 261, 261, 5501, 1077, 278, 329, 4109, 2223, 13, 11176, 18, 4285, 1435, 262, 18, 4406, 5033, 5621, 7734, 289, 7734, 1044, 12, 1185, 425, 262, 7734, 288, 10792, 31872, 4670, 3773, 18, 1330, 12, 425, 11272, 7734, 289, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5066, 5583, 1435, 565, 288, 3639, 3852, 12, 333, 18, 16072, 262, 3639, 288, 5411, 364, 12, 4498, 11176, 273, 333, 18, 16072, 18, 9838, 5621, 11176, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 775, 7734, 288, 10792, 261, 261, 5501, 1077, 278, 329, 4109, 2223, 13, 11176, 18, 4285, 1435, 262, 18, 4406, 5033, 5621, 7734, 289, 7734, 1044, 12, 1185, 425, 262, 7734, 288, 10792, 31872, 4670, 3773, 18, 1330, 12, 425, 11272, 7734, 289, 5411, 289, 3639, 289, 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 ]
StringBuffer buf = new StringBuffer("{CorrelationKey "); buf.append("setId="); buf.append(_csetId); buf.append(", values="); buf.append(ArrayUtils.makeCollection(ArrayList.class,_keyValues)); buf.append('}');
StringBuffer buf = new StringBuffer("{CorrelationKey "); buf.append("setId="); buf.append(_csetId); buf.append(", values="); buf.append(ArrayUtils.makeCollection(ArrayList.class, _keyValues)); buf.append('}');
public String toString() { StringBuffer buf = new StringBuffer("{CorrelationKey "); buf.append("setId="); buf.append(_csetId); buf.append(", values="); buf.append(ArrayUtils.makeCollection(ArrayList.class,_keyValues)); buf.append('}'); return buf.toString(); }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/09b7bc81ee0b928ba82939c26ceb06ae7bf923a2/CorrelationKey.java/buggy/bpel-api/src/main/java/org/apache/ode/bpel/common/CorrelationKey.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 6674, 1681, 273, 394, 6674, 2932, 95, 31685, 653, 315, 1769, 565, 1681, 18, 6923, 2932, 542, 548, 1546, 1769, 565, 1681, 18, 6923, 24899, 71, 542, 548, 1769, 565, 1681, 18, 6923, 2932, 16, 924, 1546, 1769, 565, 1681, 18, 6923, 12, 1076, 1989, 18, 6540, 2532, 12, 19558, 18, 1106, 16, 67, 856, 1972, 10019, 565, 1681, 18, 6923, 2668, 1713, 1769, 565, 327, 1681, 18, 10492, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 514, 1762, 1435, 288, 565, 6674, 1681, 273, 394, 6674, 2932, 95, 31685, 653, 315, 1769, 565, 1681, 18, 6923, 2932, 542, 548, 1546, 1769, 565, 1681, 18, 6923, 24899, 71, 542, 548, 1769, 565, 1681, 18, 6923, 2932, 16, 924, 1546, 1769, 565, 1681, 18, 6923, 12, 1076, 1989, 18, 6540, 2532, 12, 19558, 18, 1106, 16, 67, 856, 1972, 10019, 565, 1681, 18, 6923, 2668, 1713, 1769, 565, 327, 1681, 18, 10492, 5621, 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 ]
public void set(org.quickfix.field.QuoteQualifier value)
public void set(quickfix.field.QuoteQualifier value)
public void set(org.quickfix.field.QuoteQualifier value) { setField(value); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequestReject.java/clean/src/java/src/quickfix/fix44/QuoteRequestReject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 10257, 16185, 460, 13, 225, 288, 16331, 12, 1132, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 10257, 16185, 460, 13, 225, 288, 16331, 12, 1132, 1769, 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 ]
}
}*/
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (methodArgs == null) { methodArgs = new Object[0]; } if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 1]; System.arraycopy(methodArgs, 0, newMethodArgs, 1, methodArgs.length); newMethodArgs[0] = ruby; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (IllegalAccessException iaExcptn) { throw new RuntimeException("IllegalAccessException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (IllegalArgumentException iaExcptn) { throw new RuntimeException("IllegalArgumentException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (InvocationTargetException itExcptn) { throw new RuntimeException("InvocationTargetException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 19817, 921, 27632, 12, 54, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 16, 19817, 22155, 13, 288, 3639, 309, 261, 2039, 2615, 422, 446, 13, 288, 5411, 707, 2615, 273, 394, 1033, 63, 20, 15533, 3639, 289, 5549, 3639, 309, 261, 8792, 2615, 13, 288, 5411, 19817, 921, 8526, 3127, 1076, 273, 394, 19817, 921, 63, 2039, 2615, 18, 2469, 300, 261, 1968, 18, 2469, 300, 404, 13, 15533, 5411, 1033, 8526, 394, 1305, 2615, 273, 394, 1033, 63, 1968, 18, 2469, 15533, 5411, 2332, 18, 1126, 3530, 12, 2039, 2615, 16, 833, 18, 2469, 300, 404, 16, 3127, 1076, 16, 374, 16, 707, 2615, 18, 2469, 300, 261, 1968, 18, 2469, 300, 404, 10019, 5411, 2332, 18, 1126, 3530, 12, 2039, 2615, 16, 374, 16, 394, 1305, 2615, 16, 374, 16, 833, 18, 2469, 300, 404, 1769, 5411, 394, 1305, 2615, 63, 1968, 18, 2469, 300, 404, 65, 273, 3127, 1076, 31, 5411, 707, 2615, 273, 394, 1305, 2615, 31, 3639, 289, 5549, 3639, 309, 261, 3845, 1305, 13, 288, 5411, 1033, 8526, 394, 1305, 2615, 273, 394, 1033, 63, 2039, 2615, 18, 2469, 397, 404, 15533, 5411, 2332, 18, 1126, 3530, 12, 2039, 2615, 16, 374, 16, 394, 1305, 2615, 16, 404, 16, 707, 2615, 18, 2469, 1769, 5411, 394, 1305, 2615, 63, 20, 65, 273, 22155, 31, 5411, 707, 2615, 273, 394, 1305, 2615, 31, 3639, 289, 5549, 3639, 775, 288, 5411, 327, 261, 54, 10340, 921, 13, 588, 1305, 7675, 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, 19817, 921, 27632, 12, 54, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 16, 19817, 22155, 13, 288, 3639, 309, 261, 2039, 2615, 422, 446, 13, 288, 5411, 707, 2615, 273, 394, 1033, 63, 20, 15533, 3639, 289, 5549, 3639, 309, 261, 8792, 2615, 13, 288, 5411, 19817, 921, 8526, 3127, 1076, 273, 394, 19817, 921, 63, 2039, 2615, 18, 2469, 300, 261, 1968, 18, 2469, 300, 404, 13, 15533, 5411, 1033, 8526, 394, 1305, 2615, 273, 394, 1033, 63, 1968, 18, 2469, 15533, 5411, 2332, 18, 1126, 3530, 12, 2039, 2615, 16, 833, 18, 2469, 300, 404, 16, 3127, 1076, 16, 374, 16, 707, 2615, 18, 2469, 300, 261, 1968, 18, 2469, 300, 404, 10019, 5411, 2 ]
layoutEditorPane.setConversionPattern( getDetailPaneConversionPattern()); Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); Point p = new Point( ((int) ((size.getWidth() / 2) - (layoutEditorDialog.getSize().getWidth() / 2))), ((int) ((size.getHeight() / 2) - (layoutEditorDialog.getSize().getHeight() / 2)))); layoutEditorDialog.setLocation(p); layoutEditorDialog.setVisible(true);
setDetailPaneConversionPattern( layoutEditorPane.getConversionPattern()); layoutEditorDialog.setVisible(false);
public void actionPerformed(ActionEvent e) { layoutEditorPane.setConversionPattern( getDetailPaneConversionPattern()); Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); Point p = new Point( ((int) ((size.getWidth() / 2) - (layoutEditorDialog.getSize().getWidth() / 2))), ((int) ((size.getHeight() / 2) - (layoutEditorDialog.getSize().getHeight() / 2)))); layoutEditorDialog.setLocation(p); layoutEditorDialog.setVisible(true); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/94b1e818a9aab722aa1828ac8ec27b7d0515897c/LogPanel.java/clean/src/java/org/apache/log4j/chainsaw/LogPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1850, 3511, 6946, 8485, 18, 542, 6814, 3234, 12, 5411, 2343, 1641, 8485, 6814, 3234, 10663, 1850, 13037, 963, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 1850, 4686, 293, 273, 5411, 394, 4686, 12, 2868, 14015, 474, 13, 14015, 1467, 18, 588, 2384, 1435, 342, 576, 13, 2868, 300, 261, 6741, 6946, 6353, 18, 588, 1225, 7675, 588, 2384, 1435, 342, 576, 3719, 3631, 2868, 14015, 474, 13, 14015, 1467, 18, 588, 2686, 1435, 342, 576, 13, 2868, 300, 261, 6741, 6946, 6353, 18, 588, 1225, 7675, 588, 2686, 1435, 342, 576, 3719, 10019, 1850, 3511, 6946, 6353, 18, 542, 2735, 12, 84, 1769, 1850, 3511, 6946, 6353, 18, 542, 6207, 12, 3767, 1769, 3639, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1850, 3511, 6946, 8485, 18, 542, 6814, 3234, 12, 5411, 2343, 1641, 8485, 6814, 3234, 10663, 1850, 13037, 963, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 1850, 4686, 293, 273, 5411, 394, 4686, 12, 2868, 14015, 474, 13, 14015, 1467, 18, 588, 2384, 1435, 342, 576, 13, 2868, 300, 261, 6741, 6946, 6353, 18, 588, 1225, 7675, 588, 2384, 1435, 342, 576, 3719, 3631, 2868, 14015, 474, 13, 14015, 1467, 18, 588, 2686, 1435, 342, 576, 13, 2868, 300, 261, 6741, 6946, 6353, 18, 588, 1225, 7675, 588, 2686, 1435, 342, 576, 3719, 10019, 1850, 3511, 6946, 6353, 18, 542, 2735, 12, 84, 2 ]
} else { displayErrorDialog(SAVE_ERROR_TITLE, SAVE_ERROR_MESSAGE + newFile.getName()); return;
public void execute(final IProgressMonitor monitor) throws CoreException { SaveAsDialog dialog = new SaveAsDialog(clientFrame.getShell()); IFileEditorInput input = (IFileEditorInput) getEditorInput(); IFile sFile = input.getFile(); dialog.setOriginalFile(sFile); dialog.open(); IPath newPath = dialog.getResult(); if (newPath == null) return; if (dialog.getReturnCode() == Window.OK) { String projectName = newPath.segment(0); newPath = newPath.removeFirstSegments(1); IProject project = resource.getWorkspace().getRoot() .getProject(projectName); newPath = project.getLocation().append(newPath); File newFile = newPath.toFile(); if (saveFile(newFile)) { IFile newResource = resource.getWorkspace().getRoot() .getFileForLocation(newPath); if (newResource != null) { sourceChanged(newResource); newResource.refreshLocal(IResource.DEPTH_ZERO, monitor); } } else { displayErrorDialog(SAVE_ERROR_TITLE, SAVE_ERROR_MESSAGE + newFile.getName()); return; } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35591c7d55a12520aa70b2436fcd06526a22de81/OleEditor.java/buggy/bundles/org.eclipse.ui.win32/src/org/eclipse/ui/internal/editorsupport/win32/OleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1836, 12, 6385, 467, 5491, 7187, 6438, 13, 10792, 1216, 30015, 288, 7734, 7074, 1463, 6353, 6176, 273, 394, 7074, 1463, 6353, 12, 2625, 3219, 18, 588, 13220, 10663, 7734, 467, 812, 6946, 1210, 810, 273, 261, 45, 812, 6946, 1210, 13, 336, 6946, 1210, 5621, 7734, 467, 812, 272, 812, 273, 810, 18, 29925, 5621, 7734, 6176, 18, 542, 8176, 812, 12, 87, 812, 1769, 7734, 6176, 18, 3190, 5621, 7734, 467, 743, 14954, 273, 6176, 18, 588, 1253, 5621, 7734, 309, 261, 2704, 743, 422, 446, 13, 10792, 327, 31, 7734, 309, 261, 12730, 18, 588, 990, 1085, 1435, 422, 6076, 18, 3141, 13, 288, 10792, 514, 17234, 273, 14954, 18, 9273, 12, 20, 1769, 10792, 14954, 273, 14954, 18, 4479, 3759, 7946, 12, 21, 1769, 10792, 467, 4109, 1984, 273, 1058, 18, 588, 8241, 7675, 588, 2375, 1435, 18701, 263, 588, 4109, 12, 4406, 461, 1769, 10792, 14954, 273, 1984, 18, 588, 2735, 7675, 6923, 12, 2704, 743, 1769, 10792, 1387, 20592, 273, 14954, 18, 869, 812, 5621, 10792, 309, 261, 5688, 812, 12, 2704, 812, 3719, 288, 13491, 467, 812, 31757, 273, 1058, 18, 588, 8241, 7675, 588, 2375, 1435, 27573, 263, 29925, 1290, 2735, 12, 2704, 743, 1769, 13491, 309, 261, 2704, 1420, 480, 446, 13, 288, 18701, 1084, 5033, 12, 2704, 1420, 1769, 18701, 31757, 18, 9144, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 16, 4766, 565, 6438, 1769, 13491, 289, 10792, 289, 469, 288, 13491, 2562, 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, 2398, 1071, 918, 1836, 12, 6385, 467, 5491, 7187, 6438, 13, 10792, 1216, 30015, 288, 7734, 7074, 1463, 6353, 6176, 273, 394, 7074, 1463, 6353, 12, 2625, 3219, 18, 588, 13220, 10663, 7734, 467, 812, 6946, 1210, 810, 273, 261, 45, 812, 6946, 1210, 13, 336, 6946, 1210, 5621, 7734, 467, 812, 272, 812, 273, 810, 18, 29925, 5621, 7734, 6176, 18, 542, 8176, 812, 12, 87, 812, 1769, 7734, 6176, 18, 3190, 5621, 7734, 467, 743, 14954, 273, 6176, 18, 588, 1253, 5621, 7734, 309, 261, 2704, 743, 422, 446, 13, 10792, 327, 31, 7734, 309, 261, 12730, 18, 588, 990, 1085, 1435, 422, 6076, 18, 3141, 13, 288, 10792, 514, 17234, 273, 14954, 18, 9273, 12, 20, 2 ]
assertEquals(allower.NO_ACTIVITY, allower.getAuActivity(mau)); assertTrue(allower.startAuActivity(allower.TOP_LEVEL_POLL, mau, 123));
assertEquals(allower.NO_ACTIVITY, allower.getAuActivity()); assertTrue(allower.startAuActivity(allower.TOP_LEVEL_POLL, 123));
public void testCusBlocking() { MockCachedUrlSet mcus = new MockCachedUrlSet("test url"); mcus.setArchivalUnit(mau); assertEquals(allower.NO_ACTIVITY, allower.getAuActivity(mau)); assertTrue(allower.startCusActivity(allower.REPAIR_CRAWL, mcus, 123)); assertEquals(allower.CUS_ACTIVITY, allower.getAuActivity(mau)); assertFalse(allower.startAuActivity(allower.TOP_LEVEL_POLL, mau, 123)); MockCachedUrlSet mcus2 = new MockCachedUrlSet("test url2"); mcus2.setArchivalUnit(mau); assertTrue(allower.startCusActivity(allower.BACKGROUND_CRAWL, mcus2, 123)); allower.cusActivityFinished(allower.REPAIR_CRAWL, mcus); assertFalse(allower.startAuActivity(allower.TOP_LEVEL_POLL, mau, 123)); assertEquals(allower.CUS_ACTIVITY, allower.getAuActivity(mau)); allower.cusActivityFinished(allower.BACKGROUND_CRAWL, mcus2); assertEquals(allower.NO_ACTIVITY, allower.getAuActivity(mau)); assertTrue(allower.startAuActivity(allower.TOP_LEVEL_POLL, mau, 123)); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ad5c67194126954517d4bb9b23485040a1026b5d/TestActivityRegulator.java/buggy/test/src/org/lockss/daemon/TestActivityRegulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 39, 407, 8728, 1435, 288, 565, 7867, 9839, 1489, 694, 6108, 407, 273, 394, 7867, 9839, 1489, 694, 2932, 3813, 880, 8863, 565, 6108, 407, 18, 542, 12269, 5162, 2802, 12, 2540, 89, 1769, 565, 1815, 8867, 12, 5965, 264, 18, 3417, 67, 22271, 4107, 16, 1699, 264, 18, 588, 37, 89, 6193, 12, 2540, 89, 10019, 565, 1815, 5510, 12, 5965, 264, 18, 1937, 39, 407, 6193, 12, 5965, 264, 18, 862, 4066, 7937, 67, 39, 10821, 48, 16, 6108, 407, 16, 17335, 10019, 565, 1815, 8867, 12, 5965, 264, 18, 39, 3378, 67, 22271, 4107, 16, 1699, 264, 18, 588, 37, 89, 6193, 12, 2540, 89, 10019, 565, 1815, 8381, 12, 5965, 264, 18, 1937, 37, 89, 6193, 12, 5965, 264, 18, 10462, 67, 10398, 67, 14232, 48, 16, 312, 8377, 16, 17335, 10019, 565, 7867, 9839, 1489, 694, 6108, 407, 22, 273, 394, 7867, 9839, 1489, 694, 2932, 3813, 880, 22, 8863, 565, 6108, 407, 22, 18, 542, 12269, 5162, 2802, 12, 2540, 89, 1769, 565, 1815, 5510, 12, 5965, 264, 18, 1937, 39, 407, 6193, 12, 5965, 264, 18, 8720, 20166, 67, 39, 10821, 48, 16, 6108, 407, 22, 16, 17335, 10019, 565, 1699, 264, 18, 71, 407, 6193, 10577, 12, 5965, 264, 18, 862, 4066, 7937, 67, 39, 10821, 48, 16, 6108, 407, 1769, 565, 1815, 8381, 12, 5965, 264, 18, 1937, 37, 89, 6193, 12, 5965, 264, 18, 10462, 67, 10398, 67, 14232, 48, 16, 312, 8377, 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, 1842, 39, 407, 8728, 1435, 288, 565, 7867, 9839, 1489, 694, 6108, 407, 273, 394, 7867, 9839, 1489, 694, 2932, 3813, 880, 8863, 565, 6108, 407, 18, 542, 12269, 5162, 2802, 12, 2540, 89, 1769, 565, 1815, 8867, 12, 5965, 264, 18, 3417, 67, 22271, 4107, 16, 1699, 264, 18, 588, 37, 89, 6193, 12, 2540, 89, 10019, 565, 1815, 5510, 12, 5965, 264, 18, 1937, 39, 407, 6193, 12, 5965, 264, 18, 862, 4066, 7937, 67, 39, 10821, 48, 16, 6108, 407, 16, 17335, 10019, 565, 1815, 8867, 12, 5965, 264, 18, 39, 3378, 67, 22271, 4107, 16, 1699, 264, 18, 588, 37, 89, 6193, 12, 2540, 89, 10019, 565, 1815, 8381, 12, 5965, 264, 2 ]
String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
public static int getFontSizeIntValue( DesignElementHandle handle ) { if ( !( handle instanceof ReportItemHandle ) ) { if ( handle instanceof ModuleHandle ) { // return 10. String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ); } if ( handle instanceof GroupHandle ) { handle = handle.getContainer( ); } } Object fontSizeValue = getModelFontSize( handle ); if ( fontSizeValue instanceof DimensionValue ) { // use parent's font size as the base size for converting sizeValue // to a int value. int size = getFontSizeIntValue( handle.getContainer( ) ); return (int) CSSUtil.convertToPoint( fontSizeValue, size ); } else if ( fontSizeValue instanceof String ) { String fontSize = (String) fontSizeValue; if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) ) { return getLargerFontSizeIntValue( handle.getContainer( ) ); } else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) ) { return getSmallerFontSizeIntValue( handle.getContainer( ) ); } else { String size = (String) DesignerConstants.fontMap.get( fontSize ); return Integer.parseInt( size ); } } else { // return 10. String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/112d9727a9137a0204f4192391212e00ab899e84/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 18776, 1225, 1702, 620, 12, 29703, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 261, 401, 12, 1640, 1276, 8706, 1180, 3259, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 1640, 1276, 5924, 3259, 262, 1082, 202, 95, 9506, 202, 759, 327, 1728, 18, 9506, 202, 780, 963, 273, 261, 780, 13, 29703, 264, 2918, 18, 5776, 863, 25083, 202, 18, 588, 12, 29703, 10538, 2918, 18, 25221, 67, 4574, 67, 15971, 2799, 11272, 9506, 202, 2463, 2144, 18, 2670, 1702, 12, 963, 11272, 1082, 202, 97, 1082, 202, 430, 261, 1640, 1276, 3756, 3259, 262, 1082, 202, 95, 9506, 202, 4110, 273, 1640, 18, 588, 2170, 12, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 921, 16746, 620, 273, 7454, 22688, 12, 1640, 11272, 202, 202, 430, 261, 16746, 620, 1276, 13037, 620, 262, 202, 202, 95, 1082, 202, 759, 999, 982, 1807, 3512, 963, 487, 326, 1026, 963, 364, 14540, 963, 620, 1082, 202, 759, 358, 279, 509, 460, 18, 1082, 202, 474, 963, 273, 18776, 1225, 1702, 620, 12, 1640, 18, 588, 2170, 12, 262, 11272, 1082, 202, 2463, 261, 474, 13, 6765, 1304, 18, 6283, 774, 2148, 12, 16746, 620, 16, 963, 11272, 202, 202, 97, 202, 202, 12107, 309, 261, 16746, 620, 1276, 514, 262, 202, 202, 95, 1082, 202, 780, 16746, 273, 261, 780, 13, 16746, 620, 31, 1082, 202, 430, 261, 16746, 18, 14963, 12, 29703, 10538, 2918, 18, 25221, 67, 4574, 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, 509, 18776, 1225, 1702, 620, 12, 29703, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 261, 401, 12, 1640, 1276, 8706, 1180, 3259, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 1640, 1276, 5924, 3259, 262, 1082, 202, 95, 9506, 202, 759, 327, 1728, 18, 9506, 202, 780, 963, 273, 261, 780, 13, 29703, 264, 2918, 18, 5776, 863, 25083, 202, 18, 588, 12, 29703, 10538, 2918, 18, 25221, 67, 4574, 67, 15971, 2799, 11272, 9506, 202, 2463, 2144, 18, 2670, 1702, 12, 963, 11272, 1082, 202, 97, 1082, 202, 430, 261, 1640, 1276, 3756, 3259, 262, 1082, 202, 95, 9506, 202, 4110, 273, 1640, 18, 588, 2170, 12, 11272, 1082, 202, 97, 2 ]
}
public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) { metrics = getContainer().getFontMetrics(getContainer().getFont()); return numLines * metrics.getHeight(); } throw new IllegalArgumentException("Invalid axis for getPreferredSpan: " + axis); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/74171de2560e91a8fc81940ffc40e047ca41f4a0/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 12822, 4193, 6952, 12, 474, 2654, 13, 565, 288, 1377, 309, 261, 4890, 422, 1139, 67, 25614, 13, 3639, 327, 8557, 5621, 1377, 469, 309, 261, 4890, 422, 1624, 67, 25614, 13, 3639, 288, 1850, 4309, 273, 9272, 7675, 588, 5711, 5653, 12, 588, 2170, 7675, 588, 5711, 10663, 1850, 327, 818, 5763, 380, 4309, 18, 588, 2686, 5621, 10792, 604, 394, 2754, 2932, 1941, 2654, 364, 12822, 4193, 6952, 30, 315, 29159, 397, 2654, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 12822, 4193, 6952, 12, 474, 2654, 13, 565, 288, 1377, 309, 261, 4890, 422, 1139, 67, 25614, 13, 3639, 327, 8557, 5621, 1377, 469, 309, 261, 4890, 422, 1624, 67, 25614, 13, 3639, 288, 1850, 4309, 273, 9272, 7675, 588, 5711, 5653, 12, 588, 2170, 7675, 588, 5711, 10663, 1850, 327, 818, 5763, 380, 4309, 18, 588, 2686, 5621, 10792, 604, 394, 2754, 2932, 1941, 2654, 364, 12822, 4193, 6952, 30, 315, 29159, 397, 2654, 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 ]
public InputStream getErrorStream ()
public InputStream getErrorStream()
public InputStream getErrorStream () { if (!connected) return(null); int code; try { code = getResponseCode(); } catch(IOException e) { code = -1; } if (code == -1) return(null); if (((code/100) != 4) || ((code/100) != 5)) return(null); try { PushbackInputStream pbis = new PushbackInputStream(getInputStream()); int i = pbis.read(); if (i == -1) return(null); pbis.unread(i); return(pbis); } catch(IOException e) { return(null); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e3f7218be7244f0de74b2230a33469c2bf32546b/HttpURLConnection.java/clean/core/src/classpath/java/java/net/HttpURLConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5037, 7926, 1228, 1435, 225, 288, 565, 309, 16051, 8537, 13, 1377, 327, 12, 2011, 1769, 3639, 509, 981, 31, 565, 775, 4202, 288, 202, 710, 273, 6476, 1085, 5621, 1377, 289, 565, 1044, 12, 14106, 425, 13, 1377, 288, 202, 710, 273, 300, 21, 31, 1377, 289, 3639, 309, 261, 710, 422, 300, 21, 13, 1377, 327, 12, 2011, 1769, 3639, 309, 261, 12443, 710, 19, 6625, 13, 480, 1059, 13, 747, 14015, 710, 19, 6625, 13, 480, 1381, 3719, 1377, 327, 12, 2011, 1769, 540, 775, 1377, 288, 202, 7621, 823, 4348, 6386, 291, 273, 394, 8547, 823, 4348, 12, 588, 4348, 10663, 202, 202, 474, 277, 273, 6386, 291, 18, 896, 5621, 202, 430, 261, 77, 422, 300, 21, 13, 202, 225, 327, 12, 2011, 1769, 202, 202, 5733, 291, 18, 318, 896, 12, 77, 1769, 202, 2463, 12, 5733, 291, 1769, 1377, 289, 565, 1044, 12, 14106, 425, 13, 1377, 288, 202, 2463, 12, 2011, 1769, 1377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5037, 7926, 1228, 1435, 225, 288, 565, 309, 16051, 8537, 13, 1377, 327, 12, 2011, 1769, 3639, 509, 981, 31, 565, 775, 4202, 288, 202, 710, 273, 6476, 1085, 5621, 1377, 289, 565, 1044, 12, 14106, 425, 13, 1377, 288, 202, 710, 273, 300, 21, 31, 1377, 289, 3639, 309, 261, 710, 422, 300, 21, 13, 1377, 327, 12, 2011, 1769, 3639, 309, 261, 12443, 710, 19, 6625, 13, 480, 1059, 13, 747, 14015, 710, 19, 6625, 13, 480, 1381, 3719, 1377, 327, 12, 2011, 1769, 540, 775, 1377, 288, 202, 7621, 823, 4348, 6386, 291, 273, 394, 8547, 823, 4348, 12, 588, 4348, 10663, 202, 202, 474, 277, 273, 6386, 291, 18, 896, 5621, 202, 430, 2 ]
currentlyRefreshing.put(t, j); j.schedule();
if(j != null){ currentlyRefreshing.put(t, j); j.schedule(); }
private void updateRefreshState(){ if(currentlyRefreshing.size() < MAX_REFRESH_JOBS && toBeRefreshed.size() > 0){ BugzillaTask t = toBeRefreshed.remove(0); Job j = t.getRefreshJob(); currentlyRefreshing.put(t, j); j.schedule(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1b6615766f17e570b5752f96eb611f6af2cea47f/BugzillaRefreshManager.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaRefreshManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 8323, 1119, 1435, 95, 202, 202, 430, 12, 2972, 715, 8323, 310, 18, 1467, 1435, 411, 4552, 67, 10771, 14753, 67, 18321, 55, 597, 21333, 8323, 329, 18, 1467, 1435, 405, 374, 15329, 1082, 202, 19865, 15990, 2174, 268, 273, 21333, 8323, 329, 18, 4479, 12, 20, 1769, 1082, 202, 2278, 525, 273, 268, 18, 588, 8323, 2278, 5621, 1082, 202, 2972, 715, 8323, 310, 18, 458, 12, 88, 16, 525, 1769, 1082, 202, 78, 18, 10676, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 918, 1089, 8323, 1119, 1435, 95, 202, 202, 430, 12, 2972, 715, 8323, 310, 18, 1467, 1435, 411, 4552, 67, 10771, 14753, 67, 18321, 55, 597, 21333, 8323, 329, 18, 1467, 1435, 405, 374, 15329, 1082, 202, 19865, 15990, 2174, 268, 273, 21333, 8323, 329, 18, 4479, 12, 20, 1769, 1082, 202, 2278, 525, 273, 268, 18, 588, 8323, 2278, 5621, 1082, 202, 2972, 715, 8323, 310, 18, 458, 12, 88, 16, 525, 1769, 1082, 202, 78, 18, 10676, 5621, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
glyphTransform.transform(new Point2D.Double(x,y),result); x = result.getX(); y = result.getY();
glyphTransform.transform(new Point2D.Float(x,y),result); x = result.x; y = result.y;
protected Point2D getEndPoint(CharacterInformation info){ GVTGlyphVector it = info.layout.getGlyphVector(); Point2D b = it.getGlyphPosition(info.glyphIndexEnd); Point2D result = new Point2D.Float(); AffineTransform glyphTransform = it.getGlyphTransform(info.glyphIndexEnd); GVTGlyphMetrics metrics = it.getGlyphMetrics(info.glyphIndexEnd); double x = 0,y = 0; x = metrics.getHorizontalAdvance(); if ( glyphTransform != null ){ glyphTransform.transform(new Point2D.Double(x,y),result); x = result.getX(); y = result.getY(); } AffineTransform af = AffineTransform.getTranslateInstance(b.getX(), b.getY()); af.transform(new Point2D.Double(x,y),result); AffineTransform at = new AffineTransform(getCTM()); Point2D endPoint = new Point2D.Float(); at.transform(result,endPoint); return endPoint; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/f33abf9de3fa000638d691b994374bb6e457b817/SVGTextElementBridge.java/clean/sources/org/apache/batik/bridge/SVGTextElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4686, 22, 40, 9968, 2148, 12, 7069, 5369, 1123, 15329, 3639, 611, 58, 56, 15141, 5018, 518, 273, 1123, 18, 6741, 18, 588, 15141, 5018, 5621, 7734, 4686, 22, 40, 324, 273, 518, 18, 588, 15141, 2555, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 4686, 22, 40, 563, 273, 394, 4686, 22, 40, 18, 4723, 5621, 7734, 23906, 558, 4059, 9440, 4059, 273, 518, 18, 588, 15141, 4059, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 611, 58, 56, 15141, 5653, 4309, 273, 518, 18, 588, 15141, 5653, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 1645, 619, 273, 374, 16, 93, 273, 374, 31, 10792, 619, 273, 4309, 18, 588, 14457, 1871, 5882, 5621, 10792, 309, 261, 9440, 4059, 480, 446, 262, 95, 18701, 9440, 4059, 18, 6547, 12, 2704, 4686, 22, 40, 18, 5265, 12, 92, 16, 93, 3631, 2088, 1769, 5411, 619, 273, 563, 18, 588, 60, 5621, 5411, 677, 273, 563, 18, 588, 61, 5621, 10792, 289, 7734, 23906, 558, 4059, 10073, 273, 23906, 558, 4059, 18, 588, 12818, 1442, 12, 70, 18, 588, 60, 9334, 324, 18, 588, 61, 10663, 7734, 10073, 18, 6547, 12, 2704, 4686, 22, 40, 18, 5265, 12, 92, 16, 93, 3631, 2088, 1769, 27573, 23906, 558, 4059, 622, 273, 394, 23906, 558, 4059, 12, 588, 1268, 49, 10663, 3639, 4686, 22, 40, 19849, 273, 394, 4686, 22, 40, 18, 4723, 5621, 3639, 622, 18, 6547, 12, 2088, 16, 409, 2148, 1769, 7734, 327, 19849, 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, 4686, 22, 40, 9968, 2148, 12, 7069, 5369, 1123, 15329, 3639, 611, 58, 56, 15141, 5018, 518, 273, 1123, 18, 6741, 18, 588, 15141, 5018, 5621, 7734, 4686, 22, 40, 324, 273, 518, 18, 588, 15141, 2555, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 4686, 22, 40, 563, 273, 394, 4686, 22, 40, 18, 4723, 5621, 7734, 23906, 558, 4059, 9440, 4059, 273, 518, 18, 588, 15141, 4059, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 611, 58, 56, 15141, 5653, 4309, 273, 518, 18, 588, 15141, 5653, 12, 1376, 18, 19426, 1016, 1638, 1769, 7734, 1645, 619, 273, 374, 16, 93, 273, 374, 31, 10792, 619, 273, 4309, 18, 588, 14457, 1871, 5882, 5621, 10792, 2 ]
/* do nothing */
if (zone != null && iterations == 0) addSOA(response, zone);
addAnswer(Message response, Name name, short type, short dclass, int iterations){ SetResponse sr; boolean sigonly; byte rcode = Rcode.NOERROR; if (iterations > 6) return Rcode.SERVFAIL; if (type == Type.SIG) { type = Type.ANY; sigonly = true; } else sigonly = false; Zone zone = findBestZone(name); if (zone != null) { if (iterations == 0) response.getHeader().setFlag(Flags.AA); sr = zone.findRecords(name, type); } else { Cache cache = getCache(dclass); sr = cache.lookupRecords(name, type, Credibility.NONAUTH_ANSWER); }System.out.println(sr); if (sr.isUnknown()) { /* Do nothing, I guess. This should never happen. */ } if (sr.isNXDOMAIN()) { response.getHeader().setRcode(Rcode.NXDOMAIN); } else if (sr.isNXRRSET()) { /* do nothing */ } else if (sr.isDelegation()) { /* do nothing */ } else if (sr.isCNAME()) { RRset rrset = new RRset(); CNAMERecord cname = sr.getCNAME(); rrset.addRR(cname); addRRset(name, response, rrset, Section.ANSWER, false); rcode = addAnswer(response, cname.getTarget(), type, dclass, ++iterations); } else if (sr.isDNAME()) { RRset rrset = new RRset(); DNAMERecord dname = sr.getDNAME(); rrset.addRR(dname); addRRset(name, response, rrset, Section.ANSWER, false); Name newname = name.fromDNAME(dname); if (newname == null) return Rcode.SERVFAIL; rrset = new RRset(); try { CNAMERecord cname; cname = new CNAMERecord(name, dclass, 0, newname); rrset.addRR(cname); addRRset(name, response, rrset, Section.ANSWER, false); } catch (IOException e) {} rcode = addAnswer(response, newname, type, dclass, ++iterations); } else if (sr.isSuccessful()) { RRset [] rrsets = sr.answers(); for (int i = 0; i < rrsets.length; i++) addRRset(name, response, rrsets[i], Section.ANSWER, sigonly); } return rcode;}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/ef94ea67d8c0f5f930f91dfeb211be38cf3006db/jnamed.java/buggy/jnamed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 527, 13203, 12, 1079, 766, 16, 1770, 508, 16, 3025, 618, 16, 3025, 302, 1106, 16, 509, 11316, 15329, 202, 694, 1064, 9133, 31, 202, 6494, 3553, 3700, 31, 202, 7229, 436, 710, 273, 534, 710, 18, 3417, 3589, 31, 202, 430, 261, 19330, 405, 1666, 13, 202, 202, 2463, 534, 710, 18, 31066, 12319, 31, 202, 430, 261, 723, 422, 1412, 18, 18513, 13, 288, 202, 202, 723, 273, 1412, 18, 15409, 31, 202, 202, 7340, 3700, 273, 638, 31, 202, 97, 202, 12107, 202, 202, 7340, 3700, 273, 629, 31, 202, 4226, 4157, 273, 1104, 14173, 4226, 12, 529, 1769, 202, 430, 261, 3486, 480, 446, 13, 288, 202, 202, 430, 261, 19330, 422, 374, 13, 1082, 202, 2740, 18, 588, 1864, 7675, 542, 4678, 12, 5094, 18, 5284, 1769, 202, 202, 11254, 273, 4157, 18, 4720, 6499, 12, 529, 16, 618, 1769, 202, 97, 202, 12107, 288, 202, 202, 1649, 1247, 273, 8577, 12, 72, 1106, 1769, 202, 202, 11254, 273, 1247, 18, 8664, 6499, 12, 529, 16, 618, 16, 25083, 385, 1118, 3628, 18, 3993, 7131, 67, 11607, 18839, 1769, 202, 97, 3163, 18, 659, 18, 8222, 12, 11254, 1769, 202, 430, 261, 11254, 18, 291, 4874, 10756, 288, 202, 202, 20308, 2256, 5083, 16, 467, 7274, 18, 1220, 1410, 5903, 5865, 18, 1195, 202, 97, 202, 430, 261, 11254, 18, 291, 17106, 18192, 10756, 288, 202, 202, 2740, 18, 588, 1864, 7675, 542, 54, 710, 12, 54, 710, 18, 17106, 18192, 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, 527, 13203, 12, 1079, 766, 16, 1770, 508, 16, 3025, 618, 16, 3025, 302, 1106, 16, 509, 11316, 15329, 202, 694, 1064, 9133, 31, 202, 6494, 3553, 3700, 31, 202, 7229, 436, 710, 273, 534, 710, 18, 3417, 3589, 31, 202, 430, 261, 19330, 405, 1666, 13, 202, 202, 2463, 534, 710, 18, 31066, 12319, 31, 202, 430, 261, 723, 422, 1412, 18, 18513, 13, 288, 202, 202, 723, 273, 1412, 18, 15409, 31, 202, 202, 7340, 3700, 273, 638, 31, 202, 97, 202, 12107, 202, 202, 7340, 3700, 273, 629, 31, 202, 4226, 4157, 273, 1104, 14173, 4226, 12, 529, 1769, 202, 430, 261, 3486, 480, 446, 13, 288, 202, 202, 430, 261, 19330, 422, 374, 13, 1082, 2 ]
}
public void setRoute(Route route) { if(m_route != route || (m_route != null && !m_route.equals(route))) { m_route = route; //get the territory to update m_mapsUnitDrawer.queueUpdate(); } }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/e2294e8d54ebb6231cd7bac3559b11b5d4e873bf/MapPanel.java/clean/triplea/src/games/strategy/triplea/ui/MapPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3255, 12, 3255, 1946, 13, 225, 288, 565, 309, 12, 81, 67, 5547, 480, 1946, 747, 261, 81, 67, 5547, 480, 446, 597, 401, 81, 67, 5547, 18, 14963, 12, 5547, 20349, 565, 288, 1377, 312, 67, 5547, 273, 1946, 31, 1377, 368, 588, 326, 268, 25313, 358, 1089, 1377, 312, 67, 10711, 2802, 21631, 18, 4000, 1891, 5621, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3255, 12, 3255, 1946, 13, 225, 288, 565, 309, 12, 81, 67, 5547, 480, 1946, 747, 261, 81, 67, 5547, 480, 446, 597, 401, 81, 67, 5547, 18, 14963, 12, 5547, 20349, 565, 288, 1377, 312, 67, 5547, 273, 1946, 31, 1377, 368, 588, 326, 268, 25313, 358, 1089, 1377, 312, 67, 10711, 2802, 21631, 18, 4000, 1891, 5621, 377, 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 ]
if(id!=null && id.equalsIgnoreCase(emitterInfo.id) || id==null)
if(id!=null && id.equalsIgnoreCase(emitterInfo.getIcon( )) || id==null)
public IContentEmitter createEmitter(String format, String id) { if(format==null) { return null; } IConfigurationElement config = null; for(int i=0; i<emitterExtensions.size(); i++) { EmitterInfo emitterInfo = (EmitterInfo)emitterExtensions.get(i); if(format.equalsIgnoreCase(emitterInfo.format)) { if(id!=null && id.equalsIgnoreCase(emitterInfo.id) || id==null) { config = emitterInfo.emitter; break; } } } if (config != null) { Object object = createObject(config, "class"); //$NON-NLS-1$ if (object instanceof IContentEmitter) { return (IContentEmitter)object; } } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6ad19d91d4a24c7a683143b6dd91bd851d98ffa4/ExtensionManager.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/internal/ExtensionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1350, 13476, 752, 13476, 12, 780, 740, 16, 514, 612, 13, 202, 95, 202, 202, 430, 12, 2139, 631, 2011, 13, 202, 202, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 45, 1750, 1046, 642, 273, 446, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 27529, 7513, 18, 1467, 5621, 277, 27245, 202, 202, 95, 25083, 202, 13476, 966, 11520, 966, 273, 261, 13476, 966, 13, 27529, 7513, 18, 588, 12, 77, 1769, 1082, 202, 430, 12, 2139, 18, 14963, 5556, 12, 27529, 966, 18, 2139, 3719, 1082, 202, 95, 9506, 202, 430, 12, 350, 5, 33, 2011, 597, 612, 18, 14963, 5556, 12, 27529, 966, 18, 350, 13, 747, 612, 631, 2011, 13, 9506, 202, 95, 6862, 202, 1425, 273, 11520, 966, 18, 27529, 31, 6862, 202, 8820, 31, 9506, 202, 97, 6862, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 1425, 480, 446, 13, 202, 202, 95, 1082, 202, 921, 733, 273, 17109, 12, 1425, 16, 315, 1106, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 1612, 1276, 467, 1350, 13476, 13, 1082, 202, 95, 9506, 202, 2463, 261, 45, 1350, 13476, 13, 1612, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1350, 13476, 752, 13476, 12, 780, 740, 16, 514, 612, 13, 202, 95, 202, 202, 430, 12, 2139, 631, 2011, 13, 202, 202, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 45, 1750, 1046, 642, 273, 446, 31, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 27529, 7513, 18, 1467, 5621, 277, 27245, 202, 202, 95, 25083, 202, 13476, 966, 11520, 966, 273, 261, 13476, 966, 13, 27529, 7513, 18, 588, 12, 77, 1769, 1082, 202, 430, 12, 2139, 18, 14963, 5556, 12, 27529, 966, 18, 2139, 3719, 1082, 202, 95, 9506, 202, 430, 12, 350, 5, 33, 2011, 597, 612, 18, 14963, 5556, 12, 27529, 966, 18, 350, 2 ]
if (operation.canRedo()) { checkRedoLimit(operation);
if (operation.canRedo() && checkRedoLimit(operation)) {
protected IStatus doUndo(IProgressMonitor monitor, IAdaptable info, IUndoableOperation operation, boolean flushOnError) throws ExecutionException { IStatus status = getUndoApproval(operation, info); if (status.isOK()) { notifyAboutToUndo(operation); try { status = operation.undo(monitor, info); } catch (OperationCanceledException e) { status = Status.CANCEL_STATUS; } catch (ExecutionException e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out.print("OPERATIONHISTORY >>> ExecutionException while undoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw e; } catch (Exception e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out.print("OPERATIONHISTORY >>> Exception while undoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw new ExecutionException( "While undoing the operation, an exception occurred", e); //$NON-NLS-1$ } } // if successful, the operation is removed from the undo history and // placed in the redo history. if (status.isOK()) { undoList.remove(operation); // Only add the operation to the redo stack if it can indeed be redone. // This conservatism is added to support the integration of existing // frameworks (such as Refactoring) that produce undo and redo behavior // on the fly and cannot guarantee that a successful undo means a // successful redo will be available. // See bug #84444 if (operation.canRedo()) { checkRedoLimit(operation); redoList.add(operation); } // notification occurs after the undo and redo histories are // adjusted notifyUndone(operation); } else { notifyNotOK(operation); if (flushOnError && status.getSeverity() == IStatus.ERROR) { remove(operation); } } return status; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ad9d7ef789ee7473e6f409e221ea04544d4adb03/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 741, 31224, 12, 45, 5491, 7187, 6438, 16, 467, 13716, 429, 1123, 16, 467, 31224, 429, 2988, 1674, 16, 1082, 202, 6494, 3663, 11427, 13, 1216, 20205, 288, 202, 202, 45, 1482, 1267, 273, 10833, 2896, 23461, 12, 7624, 16, 1123, 1769, 202, 202, 430, 261, 2327, 18, 291, 3141, 10756, 288, 1082, 202, 12336, 24813, 774, 31224, 12, 7624, 1769, 1082, 202, 698, 288, 9506, 202, 2327, 273, 1674, 18, 31226, 12, 10259, 16, 1123, 1769, 1082, 202, 97, 1044, 261, 2988, 23163, 503, 425, 13, 288, 9506, 202, 2327, 273, 2685, 18, 25268, 67, 8608, 31, 1082, 202, 97, 1044, 261, 14576, 425, 13, 288, 9506, 202, 12336, 1248, 3141, 12, 7624, 1769, 9506, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 2124, 27409, 13, 288, 6862, 202, 3163, 18, 659, 18, 1188, 2932, 22040, 31746, 4080, 20205, 1323, 15436, 310, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4405, 202, 3163, 18, 659, 18, 1188, 12, 7624, 1769, 6862, 202, 3163, 18, 659, 18, 8222, 5621, 9506, 202, 97, 9506, 202, 12849, 425, 31, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 12336, 1248, 3141, 12, 7624, 1769, 9506, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 2124, 27409, 13, 288, 6862, 202, 3163, 18, 659, 18, 1188, 2932, 22040, 31746, 4080, 1185, 1323, 15436, 310, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4405, 202, 3163, 18, 659, 18, 1188, 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, 1117, 467, 1482, 741, 31224, 12, 45, 5491, 7187, 6438, 16, 467, 13716, 429, 1123, 16, 467, 31224, 429, 2988, 1674, 16, 1082, 202, 6494, 3663, 11427, 13, 1216, 20205, 288, 202, 202, 45, 1482, 1267, 273, 10833, 2896, 23461, 12, 7624, 16, 1123, 1769, 202, 202, 430, 261, 2327, 18, 291, 3141, 10756, 288, 1082, 202, 12336, 24813, 774, 31224, 12, 7624, 1769, 1082, 202, 698, 288, 9506, 202, 2327, 273, 1674, 18, 31226, 12, 10259, 16, 1123, 1769, 1082, 202, 97, 1044, 261, 2988, 23163, 503, 425, 13, 288, 9506, 202, 2327, 273, 2685, 18, 25268, 67, 8608, 31, 1082, 202, 97, 1044, 261, 14576, 425, 13, 288, 9506, 202, 12336, 1248, 3141, 12, 7624, 2 ]
public List readEnrolmentEvaluationByEnrolment(IEnrolment enrolment) throws ExcepcaoPersistencia;
public List readEnrolmentEvaluationByEnrolment(IEnrollment enrolment) throws ExcepcaoPersistencia;
public List readEnrolmentEvaluationByEnrolment(IEnrolment enrolment) throws ExcepcaoPersistencia;
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b725edc1d4fb8b6b021f161e06df030d1bd829e8/IPersistentEnrolmentEvaluation.java/clean/src/ServidorPersistente/IPersistentEnrolmentEvaluation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 664, 922, 475, 13468, 858, 664, 922, 475, 12, 45, 664, 922, 475, 14905, 475, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 664, 922, 475, 13468, 858, 664, 922, 475, 12, 45, 664, 922, 475, 14905, 475, 13, 1216, 1312, 311, 2436, 6033, 12771, 28115, 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 ]
unigram.setLogProbability(-0.99f);
unigram.setLogProbability(MIN_PROBABILITY);
private void loadBinary(String location) throws IOException { FileInputStream fis = new FileInputStream(location); DataInputStream stream = new DataInputStream(new BufferedInputStream(fis)); // read standard header string-size; set bigEndian flag readHeader(stream); unigrams = readUnigrams(stream, numberUnigrams+1, bigEndian); skipBigramsTrigrams(stream); // read the bigram probabilities table if (numberBigrams > 0) { this.bigramProbTable = readFloatTable(stream, bigEndian); } // read the trigram backoff weight table and trigram prob table if (numberTrigrams > 0) { trigramBackoffTable = readFloatTable(stream, bigEndian); trigramProbTable = readFloatTable(stream, bigEndian); int bigramSegmentSize = 1 << logBigramSegmentSize; int trigramSegTableSize = ((numberBigrams+1)/bigramSegmentSize)+1; trigramSegmentTable = readIntTable(stream, bigEndian, trigramSegTableSize); } // read word string names int wordsStringLength = readInt(stream, bigEndian); if (wordsStringLength <= 0) { throw new Error("Bad word string size: " + wordsStringLength); } // read the string of all words this.words = readWords(stream, wordsStringLength, numberUnigrams); if (startWordID > -1) { UnigramProbability unigram = unigrams[startWordID]; unigram.setLogProbability(-0.99f); } if (endWordID > -1) { UnigramProbability unigram = unigrams[endWordID]; unigram.setLogProbability(-0.99f); } applyUnigramWeight(); fis.close(); stream.close(); file = new RandomAccessFile(location, "r"); }
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/adb85ae5f844bd6acbc0d042c33584f265b90066/BinaryLoader.java/buggy/edu/cmu/sphinx/knowledge/language/large/BinaryLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 5905, 12, 780, 2117, 13, 1216, 1860, 288, 3639, 11907, 15324, 273, 394, 11907, 12, 3562, 1769, 3639, 29382, 1407, 273, 2398, 394, 29382, 12, 2704, 24742, 12, 74, 291, 10019, 202, 202, 759, 855, 4529, 1446, 533, 17, 1467, 31, 444, 5446, 7583, 2982, 3639, 855, 1864, 12, 3256, 1769, 202, 318, 360, 31454, 273, 855, 984, 360, 31454, 12, 3256, 16, 1300, 984, 360, 31454, 15, 21, 16, 5446, 7583, 1769, 3639, 2488, 9901, 31454, 1070, 360, 31454, 12, 3256, 1769, 202, 759, 855, 326, 5446, 1940, 17958, 1014, 202, 430, 261, 2696, 9901, 31454, 405, 374, 13, 288, 5411, 333, 18, 14002, 1940, 9152, 1388, 273, 855, 4723, 1388, 12, 3256, 16, 5446, 7583, 1769, 202, 97, 202, 759, 855, 326, 23142, 1940, 12260, 3119, 1014, 471, 23142, 1940, 3137, 1014, 202, 430, 261, 2696, 1070, 360, 31454, 405, 374, 13, 288, 202, 565, 23142, 1940, 16757, 1388, 273, 855, 4723, 1388, 12, 3256, 16, 5446, 7583, 1769, 202, 565, 23142, 1940, 9152, 1388, 273, 855, 4723, 1388, 12, 3256, 16, 5446, 7583, 1769, 5411, 509, 5446, 1940, 4131, 1225, 273, 404, 2296, 613, 9901, 1940, 4131, 1225, 31, 5411, 509, 23142, 1940, 3289, 1388, 1225, 273, 14015, 2696, 9901, 31454, 15, 21, 13176, 14002, 1940, 4131, 1225, 27921, 21, 31, 5411, 23142, 1940, 4131, 1388, 273, 13731, 1388, 12, 3256, 16, 5446, 7583, 16, 4766, 7734, 23142, 1940, 3289, 1388, 1225, 1769, 3639, 289, 202, 759, 855, 2076, 533, 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, 1262, 5905, 12, 780, 2117, 13, 1216, 1860, 288, 3639, 11907, 15324, 273, 394, 11907, 12, 3562, 1769, 3639, 29382, 1407, 273, 2398, 394, 29382, 12, 2704, 24742, 12, 74, 291, 10019, 202, 202, 759, 855, 4529, 1446, 533, 17, 1467, 31, 444, 5446, 7583, 2982, 3639, 855, 1864, 12, 3256, 1769, 202, 318, 360, 31454, 273, 855, 984, 360, 31454, 12, 3256, 16, 1300, 984, 360, 31454, 15, 21, 16, 5446, 7583, 1769, 3639, 2488, 9901, 31454, 1070, 360, 31454, 12, 3256, 1769, 202, 759, 855, 326, 5446, 1940, 17958, 1014, 202, 430, 261, 2696, 9901, 31454, 405, 374, 13, 288, 5411, 333, 18, 14002, 1940, 9152, 1388, 273, 855, 4723, 1388, 12, 3256, 16, 2 ]
_channel = new AMQChannel(1, _messageStore, null);
_channel = new AMQChannel(1, _messageStore, null);
public void testConsumerCount() throws Exception { SubscriptionManager mgr = _queue.getSubscribers(); assertFalse(mgr.hasActiveSubscribers()); assertTrue(_queueMBean.getActiveConsumerCount() == 0); _channel = new AMQChannel(1, _messageStore, null); _protocolSession = new MockProtocolSession(_messageStore); _protocolSession.addChannel(_channel); _queue.registerProtocolSession(_protocolSession, 1, "test", false); assertTrue(_queueMBean.getActiveConsumerCount() == 1); SubscriptionSet _subscribers = (SubscriptionSet)mgr; SubscriptionTestHelper s1 = new SubscriptionTestHelper("S1"); SubscriptionTestHelper s2 = new SubscriptionTestHelper("S2"); _subscribers.addSubscriber(s1); _subscribers.addSubscriber(s2); assertTrue(_queueMBean.getActiveConsumerCount() == 3); assertTrue(_queueMBean.getConsumerCount() == 3); s1.setSuspended(true); assertTrue(_queueMBean.getActiveConsumerCount() == 2); assertTrue(_queueMBean.getConsumerCount() == 3); }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/5a914f818635425089ea0378120fa27aa6bc211b/AMQQueueMBeanTest.java/buggy/qpid/java/systests/src/test/java/org/apache/qpid/server/queue/AMQQueueMBeanTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5869, 1380, 1435, 1216, 1185, 565, 288, 3639, 12132, 1318, 13333, 273, 389, 4000, 18, 588, 26141, 5621, 3639, 1815, 8381, 12, 13552, 18, 5332, 3896, 26141, 10663, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 374, 1769, 540, 389, 4327, 273, 394, 16549, 2909, 12, 21, 16, 389, 2150, 2257, 16, 446, 1769, 3639, 389, 8373, 2157, 273, 394, 7867, 5752, 2157, 24899, 2150, 2257, 1769, 3639, 389, 8373, 2157, 18, 1289, 2909, 24899, 4327, 1769, 3639, 389, 4000, 18, 4861, 5752, 2157, 24899, 8373, 2157, 16, 404, 16, 315, 3813, 3113, 629, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 404, 1769, 3639, 12132, 694, 389, 1717, 17769, 273, 261, 6663, 694, 13, 13552, 31, 3639, 12132, 4709, 2276, 272, 21, 273, 394, 12132, 4709, 2276, 2932, 55, 21, 8863, 3639, 12132, 4709, 2276, 272, 22, 273, 394, 12132, 4709, 2276, 2932, 55, 22, 8863, 3639, 389, 1717, 17769, 18, 1289, 11118, 12, 87, 21, 1769, 3639, 389, 1717, 17769, 18, 1289, 11118, 12, 87, 22, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 890, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 5869, 1380, 1435, 422, 890, 1769, 3639, 272, 21, 18, 542, 55, 22942, 12, 3767, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 576, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 5869, 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, 5869, 1380, 1435, 1216, 1185, 565, 288, 3639, 12132, 1318, 13333, 273, 389, 4000, 18, 588, 26141, 5621, 3639, 1815, 8381, 12, 13552, 18, 5332, 3896, 26141, 10663, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 374, 1769, 540, 389, 4327, 273, 394, 16549, 2909, 12, 21, 16, 389, 2150, 2257, 16, 446, 1769, 3639, 389, 8373, 2157, 273, 394, 7867, 5752, 2157, 24899, 2150, 2257, 1769, 3639, 389, 8373, 2157, 18, 1289, 2909, 24899, 4327, 1769, 3639, 389, 4000, 18, 4861, 5752, 2157, 24899, 8373, 2157, 16, 404, 16, 315, 3813, 3113, 629, 1769, 3639, 1815, 5510, 24899, 4000, 18089, 18, 588, 3896, 5869, 1380, 1435, 422, 404, 1769, 2 ]
return message; }
return message; }
protected String getMessage() { return message; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a2f04796d346a731a5c763857c907473a907b9ca/SelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 2381, 1435, 288, 3639, 327, 883, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 514, 2381, 1435, 288, 3639, 327, 883, 31, 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 ]
moduleExpansionListeners.remove(listener); }
moduleExpansionListeners.remove(listener); }
public synchronized void removeModuleExpansionListener(IModuleExpansionListener listener) { moduleExpansionListeners.remove(listener); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3de0fd6612b01325d3a8e2dd29c980447948f32c/EventManager.java/buggy/plugins/cvs2/javacvs-src/org/netbeans/lib/cvsclient/event/EventManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 3120, 2966, 12162, 2223, 12, 45, 3120, 2966, 12162, 2223, 2991, 13, 288, 202, 202, 2978, 2966, 12162, 5583, 18, 4479, 12, 12757, 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, 3852, 918, 1206, 3120, 2966, 12162, 2223, 12, 45, 3120, 2966, 12162, 2223, 2991, 13, 288, 202, 202, 2978, 2966, 12162, 5583, 18, 4479, 12, 12757, 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 aMetaId = params.getProperty("META_ID") ;
String metaId = params.getProperty("META_ID") ;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { //ok lets load the page for first time VariableManager vm = new VariableManager() ; Html htm = new Html() ; // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) { log("RETURN super.checksession"); return ; } HttpSession session = req.getSession(false); Html ht = new Html(); // Lets get the standard SESSION parameters and validate them Properties params = this.getSessionParameters(req) ; if (super.checkParameters(req, res, params) == false) { String header = "ChatControl servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,2201) ; log("RETURN super.checkParameters"); return ; } // Lets get the user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) { log("RETURN usern is null"); return ; } String[] bruse = user.getBrowserInfo(); for(int i = 0; i < bruse.length; i++) { log("getBrowserInfo() ="+bruse[i]); } if ( !isUserAuthorized( req, res, user ) ) { log("RETURN user is not authorized"); return; } // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String chatPoolServer = Utility.getDomainPref("chat_server",host) ; // Lets get the url to the servlets directory String servletHome = MetaInfo.getServletPath(req) ; // Lets get parameters String aMetaId = params.getProperty("META_ID") ; //log("aMetaId = "+aMetaId); int metaId = Integer.parseInt( aMetaId ); //String aChatId = params.getProperty("CHAT_ID") ; funkar ej anvnd metoden getChatId i Chat.java //lets get the Chat Chat myChat = (Chat)session.getValue("theChat"); if (myChat == null) { log("myChat was null so return"); return; } String chatName = (String)session.getValue("chat_name");; if(chatName == null)chatName =""; //lets get the chatmember ChatMember myMember = (ChatMember) session.getValue("theChatMember"); if (myMember == null) { log("myMember was null so return"); return; } //lets get the room ChatGroup myGroup = myMember.getMyGroup(); if (myGroup == null) { log("myGroup was null so return"); return; } //lets get the userlangue if we dont have it String userLangId = (String) session.getValue("chatUserLangue"); if (userLangId == null) { //we dont have it so we have to getit from somwhere //OBS OBS temp solution userLangId = "1"; } //ok lets se if the user wants the change setting page if (req.getParameter("settings")!= null) { this.createSettingsPage(req,res,session,chatPoolServer,userLangId, servletHome, myChat); return; }//end //strings needed to set up the page String chatRoom = myGroup.getGroupName(); String alias = myMember.getName(); String selected = (req.getParameter("msgTypes") == null ? "" : req.getParameter("msgTypes").trim()); String msgTypes = ht.createHtmlCode("ID_OPTION", selected, myChat.getMsgTypes() ) ; //let's get all the users in this room StringBuffer group_members = new StringBuffer(""); Iterator iter = myGroup.getAllGroupMembers(); String selectMemb = (req.getParameter("recipient") == null ? "0" : req.getParameter("recipient").trim()); int selNr = Integer.parseInt(selectMemb); while (iter.hasNext()) { ChatMember tempMember = (ChatMember) iter.next(); String sel = ""; if(tempMember.getUserId() == selNr)sel = " selected"; group_members.append("<option value=\""+tempMember.getUserId() + "\""+sel+">" + tempMember.getName()+"</option>\n" ); } //ok lets get all names of chatGroups StringBuffer chat_rooms = new StringBuffer(""); Enumeration enum = myChat.getAllChatGroups(); while (enum.hasMoreElements()) { ChatGroup tempGroup = (ChatGroup) enum.nextElement(); chat_rooms.append("<option value=\""+ tempGroup.getGroupId() +"\">" +tempGroup.getGroupName()+"</option>\n" ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/3c17a49ca3a95afede3efc18fd3261e54133d8c5/ChatControl.java/clean/servlets/chat/ChatControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 601, 14557, 1262, 326, 1363, 364, 1122, 813, 202, 202, 3092, 1318, 4268, 273, 394, 7110, 1318, 1435, 274, 202, 202, 4353, 14049, 81, 273, 394, 5430, 1435, 274, 9506, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 202, 95, 1082, 202, 1330, 2932, 14033, 2240, 18, 1893, 3184, 8863, 1082, 202, 2463, 274, 202, 202, 97, 1082, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 12, 5743, 1769, 202, 202, 4353, 14049, 273, 394, 5430, 5621, 202, 202, 759, 511, 2413, 336, 326, 4529, 10307, 1472, 471, 1954, 2182, 202, 202, 2297, 859, 273, 333, 18, 588, 2157, 2402, 12, 3658, 13, 274, 202, 202, 430, 261, 9565, 18, 1893, 2402, 12, 3658, 16, 400, 16, 859, 13, 422, 629, 13, 202, 202, 95, 25083, 202, 780, 1446, 273, 315, 14163, 3367, 8100, 18, 315, 274, 1082, 202, 780, 1234, 273, 859, 18, 10492, 1435, 274, 1082, 202, 14163, 668, 393, 273, 394, 16903, 668, 12, 3658, 16, 455, 16, 3374, 16, 3787, 1611, 13, 274, 25083, 202, 1330, 2932, 14033, 2240, 18, 1893, 2402, 8863, 1082, 202, 2463, 274, 202, 202, 97, 202, 202, 759, 511, 2413, 336, 326, 729, 733, 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, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 601, 14557, 1262, 326, 1363, 364, 1122, 813, 202, 202, 3092, 1318, 4268, 273, 394, 7110, 1318, 1435, 274, 202, 202, 4353, 14049, 81, 273, 394, 5430, 1435, 274, 9506, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, 316, 358, 23214, 407, 35, 202, 202, 430, 261, 9565, 18, 1893, 2157, 12, 3658, 16, 455, 13, 422, 629, 13, 202, 202, 95, 1082, 202, 1330, 2932, 14033, 2240, 18, 1893, 3184, 8863, 1082, 202, 2463, 274, 202, 202, 97, 1082, 202, 2940, 2157, 1339, 273, 1111, 18, 588, 2157, 2 ]
for(int i = 0;i < tablePanels.size();i++) { MetadataPane.TablePanel tableP = (MetadataPane.TablePanel) tablePanels.get(i); tableP.tableName.setForeground(TEXT_COLOR); tableP.addButton.setVisible(false); tableP.delButton.setVisible(false); tableP.tHead.setVisible(false); tableP.table.setVisible(false); if(tableP.imageLabel != null) tableP.imageLabel.setVisible(false);
for (int i = 0;i < tablePanels.size();i++) { MetadataPane.TablePanel tableP = (MetadataPane.TablePanel) tablePanels.get(i); tableP.tableName.setForeground(TEXT_COLOR); tableP.addButton.setVisible(false); tableP.delButton.setVisible(false); tableP.tHead.setVisible(false); tableP.table.setVisible(false); if (tableP.imageLabel != null) tableP.imageLabel.setVisible(false);
public void setPanels(Vector tablePanels) { tPanels = tablePanels; String rowString = "pref"; for(int i = 0; i < tablePanels.size();i++) { rowString = rowString + ", 5dlu, pref"; } ScrollablePanel contentPanel = new ScrollablePanel(); FormLayout panelLayout = new FormLayout( "5dlu, pref:grow, 5dlu", rowString); contentPanel.setLayout(panelLayout); CellConstraints cc = new CellConstraints(); contentPanel.add(titlePanel, cc.xyw(1,1,3)); for(int i = 0;i < tablePanels.size();i++) { MetadataPane.TablePanel tableP = (MetadataPane.TablePanel) tablePanels.get(i); tableP.tableName.setForeground(TEXT_COLOR); tableP.addButton.setVisible(false); tableP.delButton.setVisible(false); tableP.tHead.setVisible(false); tableP.table.setVisible(false); if(tableP.imageLabel != null) tableP.imageLabel.setVisible(false); contentPanel.add( tableP, cc.xy(2,(2*i)+3)); } setViewportView(contentPanel); }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/e012aa1ea2f2c9a799228cc0728fbc62df3c71ab/NotePane.java/clean/loci/ome/notebook/NotePane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5537, 87, 12, 5018, 1014, 5537, 87, 13, 288, 565, 268, 5537, 87, 273, 1014, 5537, 87, 31, 565, 514, 1027, 780, 273, 315, 25724, 14432, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 1014, 5537, 87, 18, 1467, 5621, 77, 27245, 288, 377, 202, 492, 780, 273, 1027, 780, 397, 3104, 1381, 5761, 89, 16, 11307, 14432, 565, 289, 565, 23134, 429, 5537, 913, 5537, 273, 394, 23134, 429, 5537, 5621, 565, 2748, 3744, 6594, 3744, 273, 394, 2748, 3744, 12, 1377, 315, 25, 5761, 89, 16, 11307, 30, 75, 492, 16, 1381, 5761, 89, 3113, 1377, 1027, 780, 1769, 565, 913, 5537, 18, 542, 3744, 12, 13916, 3744, 1769, 565, 8614, 4878, 4946, 273, 394, 8614, 4878, 5621, 565, 913, 5537, 18, 1289, 12, 2649, 5537, 16, 4946, 18, 1698, 91, 12, 21, 16, 21, 16, 23, 10019, 202, 225, 364, 12, 474, 277, 273, 374, 31, 77, 411, 1014, 5537, 87, 18, 1467, 5621, 77, 27245, 288, 202, 282, 202, 2277, 8485, 18, 1388, 5537, 1014, 52, 273, 261, 2277, 8485, 18, 1388, 5537, 13, 202, 21114, 225, 1014, 5537, 87, 18, 588, 12, 77, 1769, 202, 282, 202, 2121, 52, 18, 18033, 18, 542, 23206, 12, 5151, 67, 10989, 1769, 202, 282, 202, 2121, 52, 18, 1289, 3616, 18, 542, 6207, 12, 5743, 1769, 202, 282, 202, 2121, 52, 18, 3771, 3616, 18, 542, 6207, 12, 5743, 1769, 202, 282, 202, 2121, 52, 18, 88, 1414, 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, 282, 1071, 918, 444, 5537, 87, 12, 5018, 1014, 5537, 87, 13, 288, 565, 268, 5537, 87, 273, 1014, 5537, 87, 31, 565, 514, 1027, 780, 273, 315, 25724, 14432, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 1014, 5537, 87, 18, 1467, 5621, 77, 27245, 288, 377, 202, 492, 780, 273, 1027, 780, 397, 3104, 1381, 5761, 89, 16, 11307, 14432, 565, 289, 565, 23134, 429, 5537, 913, 5537, 273, 394, 23134, 429, 5537, 5621, 565, 2748, 3744, 6594, 3744, 273, 394, 2748, 3744, 12, 1377, 315, 25, 5761, 89, 16, 11307, 30, 75, 492, 16, 1381, 5761, 89, 3113, 1377, 1027, 780, 1769, 565, 913, 5537, 18, 542, 3744, 12, 13916, 3744, 1769, 565, 8614, 2 ]
public TextInputWizardPage(boolean isLastUserPage) { this(isLastUserPage, "");
public TextInputWizardPage(String message, boolean isLastUserPage) { this(message, isLastUserPage, "");
public TextInputWizardPage(boolean isLastUserPage) { this(isLastUserPage, ""); //$NON-NLS-1$ }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a6929fb2ec7c63989f066208e1ea3b6660025df6/TextInputWizardPage.java/clean/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/TextInputWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 1210, 27130, 1964, 12, 6494, 23075, 1299, 1964, 13, 288, 202, 202, 2211, 12, 291, 3024, 1299, 1964, 16, 1408, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 1210, 27130, 1964, 12, 6494, 23075, 1299, 1964, 13, 288, 202, 202, 2211, 12, 291, 3024, 1299, 1964, 16, 1408, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
failBlock, null);
failBlock, null, OPT_BranchProfileOperand.never());
static OPT_Instruction checkcastNotNull(OPT_Instruction s, OPT_IR ir) { OPT_Operand ref = TypeCheck.getClearRef(s); VM_TypeReference LHStype = TypeCheck.getType(s).getTypeRef(); OPT_Operand guard = TypeCheck.getClearGuard(s); OPT_BasicBlock myBlock = s.getBasicBlock(); OPT_BasicBlock failBlock = myBlock.createSubBlock(s.bcIndex, ir, .0001f); OPT_BasicBlock succBlock = myBlock.splitNodeAt(s, ir); myBlock.insertOut(failBlock); myBlock.insertOut(succBlock); ir.cfg.linkInCodeOrder(myBlock, succBlock); ir.cfg.addLastInCodeOrder(failBlock); OPT_Instruction raiseError = Trap.create(TRAP, null, OPT_TrapCodeOperand.CheckCast()); raiseError.copyPosition(s); failBlock.appendInstruction(raiseError); OPT_RegisterOperand RHStib = getTIB(s, ir, ref, guard); return generateBranchingTypeCheck(s, ir, ref, LHStype, RHStib, succBlock, failBlock, null); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/84123cfb51a9251a01dc7eff4c216024c46a13d6/OPT_DynamicTypeCheckExpansion.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/hir2lir/OPT_DynamicTypeCheckExpansion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 16456, 67, 11983, 866, 4155, 5962, 12, 15620, 67, 11983, 272, 16, 16456, 67, 7937, 9482, 13, 288, 565, 16456, 67, 10265, 1278, 273, 1412, 1564, 18, 588, 9094, 1957, 12, 87, 1769, 565, 8251, 67, 7534, 511, 44, 510, 388, 273, 1412, 1564, 18, 588, 559, 12, 87, 2934, 588, 25950, 5621, 565, 16456, 67, 10265, 11026, 273, 1412, 1564, 18, 588, 9094, 16709, 12, 87, 1769, 565, 16456, 67, 8252, 1768, 3399, 1768, 273, 272, 18, 588, 8252, 1768, 5621, 565, 16456, 67, 8252, 1768, 2321, 1768, 273, 3399, 1768, 18, 2640, 1676, 1768, 12, 87, 18, 13459, 1016, 16, 9482, 16, 263, 13304, 74, 1769, 565, 16456, 67, 8252, 1768, 21043, 1768, 273, 3399, 1768, 18, 4939, 907, 861, 12, 87, 16, 9482, 1769, 565, 3399, 1768, 18, 6387, 1182, 12, 6870, 1768, 1769, 565, 3399, 1768, 18, 6387, 1182, 12, 26560, 952, 1768, 1769, 565, 9482, 18, 7066, 18, 1232, 382, 1085, 2448, 12, 4811, 1768, 16, 21043, 1768, 1769, 565, 9482, 18, 7066, 18, 1289, 3024, 382, 1085, 2448, 12, 6870, 1768, 1769, 565, 16456, 67, 11983, 1002, 668, 273, 4202, 399, 1266, 18, 2640, 12, 4349, 2203, 16, 446, 16, 16456, 67, 56, 1266, 1085, 10265, 18, 1564, 9735, 10663, 565, 1002, 668, 18, 3530, 2555, 12, 87, 1769, 565, 2321, 1768, 18, 6923, 11983, 12, 11628, 668, 1769, 565, 16456, 67, 3996, 10265, 534, 44, 510, 495, 273, 3181, 13450, 12, 87, 16, 9482, 16, 1278, 16, 11026, 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, 760, 16456, 67, 11983, 866, 4155, 5962, 12, 15620, 67, 11983, 272, 16, 16456, 67, 7937, 9482, 13, 288, 565, 16456, 67, 10265, 1278, 273, 1412, 1564, 18, 588, 9094, 1957, 12, 87, 1769, 565, 8251, 67, 7534, 511, 44, 510, 388, 273, 1412, 1564, 18, 588, 559, 12, 87, 2934, 588, 25950, 5621, 565, 16456, 67, 10265, 11026, 273, 1412, 1564, 18, 588, 9094, 16709, 12, 87, 1769, 565, 16456, 67, 8252, 1768, 3399, 1768, 273, 272, 18, 588, 8252, 1768, 5621, 565, 16456, 67, 8252, 1768, 2321, 1768, 273, 3399, 1768, 18, 2640, 1676, 1768, 12, 87, 18, 13459, 1016, 16, 9482, 16, 263, 13304, 74, 1769, 565, 16456, 67, 8252, 1768, 21043, 1768, 273, 3399, 2 ]
public org.quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { org.quickfix.field.CouponPaymentDate value = new org.quickfix.field.CouponPaymentDate();
public quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { quickfix.field.CouponPaymentDate value = new quickfix.field.CouponPaymentDate();
public org.quickfix.field.CouponPaymentDate getCouponPaymentDate() throws FieldNotFound { org.quickfix.field.CouponPaymentDate value = new org.quickfix.field.CouponPaymentDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/clean/src/java/src/quickfix/fix43/OrderMassCancelReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 19850, 9899, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 19850, 9899, 6032, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 22744, 6032, 1626, 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 ]
ObjArray array) {
ObjArray array) {
private static void collectFunctions_r(DebuggableScript function, ObjArray array) { array.add(function); for (int i = 0; i != function.getFunctionCount(); ++i) { collectFunctions_r(function.getFunction(i), array); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/Dim.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 3274, 7503, 67, 86, 12, 2829, 8455, 3651, 445, 16, 4766, 6647, 18760, 1076, 526, 13, 565, 288, 3639, 526, 18, 1289, 12, 915, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 480, 445, 18, 588, 2083, 1380, 5621, 965, 77, 13, 288, 5411, 3274, 7503, 67, 86, 12, 915, 18, 588, 2083, 12, 77, 3631, 526, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 3238, 760, 918, 3274, 7503, 67, 86, 12, 2829, 8455, 3651, 445, 16, 4766, 6647, 18760, 1076, 526, 13, 565, 288, 3639, 526, 18, 1289, 12, 915, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 480, 445, 18, 588, 2083, 1380, 5621, 965, 77, 13, 288, 5411, 3274, 7503, 67, 86, 12, 915, 18, 588, 2083, 12, 77, 3631, 526, 1769, 3639, 289, 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 ]
verifyTrue(this.getText().indexOf("Welcome, TestUser! ")!=-1);
verifyTrue(this.getText().indexOf("Welcome, TestUser! ")!=-1);
public void test() throws Throwable { selenium.setContext("Test Type", "info"); /* Test Type */ // open|./tests/html/test_type_page1.html| selenium.open("./tests/html/test_type_page1.html"); // verifyValue|username| verifyEquals("", selenium.getValue("username")); // type|username|TestUser selenium.type("username", "TestUser"); // verifyValue|username|TestUser verifyEquals("TestUser", selenium.getValue("username")); // verifyValue|password| verifyEquals("", selenium.getValue("password")); // type|password|testUserPassword selenium.type("password", "testUserPassword"); // verifyValue|password|testUserPassword verifyEquals("testUserPassword", selenium.getValue("password")); // clickAndWait|submitButton| selenium.click("submitButton"); selenium.waitForPageToLoad("60000"); // verifyTextPresent|Welcome, TestUser! | verifyTrue(this.getText().indexOf("Welcome, TestUser! ")!=-1); checkForVerificationErrors(); }
25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestType.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 1412, 3113, 315, 1376, 8863, 225, 1748, 7766, 1412, 4202, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 723, 67, 2433, 21, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 723, 67, 2433, 21, 18, 2620, 8863, 1082, 202, 759, 3929, 620, 96, 5053, 96, 1082, 202, 8705, 8867, 2932, 3113, 29480, 18, 24805, 2932, 5053, 7923, 1769, 1082, 202, 759, 618, 96, 5053, 96, 4709, 1299, 1082, 202, 1786, 17327, 18, 723, 2932, 5053, 3113, 315, 4709, 1299, 8863, 1082, 202, 759, 3929, 620, 96, 5053, 96, 4709, 1299, 1082, 202, 8705, 8867, 2932, 4709, 1299, 3113, 29480, 18, 24805, 2932, 5053, 7923, 1769, 1082, 202, 759, 3929, 620, 96, 3664, 96, 1082, 202, 8705, 8867, 2932, 3113, 29480, 18, 24805, 2932, 3664, 7923, 1769, 1082, 202, 759, 618, 96, 3664, 96, 3813, 1299, 3913, 1082, 202, 1786, 17327, 18, 723, 2932, 3664, 3113, 315, 3813, 1299, 3913, 8863, 1082, 202, 759, 3929, 620, 96, 3664, 96, 3813, 1299, 3913, 1082, 202, 8705, 8867, 2932, 3813, 1299, 3913, 3113, 29480, 18, 24805, 2932, 3664, 7923, 1769, 1082, 202, 759, 4682, 1876, 5480, 96, 9297, 3616, 96, 1082, 202, 1786, 17327, 18, 7475, 2932, 9297, 3616, 8863, 202, 202, 1786, 17327, 18, 7048, 1290, 1964, 26883, 2932, 26, 2787, 8863, 1082, 202, 759, 3929, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 1412, 3113, 315, 1376, 8863, 225, 1748, 7766, 1412, 4202, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 723, 67, 2433, 21, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 723, 67, 2433, 21, 18, 2620, 8863, 1082, 202, 759, 3929, 620, 96, 5053, 96, 1082, 202, 8705, 8867, 2932, 3113, 29480, 18, 24805, 2932, 5053, 7923, 1769, 1082, 202, 759, 618, 96, 5053, 96, 4709, 1299, 1082, 202, 1786, 17327, 18, 723, 2932, 5053, 3113, 315, 4709, 1299, 8863, 1082, 202, 759, 3929, 620, 96, 2 ]
public int addChild(SceneTreeNode child) {
public int addChild(final SceneTreeNode child) { EventQueue.invokeLater(new Runnable(){ public void run() { } });
public int addChild(SceneTreeNode child) { int ret = super.addChild(child); fireNodesAdded(this, new Object[]{child}); return ret; }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/7503fe5befb31873f4acd98908ac61935e4fabcc/SceneTreeModel.java/buggy/src-ui/de/jreality/ui/treeview/SceneTreeModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7384, 12, 6385, 29347, 12513, 1151, 13, 288, 2587, 3183, 18, 14407, 20607, 12, 2704, 10254, 1435, 95, 1071, 918, 1086, 1435, 288, 282, 289, 15549, 1377, 509, 325, 273, 2240, 18, 1289, 1763, 12, 3624, 1769, 1377, 4452, 3205, 8602, 12, 2211, 16, 394, 1033, 63, 7073, 3624, 22938, 1377, 327, 325, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 7384, 12, 6385, 29347, 12513, 1151, 13, 288, 2587, 3183, 18, 14407, 20607, 12, 2704, 10254, 1435, 95, 1071, 918, 1086, 1435, 288, 282, 289, 15549, 1377, 509, 325, 273, 2240, 18, 1289, 1763, 12, 3624, 1769, 1377, 4452, 3205, 8602, 12, 2211, 16, 394, 1033, 63, 7073, 3624, 22938, 1377, 327, 325, 31, 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 ]
}
}
public void messageChanList(String channel, String list) { int channum = channelNumber(channel); StringTokenizer tok = new StringTokenizer(list, " "); while (tok.hasMoreElements()) { String user = tok.nextToken(); int access; if (user.startsWith("@")) { access = IRCServer.ACCESS_OP; } else if (user.startsWith("%")) { access = IRCServer.ACCESS_HALFOP; } else if (user.startsWith("+")) { access = IRCServer.ACCESS_VOICE; } else { access = IRCServer.ACCESS_NONE; } if (access > 0) { user = user.substring(1); } server.channels[channum].addUser(user, access); } }
4867 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4867/13a5492f5df8208250f437a98b833f050ed86976/SephiaBot.java/clean/SephiaBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 883, 6255, 682, 12, 780, 1904, 16, 514, 666, 13, 288, 565, 509, 27251, 379, 273, 1904, 1854, 12, 4327, 1769, 565, 16370, 946, 273, 394, 16370, 12, 1098, 16, 315, 315, 1769, 565, 1323, 261, 17692, 18, 5332, 7417, 3471, 10756, 288, 1377, 514, 729, 273, 946, 18, 4285, 1345, 5621, 1377, 509, 2006, 31, 1377, 309, 261, 1355, 18, 17514, 1190, 2932, 27614, 3719, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 3665, 31, 1377, 289, 469, 309, 261, 1355, 18, 17514, 1190, 2932, 16407, 3719, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 44, 1013, 3313, 52, 31, 1377, 289, 469, 309, 261, 1355, 18, 17514, 1190, 2932, 9078, 3719, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 16169, 11774, 31, 1377, 289, 469, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 9826, 31, 1377, 289, 1377, 309, 261, 3860, 405, 374, 13, 288, 3639, 729, 273, 729, 18, 28023, 12, 21, 1769, 1377, 289, 1377, 1438, 18, 9114, 63, 343, 1072, 379, 8009, 1289, 1299, 12, 1355, 16, 2006, 1769, 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, 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, 282, 1071, 918, 883, 6255, 682, 12, 780, 1904, 16, 514, 666, 13, 288, 565, 509, 27251, 379, 273, 1904, 1854, 12, 4327, 1769, 565, 16370, 946, 273, 394, 16370, 12, 1098, 16, 315, 315, 1769, 565, 1323, 261, 17692, 18, 5332, 7417, 3471, 10756, 288, 1377, 514, 729, 273, 946, 18, 4285, 1345, 5621, 1377, 509, 2006, 31, 1377, 309, 261, 1355, 18, 17514, 1190, 2932, 27614, 3719, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 3665, 31, 1377, 289, 469, 309, 261, 1355, 18, 17514, 1190, 2932, 16407, 3719, 288, 3639, 2006, 273, 467, 11529, 2081, 18, 13204, 67, 44, 1013, 3313, 52, 31, 1377, 289, 469, 309, 261, 1355, 18, 17514, 1190, 2932, 9078, 2 ]
public static LatLonPoint UTMtoLL(UTMPoint utm_point, Ellipsoid ellip,
public static LatLonPoint UTMtoLL(UTMPoint utm_point, Ellipsoid ellip,
public static LatLonPoint UTMtoLL(UTMPoint utm_point, Ellipsoid ellip, LatLonPoint llpoint) { return UTMtoLL(ellip, utm_point.northing, utm_point.easting, utm_point.zone_number, utm_point.zone_letter, llpoint); }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/96423e359dbf9d3897fd6d9d1f44b3546e24cef7/UTMPoint.java/clean/src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 11134, 15927, 2148, 4732, 49, 869, 4503, 12, 1693, 49, 2148, 5218, 81, 67, 1153, 16, 10426, 11693, 839, 415, 3169, 16, 4766, 4202, 11134, 15927, 2148, 6579, 1153, 13, 288, 3639, 327, 4732, 49, 869, 4503, 12, 292, 3169, 16, 5218, 81, 67, 1153, 18, 29561, 4274, 16, 5218, 81, 67, 1153, 18, 30318, 310, 16, 13491, 5218, 81, 67, 1153, 18, 3486, 67, 2696, 16, 5218, 81, 67, 1153, 18, 3486, 67, 13449, 16, 13491, 6579, 1153, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 11134, 15927, 2148, 4732, 49, 869, 4503, 12, 1693, 49, 2148, 5218, 81, 67, 1153, 16, 10426, 11693, 839, 415, 3169, 16, 4766, 4202, 11134, 15927, 2148, 6579, 1153, 13, 288, 3639, 327, 4732, 49, 869, 4503, 12, 292, 3169, 16, 5218, 81, 67, 1153, 18, 29561, 4274, 16, 5218, 81, 67, 1153, 18, 30318, 310, 16, 13491, 5218, 81, 67, 1153, 18, 3486, 67, 2696, 16, 5218, 81, 67, 1153, 18, 3486, 67, 13449, 16, 13491, 6579, 1153, 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 ]
x = (arg.charAt(0) - 'A'); y = Integer.parseInt(arg.substring(1));
char xChar = arg.charAt(0); if (xChar >= 'J') --xChar; x = (xChar - 'A'); y = Integer.parseInt(arg.substring(1)) - 1;
private boolean play(boolean isBlack, String command, StringBuffer response) { String[] tokens = StringUtils.split(command, ' '); if (tokens.length < 2) { response.append("Missing argument"); return false; } try { String arg = tokens[1].toUpperCase(); if (arg.length() < 2) { response.append("Invalid argument"); return false; } int x = -1; int y = -1; if (! arg.equals("PASS")) { x = (arg.charAt(0) - 'A'); y = Integer.parseInt(arg.substring(1)); } return m_gmp.play(isBlack, x, y, response); } catch (NumberFormatException e) { response.append("Needs integer argument"); return false; } }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/8356f5cb2f1acced649ad7f58a0663fcaa768bc2/GmpToGtp.java/buggy/src/gmp/GmpToGtp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 6599, 12, 6494, 353, 13155, 16, 514, 1296, 16, 7682, 6674, 766, 13, 565, 288, 3639, 514, 8526, 2430, 273, 5778, 18, 4939, 12, 3076, 16, 296, 28005, 3639, 309, 261, 7860, 18, 2469, 411, 576, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 4841, 1237, 8863, 5411, 327, 629, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 514, 1501, 273, 2430, 63, 21, 8009, 869, 8915, 5621, 5411, 309, 261, 3175, 18, 2469, 1435, 411, 576, 13, 5411, 288, 7734, 766, 18, 6923, 2932, 1941, 1237, 8863, 7734, 327, 629, 31, 5411, 289, 5411, 509, 619, 273, 300, 21, 31, 5411, 509, 677, 273, 300, 21, 31, 5411, 309, 16051, 1501, 18, 14963, 2932, 10884, 6, 3719, 5411, 288, 7734, 619, 273, 261, 3175, 18, 3001, 861, 12, 20, 13, 300, 296, 37, 8284, 7734, 677, 273, 2144, 18, 2670, 1702, 12, 3175, 18, 28023, 12, 21, 10019, 18701, 289, 5411, 327, 312, 67, 75, 1291, 18, 1601, 12, 291, 13155, 16, 619, 16, 677, 16, 766, 1769, 3639, 289, 3639, 1044, 261, 1854, 9291, 425, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 26419, 3571, 1237, 8863, 5411, 327, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 6599, 12, 6494, 353, 13155, 16, 514, 1296, 16, 7682, 6674, 766, 13, 565, 288, 3639, 514, 8526, 2430, 273, 5778, 18, 4939, 12, 3076, 16, 296, 28005, 3639, 309, 261, 7860, 18, 2469, 411, 576, 13, 3639, 288, 5411, 766, 18, 6923, 2932, 4841, 1237, 8863, 5411, 327, 629, 31, 3639, 289, 3639, 775, 3639, 288, 5411, 514, 1501, 273, 2430, 63, 21, 8009, 869, 8915, 5621, 5411, 309, 261, 3175, 18, 2469, 1435, 411, 576, 13, 5411, 288, 7734, 766, 18, 6923, 2932, 1941, 1237, 8863, 7734, 327, 629, 31, 5411, 289, 5411, 509, 619, 273, 300, 21, 31, 5411, 509, 677, 273, 300, 21, 31, 5411, 309, 16051, 1501, 18, 14963, 2932, 10884, 2 ]
prepare(user, archive, entry, entry.getEntry().getText(), out, true, false);
prepare(user, archive, entry, entry.getEntry().getText(), out, RSS_EXCERPT_ONLY, false);
public void render(User user, Archive archive, EntryContainer entry, String urlPrefix, Writer out) throws IOException { if (entry == null) return; prepare(user, archive, entry, entry.getEntry().getText(), out, true, false); out.write(" <item>\n"); out.write(" <title>" + sanitizeXML(sanitizeString((String)_headers.get(HEADER_SUBJECT))) + "</title>\n"); out.write(" <link>" + urlPrefix + sanitizeXML(getEntryURL()) + "</link>\n"); out.write(" <guid isPermalink=\"false\">" + urlPrefix + entry.getURI().toString() + "</guid>\n"); out.write(" <pubDate>" + getRFC822Date(entry.getURI().getEntryId()) + "</pubDate>\n"); PetName pn = user.getPetNameDB().getByLocation(entry.getURI().getKeyHash().toBase64()); String author = pn.getName(); if (author == null) { BlogInfo info = archive.getBlogInfo(entry.getURI()); if (info != null) author = info.getProperty(BlogInfo.NAME); } if (author == null) author = entry.getURI().getKeyHash().toBase64(); out.write(" <author>" + sanitizeXML(sanitizeString(author)) + "@syndie.invalid</author>\n"); String tags[] = entry.getTags(); if (tags != null) for (int i = 0; i < tags.length; i++) out.write(" <category>" + sanitizeXML(sanitizeString(tags[i])) + "</category>\n"); out.write(" <description>" + sanitizeXML(_bodyBuffer.toString()) + "</description>\n"); //renderEnclosures(user, entry, urlPrefix, out); out.write(" </item>\n"); }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/c4d785667a5757d1dd31e45c17362da7710c9bf7/RSSRenderer.java/buggy/apps/syndie/java/src/net/i2p/syndie/sml/RSSRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 12, 1299, 729, 16, 13124, 5052, 16, 3841, 2170, 1241, 16, 514, 880, 2244, 16, 5497, 596, 13, 1216, 1860, 288, 3639, 309, 261, 4099, 422, 446, 13, 327, 31, 3639, 2911, 12, 1355, 16, 5052, 16, 1241, 16, 1241, 18, 588, 1622, 7675, 588, 1528, 9334, 596, 16, 31481, 67, 2294, 39, 654, 1856, 67, 10857, 16, 629, 1769, 7734, 596, 18, 2626, 2932, 282, 411, 1726, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 2649, 2984, 397, 8881, 4201, 12, 20266, 780, 12443, 780, 13, 67, 2485, 18, 588, 12, 7557, 67, 8362, 5304, 20349, 397, 6823, 2649, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 1232, 2984, 397, 880, 2244, 397, 8881, 4201, 12, 588, 1622, 1785, 10756, 397, 6823, 1232, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 14066, 353, 9123, 16194, 5189, 5743, 21121, 397, 880, 2244, 397, 1241, 18, 588, 3098, 7675, 10492, 1435, 397, 6823, 14066, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 10174, 1626, 2984, 397, 4170, 4488, 24532, 1626, 12, 4099, 18, 588, 3098, 7675, 588, 1622, 548, 10756, 397, 6823, 10174, 1626, 5333, 82, 8863, 3639, 453, 278, 461, 11059, 273, 729, 18, 588, 52, 278, 461, 2290, 7675, 588, 858, 2735, 12, 4099, 18, 588, 3098, 7675, 588, 653, 2310, 7675, 869, 2171, 1105, 10663, 3639, 514, 2869, 273, 11059, 18, 17994, 5621, 3639, 309, 261, 4161, 422, 446, 13, 288, 5411, 25464, 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, 1743, 12, 1299, 729, 16, 13124, 5052, 16, 3841, 2170, 1241, 16, 514, 880, 2244, 16, 5497, 596, 13, 1216, 1860, 288, 3639, 309, 261, 4099, 422, 446, 13, 327, 31, 3639, 2911, 12, 1355, 16, 5052, 16, 1241, 16, 1241, 18, 588, 1622, 7675, 588, 1528, 9334, 596, 16, 31481, 67, 2294, 39, 654, 1856, 67, 10857, 16, 629, 1769, 7734, 596, 18, 2626, 2932, 282, 411, 1726, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 2649, 2984, 397, 8881, 4201, 12, 20266, 780, 12443, 780, 13, 67, 2485, 18, 588, 12, 7557, 67, 8362, 5304, 20349, 397, 6823, 2649, 5333, 82, 8863, 3639, 596, 18, 2626, 2932, 565, 411, 1232, 2984, 397, 2 ]
public void setupPlayerLabel()
private void setupPlayerLabel()
public void setupPlayerLabel() { if (board != null) { board.setupPlayerLabel(); } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/ebfcac28d151da496298466aea1930d1ee25f551/Client.java/buggy/Colossus/net/sf/colossus/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 12148, 2224, 1435, 565, 288, 3639, 309, 261, 3752, 480, 446, 13, 3639, 288, 5411, 11094, 18, 8401, 12148, 2224, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3875, 12148, 2224, 1435, 565, 288, 3639, 309, 261, 3752, 480, 446, 13, 3639, 288, 5411, 11094, 18, 8401, 12148, 2224, 5621, 3639, 289, 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 ]
System.out.println("Setting L&F to " + aUIPrefs.getLAF());
public void setUIPrefs(UIPrefs aUIPrefs) { if (aUIPrefs.getLAF() != null) { try { System.out.println("Setting L&F to " + aUIPrefs.getLAF()); UIManager.setLookAndFeel(aUIPrefs.getLAF()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/4cbcbd57f8d212a3943506c3c6a50fdf2e281fdc/Prefs.java/clean/grendel/prefs/Prefs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5370, 1386, 2556, 12, 5370, 1386, 2556, 279, 5370, 1386, 2556, 13, 288, 565, 309, 261, 69, 5370, 1386, 2556, 18, 588, 2534, 42, 1435, 480, 446, 13, 288, 1377, 775, 288, 9079, 6484, 1318, 18, 542, 9794, 1876, 2954, 292, 12, 69, 5370, 1386, 2556, 18, 588, 2534, 42, 10663, 1377, 289, 1044, 261, 8544, 9794, 1876, 2954, 292, 503, 425, 13, 288, 3639, 425, 18, 1188, 6332, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5370, 1386, 2556, 12, 5370, 1386, 2556, 279, 5370, 1386, 2556, 13, 288, 565, 309, 261, 69, 5370, 1386, 2556, 18, 588, 2534, 42, 1435, 480, 446, 13, 288, 1377, 775, 288, 9079, 6484, 1318, 18, 542, 9794, 1876, 2954, 292, 12, 69, 5370, 1386, 2556, 18, 588, 2534, 42, 10663, 1377, 289, 1044, 261, 8544, 9794, 1876, 2954, 292, 503, 425, 13, 288, 3639, 425, 18, 1188, 6332, 5621, 1377, 289, 565, 289, 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 ]
writeResolveAndLoadClassToReg(classRef, classr);
writeResolveAndLoadClassToReg(classRef, classr);
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX L1AHelper.requestRegister(eContext, ECX); L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, ECX); L1AHelper.releaseRegister(eContext, classr); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 1893, 4155, 12, 22143, 9661, 797, 667, 1957, 13, 288, 202, 202, 759, 2962, 17, 14784, 7773, 60, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 7773, 60, 1769, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 512, 2501, 1769, 202, 202, 759, 866, 716, 1760, 761, 353, 279, 2114, 202, 202, 6385, 3941, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 202, 202, 759, 4444, 326, 1278, 202, 202, 1734, 18, 945, 12, 73, 1042, 1769, 202, 202, 6385, 5433, 1278, 86, 273, 1278, 18, 588, 3996, 5621, 202, 202, 6385, 5433, 667, 86, 273, 512, 2501, 31, 202, 202, 6385, 5433, 6118, 683, 273, 511, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 12920, 559, 18, 3217, 16, 9506, 202, 5743, 1769, 202, 202, 759, 9910, 326, 667, 202, 202, 2626, 8460, 1876, 2563, 797, 774, 1617, 12, 1106, 1957, 16, 667, 86, 1769, 202, 202, 6385, 5287, 1529, 2224, 273, 394, 5287, 12, 2211, 18, 1397, 382, 701, 2224, 397, 315, 952, 17, 601, 8863, 202, 202, 20308, 2585, 733, 1734, 446, 35, 1195, 202, 202, 538, 18, 2626, 16961, 12, 1734, 86, 16, 1278, 86, 1769, 202, 202, 538, 18, 2626, 46, 6743, 12, 601, 2224, 16, 1139, 5292, 2918, 18, 46, 62, 1769, 202, 202, 20308, 2585, 1276, 35, 1195, 202, 202, 1336, 951, 12, 1734, 86, 16, 667, 86, 16, 6118, 683, 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, 3757, 67, 1893, 4155, 12, 22143, 9661, 797, 667, 1957, 13, 288, 202, 202, 759, 2962, 17, 14784, 7773, 60, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 7773, 60, 1769, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 512, 2501, 1769, 202, 202, 759, 866, 716, 1760, 761, 353, 279, 2114, 202, 202, 6385, 3941, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 202, 202, 759, 4444, 326, 1278, 202, 202, 1734, 18, 945, 12, 73, 1042, 1769, 202, 202, 6385, 5433, 1278, 86, 273, 1278, 18, 588, 3996, 5621, 202, 202, 6385, 5433, 667, 86, 273, 512, 2501, 31, 202, 202, 6385, 2 ]
if (processedChromosomes.containsKey(chrId)) { chr = (Chromosome) processedChromosomes.get(chrId); } else { chr = (Chromosome) os.getObjectById(chrId); processedChromosomes.put(chrId, chr); writeChromosomeFasta(destinationDirectory, chr);
if (currentChrId == null || currentChrId != resultChrId) { currentChr = (Chromosome) os.getObjectById(resultChrId); writeChromosomeFasta(destinationDirectory, currentChr);
private void writeGFF(ObjectStore os, File destinationDirectory) throws ObjectStoreException, IOException, ChangeVetoException, IllegalArgumentException, IllegalSymbolException { Iterator resIter = CalculateLocationsUtil.findLocations(os, Chromosome.class, BioEntity.class, false); Map processedChromosomes = new LinkedHashMap(); PrintWriter gffWriter = null; // a Map of object classes to counts Map objectCounts = null; // the Gene reference from the last Exon seen Gene lastExonGene = null; // the last Chromosome seen Chromosome chr = null; while (resIter.hasNext()) { ResultsRow rr = (ResultsRow) resIter.next(); Integer chrId = (Integer) rr.get(0); BioEntity feature = (BioEntity) rr.get(1); Location loc = (Location) rr.get(2); if (processedChromosomes.containsKey(chrId)) { chr = (Chromosome) processedChromosomes.get(chrId); } else { chr = (Chromosome) os.getObjectById(chrId); processedChromosomes.put(chrId, chr); writeChromosomeFasta(destinationDirectory, chr); File gffFile = chromosomeGFFFile(destinationDirectory, chr); if (gffWriter != null) { gffWriter.close(); } gffWriter = new PrintWriter(new FileWriter(gffFile)); writeFeature(gffWriter, chr, chr, null, new Integer(0)); objectCounts = new HashMap(); } writeFeature(gffWriter, chr, feature, loc, (Integer) objectCounts.get(feature.getClass())); incrementCount(objectCounts, feature); } gffWriter.close(); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/fc016dbdd88c10b1eec2b2a22db33d8b1143ac7b/WriteGFFTask.java/buggy/flymine/model/genomic/src/java/org/flymine/gbrowse/WriteGFFTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 43, 2246, 12, 921, 2257, 1140, 16, 1387, 2929, 2853, 13, 3639, 1216, 1033, 21151, 16, 1860, 16, 7576, 58, 11453, 503, 16, 2754, 16, 9079, 2141, 5335, 503, 288, 3639, 4498, 400, 2360, 273, 5411, 9029, 10985, 1304, 18, 4720, 10985, 12, 538, 16, 1680, 520, 16958, 18, 1106, 16, 21209, 1943, 18, 1106, 16, 629, 1769, 3639, 1635, 5204, 30761, 538, 21912, 273, 394, 13589, 5621, 3639, 14071, 26534, 2289, 273, 446, 31, 3639, 368, 279, 1635, 434, 733, 3318, 358, 6880, 3639, 1635, 733, 9211, 273, 446, 31, 3639, 368, 326, 611, 4009, 2114, 628, 326, 1142, 1312, 265, 5881, 3639, 611, 4009, 1142, 424, 265, 24442, 273, 446, 31, 3639, 368, 326, 1142, 1680, 520, 16958, 5881, 3639, 1680, 520, 16958, 4513, 273, 446, 31, 3639, 1323, 261, 455, 2360, 18, 5332, 2134, 10756, 288, 5411, 10351, 1999, 8354, 273, 261, 3447, 1999, 13, 400, 2360, 18, 4285, 5621, 5411, 2144, 4513, 548, 273, 261, 4522, 13, 8354, 18, 588, 12, 20, 1769, 5411, 21209, 1943, 2572, 273, 261, 38, 1594, 1943, 13, 8354, 18, 588, 12, 21, 1769, 5411, 7050, 1515, 273, 261, 2735, 13, 8354, 18, 588, 12, 22, 1769, 5411, 309, 261, 11005, 30761, 538, 21912, 18, 12298, 653, 12, 15182, 548, 3719, 288, 7734, 4513, 273, 261, 30761, 16958, 13, 5204, 30761, 538, 21912, 18, 588, 12, 15182, 548, 1769, 5411, 289, 469, 288, 7734, 4513, 273, 261, 30761, 16958, 13, 1140, 18, 588, 921, 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, 1045, 43, 2246, 12, 921, 2257, 1140, 16, 1387, 2929, 2853, 13, 3639, 1216, 1033, 21151, 16, 1860, 16, 7576, 58, 11453, 503, 16, 2754, 16, 9079, 2141, 5335, 503, 288, 3639, 4498, 400, 2360, 273, 5411, 9029, 10985, 1304, 18, 4720, 10985, 12, 538, 16, 1680, 520, 16958, 18, 1106, 16, 21209, 1943, 18, 1106, 16, 629, 1769, 3639, 1635, 5204, 30761, 538, 21912, 273, 394, 13589, 5621, 3639, 14071, 26534, 2289, 273, 446, 31, 3639, 368, 279, 1635, 434, 733, 3318, 358, 6880, 3639, 1635, 733, 9211, 273, 446, 31, 3639, 368, 326, 611, 4009, 2114, 628, 326, 1142, 1312, 265, 5881, 3639, 611, 4009, 1142, 424, 265, 24442, 273, 446, 31, 3639, 368, 2 ]