rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
value = "( 1.1 USAGE distributedOperation )"; | value = "( 1.1 SYNTAX 1.1 USAGE distributedOperation )"; | public void testUsage() throws ParseException { String value = null; AttributeTypeDescription atd = null; // DEFAULT is userApplications value = "( 1.1 )"; atd = parser.parseAttributeTypeDescription( value ); assertEquals( UsageEnum.USER_APPLICATIONS, atd.getUsage() ); // userApplications value = "( 1.1 USAGE userApplications )"; atd = parser.parseAttributeTypeDescription( value ); assertEquals( UsageEnum.USER_APPLICATIONS, atd.getUsage() ); // directoryOperation value = "( 1.1 USAGE directoryOperation )"; atd = parser.parseAttributeTypeDescription( value ); assertEquals( UsageEnum.DIRECTORY_OPERATION, atd.getUsage() ); // AUXILIARY value = "( 1.1 USAGE distributedOperation )"; atd = parser.parseAttributeTypeDescription( value ); assertEquals( UsageEnum.DISTRIBUTED_OPERATION, atd.getUsage() ); // STRUCTURAL value = "( 1.1 USAGE dSAOperation )"; atd = parser.parseAttributeTypeDescription( value ); assertEquals( UsageEnum.DSA_OPERATION, atd.getUsage() ); // TODO: case insensitive? // ivalid value = "( 1.1 USAGE abc )"; try { atd = parser.parseAttributeTypeDescription( value ); fail( "Exception expected, invalid USAGE value" ); } catch ( ParseException pe ) { // expected } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/ff44f37d485d24a3daa2141ea35c2b831557c20a/SchemaParserAttributeTypeDescriptionTest.java/clean/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5357,
1435,
1216,
10616,
565,
288,
3639,
514,
460,
273,
446,
31,
3639,
26414,
3291,
622,
72,
273,
446,
31,
3639,
368,
3331,
353,
729,
17119,
3639,
460,
273,
7751,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5357,
1435,
1216,
10616,
565,
288,
3639,
514,
460,
273,
446,
31,
3639,
26414,
3291,
622,
72,
273,
446,
31,
3639,
368,
3331,
353,
729,
17119,
3639,
460,
273,
7751,
404,
... |
public void first( ) | public boolean first( ) | public void first( ) { i = 0; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5855912b4a0ee34b7556d012c7bdb58187a9c4e3/ChartUIUtil.java/clean/chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/util/ChartUIUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1122,
12,
262,
1082,
202,
95,
9506,
202,
77,
273,
374,
31,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1122,
12,
262,
1082,
202,
95,
9506,
202,
77,
273,
374,
31,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (!srcProps.isEmpty()) { ISVNProperties dstProps = new SVNProperties14(new HashMap(srcProps.asMap()), this, entry.getName()){ | ISVNProperties dstProps = new SVNProperties14(new HashMap(srcProps.asMap()), this, entry.getName()){ | public SVNAdminArea upgradeFormat(SVNAdminArea adminArea) throws SVNException { File logFile = adminArea.getAdminFile("log"); SVNFileType type = SVNFileType.getType(logFile); if (type == SVNFileType.FILE) { return adminArea; } ISVNLog log = getLog(); Map command = new HashMap(); command.put(ISVNLog.FORMAT_ATTR, String.valueOf(getFormatVersion())); log.addCommand(ISVNLog.UPGRADE_FORMAT, command, false); command.clear(); Iterator entries = adminArea.entries(true); myEntries = new HashMap(); Map basePropsCache = getBasePropertiesStorage(true); Map propsCache = getPropertiesStorage(true); for (; entries.hasNext();) { SVNEntry entry = (SVNEntry) entries.next(); if (entry.getKind() != SVNNodeKind.FILE && !adminArea.getThisDirName().equals(entry.getName())) { continue; } SVNEntry newEntry = new SVNEntry(new HashMap(entry.asMap()), this, entry.getName()); myEntries.put(entry.getName(), newEntry); ISVNProperties srcBaseProps = adminArea.getBaseProperties(entry.getName()); if (!srcBaseProps.isEmpty()) { Map basePropsHolder = new HashMap(srcBaseProps.asMap()); ISVNProperties dstBaseProps = new SVNProperties13(basePropsHolder); basePropsCache.put(entry.getName(), dstBaseProps); } ISVNProperties srcProps = adminArea.getProperties(entry.getName()); if (!srcProps.isEmpty()) { ISVNProperties dstProps = new SVNProperties14(new HashMap(srcProps.asMap()), this, entry.getName()){ protected Map loadProperties() throws SVNException { return myProperties; } }; propsCache.put(entry.getName(), dstProps); } command.put(ISVNLog.NAME_ATTR, entry.getName()); command.put(SVNProperty.shortPropertyName(SVNProperty.PROP_TIME), SVNTimeUtil.formatDate(new Date(0), true)); log.addCommand(ISVNLog.MODIFY_ENTRY, command, false); command.clear(); ISVNProperties wcProps = adminArea.getWCProperties(entry.getName()); log.logChangedWCProperties(entry.getName(),wcProps.asMap()); } saveVersionedProperties(log, false); log.save(); SVNFileUtil.deleteFile(getAdminFile("README.txt")); SVNFileUtil.deleteFile(getAdminFile("empty-file")); SVNFileUtil.deleteAll(getAdminFile("wcprops"), true); SVNFileUtil.deleteAll(getAdminFile("dir-wcprops"), true); runLogs(); return this; } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/0bad1f667479cde6fc6af1062095d8e60ec33fa9/SVNAdminArea14.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
4446,
5484,
8400,
1630,
12,
23927,
50,
4446,
5484,
3981,
5484,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
20169,
273,
3981,
5484,
18,
588,
4446,
812,
2932,
1330,
8863,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29537,
50,
4446,
5484,
8400,
1630,
12,
23927,
50,
4446,
5484,
3981,
5484,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
20169,
273,
3981,
5484,
18,
588,
4446,
812,
2932,
1330,
8863,
36... |
return null; | return getAttrs(); | public Map<String, Object> getAttrs(boolean applyCos) throws ServiceException { // TODO Auto-generated method stub return null; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/59a79db8360cfdae1763cd4b31acef035367f819/SoapAccount.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/soap/SoapAccount.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
32,
780,
16,
1033,
34,
336,
8262,
12,
6494,
2230,
39,
538,
13,
5411,
1216,
16489,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
327,
336,
8262,
5621,
565,
289,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1635,
32,
780,
16,
1033,
34,
336,
8262,
12,
6494,
2230,
39,
538,
13,
5411,
1216,
16489,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
327,
336,
8262,
5621,
565,
289,
2,
... |
PluginVersionIdentifier pvi = new PluginVersionIdentifier(version); return findFeatureModel(id, pvi.getMajorComponent() + "." + pvi.getMinorComponent() + "." + pvi.getServiceComponent() + ".qualifier"); | Version pvi = Version.parseVersion(version); return findFeatureModel(id, pvi.getMajor() + "." + pvi.getMinor() + "." + pvi.getMicro() + ".qualifier"); | public IFeatureModel findFeatureModelRelaxed(String id, String version) { IFeatureModel model = findFeatureModel(id, version); if (model != null) { return model; } PluginVersionIdentifier pvi = new PluginVersionIdentifier(version); return findFeatureModel(id, pvi.getMajorComponent() + "." //$NON-NLS-1$ + pvi.getMinorComponent() + "." //$NON-NLS-1$ + pvi.getServiceComponent() + ".qualifier"); //$NON-NLS-1$ } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/f2ec0585174f8edf45be89de2a3c0b8af2aa3999/FeatureModelManager.java/clean/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/FeatureModelManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4595,
1488,
1104,
4595,
1488,
1971,
651,
329,
12,
780,
612,
16,
514,
1177,
13,
288,
202,
202,
45,
4595,
1488,
938,
273,
1104,
4595,
1488,
12,
350,
16,
1177,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4595,
1488,
1104,
4595,
1488,
1971,
651,
329,
12,
780,
612,
16,
514,
1177,
13,
288,
202,
202,
45,
4595,
1488,
938,
273,
1104,
4595,
1488,
12,
350,
16,
1177,
1769,
202,
... |
if (event.widget instanceof MenuItem) { if (!((MenuItem) event.widget).getSelection()) return; } run(); } | if (event.widget instanceof MenuItem) { if (!((MenuItem) event.widget).getSelection()) return; } run(); } | public void runWithEvent(Event event) { //radio buttons receive an event when they become unselected, //so we must not run the action in this case if (event.widget instanceof MenuItem) { if (!((MenuItem) event.widget).getSelection()) return; } run(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/807b15d2053678e017dab7ed06f7561764e8e5a3/BuildSetAction.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1190,
1133,
12,
1133,
871,
13,
288,
3639,
368,
17006,
9502,
6798,
392,
871,
1347,
2898,
12561,
640,
8109,
16,
3639,
368,
2048,
732,
1297,
486,
1086,
326,
1301,
316,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1190,
1133,
12,
1133,
871,
13,
288,
3639,
368,
17006,
9502,
6798,
392,
871,
1347,
2898,
12561,
640,
8109,
16,
3639,
368,
2048,
732,
1297,
486,
1086,
326,
1301,
316,
333,
... |
TransferFocusFromObekt(); } | TransferFocusFromObekt(); } | private void jTextFieldObektNameKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldObektNameKeyPressed// TODO add your handling code here: if(evt.getKeyCode() ==java.awt.event.KeyEvent.VK_F7) { java.sql.ResultSet rs1 = myParent.getCountriesT().getTableIncludeTextObekt(jTextFieldObektName.getText(),OBEKT_NAME); Connection conn1 = myParent.getCountriesT().getConn(); if(callOrNotCallDialog(checkForMoreRecord(rs1),selectDataOfDocFacade.OBEKT_NAME,rs1,true)) dialogSelectData = new imakante.sales.selectDataOfDocFacade(myParent,true,rs1,conn1,selectDataOfDocFacade.OBEKT_NAME,false); repainObektData(myParent.getID_Obekt()); TransferFocusFromObekt(); } if(evt.getKeyCode() ==java.awt.event.KeyEvent.VK_F8) { java.sql.ResultSet rs1 = myParent.getCountriesT().getTableStartTextObekt(jTextFieldObektName.getText(),OBEKT_NAME); Connection conn1 = myParent.getCountriesT().getConn(); if(callOrNotCallDialog(checkForMoreRecord(rs1),selectDataOfDocFacade.OBEKT_NAME,rs1,true)) dialogSelectData = new imakante.sales.selectDataOfDocFacade(myParent,true,rs1,conn1,selectDataOfDocFacade.OBEKT_NAME,false); repainObektData(myParent.getID_Obekt()); TransferFocusFromObekt(); } if(evt.getKeyCode() ==java.awt.event.KeyEvent.VK_F9) { java.sql.ResultSet rs1 = myParent.getCountriesT().getTableFinishTextObekt(jTextFieldObektName.getText(),OBEKT_NAME); Connection conn1 = myParent.getCountriesT().getConn(); if(callOrNotCallDialog(checkForMoreRecord(rs1),selectDataOfDocFacade.OBEKT_NAME,rs1,true)) dialogSelectData = new imakante.sales.selectDataOfDocFacade(myParent,true,rs1,conn1,selectDataOfDocFacade.OBEKT_NAME,false); repainObektData(myParent.getID_Obekt()); TransferFocusFromObekt(); } if(evt.getKeyCode() ==java.awt.event.KeyEvent.VK_ENTER){ java.sql.ResultSet rs1 = myParent.getCountriesT().getTableIncludeTextObekt(jTextFieldObektName.getText(),OBEKT_NAME); Connection conn1 = myParent.getCountriesT().getConn(); if(callOrNotCallDialog(checkForMoreRecord(rs1),selectDataOfDocFacade.OBEKT_NAME,rs1,true)) dialogSelectData = new imakante.sales.selectDataOfDocFacade(myParent,true,rs1,conn1,selectDataOfDocFacade.OBEKT_NAME,false); repainObektData(myParent.getID_Obekt()); TransferFocusFromObekt(); } }//GEN-LAST:event_jTextFieldObektNameKeyPressed | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/819e12d5887ee005a6db30d46fcc791a090c703a/aeDocumentFacade.java/clean/src/imakante/sales/aeDocumentFacade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
525,
16157,
51,
2196,
8629,
461,
653,
24624,
12,
6290,
18,
2219,
88,
18,
2575,
18,
653,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
16157,
51,
2196,
8629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
525,
16157,
51,
2196,
8629,
461,
653,
24624,
12,
6290,
18,
2219,
88,
18,
2575,
18,
653,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
16157,
51,
2196,
8629,
... |
LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.0"); | public void testBadEffMshipDepthCalcExposedByGroupDelete() { LOG.info("testBadEffMshipDepthCalcExposedByGroupDelete"); try { Subject kebe = SubjectHelper.SUBJ0; Subject iata = SubjectHelper.SUBJ1; Subject iawi = SubjectHelper.SUBJ2; LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.0"); Subject subj = SubjectFinder.findById("GrouperSystem"); GrouperSession s = GrouperSession.start(subj); Stem root = StemFinder.findRootStem(s); Stem qsuob = root.addChildStem("qsuob","qsuob"); Group admins = qsuob.addChildGroup("admins","admins"); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.0"); admins.addMember(kebe); MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.1"); Group staff = qsuob.addChildGroup("staff","staff"); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.2"); staff.addMember(iata); MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testNumMship(staff, "members", 1, 1, 0); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.3"); staff.addMember(iawi); MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.4"); Group all_staff = qsuob.addChildGroup("all_staff","all staff"); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.5"); all_staff.addMember(staff.toSubject()); MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.6"); admins.grantPriv(admins.toSubject(),Privilege.getInstance("admin")); MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testImm(s, admins, subj, "admins"); MembershipHelper.testImm(s, admins, admins.toSubject(), "admins"); MembershipHelper.testEff(s, admins, kebe, "admins", admins, 1); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testNumMship(admins, "admins", 3, 2, 1); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.7"); qsuob.grantPriv(admins.toSubject(),Privilege.getInstance("create")); // TODO test LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.8"); qsuob.grantPriv(admins.toSubject(),Privilege.getInstance("stem")); // TODO test LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.9"); staff.grantPriv(all_staff.toSubject(),Privilege.getInstance("read")); // TODO test MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testImm(s, admins, subj, "admins"); MembershipHelper.testImm(s, admins, admins.toSubject(), "admins"); MembershipHelper.testEff(s, admins, kebe, "admins", admins, 1); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testNumMship(admins, "admins", 3, 2, 1); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); MembershipHelper.testImm(s, staff, all_staff.toSubject(), "readers"); MembershipHelper.testEff(s, staff, iata, "readers", staff, 2); MembershipHelper.testEff(s, staff, iawi, "readers", staff, 2); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.10"); staff.grantPriv(admins.toSubject(),Privilege.getInstance("admin")); // TODO test MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testImm(s, admins, subj, "admins"); MembershipHelper.testImm(s, admins, admins.toSubject(), "admins"); MembershipHelper.testEff(s, admins, kebe, "admins", admins, 1); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testNumMship(admins, "admins", 3, 2, 1); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testImm(s, staff, admins.toSubject(), "admins"); MembershipHelper.testEff(s, staff, kebe, "admins", admins, 1); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); MembershipHelper.testNumMship(staff, "admins", 3, 2, 1); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.11"); all_staff.grantPriv(all_staff.toSubject(),Privilege.getInstance("read")); // TODO test MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testImm(s, admins, subj, "admins"); MembershipHelper.testImm(s, admins, admins.toSubject(), "admins"); MembershipHelper.testEff(s, admins, kebe, "admins", admins, 1); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testNumMship(admins, "admins", 3, 2, 1); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.11.0"); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, all_staff, all_staff.toSubject(), "readers"); MembershipHelper.testEff(s, all_staff, staff.toSubject(), "readers", all_staff, 1); MembershipHelper.testEff(s, all_staff, iata, "readers", staff, 2); MembershipHelper.testEff(s, all_staff, iawi, "readers", staff, 2); MembershipHelper.testNumMship(all_staff, "readers", 5, 2, 3); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.11.1"); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testImm(s, staff, admins.toSubject(), "admins"); MembershipHelper.testEff(s, staff, kebe, "admins", admins, 1); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); MembershipHelper.testNumMship(staff, "admins", 3, 2, 1); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.12"); all_staff.grantPriv(admins.toSubject(),Privilege.getInstance("admin")); // TODO test MembershipHelper.testImm(s, admins, kebe, "members"); MembershipHelper.testImm(s, admins, subj, "admins"); MembershipHelper.testImm(s, admins, admins.toSubject(), "admins"); MembershipHelper.testEff(s, admins, kebe, "admins", admins, 1); MembershipHelper.testNumMship(admins, "members", 1, 1, 0); MembershipHelper.testNumMship(admins, "admins", 3, 2, 1); MembershipHelper.testImm(s, all_staff, staff.toSubject() , "members"); MembershipHelper.testEff(s, all_staff, iata, "members", staff, 1); MembershipHelper.testEff(s, all_staff, iawi, "members", staff, 1); MembershipHelper.testNumMship(all_staff, "members", 3, 1, 2); MembershipHelper.testImm(s, all_staff, all_staff.toSubject(), "readers"); MembershipHelper.testEff(s, all_staff, staff.toSubject(), "readers", all_staff, 1); MembershipHelper.testEff(s, all_staff, iata, "readers", staff, 2); MembershipHelper.testEff(s, all_staff, iawi, "readers", staff, 2); MembershipHelper.testNumMship(all_staff, "readers", 5, 2, 3); MembershipHelper.testImm(s, all_staff, subj, "admins"); MembershipHelper.testImm(s, all_staff, admins.toSubject(), "admins"); MembershipHelper.testEff(s, all_staff, kebe, "admins", admins, 1); MembershipHelper.testImm(s, staff, iata , "members"); MembershipHelper.testImm(s, staff, iawi , "members"); MembershipHelper.testImm(s, staff, admins.toSubject(), "admins"); MembershipHelper.testEff(s, staff, kebe, "admins", admins, 1); MembershipHelper.testNumMship(staff, "members", 2, 2, 0); MembershipHelper.testNumMship(staff, "admins", 3, 2, 1); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.13"); GroupHelper.delete(s, admins, admins.getName()); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.14"); GroupHelper.delete(s, staff, staff.getName()); LOG.debug("testBadEffMshipDepthCalcExposedByGroupDelete.15"); GroupHelper.delete(s, all_staff, all_staff.getName()); s.stop(); } catch (Exception e) { Assert.fail("exception: " + e.getMessage()); } } // public void testBadEffMshipDepthCalcExposedByGroupDelete() | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/cbff0cdaecf939d28067c35c3fe615033cfbc0ca/TestBugsClosed.java/clean/grouper/src/tests/test/edu/internet2/middleware/grouper/TestBugsClosed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
6434,
41,
1403,
49,
3261,
6148,
25779,
424,
7423,
858,
1114,
2613,
1435,
288,
565,
2018,
18,
1376,
2932,
3813,
6434,
41,
1403,
49,
3261,
6148,
25779,
424,
7423,
858,
1114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6434,
41,
1403,
49,
3261,
6148,
25779,
424,
7423,
858,
1114,
2613,
1435,
288,
565,
2018,
18,
1376,
2932,
3813,
6434,
41,
1403,
49,
3261,
6148,
25779,
424,
7423,
858,
1114... | |
ending += EOL + "selenium.waitForPageToLoad(\"" + timeOut + "\");"; | if (!op.startsWith("click")) { ending += EOL + "selenium.waitForPageToLoad(\"" + timeOut + "\");"; } | private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { String beginning = "\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DIVIDER, "|") + EOL; String ending = ";"; if (op.endsWith("AndWait")) { ending += EOL + "selenium.waitForPageToLoad(\"" + timeOut + "\");"; op = op.replaceFirst("AndWait", ""); tokens[0] = tokens[0].replaceFirst("AndWait", ""); } if (op.equals("storeText")) { return beginning + "String " + tokens[2] + " = selenium.getText(" + quote(tokens[1]) + ");"; } if (op.equals("storeTextLength")) { return beginning + "Integer " + tokens[2] + " = new Integer(selenium.getText(" + quote(tokens[1]) + ").length());"; } if (op.equals("store")) { return beginning + possiblyDeclare(tokens[2]) + " = " + XlateSeleneseArgument(tokens[1]) + ";"; } if (op.equals("storeAttribute")) { return beginning + possiblyDeclare(tokens[2]) + " = selenium.getAttribute(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.equals("storeTitle") || op.equals("storeAlert")) { return beginning + possiblyDeclare(tokens[1]) + " = selenium.get" + op.replaceFirst("store", "") + "();"; } if (op.equals("storeBodyText")) { return beginning + possiblyDeclare(tokens[1]) + " = this.getText();"; } if (op.equals("storeValue")) { if (tokens[2].equals("")) { return beginning + possiblyDeclare(tokens[1]) + " = this.getText();"; } return beginning + possiblyDeclare(tokens[2]) + " = selenium.getValue(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.startsWith("verify") || op.startsWith("assert")) { String middle; if (op.startsWith("verify")) { beginning += "verifyEquals("; } else { beginning += "assertEquals("; } ending = ")" + ending; op = op.replaceFirst("assert|verify", ""); if (op.equals("ElementPresent") || op.equals("ElementNotPresent") || op.equals("TextPresent") || op.equals("TextNotPresent") || op.equals("Editable") || op.equals("NotEditable") || op.equals("Visible") || op.equals("NotVisible")) { //assert beginning.indexOf("assert") != -1; // because verify's will be picked off by the caller return "\t\tselenium.assert" + op + "(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.equals("Selected") || op.equals("NotSelected")) { return "selenium.assert" + op + "(" + XlateSeleneseArgument(tokens[1]) + ", " + XlateSeleneseArgument(tokens[2]) + ");"; } if (op.startsWith("Not")) { beginning = invertAssertion(beginning); op = op.replaceFirst("Not", ""); } if (op.equals("Attribute")) { return beginning + XlateSeleneseArgument(tokens[2]) + ", selenium.getAttribute(" + XlateSeleneseArgument(tokens[1]) + "));"; } else if (op.equals("Text")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getText(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("TextLength")) { middle = XlateSeleneseArgument(tokens[2]) + ", \"\" + selenium.getText(" + XlateSeleneseArgument(tokens[1]) + ").length()"; } else if (op.equals("Location")) { return "\t\tselenium.assertLocation(" + XlateSeleneseArgument(tokens[1]) + ");"; } else if (op.equals("AbsoluteLocation")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getAbsoluteLocation()"; } else if (op.equals("Title")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getTitle()"; } else if (op.equals("Value")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getValue(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Alert")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getAlert()"; } else if (op.equals("Prompt")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getPrompt()"; } else if (op.equals("Confirmation")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getConfirmation()"; } else if (op.equals("Checked")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getChecked(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Expression")) { middle = XlateSeleneseArgument(tokens[1]) + ", " + XlateSeleneseArgument(tokens[2]); } else if (op.equals("ErrorOnNext") || op.equals("FailureOnNext")) { String t = "these line-spanning ops should be handled by the caller: " + oldLine; if (dontThrowOnTranslationDifficulties ) { return "// " + t; } throw new RuntimeException(t); } else if (op.equals("Selected") || op.equals("ValueRepeated") || op.equals("modalDialogTest")) { return "// skipped undocumented " + oldLine; } else if (op.equals("SelectOptions") || op.equals("SelectedOptions")) { String tmpArrayVarName = newTmpName(); beginning = declareAndInitArray(tmpArrayVarName, tokens[2]) + "\n" + beginning; middle = tmpArrayVarName + ", selenium.get" + op + "(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Table")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.get" + op + "(" + XlateSeleneseArgument(tokens[1]) + ")"; } else { String t = "unrecognized assert op " + op; if (dontThrowOnTranslationDifficulties) { return "// " + t; } throw new RuntimeException(t); } return beginning + middle + ending; } if (op.equals("pause")) { return beginning + op + "(" + tokens[1] + ")" + ending; } if (op.equals("modalDialogTest") || op.equals("ValueRepeated") ) { return "// skipped undocumented, unsupported op in " + oldLine; } if (op.equals("open")) { recordFirstDomain(tokens[1]); } int expectedArgCount = 2; if (op.equals("open") || op.equals("answerOnNextPrompt") || op.equals("click") || op.equals("check") || op.equals("selectWindow") || op.equals("submit") || op.equals("uncheck") || op.equals("answerOnNextPrompt") ) { expectedArgCount = 1; } else if (op.equals("chooseCancelOnNextConfirmation") || op.equals("close") || op.equals("refresh") || op.equals("goBack")) { expectedArgCount = 0; } return beginning + XlateSeleneseStatementDefault(expectedArgCount, "selenium", tokens) + ending; } | 5066 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5066/0abe2c58598d92a14f6546390553439fe43b4b21/XlateHtmlSeleneseToJava.java/clean/server/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1139,
20293,
1877,
275,
3392,
3406,
5157,
12,
780,
1061,
16,
514,
8526,
2430,
16,
514,
1592,
1670,
13,
288,
3639,
514,
8435,
273,
1548,
88,
64,
88,
759,
315,
397,
1592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1139,
20293,
1877,
275,
3392,
3406,
5157,
12,
780,
1061,
16,
514,
8526,
2430,
16,
514,
1592,
1670,
13,
288,
3639,
514,
8435,
273,
1548,
88,
64,
88,
759,
315,
397,
1592,
... |
if (throwable != null) { frame.debuggerFrame.onExit(cx, true, throwable); | if (throwable instanceof Throwable) { frame.debuggerFrame.onExit(cx, true, (Throwable)throwable); | private static void exitFrame(Context cx, CallFrame frame, Throwable throwable) { if (frame.idata.itsNeedsActivation) { ScriptRuntime.exitActivationFunction(cx); } if (frame.debuggerFrame != null) { try { if (throwable != null) { frame.debuggerFrame.onExit(cx, true, throwable); } else { frame.debuggerFrame.onExit(cx, false, frame.result); } } catch (Throwable ex) { System.err.println("RHINO USAGE WARNING: onExit terminated with exception"); ex.printStackTrace(System.err); } } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/f3998aef64c407a0cdeb69c846426d96e47a0422/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2427,
3219,
12,
1042,
9494,
16,
3049,
3219,
2623,
16,
19694,
4206,
10132,
13,
565,
288,
3639,
309,
261,
3789,
18,
350,
396,
18,
1282,
26419,
14857,
13,
288,
5411,
7739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2427,
3219,
12,
1042,
9494,
16,
3049,
3219,
2623,
16,
19694,
4206,
10132,
13,
565,
288,
3639,
309,
261,
3789,
18,
350,
396,
18,
1282,
26419,
14857,
13,
288,
5411,
7739,
... |
Message[] msgs = getMessages(SORT_ID_ASCENDING); | List<Message> msgs = getMessages(SORT_ID_ASCENDING); | void move(Folder target) throws ServiceException { if (!target.canContain(TYPE_MESSAGE)) throw MailServiceException.CANNOT_CONTAIN(); markItemModified(Change.UNMODIFIED); Message[] msgs = getMessages(SORT_ID_ASCENDING); TargetConstraint tcon = mMailbox.getOperationTargetConstraint(); boolean toTrash = target.inTrash(); int oldUnread = 0; for (Message msg : msgs) if (msg.isUnread()) oldUnread++; // if mData.unread is wrong, what to do? right now, always use the calculated value mData.unreadCount = oldUnread; List<Integer> markedRead = new ArrayList<Integer>(), moved = new ArrayList<Integer>(); for (Message msg : msgs) { Folder source = msg.getFolder(); // skip messages that the client doesn't know about, can't modify, or has explicitly excluded if (!msg.checkChangeID() || !TargetConstraint.checkItem(tcon, msg)) continue; if (!source.canAccess(ACL.RIGHT_DELETE) || !target.canAccess(ACL.RIGHT_INSERT)) continue; if (msg.isUnread()) { if (!toTrash || msg.inTrash()) { source.updateUnread(-1); target.updateUnread(1); } else { // unread messages moved from Mailbox to Trash need to be marked read: // update cached unread counts (message, conversation, folder, tags) msg.updateUnread(-1); // note that we need to update this message in the DB markedRead.add(msg.getId()); } } // handle folder message counts source.updateSize(-1); target.updateSize(1); moved.add(msg.getId()); msg.folderChanged(target, 0); } // mark unread messages moved from Mailbox to Trash/Spam as read in the DB if (!markedRead.isEmpty()) DbMailItem.alterUnread(target.getMailbox(), markedRead, false); // moving a conversation to spam closes it // XXX: what if only certain messages got moved? if (target.inSpam()) detach(); if (!moved.isEmpty()) DbMailItem.setFolder(moved, target); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1bdb2b478f9aa222e9547adccdf88927e95edb53/Conversation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Conversation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3635,
12,
3899,
1018,
13,
1216,
16489,
288,
3639,
309,
16051,
3299,
18,
4169,
22928,
12,
2399,
67,
8723,
3719,
5411,
604,
11542,
15133,
18,
39,
16791,
67,
6067,
6964,
5621,
3639,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3635,
12,
3899,
1018,
13,
1216,
16489,
288,
3639,
309,
16051,
3299,
18,
4169,
22928,
12,
2399,
67,
8723,
3719,
5411,
604,
11542,
15133,
18,
39,
16791,
67,
6067,
6964,
5621,
3639,
226... |
createContentHandler(String mime_type); | ContentHandler createContentHandler(String mimeType); | createContentHandler(String mime_type); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/ContentHandlerFactory.java/buggy/core/src/classpath/java/java/net/ContentHandlerFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
752,
1350,
1503,
12,
780,
4892,
67,
723,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
752,
1350,
1503,
12,
780,
4892,
67,
723,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
creationPage = new WizardNewProjectCreationPage("newProjectCreationPage"); | creationPage = new WizardNewProjectNameAndLocationPage("newProjectCreationPage"); | protected void addCustomPages() { creationPage = new WizardNewProjectCreationPage("newProjectCreationPage");//$NON-NLS-1$ creationPage.setTitle(WorkbenchMessages.getString("NewProjectWizard.title")); //$NON-NLS-1$ creationPage.setDescription(WorkbenchMessages.getString("WizardNewProjectCreationPage.description")); //$NON-NLS-1$ creationPage.setInitialProjectName(initialProjectName); this.addPage(creationPage); capabilityPage = new WizardNewProjectCapabilityPage("newProjectCapabilityPage");//$NON-NLS-1$ capabilityPage.setTitle(WorkbenchMessages.getString("NewProjectWizard.title")); //$NON-NLS-1$ capabilityPage.setDescription(WorkbenchMessages.getString("WizardNewProjectCapabilityPage.description")); //$NON-NLS-1$ capabilityPage.setInitialProjectCapabilities(initialProjectCapabilities); capabilityPage.setInitialSelectedCategories(initialSelectedCategories); this.addPage(capabilityPage); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/da21c63e8c4b024ca95def57b46278685c3b9b33/NewProjectWizard.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/NewProjectWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3802,
5716,
1435,
288,
202,
202,
17169,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
2704,
4109,
9906,
1964,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
3802,
5716,
1435,
288,
202,
202,
17169,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
2704,
4109,
9906,
1964,
8863,
759,
8,
3993,
17,
5106,
17,
21,
8,
2... |
public BArray(byte[] xs) { this.xs = xs; } | public BArray(byte[] value) { this.value = value; } | public BArray(byte[] xs) { this.xs = xs; } | 48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/buggy/sources/scala/runtime/RunTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
605,
1076,
12,
7229,
8526,
9280,
13,
288,
333,
18,
13713,
273,
9280,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
605,
1076,
12,
7229,
8526,
9280,
13,
288,
333,
18,
13713,
273,
9280,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return op.getType(); | return op.getType(); | private VM_TypeReference getRefTypeOf(OPT_Operand op) { if (VM.VerifyAssertions) VM._assert(!op.isDefinitelyNull()); return op.getType(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/9f7e15228c35a04a33dad4f1d51fe26cef5732fc/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
8251,
67,
7534,
17404,
559,
951,
12,
15620,
67,
10265,
1061,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
5,
556,
18,
291,
6443,
25818,
2041,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
8251,
67,
7534,
17404,
559,
951,
12,
15620,
67,
10265,
1061,
13,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
5,
556,
18,
291,
6443,
25818,
2041,
106... |
for (Iterator<PlaceInfo> iterator = myForwardPlaces.iterator(); iterator.hasNext();) { iterator.next(); } | public final void onCommandFinished(Object commandGroupId) { if (myCommandStartPlace != null) { if (myCurrentCommandIsNavigation && myCurrentCommandHasMoves) { if (!myBackInProgress) { if (commandGroupId == null || !commandGroupId.equals(myLastGroupId)) { putLastOrMerge(myBackPlaces, myCommandStartPlace, BACK_QUEUE_LIMIT); } if (!myForwardInProgress) { for (Iterator<PlaceInfo> iterator = myForwardPlaces.iterator(); iterator.hasNext();) { iterator.next(); } myForwardPlaces.clear(); } } removeInvalidFilesFromStacks(); } } myLastGroupId = commandGroupId; if (myCurrentCommandHasChanges) { setCurrentChangePlace(); } else if (myCurrentCommandHasMoves) { pushCurrentChangePlace(); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/01e706e8806ba7faf0f7e3c375559eb316bec8c9/IdeDocumentHistoryImpl.java/clean/source/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
603,
2189,
10577,
12,
921,
1296,
8722,
13,
288,
565,
309,
261,
4811,
2189,
1685,
6029,
480,
446,
13,
288,
1377,
309,
261,
4811,
3935,
2189,
2520,
14301,
597,
3399,
3935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
603,
2189,
10577,
12,
921,
1296,
8722,
13,
288,
565,
309,
261,
4811,
2189,
1685,
6029,
480,
446,
13,
288,
1377,
309,
261,
4811,
3935,
2189,
2520,
14301,
597,
3399,
3935,
... | |
String key = String.valueOf( dateStyle ) + ":" + locale.getName( ); DateFormat result = (DateFormat) dateFormatHolder.get( key ); | Integer key = new Integer( locale.getName( ).hashCode( ) * 5 + dateStyle ); DateFormat result = null; try { result = (DateFormat) dateFormatHolder.get( key ); } catch ( Exception e ) { result = null; } | public static DateFormat getDateInstance( int dateStyle, ULocale locale ) { String key = String.valueOf( dateStyle ) + ":" + locale.getName( ); //DateFormatIdentifier key = new DateFormatIdentifier(dateStyle,0,locale) ; DateFormat result = (DateFormat) dateFormatHolder.get( key ); //This code block is added to solve the problem that the uncached datetimeformatter being used if ( result == null ) { synchronized ( dateTimeFormatholder ) { result = (DateFormat)dateFormatHolder.get( key ); if ( result == null ) { result = DateFormat.getDateInstance( dateStyle, locale ); result.setLenient( false ); dateFormatHolder.put( key, result ); } } } return result; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/43c64286ed852ffb2e0f16d0cc7eeace83a85565/DataTypeUtil.java/clean/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
18371,
10713,
1442,
12,
509,
1509,
2885,
16,
29145,
2573,
262,
202,
95,
202,
202,
780,
498,
273,
514,
18,
1132,
951,
12,
1509,
2885,
262,
397,
6153,
397,
2573,
18,
17994,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18371,
10713,
1442,
12,
509,
1509,
2885,
16,
29145,
2573,
262,
202,
95,
202,
202,
780,
498,
273,
514,
18,
1132,
951,
12,
1509,
2885,
262,
397,
6153,
397,
2573,
18,
17994,... |
ungroupPrimitive(are); | ungroupPrimitive(are, false); | public void fillArc(ArcRenderEvent are) throws ChartException { groupPrimitive(are); super.fillArc(are); ungroupPrimitive(are); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/aeb2ff9aeebc28aaf0d2e96bfd88e2332f7a7e96/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
14598,
12,
14598,
3420,
1133,
854,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
834,
1769,
202,
202,
9565,
18,
5935,
14598,
12,
834,
1769,
202,
202,
318,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
14598,
12,
14598,
3420,
1133,
854,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
834,
1769,
202,
202,
9565,
18,
5935,
14598,
12,
834,
1769,
202,
202,
318,
16... |
290, 291, 222, 223, 368, 310, 10, 342, 91, 301, 345, 346, 59, 348, 306, 331, 44, 352, 346, 269, 348, 271, 338, 341, 244, 279, 246, 247, 725, 244, 349, 246, 247, 341, 369, 350, 256, 41, 727, 61, | 350, 264, 222, 223, 308, 310, 368, 342, 61, 301, 345, 346, 59, 348, 306, 59, 340, 352, 346, 267, 348, 91, 290, 291, 244, 856, 246, 247, 267, 244, 349, 246, 247, 341, 369, 279, 256, 339, 727, 725, | private static final short[] yyCheck1() { return new short[] { 15, 16, 215, 14, 19, 7, 247, 15, 16, 6, 378, 19, 15, 16, 21, 375, 19, 41, 6, 7, 392, 398, 27, 15, 16, 27, 342, 19, 43, 44, 10, 3, 693, 370, 49, 50, 10, 52, 53, 27, 10, 410, 50, 101, 21, 292, 44, 32, 47, 296, 10, 4, 5, 369, 71, 10, 51, 54, 50, 263, 280, 14, 106, 10, 280, 10, 54, 506, 507, 306, 41, 387, 11, 10, 11, 444, 313, 314, 693, 59, 695, 41, 310, 310, 58, 59, 402, 94, 343, 44, 61, 263, 264, 100, 269, 91, 271, 269, 51, 44, 10, 53, 2, 3, 4, 5, 113, 41, 8, 9, 10, 11, 59, 10, 14, 15, 16, 94, 0, 19, 15, 16, 310, 343, 19, 310, 26, 61, 10, 2, 320, 10, 71, 10, 310, 328, 343, 90, 454, 10, 10, 44, 362, 371, 371, 349, 362, 47, 48, 49, 10, 51, 304, 53, 49, 10, 308, 10, 61, 349, 10, 58, 59, 353, 354, 44, 359, 44, 829, 108, 10, 41, 308, 269, 47, 271, 10, 59, 125, 58, 59, 369, 370, 371, 369, 370, 371, 58, 59, 59, 90, 41, 10, 369, 370, 371, 311, 312, 10, 559, 10, 218, 310, 200, 59, 105, 59, 107, 545, 267, 10, 269, 200, 310, 829, 41, 231, 232, 233, 59, 467, 10, 590, 41, 58, 59, 44, 362, 565, 244, 41, 246, 247, 10, 107, 61, 244, 91, 246, 247, 41, 244, 681, 246, 247, 364, 58, 59, 58, 59, 61, 282, 244, 268, 246, 247, 93, 91, 58, 59, 61, 369, 370, 371, 263, 32, 290, 291, 16, 340, 59, 19, 369, 370, 371, 91, 256, 91, 61, 218, 331, 32, 59, 10, 666, 222, 223, 338, 125, 671, 269, 91, 271, 267, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 290, 291, 222, 223, 368, 310, 10, 342, 91, 301, 345, 346, 59, 348, 306, 331, 44, 352, 346, 269, 348, 271, 338, 341, 244, 279, 246, 247, 725, 244, 349, 246, 247, 341, 369, 350, 256, 41, 727, 61, 418, 419, 377, 263, 733, 302, 303, 304, 305, 377, 267, 331, 387, 388, 389, 390, 279, 357, 338, 394, 368, 439, 595, 256, 369, 370, 394, 402, 267, 630, 263, 406, 407, 345, 346, 410, 348, 350, 386, 414, 352, 301, 302, 303, 304, 305, 306, 307, 308, 264, 281, 414, 427, 401, 269, 407, 776, 432, 433, 434, 425, 331, 414, 425, 363, 359, 441, 799, 338, 444, 44, 799, 447, 267, 340, 772, 10, 425, 91, 454, 262, 91, 342, 431, 341, 345, 346, 342, 348, 349, 350, 10, 352, 279, 10, 267, 359, 267, 397, 398, 340, 341, 341, 343, 344, 453, 264, 267, 279, 369, 370, 371, 290, 291, 369, 264, 349, 331, 279, 44, 849, 308, 41, 383, 338, 59, 61, 387, 368, 826, 703, 391, 387, 393, 10, 553, 244, 331, 246, 247, 59, 310, 402, 59, 338, 385, 386, 402, 877, 516, 383, 526, 522, 523, 414, 331, 10, 331, 391, 835, 393, 401, 338, 341, 338, 41, 91, 348, 428, 310, 59, 331, 340, 359, 511, 316, 263, 264, 338, 516, 290, 291, 549, 343, 340, 522, 523, 41, 359, 279, 44, 431, 311, 312, 454, 428, 377, 554, 359, 454, 369, 370, 371, 350, 351, 59, 554, 41, 331, 574, 44, 10, 574, 453, 240, 338, 44, 272, 593, 274, 275, 794, 308, 320, 2, 3, 574, 61, 369, 370, 8, 9, 10, 11, 268, 269, 611, 15, 16, 341, 615, 19, 41, 542, 619, 44, 10, 544, 26, 263, 264, 10, 349, 56, 57, 630, 353, 354, 355, 356, 59, 44, 44, 91, 44, 343, 331, 566, 643, 47, 48, 49, 690, 338, 362, 53, 340, 320, 630, 320, 655, 320, 93, 41, 544, 545, 657, 662, 663, 41, 125, 308, 371, 668, 669, 59, 304, 371, 44, 58, 59, 347, 269, 678, 679, 565, 267, 271, 91, 264, 607, 44, 41, 44, 689, 41, 125, 41, 331, 579, 41, 331, 32, 741, 340, 338, 744, 105, 338, 107, 264, 340, 91, 340, 268, 269, 340, 712, 713, 714, 348, 349, 350, 351, 657, 720, 579, 607, 264, 93, 662, 663, 727, 269, 279, 271, 668, 732, 733, 44, 2, 3, 4, 5, 732, 41, 8, 737, 738, 732, 630, 10, 14, 633, 93, 630, 264, 61, 404, 44, 732, 44, 44, 304, 683, 341, 304, 627, 628, 702, 650, 263, 767, 340, 769, 340, 340, 657, 658, 93, 660, 661, 662, 663, 41, 47, 331, 44, 668, 51, 10, 264, 709, 338, 264, 44, 93, 650, 343, 58, 59, 796, 350, 798, 61, 658, 725, 660, 661, 804, 44, 44, 44, 808, 359, 2, 3, 812, 41, 41, 41, 8, 702, 125, 222, 223, 706, 14, 90, 709, 93, 279, 91, 340, 91, 767, 570, 571, 58, 59, 835, 721, 722, 723, 264, 107, 244, 41, 246, 247, 264, 10, 847, 706, 849, 264, 340, 91, 256, 264, 47, 41, 359, 264, 41, 263, 834, 125, 721, 722, 723, 91, 867, 264, 869, 847, 279, 125, 262, 263, 264, 44, 877, 331, 308, 269, 881, 767, 267, 264, 338, 771, 772, 264, 306, 307, 44, 309, 44, 41, 59, 313, 314, 301, 302, 303, 304, 305, 306, 307, 308, 359, 792, 125, 264, 93, 44, 264, 771, 264, 107, 2, 3, 4, 5, 6, 44, 8, 331, 93, 125, 271, 343, 14, 44, 338, 41, 41, 10, 792, 93, 93, 125, 41, 342, 264, 826, 345, 346, 93, 348, 349, 331, 125, 352, 835, 359, 837, 41, 338, 835, 61, 5, 91, 844, 863, 47, 44, 614, 6, 51, 369, 370, 371, 834, 78, 776, 559, 624, 657, 836, 91, 90, 247, 837, 383, 58, 59, -1, 387, 695, 844, 695, 391, 256, 393, 2, 3, 71, 10, -1, 263, 8, -1, 402, -1, -1, -1, 267, 90, -1, -1, -1, -1, 91, -1, 414, -1, -1, 91, -1, -1, 279, 280, -1, -1, 107, -1, -1, -1, 428, -1, 293, 294, 295, 296, 297, -1, -1, 301, -1, 47, -1, -1, 306, 279, 280, 267, 59, 783, 784, -1, 786, -1, -1, -1, 454, -1, 10, -1, 280, 9, 10, 11, -1, -1, -1, -1, -1, 256, -1, -1, 331, -1, 331, -1, 263, -1, 26, 338, 726, 338, -1, 729, 730, -1, 343, 349, 350, 49, -1, 304, 10, -1, 307, 308, 309, 331, -1, -1, 48, 107, 359, -1, 338, 362, 58, 59, 370, 343, -1, 331, -1, -1, 301, -1, -1, -1, 338, 306, -1, 383, 856, 343, -1, 359, -1, -1, 362, 391, 343, 393, -1, -1, -1, 348, 349, 350, 351, 91, 58, 59, 362, -1, -1, 304, 544, 545, 307, 308, 309, 279, 280, -1, -1, -1, -1, 105, -1, -1, -1, -1, 349, -1, 810, 811, 428, 565, 41, 279, -1, 44, 331, 91, -1, 256, -1, -1, -1, 338, -1, 579, 263, 370, 343, -1, -1, -1, 61, 348, 349, 350, 351, -1, -1, 267, 383, -1, -1, 845, 846, -1, 279, 331, 391, 851, 393, -1, 280, 607, 338, -1, -1, -1, -1, 343, -1, -1, 91, -1, 301, 331, 868, -1, -1, 306, -1, 10, 338, -1, 876, 359, 630, 879, 362, 633, -1, 883, -1, -1, 304, 428, -1, 307, 308, 309, -1, -1, -1, 359, 256, -1, 650, -1, 331, -1, -1, 263, -1, 331, 658, 338, 660, 661, 662, 663, 338, -1, 349, 350, 668, 343, -1, -1, 222, 223, 59, -1, -1, -1, -1, -1, 359, 545, 348, 349, 350, 351, -1, 370, 362, -1, -1, 304, -1, 301, 307, 308, 309, -1, 306, -1, 383, 565, 231, 232, -1, -1, 706, -1, 391, 709, 393, -1, -1, 267, -1, 579, -1, -1, 331, -1, -1, 721, 722, 723, 0, 338, 280, -1, -1, -1, 343, -1, -1, 10, -1, 348, 349, 350, 351, -1, -1, 349, -1, -1, -1, 428, -1, 267, -1, -1, -1, -1, 302, 303, 304, 305, 545, 307, 308, -1, -1, -1, 370, -1, -1, 41, -1, 767, -1, -1, -1, 771, 772, -1, -1, 383, 565, 331, -1, -1, 342, -1, 59, 391, 338, 393, 650, 651, -1, 343, 579, -1, 792, 657, 658, -1, 660, 661, -1, -1, -1, -1, -1, -1, 279, -1, 10, 369, 362, -1, -1, 331, -1, -1, -1, 377, 378, 346, 338, 348, 428, 371, -1, 44, -1, 387, 826, -1, -1, -1, -1, -1, -1, -1, -1, 835, -1, 837, 702, -1, 402, -1, 706, -1, 844, -1, -1, -1, 377, 125, -1, -1, -1, -1, -1, 59, 331, 721, 722, 723, -1, 650, 545, 338, 414, 394, -1, -1, 657, 658, 91, 660, 661, -1, -1, -1, -1, 406, 407, -1, -1, 410, 565, -1, 359, 414, -1, -1, -1, -1, 41, -1, 454, 44, -1, -1, 579, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 771, 772, -1, 61, -1, 441, 702, -1, 444, -1, 706, 447, 304, -1, -1, 307, 308, 309, -1, -1, 10, 792, -1, -1, -1, 721, 722, 723, -1, -1, 545, -1, -1, 91, -1, -1, 505, 506, 507, 331, -1, -1, 511, -1, -1, 41, 338, -1, 44, -1, 565, 343, -1, 522, 523, 826, 348, 349, 350, 351, 650, -1, -1, -1, 579, 61, 837, 657, 658, 59, 660, 661, -1, 844, -1, 771, 772, 546, -1, 262, 263, 264, -1, -1, -1, 268, 269, 544, 271, -1, 526, -1, -1, -1, 41, 91, 792, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 578, -1, 580, 702, 582, 61, -1, 706, -1, -1, 41, 304, 590, 44, 307, 308, 309, -1, -1, -1, -1, 826, 721, 722, 723, -1, 650, 0, -1, -1, 61, -1, 837, -1, 658, 91, 660, 661, 331, 844, -1, 607, 279, 280, -1, 338, -1, -1, 593, -1, 343, -1, -1, -1, -1, 348, 349, 350, 351, -1, 91, -1, -1, -1, -1, -1, 611, 633, 41, -1, 615, -1, 771, 772, 619, -1, -1, -1, -1, -1, -1, -1, 706, -1, 304, 630, -1, 307, 308, 309, -1, -1, 0, 792, 331, -1, -1, 721, 722, 723, -1, 338, 10, 681, -1, -1, 343, -1, -1, -1, -1, 331, 279, 280, -1, -1, -1, -1, 338, -1, -1, -1, 359, 343, -1, 362, -1, 826, 348, 349, 350, 351, -1, 41, 679, -1, 44, -1, 837, -1, -1, -1, -1, 709, 689, 844, -1, 771, 772, -1, 58, 59, 125, 61, -1, 63, -1, -1, -1, 737, 738, -1, -1, -1, 331, -1, -1, -1, 792, -1, -1, 338, -1, -1, 279, 720, 343, -1, -1, -1, -1, -1, 727, 91, -1, 93, -1, -1, 733, -1, -1, -1, 359, -1, -1, 362, -1, -1, -1, -1, -1, -1, 826, -1, -1, 304, -1, -1, 307, 308, 309, -1, -1, 837, -1, 0, -1, 125, -1, -1, 844, 799, -1, 279, 769, 10, 331, -1, -1, -1, -1, -1, 331, 338, -1, -1, -1, -1, 343, 338, -1, -1, -1, -1, 343, -1, -1, -1, 279, 348, 349, 350, 351, 798, 359, -1, 41, 835, -1, 44, -1, -1, -1, 808, -1, -1, -1, 812, -1, -1, -1, -1, -1, 58, 59, 331, 61, -1, 63, -1, -1, -1, 338, -1, -1, 863, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 331, -1, 847, 359, 849, -1, 91, 338, 93, 320, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 867, -1, 869, 336, 337, -1, 359, -1, -1, -1, 877, -1, -1, -1, 881, -1, 349, -1, 125, 63, 353, 354, 355, 356, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, 63, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, 59, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, 297, 349, 44, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, 58, 59, -1, 61, -1, 63, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, 304, 305, 0, -1, 308, -1, -1, -1, -1, -1, -1, 315, 10, 317, 318, 125, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, 320, 41, 348, 349, 44, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, 336, 337, 58, 59, -1, 61, 304, 63, -1, 307, 308, 309, -1, 349, -1, 351, -1, 353, 354, 355, 356, -1, 10, -1, -1, 320, -1, -1, -1, -1, 325, 326, -1, 331, -1, 91, -1, 93, -1, -1, 338, 336, 337, -1, -1, 343, -1, -1, -1, -1, 348, 349, 350, 351, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, 125, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 63, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, 304, -1, -1, 307, 308, 309, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 331, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, 348, 349, 350, 351, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 304, 305, 0, -1, 308, -1, -1, -1, -1, -1, -1, 315, 10, 317, 318, 125, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, 348, 349, 44, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, 58, 59, -1, -1, -1, 63, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, 91, -1, 93, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, 125, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 349, 44, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 304, 305, 58, 59, 308, -1, -1, 63, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, 0, 361, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, 41, 329, -1, 44, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, 348, 349, 63, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, 91, -1, 93, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, 58, -1, -1, -1, 125, 63, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, 332, 333, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 349, 44, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, 304, 305, 58, 59, 308, -1, -1, 63, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, 91, -1, 93, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, 0, 361, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, 41, 329, -1, 44, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, 348, 349, 63, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, 91, -1, 93, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, 41, 325, 326, 44, -1, 329, -1, -1, -1, -1, 334, 335, 336, 337, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, 91, -1, 93, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, -1, -1, 329, -1, -1, -1, 0, 334, 335, 336, 337, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, 41, -1, -1, 44, -1, 315, -1, 317, 318, -1, 320, 321, 322, 323, -1, 325, 326, 58, 59, 329, -1, -1, 63, -1, 334, 335, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 349, -1, 351, 352, 353, 354, 355, 356, 357, 358, 359, 91, 361, 93, -1, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 349, 125, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, -1, -1, 336, 337, 338, 339, -1, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 320, 321, 322, 323, 324, 325, 326, 327, -1, 329, 330, -1, -1, -1, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 349, 44, 351, -1, 353, 354, 355, 356, 357, 358, 359, -1, 361, -1, -1, -1, 59, -1, 61, -1, 63, 320, 321, 322, 323, 324, 325, 326, -1, -1, 329, 330, -1, -1, -1, -1, -1, 336, 337, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 349, -1, 351, -1, 353, 354, 355, 356, 357, 358, 359, 320, 361, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 336, 337, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, 349, -1, 351, -1, 353, 354, 355, 356, -1, -1, 359, -1, 361, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
4711,
16,
282,
2872,
16,
225,
576,
3600,
16,
282,
5045,
16,
282,
5342,
16,
565,
2371,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
4711,
16,
282,
2872,
16,
225,
576,
3600,
16,
282,
5045,
16,
282,
5342,
16,
565,
2371,
16,
... |
log(logBuffer.toString()); | throw new MessagingException(logBuffer.toString()); | public void service(Mail originalMail) throws MessagingException { boolean keepMessageId = false; // duplicates the Mail object, to be able to modify the new mail keeping the original untouched Mail newMail = ((MailImpl) originalMail).duplicate(newName((MailImpl) originalMail)); // We don't need to use the original Remote Address and Host, // and doing so would likely cause a loop with spam detecting // matchers. try { ((MailImpl) newMail).setRemoteAddr(java.net.InetAddress.getLocalHost().getHostAddress()); ((MailImpl) newMail).setRemoteHost(java.net.InetAddress.getLocalHost().getHostName()); } catch (java.net.UnknownHostException _) { ((MailImpl) newMail).setRemoteAddr("127.0.0.1"); ((MailImpl) newMail).setRemoteHost("localhost"); } if (isDebug) { MailImpl newMailImpl = (MailImpl) newMail; log("New mail - sender: " + newMailImpl.getSender() + ", recipients: " + arrayToString(newMailImpl.getRecipients().toArray()) + ", name: " + newMailImpl.getName() + ", remoteHost: " + newMailImpl.getRemoteHost() + ", remoteAddr: " + newMailImpl.getRemoteAddr() + ", state: " + newMailImpl.getState() + ", lastUpdated: " + newMailImpl.getLastUpdated() + ", errorMessage: " + newMailImpl.getErrorMessage()); } //Create the message if(getInLineType(originalMail) != UNALTERED) { if (isDebug) { log("Alter message"); } newMail.setMessage(new MimeMessage(Session.getDefaultInstance(System.getProperties(), null))); // handle the new message if altered buildAlteredMessage(newMail, originalMail); setTo(newMail, getTo(originalMail), originalMail); } else { // if we need the original, create a copy of this message to redirect if (getPassThrough(originalMail)) { newMail.setMessage(new MimeMessage(originalMail.getMessage()) { protected void updateHeaders() throws MessagingException { if (getMessageID() == null) super.updateHeaders(); else { modified = false; } } }); } if (isDebug) { log("Message resent unaltered."); } keepMessageId = true; } //Set additional headers setRecipients(newMail, getRecipients(originalMail), originalMail); setSubjectPrefix(newMail, getSubjectPrefix(originalMail), originalMail); if(newMail.getMessage().getHeader(RFC2822Headers.DATE) == null) { newMail.getMessage().setHeader(RFC2822Headers.DATE, rfc822DateFormat.format(new Date())); } setReplyTo(newMail, getReplyTo(originalMail), originalMail); setReturnPath(newMail, getReturnPath(originalMail), originalMail); setSender(newMail, getSender(originalMail), originalMail); setIsReply(newMail, isReply(originalMail), originalMail); newMail.getMessage().saveChanges(); if (keepMessageId) { setMessageId(newMail, originalMail); } if (senderDomainIsValid(newMail)) { //Send it off... getMailetContext().sendMail(newMail); } else { StringBuffer logBuffer = new StringBuffer(256) .append(getMailetName()) .append(" mailet cannot forward ") .append(((MailImpl) originalMail).getName()) .append(". Invalid sender domain for ") .append(newMail.getSender()) .append(". Consider using the Redirect mailet ") .append("using a different sender."); log(logBuffer.toString()); } if(!getPassThrough(originalMail)) { originalMail.setState(Mail.GHOST); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6d2bc5bdec2df2f55d0976c22d72efa1c121d3e2/AbstractRedirect.java/clean/trunk/src/java/org/apache/james/transport/mailets/AbstractRedirect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1156,
12,
6759,
2282,
6759,
13,
1216,
23794,
503,
288,
3639,
1250,
3455,
30550,
273,
629,
31,
3639,
368,
11211,
326,
11542,
733,
16,
358,
506,
7752,
358,
5612,
326,
394,
4791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1156,
12,
6759,
2282,
6759,
13,
1216,
23794,
503,
288,
3639,
1250,
3455,
30550,
273,
629,
31,
3639,
368,
11211,
326,
11542,
733,
16,
358,
506,
7752,
358,
5612,
326,
394,
4791,
... |
BcelObjectType ot = BcelWorld.getBcelObjectType((declaringType.isParameterizedType()?declaringType.getGenericType():declaringType)); | ResolvedType rt = (declaringType.isParameterizedType()?declaringType.getGenericType():declaringType); BcelObjectType ot = BcelWorld.getBcelObjectType(rt); | public void weaveAroundInline( BcelAdvice munger, boolean hasDynamicTest) { /* Implementation notes: * * AroundInline still extracts the instructions of the original shadow into * an extracted method. This allows inlining of even that advice that doesn't * call proceed or calls proceed more than once. * * It extracts the instructions of the original shadow into a method. * * Then it extracts the instructions of the advice into a new method defined on * this enclosing class. This new method can then be specialized as below. * * Then it searches in the instructions of the advice for any call to the * proceed method. * * At such a call, there is stuff on the stack representing the arguments to * proceed. Pop these into the frame. * * Now build the stack for the call to the extracted method, taking values * either from the join point state or from the new frame locs from proceed. * Now call the extracted method. The right return value should be on the * stack, so no cast is necessary. * * If only one call to proceed is made, we can re-inline the original shadow. * We are not doing that presently. * * If the body of the advice can be determined to not alter the stack, or if * this shadow doesn't care about the stack, i.e. method-execution, then the * new method for the advice can also be re-lined. We are not doing that * presently. */ // !!! THIS BLOCK OF CODE SHOULD BE IN A METHOD CALLED weaveAround(...); Member mungerSig = munger.getSignature(); //Member originalSig = mungerSig; // If mungerSig is on a parameterized type, originalSig is the member on the generic type if (mungerSig instanceof ResolvedMember) { ResolvedMember rm = (ResolvedMember)mungerSig; if (rm.hasBackingGenericMember()) mungerSig = rm.getBackingGenericMember(); } ResolvedType declaringType = world.resolve(mungerSig.getDeclaringType(),true); if (declaringType.isMissing()) { world.getLint().cantFindType.signal( new String[] {WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE_DURING_AROUND_WEAVE,declaringType.getClassName())}, getSourceLocation(), new ISourceLocation[]{ munger.getSourceLocation()} );// IMessage msg = new Message(// WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE_DURING_AROUND_WEAVE,declaringType.getClassName()),// "",IMessage.ERROR,getSourceLocation(),null,// new ISourceLocation[]{ munger.getSourceLocation()});// world.getMessageHandler().handleMessage(msg); } //??? might want some checks here to give better errors BcelObjectType ot = BcelWorld.getBcelObjectType((declaringType.isParameterizedType()?declaringType.getGenericType():declaringType)); LazyMethodGen adviceMethod = ot.getLazyClassGen().getLazyMethodGen(mungerSig); if (!adviceMethod.getCanInline()) { weaveAroundClosure(munger, hasDynamicTest); return; } // specific test for @AJ proceedInInners if (munger.getConcreteAspect().isAnnotationStyleAspect()) { // if we can't find one proceed() // we suspect that the call is happening in an inner class // so we don't inline it. // Note: for code style, this is done at Aspect compilation time. boolean canSeeProceedPassedToOther = false; InstructionHandle curr = adviceMethod.getBody().getStart(); InstructionHandle end = adviceMethod.getBody().getEnd(); ConstantPoolGen cpg = adviceMethod.getEnclosingClass().getConstantPoolGen(); while (curr != end) { InstructionHandle next = curr.getNext(); Instruction inst = curr.getInstruction(); if ((inst instanceof InvokeInstruction) && ((InvokeInstruction)inst).getSignature(cpg).indexOf("Lorg/aspectj/lang/ProceedingJoinPoint;") > 0) { // we may want to refine to exclude stuff returning jp ? // does code style skip inline if i write dump(thisJoinPoint) ? canSeeProceedPassedToOther = true;// we see one pjp passed around - dangerous break; } curr = next; } if (canSeeProceedPassedToOther) { // remember this decision to avoid re-analysis adviceMethod.setCanInline(false); weaveAroundClosure(munger, hasDynamicTest); return; } } // We can't inline around methods if they have around advice on them, this // is because the weaving will extract the body and hence the proceed call. //??? should consider optimizations to recognize simple cases that don't require body extraction enclosingMethod.setCanInline(false); // start by exposing various useful things into the frame final InstructionFactory fact = getFactory(); // now generate the aroundBody method LazyMethodGen extractedMethod = extractMethod( NameMangler.aroundCallbackMethodName( getSignature(), getEnclosingClass()), Modifier.PRIVATE, munger ); // now extract the advice into its own method String adviceMethodName = NameMangler.aroundCallbackMethodName( getSignature(), getEnclosingClass()) + "$advice"; List argVarList = new ArrayList(); List proceedVarList = new ArrayList(); int extraParamOffset = 0; // Create the extra parameters that are needed for passing to proceed // This code is very similar to that found in makeCallToCallback and should // be rationalized in the future if (thisVar != null) { argVarList.add(thisVar); proceedVarList.add(new BcelVar(thisVar.getType(), extraParamOffset)); extraParamOffset += thisVar.getType().getSize(); } if (targetVar != null && targetVar != thisVar) { argVarList.add(targetVar); proceedVarList.add(new BcelVar(targetVar.getType(), extraParamOffset)); extraParamOffset += targetVar.getType().getSize(); } for (int i = 0, len = getArgCount(); i < len; i++) { argVarList.add(argVars[i]); proceedVarList.add(new BcelVar(argVars[i].getType(), extraParamOffset)); extraParamOffset += argVars[i].getType().getSize(); } if (thisJoinPointVar != null) { argVarList.add(thisJoinPointVar); proceedVarList.add(new BcelVar(thisJoinPointVar.getType(), extraParamOffset)); extraParamOffset += thisJoinPointVar.getType().getSize(); } Type[] adviceParameterTypes = adviceMethod.getArgumentTypes(); Type[] extractedMethodParameterTypes = extractedMethod.getArgumentTypes(); Type[] parameterTypes = new Type[extractedMethodParameterTypes.length + adviceParameterTypes.length + 1]; int parameterIndex = 0; System.arraycopy( extractedMethodParameterTypes, 0, parameterTypes, parameterIndex, extractedMethodParameterTypes.length); parameterIndex += extractedMethodParameterTypes.length; parameterTypes[parameterIndex++] = BcelWorld.makeBcelType(adviceMethod.getEnclosingClass().getType()); System.arraycopy( adviceParameterTypes, 0, parameterTypes, parameterIndex, adviceParameterTypes.length); LazyMethodGen localAdviceMethod = new LazyMethodGen( Modifier.PRIVATE | Modifier.FINAL | Modifier.STATIC, BcelWorld.makeBcelType(mungerSig.getReturnType()), adviceMethodName, parameterTypes, new String[0], getEnclosingClass()); String donorFileName = adviceMethod.getEnclosingClass().getInternalFileName(); String recipientFileName = getEnclosingClass().getInternalFileName();// System.err.println("donor " + donorFileName);// System.err.println("recip " + recipientFileName); if (! donorFileName.equals(recipientFileName)) { localAdviceMethod.fromFilename = donorFileName; getEnclosingClass().addInlinedSourceFileInfo( donorFileName, adviceMethod.highestLineNumber); } getEnclosingClass().addMethodGen(localAdviceMethod); // create a map that will move all slots in advice method forward by extraParamOffset // in order to make room for the new proceed-required arguments that are added at // the beginning of the parameter list int nVars = adviceMethod.getMaxLocals() + extraParamOffset; IntMap varMap = IntMap.idMap(nVars); for (int i=extraParamOffset; i < nVars; i++) { varMap.put(i-extraParamOffset, i); } localAdviceMethod.getBody().insert( BcelClassWeaver.genInlineInstructions(adviceMethod, localAdviceMethod, varMap, fact, true)); localAdviceMethod.setMaxLocals(nVars); //System.err.println(localAdviceMethod); // the shadow is now empty. First, create a correct call // to the around advice. This includes both the call (which may involve // value conversion of the advice arguments) and the return // (which may involve value conversion of the return value). Right now // we push a null for the unused closure. It's sad, but there it is. InstructionList advice = new InstructionList(); // InstructionHandle adviceMethodInvocation; { for (Iterator i = argVarList.iterator(); i.hasNext(); ) { BcelVar var = (BcelVar)i.next(); var.appendLoad(advice, fact); } // ??? we don't actually need to push NULL for the closure if we take care advice.append( munger.getAdviceArgSetup( this, null, (munger.getConcreteAspect().isAnnotationStyleAspect() && munger.getDeclaringAspect()!=null && munger.getDeclaringAspect().resolve(world).isAnnotationStyleAspect())? this.loadThisJoinPoint(): new InstructionList(InstructionConstants.ACONST_NULL))); // adviceMethodInvocation = advice.append( Utility.createInvoke(fact, localAdviceMethod)); //(fact, getWorld(), munger.getSignature())); advice.append( Utility.createConversion( getFactory(), BcelWorld.makeBcelType(mungerSig.getReturnType()), extractedMethod.getReturnType(),world.isInJava5Mode())); if (! isFallsThrough()) { advice.append(InstructionFactory.createReturn(extractedMethod.getReturnType())); } } // now, situate the call inside the possible dynamic tests, // and actually add the whole mess to the shadow if (! hasDynamicTest) { range.append(advice); } else { InstructionList afterThingie = new InstructionList(InstructionConstants.NOP); InstructionList callback = makeCallToCallback(extractedMethod); if (terminatesWithReturn()) { callback.append( InstructionFactory.createReturn(extractedMethod.getReturnType())); } else { //InstructionHandle endNop = range.insert(fact.NOP, Range.InsideAfter); advice.append( InstructionFactory.createBranchInstruction( Constants.GOTO, afterThingie.getStart())); } range.append( munger.getTestInstructions( this, advice.getStart(), callback.getStart(), advice.getStart())); range.append(advice); range.append(callback); range.append(afterThingie); } // now search through the advice, looking for a call to PROCEED. // Then we replace the call to proceed with some argument setup, and a // call to the extracted method. // inlining support for code style aspects if (!munger.getConcreteAspect().isAnnotationStyleAspect()) { String proceedName = NameMangler.proceedMethodName(munger.getSignature().getName()); InstructionHandle curr = localAdviceMethod.getBody().getStart(); InstructionHandle end = localAdviceMethod.getBody().getEnd(); ConstantPoolGen cpg = localAdviceMethod.getEnclosingClass().getConstantPoolGen(); while (curr != end) { InstructionHandle next = curr.getNext(); Instruction inst = curr.getInstruction(); if ((inst instanceof INVOKESTATIC) && proceedName.equals(((INVOKESTATIC) inst).getMethodName(cpg))) { localAdviceMethod.getBody().append( curr, getRedoneProceedCall( fact, extractedMethod, munger, localAdviceMethod, proceedVarList)); Utility.deleteInstruction(curr, localAdviceMethod); } curr = next; } // and that's it. } else { //ATAJ inlining support for @AJ aspects // [TODO document @AJ code rule: don't manipulate 2 jps proceed at the same time.. in an advice body] InstructionHandle curr = localAdviceMethod.getBody().getStart(); InstructionHandle end = localAdviceMethod.getBody().getEnd(); ConstantPoolGen cpg = localAdviceMethod.getEnclosingClass().getConstantPoolGen(); while (curr != end) { InstructionHandle next = curr.getNext(); Instruction inst = curr.getInstruction(); if ((inst instanceof INVOKEINTERFACE) && "proceed".equals(((INVOKEINTERFACE) inst).getMethodName(cpg))) { final boolean isProceedWithArgs; if (((INVOKEINTERFACE) inst).getArgumentTypes(cpg).length == 1) { // proceed with args as a boxed Object[] isProceedWithArgs = true; } else { isProceedWithArgs = false; } InstructionList insteadProceedIl = getRedoneProceedCallForAnnotationStyle( fact, extractedMethod, munger, localAdviceMethod, proceedVarList, isProceedWithArgs ); localAdviceMethod.getBody().append(curr, insteadProceedIl); Utility.deleteInstruction(curr, localAdviceMethod); } curr = next; } } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/1a6f69583137f03d2a8052148a17eebe8e79e162/BcelShadow.java/clean/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
732,
836,
30022,
10870,
12,
377,
202,
38,
2183,
1871,
633,
312,
318,
693,
16,
377,
202,
6494,
711,
9791,
4709,
13,
202,
95,
202,
202,
20308,
25379,
10913,
30,
1082,
380,
1875... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
732,
836,
30022,
10870,
12,
377,
202,
38,
2183,
1871,
633,
312,
318,
693,
16,
377,
202,
6494,
711,
9791,
4709,
13,
202,
95,
202,
202,
20308,
25379,
10913,
30,
1082,
380,
1875... |
mobyCollection.setAttribute((Attribute) child .getAttribute("articleName", MobyObjectClassNSImpl.MOBYNS) .clone()); | mobyCollection.setAttribute((Attribute) child.getAttribute( "articleName", MobyObjectClassNSImpl.MOBYNS).clone()); } } else if (child.getAttributeValue("articleName") != null) { if (child.getAttributeValue("articleName").equals(articleName)) { e = child; mobyCollection.setAttribute((Attribute) child.getAttribute( "articleName").clone()); | public static String getMobyCollection(Element documentElement, String objectType, String articleName, String mobyEndpoint) { MobyObjectClassNSImpl mo = new MobyObjectClassNSImpl(mobyEndpoint); Document doc = XMLUtilities.createDomDocument(); Element root = new Element("MOBY", MobyObjectClassNSImpl.MOBYNS); Element content = new Element("mobyContent", MobyObjectClassNSImpl.MOBYNS); Element mobyData = new Element("mobyData", MobyObjectClassNSImpl.MOBYNS); Element mobyCollection = new Element("Collection", MobyObjectClassNSImpl.MOBYNS); mobyData.setAttribute("queryID", "a1", MobyObjectClassNSImpl.MOBYNS); root.addContent(content); doc.addContent(root); content.addContent(mobyData); mobyData.addContent(mobyCollection); Element e = documentElement.getChild("mobyContent", MobyObjectClassNSImpl.MOBYNS); if (e != null) { e = e.getChild("mobyData", MobyObjectClassNSImpl.MOBYNS); if (e != null) { List children = e.getChildren("Collection", MobyObjectClassNSImpl.MOBYNS); for (Iterator x = children.iterator(); x.hasNext();) { Object o = x.next(); if (o instanceof Element) { Element child = (Element) o; if (child.getAttributeValue("articleName", MobyObjectClassNSImpl.MOBYNS).equals( articleName)) { e = child; mobyCollection.setAttribute((Attribute) child .getAttribute("articleName", MobyObjectClassNSImpl.MOBYNS) .clone()); } } } } } List list = e.getChildren("Simple", MobyObjectClassNSImpl.MOBYNS); for (Iterator x = list.iterator(); x.hasNext();) { Element child = (Element) x.next(); List objects = child.getChildren(objectType, MobyObjectClassNSImpl.MOBYNS); // iterate through the list adding them to the mobyCollection TODO Iterator iter = objects.iterator(); while (iter.hasNext()) { Element simple = new Element("Simple", MobyObjectClassNSImpl.MOBYNS); Element _c = (Element) iter.next(); iter.remove(); simple.addContent(_c.detach()); mobyCollection.addContent(simple); } } return mo.toString(root); } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/68bb1ce8ce02b5a59cbae128ae4d8f93720f7c6b/XMLUtilities.java/clean/trunk/taverna1.0/src/org/biomoby/client/taverna/plugin/XMLUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2108,
947,
93,
2532,
12,
1046,
16722,
16,
1082,
202,
780,
16400,
16,
514,
7559,
461,
16,
514,
312,
947,
93,
3293,
13,
288,
202,
202,
49,
947,
93,
921,
797,
3156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2108,
947,
93,
2532,
12,
1046,
16722,
16,
1082,
202,
780,
16400,
16,
514,
7559,
461,
16,
514,
312,
947,
93,
3293,
13,
288,
202,
202,
49,
947,
93,
921,
797,
3156,
... |
public IASTTranslationUnit getAST(ICElement cElement, WAIT_FLAG waitFlag, IProgressMonitor progressMonitor) { | public IASTTranslationUnit getAST(ICElement cElement, IIndex index, WAIT_FLAG waitFlag, IProgressMonitor progressMonitor) { | public IASTTranslationUnit getAST(ICElement cElement, WAIT_FLAG waitFlag, IProgressMonitor progressMonitor) { if (cElement == null) return null; Assert.isTrue(cElement instanceof ITranslationUnit); if (progressMonitor != null && progressMonitor.isCanceled()) return null; boolean isActiveElement; synchronized (this) { isActiveElement= cElement.equals(fActiveCElement); if (isActiveElement) { if (fAST != null) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "returning cached AST:" + toString(fAST) + " for: " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return fAST; } if (waitFlag == WAIT_NO) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "returning null (WAIT_NO) for: " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ return null; } } } if (isActiveElement && isReconciling(cElement)) { try { final ICElement activeElement= fReconcilingCElement; // Wait for AST synchronized (fWaitLock) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "waiting for AST for: " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ fWaitLock.wait(); } // Check whether active element is still valid synchronized (this) { if (activeElement == fActiveCElement && fAST != null) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "...got AST for: " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ return fAST; } } return getAST(cElement, waitFlag, progressMonitor); } catch (InterruptedException e) { return null; // thread has been interrupted don't compute AST } } else if (waitFlag == WAIT_NO || (waitFlag == WAIT_ACTIVE_ONLY && !(isActiveElement && fAST == null))) return null; if (isActiveElement) aboutToBeReconciled(cElement); if (DEBUG) System.err.println(getThreadName() + " - " + DEBUG_PREFIX + "creating AST for " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ IASTTranslationUnit ast= null; try { ast= createAST(cElement, progressMonitor); if (progressMonitor != null && progressMonitor.isCanceled()) ast= null; else if (DEBUG && ast != null) System.err.println(getThreadName() + " - " + DEBUG_PREFIX + "created AST for: " + cElement.getElementName()); //$NON-NLS-1$ //$NON-NLS-2$ } finally { if (isActiveElement) { if (fAST != null) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "Ignore created AST for " + cElement.getElementName() + "- AST from reconciler is newer"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ reconciled(fAST, fActivePositionConverter, cElement, null); } else reconciled(ast, null, cElement, null); } } return ast; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2119729ff7f7097b3c69f1bb844deb116040f3d9/ASTProvider.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ASTProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
6717,
2802,
4506,
882,
12,
2871,
1046,
276,
1046,
16,
26859,
67,
9651,
2529,
4678,
16,
467,
5491,
7187,
4007,
7187,
13,
288,
202,
202,
430,
261,
71,
1046,
422,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
6717,
2802,
4506,
882,
12,
2871,
1046,
276,
1046,
16,
26859,
67,
9651,
2529,
4678,
16,
467,
5491,
7187,
4007,
7187,
13,
288,
202,
202,
430,
261,
71,
1046,
422,
446,... |
throws org.xml.sax.SAXException { | throws org.xml.sax.SAXException { | public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { super.startContextElement(name, attributes); String usiteName = (attributes.getValue("name")); if (checkNonEmpty(usiteName)) { ((UnicoreProcess) targetProcess).uParam.setUsiteName(usiteName); } String type = (attributes.getValue("type")); if (checkNonEmpty(type)) { ((UnicoreProcess) targetProcess).uParam.setUsiteType(type); } String url = (attributes.getValue("url")); if (checkNonEmpty(url)) { ((UnicoreProcess) targetProcess).uParam.setUsiteUrl(url); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
787,
1042,
1046,
12,
780,
508,
16,
9055,
1677,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
2240,
18,
1937,
1042,
1046,
12,
529,
16,
1677,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
1042,
1046,
12,
780,
508,
16,
9055,
1677,
13,
7734,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
7734,
2240,
18,
1937,
1042,
1046,
12,
529,
16,
1677,
17... |
isVirtual = false; visibility = ASTAccessVisibility.PUBLIC; nameDuple = null; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER ); continue baseSpecifierLoop; default : break baseSpecifierLoop; } } | isVirtual = false; visibility = ASTAccessVisibility.PUBLIC; nameDuple = null; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER ); continue baseSpecifierLoop; default : break baseSpecifierLoop; } } | protected void baseSpecifier( IASTClassSpecifier astClassSpec) throws EndOfFileException, BacktrackException { consume(IToken.tCOLON); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER ); boolean isVirtual = false; ASTAccessVisibility visibility = ASTAccessVisibility.PUBLIC; ITokenDuple nameDuple = null; ArrayList bases = null; baseSpecifierLoop : for (;;) { switch (LT(1)) { case IToken.t_virtual : consume(IToken.t_virtual); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.EMPTY ); isVirtual = true; break; case IToken.t_public : consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.EMPTY ); break; case IToken.t_protected : consume(); visibility = ASTAccessVisibility.PROTECTED; setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.EMPTY ); break; case IToken.t_private : visibility = ASTAccessVisibility.PRIVATE; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.EMPTY ); break; case IToken.tCOLONCOLON : case IToken.tIDENTIFIER : //to get templates right we need to use the class as the scope nameDuple = name(astClassSpec, CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER ); break; case IToken.tCOMMA : //because we are using the class as the scope to get the name, we need to postpone adding the base //specifiers until after we have all the nameDuples if( bases == null ){ bases = new ArrayList(5); } bases.add( new Object[] { isVirtual ? Boolean.TRUE : Boolean.FALSE, visibility, nameDuple } ); isVirtual = false; visibility = ASTAccessVisibility.PUBLIC; nameDuple = null; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER ); continue baseSpecifierLoop; default : break baseSpecifierLoop; } } try { if( bases != null ){ int size = bases.size(); for( int i = 0; i < size; i++ ){ Object [] data = (Object[]) bases.get( i ); astFactory.addBaseSpecifier( astClassSpec, ((Boolean)data[0]).booleanValue(), (ASTAccessVisibility) data[1], (ITokenDuple)data[2] ); } } astFactory.addBaseSpecifier( astClassSpec, isVirtual, visibility, nameDuple ); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "baseSpecifier_2::addBaseSpecifier", e ); //$NON-NLS-1$ throw backtrack; } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85be18a5f9556c1b23f600ca12f088a1d51d3925/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1026,
21416,
12,
3639,
467,
9053,
797,
21416,
3364,
797,
1990,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
3639,
7865,
12,
1285,
969,
18,
88,
4935,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1026,
21416,
12,
3639,
467,
9053,
797,
21416,
3364,
797,
1990,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
3639,
7865,
12,
1285,
969,
18,
88,
4935,
67... |
if (resCount == 0) throw new DBLayerException("The record is no longer in the database."); | if (resCount == 0) throw new DBLayerException(L10n.getString("Error.RecordNoLongerInDatabase")); | public boolean isEditAllowed(int occId) throws RemoteException, DBLayerException { User user = database.getUser(); Right rights = database.getUserRights(); if (rights.getAdministrator() == 1) { logger.debug("This user is an administrator which allows him to edit this record."); return true; } if (rights.getEditAll() == 1) { logger.debug("This user can edit all records which means that this one too."); return true; } SelectQuery sq = database.createQuery(Occurrence.class); sq.createAlias(Occurrence.CREATEDWHO,"cw"); sq.addProjection(PlantloreConstants.PROJ_PROPERTY,"cw."+User.ID); sq.addRestriction(PlantloreConstants.RESTR_EQ,Occurrence.ID, null, occId, null); int resId = database.executeQuery(sq); int resCount = database.getNumRows(resId); assert resCount == 1; if (resCount == 0) //FIXME throw new DBLayerException("The record is no longer in the database."); Object[] obj = database.more(resId, 0, 0); Object[] res = (Object[])obj[0]; String userId = ""+res[0]; logger.debug("Occurrence id "+occId+" was created by user id "+userId); if (user.getId().equals(res[0])) { logger.debug("It was this user who created the record. Therefore he is allowed to edit it."); return true; } String[] editableIds = rights.getEditGroup().split(","); for (String id : editableIds) { if (userId.equals(id)) { logger.debug("This user is allowed to edit this user's record."); return true; } } logger.debug("This user is NOT allowed to edit this record."); return false; } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/0c6f113049549619a349437cb50367e94d59f194/AppCore.java/buggy/trunk/src/net/sf/plantlore/client/AppCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
353,
4666,
5042,
12,
474,
9145,
548,
13,
1216,
18361,
16,
2383,
4576,
503,
288,
5411,
2177,
729,
273,
2063,
18,
588,
1299,
5621,
5411,
13009,
14989,
273,
2063,
18,
588,
1299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
353,
4666,
5042,
12,
474,
9145,
548,
13,
1216,
18361,
16,
2383,
4576,
503,
288,
5411,
2177,
729,
273,
2063,
18,
588,
1299,
5621,
5411,
13009,
14989,
273,
2063,
18,
588,
1299,
... |
_browser.getUI().debugMessage("setting the filter"); | _browser.getUI().debugMessage("setting the filter: " + uri.toString()); | private List calculateNodes(SyndieURI uri) { ThreadAccumulator acc = new ThreadAccumulator(_client, _browser.getUI()); _browser.getUI().debugMessage("setting the filter"); acc.setFilter(uri); _browser.getUI().debugMessage("gathering the threads"); acc.gatherThreads(); // now sort it... _browser.getUI().debugMessage("sorting the threads"); List threads = new ArrayList(); for (int i = 0; i < acc.getThreadCount(); i++) threads.add(acc.getRootThread(i)); // now sort... // (or not...) return threads; } | 27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/f42748f8ad9bce73751c9b0d26ebe173cd548360/MessageTree.java/buggy/src/syndie/gui/MessageTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
4604,
3205,
12,
10503,
72,
1385,
3098,
2003,
13,
288,
3639,
4884,
27361,
4078,
273,
394,
4884,
27361,
24899,
2625,
16,
389,
11213,
18,
588,
5370,
10663,
3639,
389,
11213,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
4604,
3205,
12,
10503,
72,
1385,
3098,
2003,
13,
288,
3639,
4884,
27361,
4078,
273,
394,
4884,
27361,
24899,
2625,
16,
389,
11213,
18,
588,
5370,
10663,
3639,
389,
11213,
18,
5... |
catch (IOException ioe) { myLogger.log(Logger.SEVERE,"Error in agent serialization. Abort transfer. " + ioe); } catch (JADESecurityException ae) { myLogger.log(Logger.SEVERE,"Permission to move not owned. Abort transfer. " + ae.getMessage()); } catch(NotFoundException nfe) { if(transferState == 0) { myLogger.log(Logger.SEVERE,"Destination container does not exist. Abort transfer. " + nfe.getMessage()); } else if(transferState == 2) { myLogger.log(Logger.SEVERE,"Transferring agent does not seem to be part of the platform. Abort transfer. " + nfe.getMessage()); } else if(transferState == 3) { myLogger.log(Logger.SEVERE,"Transferred agent not found on destination container. Can't roll back. " + nfe.getMessage()); } } catch(NameClashException nce) { nce.printStackTrace(); } catch(IMTPException imtpe) { if (transferState == 0) { myLogger.log(Logger.SEVERE,"Can't retrieve destination container. Abort transfer. " + imtpe.getMessage()); } else if (transferState == 1) { myLogger.log(Logger.SEVERE,"Error creating agent on destination container. Abort transfer. " + imtpe.getMessage()); } else if (transferState == 2) { myLogger.log(Logger.SEVERE,"Error transferring agent identity. Abort transfer. " + imtpe.getMessage()); try { dest.handleTransferResult(agentID, TRANSFER_ABORT, messages); } catch (Exception e) { e.printStackTrace(); } } else if (transferState == 3) { myLogger.log(Logger.SEVERE,"Error activating transferred agent. Can't roll back!!!. " + imtpe.getMessage()); } } /*#DOTNET_INCLUDE_BEGIN catch(System.Exception exc) { if(myLogger.isLoggable(Logger.SEVERE)) myLogger.log(Logger.SEVERE,"Error in agent serialization. Abort transfer. " + exc.get_Message()); } #DOTNET_INCLUDE_END*/ finally { if (transferState <= 2) { a.restoreBufferedState(); } myContainer.releaseLocalAgent(agentID); } } | private void handleInformMoved(VerticalCommand cmd) throws IMTPException, ServiceException, JADESecurityException, NotFoundException { Object[] params = cmd.getParams(); AID agentID = (AID)params[0]; Location where = (Location)params[1]; if(myLogger.isLoggable(Logger.INFO)) myLogger.log(Logger.INFO,"Moving agent " + agentID + " on container " + where.getName()); Agent a = myContainer.acquireLocalAgent(agentID); if (a == null) { myLogger.log(Logger.SEVERE,"Internal error: handleMove() called with a wrong name (" + agentID + ") !!!"); return; } String proto = where.getProtocol(); if(!CaseInsensitiveString.equalsIgnoreCase(proto, ContainerID.DEFAULT_IMTP)) { myLogger.log(Logger.SEVERE,"Mobility protocol not supported. Aborting transfer"); a.restoreBufferedState(); return; } int transferState = 0; List messages = new ArrayList(); AgentMobilitySlice dest = null; try { // If the destination container is the same as this one, there is nothing to do if (CaseInsensitiveString.equalsIgnoreCase(where.getName(), myContainer.here().getName())) { return; } dest = (AgentMobilitySlice) getSlice(where.getName()); if (dest == null) { myLogger.log(Logger.SEVERE,"Destination does not exist or does not support mobility"); return; } if(myLogger.isLoggable(Logger.FINE)) { myLogger.log(Logger.FINE,"Destination container for agent " + agentID + " found"); } transferState = 1; // Serialize the agent ByteArrayOutputStream out = new ByteArrayOutputStream(); ObjectOutputStream encoder = new ObjectOutputStream(out); encoder.writeObject(a); byte[] bytes = out.toByteArray(); if(myLogger.isLoggable(Logger.FINE)) { myLogger.log(Logger.FINE,"Agent " + agentID + " correctly serialized"); } // Gets the container where the agent classes can be retrieved String classSiteName = (String)sites.get(a); if (classSiteName == null) { // The agent was born on this container classSiteName = getLocalNode().getName(); } // Create the agent on the destination container try { dest.createAgent(agentID, bytes, classSiteName, MIGRATION, CREATE_ONLY); } catch(IMTPException imtpe) { // Try to get a newer slice and repeat... dest = (AgentMobilitySlice)getFreshSlice(where.getName()); dest.createAgent(agentID, bytes, classSiteName, MIGRATION, CREATE_ONLY); } transferState = 2; if(myLogger.isLoggable(Logger.FINE)) { myLogger.log(Logger.FINE,"Agent " + agentID + " correctly created on destination container"); } AgentMobilitySlice mainSlice = (AgentMobilitySlice)getSlice(MAIN_SLICE); // Perform an atomic transaction for agent identity transfer // From now on, messages for the moving agent will be routed to the // destination container boolean transferResult = false; try { transferResult = mainSlice.transferIdentity(agentID, (ContainerID) myContainer.here(), (ContainerID) where); } catch(IMTPException imtpe) { // Try to get a newer slice and repeat... mainSlice = (AgentMobilitySlice)getFreshSlice(MAIN_SLICE); transferResult = mainSlice.transferIdentity(agentID, (ContainerID) myContainer.here(), (ContainerID) where); } transferState = 3; if (transferResult == TRANSFER_COMMIT) { if(myLogger.isLoggable(Logger.FINE)) { myLogger.log(Logger.FINE,"Identity of agent " + agentID + " correctly transferred"); } // Send received messages to the destination container. Note that // there is no synchronization problem as the agent is locked in the LADT myContainer.fillListFromMessageQueue(messages, a); dest.handleTransferResult(agentID, transferResult, messages); try { // Cause the termination of the agent thread a.changeStateTo(new LifeCycle(AP_GONE) { public boolean alive() { return false; } }); // Remove the gone agent from the LADT myContainer.removeLocalAgent(a.getAID()); } catch (Exception e) { // Should never happen e.printStackTrace(); } sites.remove(a); if(myLogger.isLoggable(Logger.FINE)) { myLogger.log(Logger.FINE,"Agent " + agentID + " correctly gone"); } } else { myLogger.log(Logger.WARNING,"Error transferring identity of agent " + agentID); a.restoreBufferedState(); dest.handleTransferResult(agentID, transferResult, messages); myLogger.log(Logger.WARNING,"Migration of agent " + agentID + "aborted"); } } //#DOTNET_EXCLUDE_BEGIN catch (IOException ioe) { // Error in agent serialization myLogger.log(Logger.SEVERE,"Error in agent serialization. Abort transfer. " + ioe); } catch (JADESecurityException ae) { // Permission to move not owned myLogger.log(Logger.SEVERE,"Permission to move not owned. Abort transfer. " + ae.getMessage()); } catch(NotFoundException nfe) { if(transferState == 0) { myLogger.log(Logger.SEVERE,"Destination container does not exist. Abort transfer. " + nfe.getMessage()); } else if(transferState == 2) { myLogger.log(Logger.SEVERE,"Transferring agent does not seem to be part of the platform. Abort transfer. " + nfe.getMessage()); } else if(transferState == 3) { // PANIC !!! myLogger.log(Logger.SEVERE,"Transferred agent not found on destination container. Can't roll back. " + nfe.getMessage()); } } catch(NameClashException nce) { // This should not happen, because the agent is not changing its name but just its location... nce.printStackTrace(); } catch(IMTPException imtpe) { // Unexpected remote error if (transferState == 0) { myLogger.log(Logger.SEVERE,"Can't retrieve destination container. Abort transfer. " + imtpe.getMessage()); } else if (transferState == 1) { myLogger.log(Logger.SEVERE,"Error creating agent on destination container. Abort transfer. " + imtpe.getMessage()); } else if (transferState == 2) { myLogger.log(Logger.SEVERE,"Error transferring agent identity. Abort transfer. " + imtpe.getMessage()); try { dest.handleTransferResult(agentID, TRANSFER_ABORT, messages); } catch (Exception e) { e.printStackTrace(); } } else if (transferState == 3) { // PANIC !!! myLogger.log(Logger.SEVERE,"Error activating transferred agent. Can't roll back!!!. " + imtpe.getMessage()); } } //#DOTNET_EXCLUDE_END /*#DOTNET_INCLUDE_BEGIN catch(System.Exception exc) { if(myLogger.isLoggable(Logger.SEVERE)) myLogger.log(Logger.SEVERE,"Error in agent serialization. Abort transfer. " + exc.get_Message()); } #DOTNET_INCLUDE_END*/ finally { if (transferState <= 2) { // Something went wrong --> Roll back. a.restoreBufferedState(); } myContainer.releaseLocalAgent(agentID); } } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/46dba8df2358fb752e8d0a7cd2a512d0a633dbd6/AgentMobilityService.java/buggy/src/jade/core/mobility/AgentMobilityService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
25541,
25317,
12,
15704,
2189,
1797,
13,
1216,
467,
14636,
503,
16,
16489,
16,
804,
37,
1639,
24918,
16,
12323,
288,
202,
202,
921,
8526,
859,
273,
1797,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
25541,
25317,
12,
15704,
2189,
1797,
13,
1216,
467,
14636,
503,
16,
16489,
16,
804,
37,
1639,
24918,
16,
12323,
288,
202,
202,
921,
8526,
859,
273,
1797,
18,
588,
... | |
TableViewer tableviewer = (TableViewer) fViewer; TableTestLabelProvider provider = (TableTestLabelProvider) tableviewer .getLabelProvider(); | TableViewer tableviewer = (TableViewer) fViewer; TableTestLabelProvider provider = (TableTestLabelProvider) tableviewer .getLabelProvider(); | public void testLabelProviderStateChange() { TableViewer tableviewer = (TableViewer) fViewer; TableTestLabelProvider provider = (TableTestLabelProvider) tableviewer .getLabelProvider(); provider.fExtended = true; provider.setSuffix("added suffix"); // BUG 1FZ5SDC: JFUIF:WINNT - TableViewerColumn should listen for LabelProvider changes tableviewer.refresh(); TestElement first = fRootElement.getFirstChild(); String newLabel = providedString(first); assertEquals("rendered label", newLabel, getItemText(0)); provider.fExtended = false; // BUG 1FZ5SDC: JFUIF:WINNT - TableViewerColumn should listen for LabelProvider changes fViewer.refresh(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8a90f738d710f6ad45ad9241f00bac86c329e84b/TableViewerTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/viewers/TableViewerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2224,
2249,
22505,
1435,
288,
3639,
3555,
18415,
1014,
25256,
273,
261,
1388,
18415,
13,
284,
18415,
31,
3639,
3555,
4709,
2224,
2249,
2893,
273,
261,
1388,
4709,
2224,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2224,
2249,
22505,
1435,
288,
3639,
3555,
18415,
1014,
25256,
273,
261,
1388,
18415,
13,
284,
18415,
31,
3639,
3555,
4709,
2224,
2249,
2893,
273,
261,
1388,
4709,
2224,
224... |
} else if (type.typeParams().length > 0 && !isPrimitive(symbol)) { | } else if (type.typeParams().length > 0 && !monoPrimitive(symbol)) { | public Type transformInfo(Symbol symbol, Type type) { if (symbol.isClass()) { NewMember[] toAdd = membersToAdd(symbol); if (toAdd.length == 0) return type; else { Scope newMembers = new Scope(symbol.members()); for (int i = 0; i < toAdd.length; ++i) newMembers.enterOrOverload(toAdd[i].symbolToAdd()); return Type.compoundType(type.parents(), newMembers, symbol); } } else if (type.typeParams().length > 0 && !isPrimitive(symbol)) { // Polymorphic method/constructor: // - add a value parameter for every type parameter. switch (type) { case PolyType(Symbol[] tparams, // : Type.MethodType(Symbol[] vparams, Type result)): List newVParams = new LinkedList(Arrays.asList(paramsToAdd(symbol))); newVParams.addAll(Arrays.asList(vparams)); Symbol[] newVParamsA = (Symbol[]) newVParams.toArray(new Symbol[newVParams.size()]); return new Type.PolyType(tparams, new Type.MethodType(newVParamsA, result)); default: throw Debug.abort("unexpected type: ", type); } } else return type; } | 1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/1f2e15f4e5c472d9c8b2361dae68d090cfdc9ee5/TypesAsValuesPhase.java/clean/sources/scalac/transformer/TypesAsValuesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
... |
public void reset(int i) { currentIndex = previous(i); | public void reset() { currentIndex = -1; | public void reset(int i) { currentIndex = previous(i); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/473e73e956d6ff2c0ecfedc365eaef22bfab27ea/LexStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/LexStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
12,
474,
277,
13,
288,
202,
202,
2972,
1016,
273,
2416,
12,
77,
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,
... | [
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2715,
12,
474,
277,
13,
288,
202,
202,
2972,
1016,
273,
2416,
12,
77,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (configLocked) { return; } if(this.grailsApplication != null) Thread.currentThread().setContextClassLoader( this.grailsApplication.getClassLoader() ); for(Iterator i = this.domainClasses.iterator();i.hasNext();) { GrailsDomainClass domainClass = (GrailsDomainClass)i.next(); GrailsDomainBinder.bindClass(domainClass, super.createMappings()); } super.secondPassCompile(); this.configLocked = true; } | if (configLocked) { return; } if(this.grailsApplication != null) Thread.currentThread().setContextClassLoader( this.grailsApplication.getClassLoader() ); for(Iterator i = this.domainClasses.iterator();i.hasNext();) { GrailsDomainClass domainClass = (GrailsDomainClass)i.next(); GrailsDomainBinder.bindClass(domainClass, super.createMappings()); } super.secondPassCompile(); this.configLocked = true; } | protected void secondPassCompile() throws MappingException { if (configLocked) { return; } // set the class loader to load Groovy classes if(this.grailsApplication != null) Thread.currentThread().setContextClassLoader( this.grailsApplication.getClassLoader() ); // do Grails class configuration for(Iterator i = this.domainClasses.iterator();i.hasNext();) { GrailsDomainClass domainClass = (GrailsDomainClass)i.next(); GrailsDomainBinder.bindClass(domainClass, super.createMappings()); } // call super super.secondPassCompile(); this.configLocked = true; } | 50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/903f4b388a57a464f9d14176ea5d25485de66436/DefaultGrailsDomainConfiguration.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/DefaultGrailsDomainConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2205,
6433,
9937,
1435,
1216,
30896,
288,
202,
202,
430,
261,
1425,
8966,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
759,
444,
326,
667,
4088,
358,
1262,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2205,
6433,
9937,
1435,
1216,
30896,
288,
202,
202,
430,
261,
1425,
8966,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
759,
444,
326,
667,
4088,
358,
1262,
208... |
tp.add(new TablePanel(tp.el, tp, tp.oNode),gbc); | TablePanel pan = new TablePanel(tp.el, tp, tp.oNode); dataPanel.add(pan,gbc); | public void renderTab(TabPanel tp) { if(!tp.isRendered) { tp.isRendered = true; tp.removeAll(); //Set up the GridBagLayout tp.setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.NORTHWEST; Insets ins = new Insets(10,10,10,10); gbc.insets = ins; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.gridheight = 1; //placeY will hold info on which position to add a new component to the layout int placeY = 0; //add a title label to show which element JPanel titlePanel = new JPanel(); titlePanel.setLayout(new GridLayout(2,1)); JLabel title = new JLabel(); Font thisFont = title.getFont(); Font newFont = new Font(thisFont.getFontName(),Font.BOLD,18); title.setFont(newFont); title.setText(tp.name + ":"); titlePanel.add(title); //if title has a description, add it in italics if (tp.el.hasAttribute("Description")) { if(tp.el.getAttribute("Description").length() != 0) { JLabel descrip = new JLabel(); newFont = new Font(thisFont.getFontName(),Font.ITALIC,thisFont.getSize()); descrip.setFont(newFont); descrip.setText( " " + tp.el.getAttribute("Description")); ins = new Insets(10,30,10,10); titlePanel.add(descrip); } } gbc.gridy = placeY; tp.add(titlePanel,gbc); placeY++; gbc.gridy = placeY; tp.add(new TablePanel(tp.el, tp, tp.oNode),gbc); placeY++; ins = new Insets(10,30,10,10); gbc.insets = ins; Vector theseElements = DOMUtil.getChildElements("OMEElement",tp.el); Vector branchElements = new Vector(theseElements.size()); for(int i = 0;i<theseElements.size();i++) { Element e = null; if (theseElements.get(i) instanceof Element) e = (Element) theseElements.get(i); if (DOMUtil.getChildElements("OMEElement",e).size() != 0) { branchElements.add(e); } else { if(tp.oNode != null) { Vector v = tp.oNode.getChildren(e.getAttribute("XMLName")); if (v.size() == 0) {//Use reflect api to avoid large switch statement to handle construction of different//OMEXMLNode child classes OMEXMLNode n = null; try { ReflectedUniverse r = new ReflectedUniverse(); String unknownName = e.getAttribute("XMLName"); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); } else r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); r.setVar("parent", tp.oNode); r.exec("result = new " + unknownName + "Node(parent)"); n = (OMEXMLNode) r.getVar("result"); } catch (Exception exc) { System.out.println(exc.toString()); } gbc.gridy = placeY; tp.add(new TablePanel(e, tp, n),gbc); placeY++; } else { for(int j = 0;j<v.size();j++) { OMEXMLNode n = (OMEXMLNode) v.get(j); gbc.gridy = placeY; tp.add(new TablePanel(e, tp, n),gbc); placeY++; } } } else { OMEXMLNode n = null; gbc.gridy = placeY; tp.add(new TablePanel(e, tp, n),gbc); placeY++; } } } } } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/3d8317ff17a4ac8a033e9e9b4bea49abbfe32878/MetadataPane.java/clean/loci/ome/notebook/MetadataPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1743,
5661,
12,
5661,
5537,
8071,
13,
288,
565,
309,
12,
5,
6834,
18,
291,
19222,
13,
288,
1377,
8071,
18,
291,
19222,
273,
638,
31,
1377,
8071,
18,
4479,
1595,
5621,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
5661,
12,
5661,
5537,
8071,
13,
288,
565,
309,
12,
5,
6834,
18,
291,
19222,
13,
288,
1377,
8071,
18,
291,
19222,
273,
638,
31,
1377,
8071,
18,
4479,
1595,
5621,
225,
... |
currentStream.add(w3 + " w\n"); | currentStream.add(format(w3) + " w\n"); | protected void drawBorderLine(float x1, float y1, float x2, float y2, boolean horz, boolean startOrBefore, int style, ColorType col) { float w = x2 - x1; float h = y2 - y1; if ((w < 0) || (h < 0)) { log.error("Negative extent received. Border won't be painted."); return; } switch (style) { case Constants.EN_DASHED: setColor(toColor(col), false, null); if (horz) { float unit = Math.abs(2 * h); int rep = (int)(w / unit); if (rep % 2 == 0) { rep++; } unit = w / rep; currentStream.add("[" + unit + "] 0 d "); currentStream.add(h + " w\n"); float ym = y1 + (h / 2); currentStream.add(x1 + " " + ym + " m " + x2 + " " + ym + " l S\n"); } else { float unit = Math.abs(2 * w); int rep = (int)(h / unit); if (rep % 2 == 0) { rep++; } unit = h / rep; currentStream.add("[" + unit + "] 0 d "); currentStream.add(w + " w\n"); float xm = x1 + (w / 2); currentStream.add(xm + " " + y1 + " m " + xm + " " + y2 + " l S\n"); } break; case Constants.EN_DOTTED: setColor(toColor(col), false, null); currentStream.add("1 J "); if (horz) { float unit = Math.abs(2 * h); int rep = (int)(w / unit); if (rep % 2 == 0) { rep++; } unit = w / rep; currentStream.add("[0 " + unit + "] 0 d "); currentStream.add(h + " w\n"); float ym = y1 + (h / 2); currentStream.add(x1 + " " + ym + " m " + x2 + " " + ym + " l S\n"); } else { float unit = Math.abs(2 * w); int rep = (int)(h / unit); if (rep % 2 == 0) { rep++; } unit = h / rep; currentStream.add("[0 " + unit + " ] 0 d "); currentStream.add(w + " w\n"); float xm = x1 + (w / 2); currentStream.add(xm + " " + y1 + " m " + xm + " " + y2 + " l S\n"); } break; case Constants.EN_DOUBLE: setColor(toColor(col), false, null); currentStream.add("[] 0 d "); if (horz) { float h3 = h / 3; currentStream.add(h3 + " w\n"); float ym1 = y1 + (h3 / 2); float ym2 = ym1 + h3 + h3; currentStream.add(x1 + " " + ym1 + " m " + x2 + " " + ym1 + " l S\n"); currentStream.add(x1 + " " + ym2 + " m " + x2 + " " + ym2 + " l S\n"); } else { float w3 = w / 3; currentStream.add(w3 + " w\n"); float xm1 = x1 + (w3 / 2); float xm2 = xm1 + w3 + w3; currentStream.add(xm1 + " " + y1 + " m " + xm1 + " " + y2 + " l S\n"); currentStream.add(xm2 + " " + y1 + " m " + xm2 + " " + y2 + " l S\n"); } break; case Constants.EN_GROOVE: case Constants.EN_RIDGE: { float colFactor = (style == EN_GROOVE ? 0.4f : -0.4f); currentStream.add("[] 0 d "); Color c = toColor(col); if (horz) { Color uppercol = lightenColor(c, -colFactor); Color lowercol = lightenColor(c, colFactor); float h3 = h / 3; currentStream.add(h3 + " w\n"); float ym1 = y1 + (h3 / 2); setColor(uppercol, false, null); currentStream.add(x1 + " " + ym1 + " m " + x2 + " " + ym1 + " l S\n"); setColor(c, false, null); currentStream.add(x1 + " " + (ym1 + h3) + " m " + x2 + " " + (ym1 + h3) + " l S\n"); setColor(lowercol, false, null); currentStream.add(x1 + " " + (ym1 + h3 + h3) + " m " + x2 + " " + (ym1 + h3 + h3) + " l S\n"); } else { Color leftcol = lightenColor(c, -colFactor); Color rightcol = lightenColor(c, colFactor); float w3 = w / 3; currentStream.add(w3 + " w\n"); float xm1 = x1 + (w3 / 2); setColor(leftcol, false, null); currentStream.add(xm1 + " " + y1 + " m " + xm1 + " " + y2 + " l S\n"); setColor(c, false, null); currentStream.add((xm1 + w3) + " " + y1 + " m " + (xm1 + w3) + " " + y2 + " l S\n"); setColor(rightcol, false, null); currentStream.add((xm1 + w3 + w3) + " " + y1 + " m " + (xm1 + w3 + w3) + " " + y2 + " l S\n"); } break; } case Constants.EN_INSET: case Constants.EN_OUTSET: { float colFactor = (style == EN_OUTSET ? 0.4f : -0.4f); currentStream.add("[] 0 d "); Color c = toColor(col); if (horz) { c = lightenColor(c, (startOrBefore ? 1 : -1) * colFactor); currentStream.add(h + " w\n"); float ym1 = y1 + (h / 2); setColor(c, false, null); currentStream.add(x1 + " " + ym1 + " m " + x2 + " " + ym1 + " l S\n"); } else { c = lightenColor(c, (startOrBefore ? 1 : -1) * colFactor); currentStream.add(w + " w\n"); float xm1 = x1 + (w / 2); setColor(c, false, null); currentStream.add(xm1 + " " + y1 + " m " + xm1 + " " + y2 + " l S\n"); } break; } case Constants.EN_HIDDEN: break; default: setColor(toColor(col), false, null); currentStream.add("[] 0 d "); if (horz) { currentStream.add(h + " w\n"); float ym = y1 + (h / 2); currentStream.add(x1 + " " + ym + " m " + x2 + " " + ym + " l S\n"); } else { currentStream.add(w + " w\n"); float xm = x1 + (w / 2); currentStream.add(xm + " " + y1 + " m " + xm + " " + y2 + " l S\n"); } } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/dc7978e4a540cdd65415af3c77108ebff6cd2fd2/PDFRenderer.java/buggy/src/java/org/apache/fop/render/pdf/PDFRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3724,
8107,
1670,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
1431,
619,
22,
16,
1431,
677,
22,
16,
2398,
1250,
29404,
94,
16,
1250,
787,
1162,
4649,
16,
509,
2154,
16,
5563,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3724,
8107,
1670,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
1431,
619,
22,
16,
1431,
677,
22,
16,
2398,
1250,
29404,
94,
16,
1250,
787,
1162,
4649,
16,
509,
2154,
16,
5563,... |
if (toolBarMgr != null) | } if (toolBarMgr != null) { | public void dispose() { clearGlobalActionHandlers(); if (menuMgr != null) { menuMgr.dispose(); menuMgr.disposeManager(); } if (statusLineMgr != null) statusLineMgr.disposeManager(); if (toolBarMgr != null) toolBarMgr.disposeManager(); clearListeners(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
8507,
5160,
1803,
6919,
5621,
202,
202,
430,
261,
5414,
9455,
480,
446,
13,
288,
1082,
202,
5414,
9455,
18,
2251,
4150,
5621,
1082,
202,
5414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15825,
1435,
288,
202,
202,
8507,
5160,
1803,
6919,
5621,
202,
202,
430,
261,
5414,
9455,
480,
446,
13,
288,
1082,
202,
5414,
9455,
18,
2251,
4150,
5621,
1082,
202,
5414,
... |
status.addFatalError("Ambigious return value: selected block contains more than one assignment to local variable."); | status.addFatalError("Ambiguous return value: selected block contains more than one assignment to local variable."); | private void checkLocalWrites(RefactoringStatus status, List followingLocals) { LocalVariableBinding returnBinding= null; boolean isHardReturnDeclaration= false; Iterator iter= fSelectedLocalWrites.iterator(); while (iter.hasNext()) { LocalVariableBinding binding= (LocalVariableBinding)iter.next(); if (!fStatementAnalyzer.isSelected(binding.declaration)) { boolean isUsedAfterSelection= followingLocals.contains(binding); if (returnBinding == null) { returnBinding= binding; isHardReturnDeclaration= isUsedAfterSelection; } else { if (isHardReturnDeclaration) { status.addFatalError("Ambigious return value: selected block contains more than one assignment to local variable."); return; } else if (isUsedAfterSelection) { returnBinding= binding; isHardReturnDeclaration= true; } } // The variable is not part of the read accesses. So we have to create a local variable declaration. if (!fUsedLocals.contains(binding)) fLocalReturnValueDeclaration= makeDeclaration(binding) + ";"; } } if (returnBinding != null) { fReturnStatementBinding= returnBinding; computeReturnType(returnBinding, isHardReturnDeclaration, status); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4d9ed9937a315b7884dc683e100670869244ecc9/LocalVariableAnalyzer.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/core/refactoring/code/LocalVariableAnalyzer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
2042,
8368,
12,
426,
3493,
6053,
1482,
1267,
16,
987,
3751,
1333,
1031,
13,
288,
202,
202,
2042,
3092,
5250,
327,
5250,
33,
446,
31,
202,
202,
6494,
27803,
1060,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
2042,
8368,
12,
426,
3493,
6053,
1482,
1267,
16,
987,
3751,
1333,
1031,
13,
288,
202,
202,
2042,
3092,
5250,
327,
5250,
33,
446,
31,
202,
202,
6494,
27803,
1060,
99... |
if ( !isSnapshot( project.getVersion() ) ) | throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) | private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135... |
stack[++stackTop] = theThisObj; | stack[++stackTop] = thisObj; | public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; Scriptable theThisObj = theData.itsThisObj; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(lhs, rhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bdb5337527f41ea5ba4c1088fb9faa43224c3ad0/Interpreter.java/buggy/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... |
assertTrue("nextable exception(\"ne7o\", getNestable(\"ne7i\", Throwable(\"ne7 exception\"))) message is ne7o: ne7i: ne7 exception", ne7.getMessage().equals("ne7o: ne7i: ne7 exception")); | assertEquals("nestable exception(\"ne7o\", getNestable(\"ne7i\", Throwable(\"ne7 exception\"))) message is ne7o: ne7i: ne7 exception", ne7.getMessage(), "ne7o"); Nestable ne8 = getNestable(); assertNull("nestable exception() message is null", ne8.getMessage()); | public void testGetMessage() { Nestable ne1 = getNestable(); assertNull("nestable exception() message is null", ne1.getMessage()); Nestable ne2 = getNestable("ne2"); assertNotNull("nestable exception(\"ne2\") message is not null", ne2.getMessage()); assertTrue("nestable exception(\"ne2\") message == ne2", ne2.getMessage().equals("ne2")); Nestable ne3 = getNestable(getThrowable("ne3 exception")); assertNotNull("nestable exception(Throwable(\"ne3 exception\") message is not null", ne3.getMessage()); assertTrue("nestable exception(Throwable(\"ne3 exception\") message == cause message", ne3.getMessage().equals(ne3.getCause().getMessage())); Nestable ne4 = getNestable("ne4", getThrowable("ne4 exception")); assertNotNull("nestable exception(\"ne4\", Throwable(\"ne4 exception\") message is not null", ne4.getMessage()); assertTrue("nestable exception(\"ne4\", Throwable(\"ne4 exception\") message == ne4: ne4 exception", ne4.getMessage().equals("ne4: ne4 exception")); Nestable ne5 = getNestable("ne5", (Throwable) null); assertNotNull("nestable exception(\"ne5\", null) message is not null", ne5.getMessage()); assertTrue("nestable exception(\"ne5\", null) message == ne5", ne5.getMessage().equals("ne5")); Nestable ne6 = getNestable(null, getThrowable("ne6 exception")); assertTrue("nestable exception(null, Throwable(\"ne6 exception\") cause == ne6 exception", ne6.getMessage().equals("ne6 exception")); Nestable ne7 = getNestable("ne7o", getNestable("ne7i", getThrowable("ne7 exception"))); assertTrue("nextable exception(\"ne7o\", getNestable(\"ne7i\", Throwable(\"ne7 exception\"))) message is ne7o: ne7i: ne7 exception", ne7.getMessage().equals("ne7o: ne7i: ne7 exception")); } | 4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/82c5dada6f7b369b69c383aa995f45578325e139/AbstractNestableTestCase.java/clean/src/test/org/apache/commons/lang/exception/AbstractNestableTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
1079,
1435,
565,
288,
3639,
423,
395,
429,
1073,
21,
273,
11069,
395,
429,
5621,
3639,
1815,
2041,
2932,
30953,
429,
1520,
1435,
883,
353,
446,
3113,
1073,
21,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
1079,
1435,
565,
288,
3639,
423,
395,
429,
1073,
21,
273,
11069,
395,
429,
5621,
3639,
1815,
2041,
2932,
30953,
429,
1520,
1435,
883,
353,
446,
3113,
1073,
21,
18,
... |
m_node.getNodeId(), vlan.intValue()); | m_node.getNodeId(), vlan); | private void storeSnmpCollection(Connection dbConn, Timestamp now) throws SQLException, UnknownHostException { Category log = ThreadCategory.getInstance(getClass()); PreparedStatement stmt = null; ResultSet rs = null; Iterator ite = null; int nodeid = m_node.getNodeId(); if (m_snmpcoll.hasIpNetToMediaTable()) { ite = m_snmpcoll.getIpNetToMediaTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving IpNetToMediaTable to atinterface table in DB"); while (ite.hasNext()) { int atnodeid = -1; IpNetToMediaTableEntry ent = (IpNetToMediaTableEntry) ite .next(); int ifindex = ent .getInt32(IpNetToMediaTableEntry.INTM_INDEX); String physAddr = ent .getHexString(IpNetToMediaTableEntry.INTM_PHYSADDR); InetAddress ipaddress = ent .getIPAddress(IpNetToMediaTableEntry.INTM_NETADDR); if (log.isDebugEnabled()) log.debug("store: trying save info for ipaddr " + ipaddress.getHostName() + " mac address " + physAddr + " found on ifindex " + ifindex); try { stmt = dbConn.prepareStatement(SQL_GET_NODEID); stmt.setString(1, ipaddress.getHostAddress()); rs = stmt.executeQuery(); if (!rs.next()) { rs.close(); stmt.close(); if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid found for ipaddress " + ipaddress + "."); continue; } int ndx = 1; atnodeid = rs.getInt(ndx++); if (rs.wasNull()) { if (log.isEnabledFor(Priority.WARN)) log.warn("store: no nodeid find for ipaddress " + ipaddress + "."); continue; } } finally { if (rs != null) rs.close(); if (stmt != null) stmt.close(); } if (physAddr.equals("000000000000")) { log.warn("store: mac address " + physAddr + " is invalid for ipaddress " + ipaddress.getHostAddress()); continue; } DbAtInterfaceEntry atInterfaceEntry = DbAtInterfaceEntry.get( dbConn, atnodeid, ipaddress.getHostAddress()); if (atInterfaceEntry == null) { atInterfaceEntry = DbAtInterfaceEntry.create(atnodeid, ipaddress.toString()); } // update object atInterfaceEntry.updateAtPhysAddr(physAddr); atInterfaceEntry.updateSourceNodeId(nodeid); atInterfaceEntry.updateIfIndex(ifindex); atInterfaceEntry.updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); atInterfaceEntry.set_lastpolltime(now); // store object in database atInterfaceEntry.store(dbConn); } } if (m_snmpcoll.hasCdpCacheTable()) { java.util.List cdpInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getCdpCacheTable() .getEntries().iterator(); while (ite.hasNext()) { CdpCacheTableEntry cdpEntry = (CdpCacheTableEntry) ite.next(); int cdpAddrType = cdpEntry.getInt32(CdpCacheTableEntry.CDP_ADDRESS_TYPE); if (cdpAddrType != 1) continue; InetAddress cdpTargetIpAddr = cdpEntry.getIPAddress(CdpCacheTableEntry.CDP_ADDRESS); int cdpIfIndex = cdpEntry.getInt32(CdpCacheTableEntry.CDP_IFINDEX); String cdpTargetDevicePort = cdpEntry.getHexString(CdpCacheTableEntry.CDP_DEVICEPORT); CdpInterface cdpIface = new CdpInterface(cdpIfIndex); int targetCdpNodeId = getNodeidFromIp(dbConn, cdpTargetIpAddr); cdpIface.setCdpTargetNodeId(targetCdpNodeId); cdpIface.setCdpTargetIpAddr(cdpTargetIpAddr); cdpIface.setCdpTargetIfIndex(getIfIndexFromSnmpInterfaceIfName( dbConn, targetCdpNodeId, cdpTargetDevicePort.toString())); cdpInterfaces.add(cdpIface); } m_node.setCdpInterfaces(cdpInterfaces); } if (m_snmpcoll.hasRouteTable()) { java.util.List routeInterfaces = new java.util.ArrayList(); ite = m_snmpcoll.getIpRouteTable().getEntries() .iterator(); if (log.isDebugEnabled()) log .debug("store: saving ipRouteTable to iprouteinterface table in DB"); while (ite.hasNext()) { IpRouteTableEntry ent = (IpRouteTableEntry) ite.next(); InetAddress routedest = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_DEST); InetAddress routemask = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_MASK); InetAddress nexthop = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_NXTHOP); int ifindex = ent.getInt32(IpRouteTableEntry.IP_ROUTE_IFINDEX); int routemetric1 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC1); int routemetric2 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric3 =ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC3); int routemetric4 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC4); int routemetric5 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC5); int routetype = ent.getInt32(IpRouteTableEntry.IP_ROUTE_TYPE); int routeproto = ent.getInt32(IpRouteTableEntry.IP_ROUTE_PROTO); // info used for Discovery Link RouterInterface routeIface = new RouterInterface(ifindex); routeIface.setMetric(routemetric1); routeIface.setNextHop(nexthop); routeIface.setSnmpiftype(getSnmpIfType(dbConn, nodeid, ifindex)); routeIface.setNodeparentid(getNodeidFromIp(dbConn,nexthop)); routeInterfaces.add(routeIface); // save info to DB DbIpRouteInterfaceEntry iprouteInterfaceEntry = DbIpRouteInterfaceEntry .get(dbConn, nodeid, routedest.toString()); if (iprouteInterfaceEntry == null) { // Create a new entry iprouteInterfaceEntry = DbIpRouteInterfaceEntry.create( m_node.getNodeId(), routedest.toString()); } // update object iprouteInterfaceEntry.updateRouteMask(routemask.getHostAddress()); iprouteInterfaceEntry.updateRouteNextHop(nexthop.getHostAddress()); iprouteInterfaceEntry.updateIfIndex(ifindex); if (routemetric1 != -1) iprouteInterfaceEntry.updateRouteMetric1(routemetric1); if (routemetric2 != -1) iprouteInterfaceEntry.updateRouteMetric2(routemetric2); if (routemetric3 != -1) iprouteInterfaceEntry.updateRouteMetric3(routemetric3); if (routemetric4 != -1) iprouteInterfaceEntry.updateRouteMetric4(routemetric4); if (routemetric5 != -1) iprouteInterfaceEntry.updateRouteMetric5(routemetric5); if (routetype != -1) iprouteInterfaceEntry.updateRouteType(routetype); if (routeproto != -1) iprouteInterfaceEntry.updateRouteProto(routeproto); iprouteInterfaceEntry .updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); iprouteInterfaceEntry.set_lastpolltime(now); // store object in database iprouteInterfaceEntry.store(dbConn); } m_node.setRouteInterfaces(routeInterfaces); } // STARTS loop on vlans if (m_snmpcoll.hasVlanTable()) { ite = m_snmpcoll.getSnmpVlanCollections() .iterator(); while (ite.hasNext()) { SnmpVlanCollection snmpVlanColl = (SnmpVlanCollection) ite .next(); String vlanindex = snmpVlanColl.getVlanIndex(); Integer vlan = new Integer(vlanindex); String vlanname = m_snmpcoll.getVlanName( vlanindex); if (log.isDebugEnabled()) log .debug("store: saving SnmpVlanCollection entries in DB for VLAN " + vlanname + " index " + vlan); if (snmpVlanColl.hasDot1dBase()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dBaseGroup in stpnode table in DB"); Dot1dBaseGroup dod1db = (Dot1dBaseGroup) snmpVlanColl.getDot1dBase(); String baseBridgeAddress = dod1db.getBridgeAddress(); int basenumports = dod1db.getNumberOfPorts(); int bridgetype = dod1db.getBridgeType(); if (baseBridgeAddress == "000000000000") { log.warn("store: base bridge address " + baseBridgeAddress + " is invalid for ipaddress " ); } else { m_node.addBridgeIdentifier(baseBridgeAddress,vlanindex); DbStpNodeEntry dbStpNodeEntry = DbStpNodeEntry.get(dbConn, m_node.getNodeId(), vlan.intValue()); if (dbStpNodeEntry == null) { // Create a new entry dbStpNodeEntry = DbStpNodeEntry.create(m_node .getNodeId(), vlan.intValue()); } // update object dbStpNodeEntry.updateBaseBridgeAddress(baseBridgeAddress); dbStpNodeEntry.updateBaseNumPorts(basenumports); dbStpNodeEntry.updateBaseType(bridgetype); dbStpNodeEntry.updateBaseVlanName(vlanname); if (snmpVlanColl.hasDot1dStp()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dStpGroup in stpnode table in DB"); Dot1dStpGroup dod1stp = (Dot1dStpGroup) snmpVlanColl .getDot1dStp(); int protospec = dod1stp.getStpProtocolSpecification(); int stppriority = dod1stp.getStpPriority(); String stpDesignatedRoot = dod1stp.getStpDesignatedRoot(); int stprootcost = dod1stp.getStpRootCost(); int stprootport = dod1stp.getStpRootPort(); if (stpDesignatedRoot != "0000000000000000") { m_node.setVlanStpRoot(vlanindex,stpDesignatedRoot); } dbStpNodeEntry.updateStpProtocolSpecification(protospec); dbStpNodeEntry.updateStpPriority(stppriority); dbStpNodeEntry.updateStpDesignatedRoot(stpDesignatedRoot); dbStpNodeEntry.updateStpRootCost(stprootcost); dbStpNodeEntry.updateStpRootPort(stprootport); } // store object in database dbStpNodeEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpNodeEntry.set_lastpolltime(now); dbStpNodeEntry.store(dbConn); if (snmpVlanColl.hasDot1dBasePortTable()) { Iterator sub_ite = snmpVlanColl.getDot1dBasePortTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving Dot1dBasePortTable in stpinterface table in DB"); while (sub_ite.hasNext()) { Dot1dBasePortTableEntry dot1dbaseptentry = (Dot1dBasePortTableEntry) sub_ite .next(); int baseport = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_PORT); int ifindex = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_IFINDEX); m_node.setIfIndexBridgePort(ifindex,baseport); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), baseport, vlan .intValue()); if (dbStpIntEntry == null) { // Create a new entry dbStpIntEntry = DbStpInterfaceEntry.create( m_node.getNodeId(), baseport, vlan.intValue()); } dbStpIntEntry.updateIfIndex(ifindex); dbStpIntEntry .updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } if (snmpVlanColl.hasDot1dStpPortTable()) { if (log.isDebugEnabled()) log .debug(" store: saving Dot1dStpPortTable in stpinterface table in DB"); Iterator sub_ite = snmpVlanColl.getDot1dStpPortTable() .getEntries().iterator(); while (sub_ite.hasNext()) { Dot1dStpPortTableEntry dot1dstpptentry = (Dot1dStpPortTableEntry) sub_ite .next(); int stpport = dot1dstpptentry.getInt32(Dot1dStpPortTableEntry.STP_PORT); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), stpport, vlan.intValue()); if (dbStpIntEntry == null) { // Cannot create the object becouse must exists the dot1dbase // object!!!!! if (log.isEnabledFor(Priority.WARN)) log .warn("store StpInterface: when storing STP info" + " for bridge node with nodeid " + m_node.getNodeId() + " bridgeport number " + stpport + " and vlan index " + vlanindex + " info not found in database, ERROR skipping....."); } else { int stpportstate = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_STATE); int stpportpathcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_PATH_COST); String stpPortDesignatedBridge = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_BRIDGE); String stpPortDesignatedRoot = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_ROOT); int stpportdesignatedcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_COST); String stpPortDesignatedPort = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_PORT); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("storeSnmpCollection: designated bridge is invalid not adding to discoveryLink"); } else if (stpPortDesignatedPort.equals("0000")) { log.warn("storeSnmpCollection: designated port is invalid not adding to discoveryLink"); } else { BridgeStpInterface stpIface = new BridgeStpInterface(stpport,vlanindex); stpIface.setStpPortDesignatedBridge(stpPortDesignatedBridge); stpIface.setStpPortDesignatedPort(stpPortDesignatedPort); m_node.addStpInterface(stpIface); } dbStpIntEntry.updateStpPortState(stpportstate); dbStpIntEntry.updateStpPortPathCost(stpportpathcost); dbStpIntEntry.updateStpportDesignatedBridge(stpPortDesignatedBridge); dbStpIntEntry.updateStpportDesignatedRoot(stpPortDesignatedRoot); dbStpIntEntry.updateStpPortDesignatedCost(stpportdesignatedcost); dbStpIntEntry.updateStpportDesignatedPort(stpPortDesignatedPort); dbStpIntEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } } if (snmpVlanColl.hasDot1dTpFdbTable()) { Iterator subite = snmpVlanColl.getDot1dFdbTable() .getEntries().iterator(); while (subite.hasNext()) { Dot1dTpFdbTableEntry dot1dfdbentry = (Dot1dTpFdbTableEntry) subite .next(); String curMacAddress = dot1dfdbentry .getHexString(Dot1dTpFdbTableEntry.FDB_ADDRESS); int fdbport = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_PORT); if (fdbport == 0) { if (log.isDebugEnabled()) log.debug("populateBridge: macaddress " + curMacAddress + " learned on invalid port " + fdbport + " . Skipping"); continue; } int curfdbstatus = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_STATUS); if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_LEARNED) { m_node.addMacAddress(fdbport, curMacAddress, vlanindex); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found learned mac address " + curMacAddress + " on bridge port " + fdbport + " for VLAN " + snmpVlanColl.getVlanIndex()); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_SELF) { m_node.addBridgeIdentifier(curMacAddress); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + curMacAddress + " for VLAN " + snmpVlanColl.getVlanIndex() + " and bridge port " + fdbport); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_INVALID) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has INVALID status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_MGMT) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has MGMT status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_OTHER) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has OTHER status on port " + fdbport + " . Skipping"); continue; } } } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_SNMPPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("snmpphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from snmpinterface db table"); } //now adding bridge identifier mac addresses of switch from snmpinterface stmt = dbConn.prepareStatement(SQL_GET_ATPHYSADDR_SNMPINTERFACE); stmt.setInt(1, m_node.getNodeId()); rs = stmt.executeQuery(); while (rs.next()) { String macaddr = rs.getString("atphysaddr"); if (macaddr == null) continue; m_node.addBridgeIdentifier(macaddr); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + macaddr + " from atinterface db table"); } } } } } int i = 0; stmt = dbConn.prepareStatement(SQL_UPDATE_ATINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_IPROUTEINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPNODE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); stmt = dbConn.prepareStatement(SQL_UPDATE_STPINTERFACE); stmt.setInt(1, m_node.getNodeId()); stmt.setTimestamp(2, now); i = stmt.executeUpdate(); if (log.isDebugEnabled()) log.debug("store: SQL statement " + stmt.toString() + ". " + i + " rows UPDATED for nodeid " + m_node.getNodeId() + "."); stmt.close(); } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/f3e13aa5f29f79fb74c5975bb7cf59814d4d4cb1/DbEventWriter.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1707,
10461,
1291,
2532,
12,
1952,
30795,
16,
8159,
2037,
13,
1216,
6483,
16,
1082,
202,
4874,
29776,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
10461,
1291,
2532,
12,
1952,
30795,
16,
8159,
2037,
13,
1216,
6483,
16,
1082,
202,
4874,
29776,
288,
202,
202,
4457,
613,
273,
4884,
4457,
18,
588,
1442,
12,
588,
... |
"/AssetReportPlugin: unable to process " + task.getUID() + " - task already has a PlanElement - " + task.getPlanElement() + ".\n"); | "/AssetReportPlugin: unable to process " + task.getUID() + " - task already has a PlanElement - " + task.getPlanElement() + ".\n"); | private void allocate(Task task) { if (task.getPlanElement() != null) { myLogger.error(getMessageAddress().toString()+ "/AssetReportPlugin: unable to process " + task.getUID() + " - task already has a PlanElement - " + task.getPlanElement() + ".\n"); return; } Asset reportingAsset = task.getDirectObject(); if (!reportingAsset.getClusterPG().getMessageAddress().equals(getMessageAddress())) { allocateRemote(task); } else { allocateLocal(task); } } | 10687 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10687/fd3fa415188580721c5277ccab46c14586e61074/AssetReportPlugin.java/clean/planning/src/org/cougaar/planning/plugin/asset/AssetReportPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10101,
12,
2174,
1562,
13,
288,
565,
309,
261,
4146,
18,
588,
5365,
1046,
1435,
480,
446,
13,
288,
1377,
3399,
3328,
18,
1636,
12,
24906,
1887,
7675,
10492,
1435,
15,
1082,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10101,
12,
2174,
1562,
13,
288,
565,
309,
261,
4146,
18,
588,
5365,
1046,
1435,
480,
446,
13,
288,
1377,
3399,
3328,
18,
1636,
12,
24906,
1887,
7675,
10492,
1435,
15,
1082,
3... |
throws FileNotFoundException, JasperException, IOException { | throws FileNotFoundException, JasperException, IOException { | public Node.Nodes parseTagFileDirectives(String inFileName) throws FileNotFoundException, JasperException, IOException { boolean isTagFileSave = isTagFile; boolean directiveOnlySave = directiveOnly; isTagFile = true; directiveOnly = true; Node.Nodes page = doParse(inFileName, null, ctxt.getTagFileJarUrl(inFileName)); directiveOnly = directiveOnlySave; isTagFile = isTagFileSave; return page; } | 26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/6742cb8e2facefed0a144762d397571cc17eb04d/ParserController.java/clean/java/org/apache/jasper/compiler/ParserController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
18,
3205,
1109,
1805,
812,
25343,
12,
780,
316,
4771,
13,
202,
3639,
1216,
13707,
16,
804,
345,
457,
503,
16,
1860,
288,
3639,
1250,
353,
1805,
812,
4755,
273,
353,
1805,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18,
3205,
1109,
1805,
812,
25343,
12,
780,
316,
4771,
13,
202,
3639,
1216,
13707,
16,
804,
345,
457,
503,
16,
1860,
288,
3639,
1250,
353,
1805,
812,
4755,
273,
353,
1805,
81... |
return path.lastSegment() + " - " + info.getPid(); | return path.lastSegment() + " - " + info.getPid(); | private int getProcessID() throws CoreException { final Shell shell = LaunchUIPlugin.getShell(); final int pid[] = { -1 }; if (shell == null) { abort("No Shell availible in Launch", null, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); } Display display = shell.getDisplay(); display.syncExec(new Runnable() { public void run() { ILabelProvider provider = new LabelProvider() { /* (non-Javadoc) * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object) */ public String getText(Object element) { IProcessInfo info = (IProcessInfo)element; IPath path = new Path(info.getName()); return path.lastSegment() + " - " + info.getPid(); } /* (non-Javadoc) * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { return LaunchImages.get(LaunchImages.IMG_OBJS_EXEC); } }; ILabelProvider qprovider = new LabelProvider() { public String getText(Object element) { IProcessInfo info = (IProcessInfo) element; return info.getName(); } /* (non-Javadoc) * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object) */ public Image getImage(Object element) { return LaunchImages.get(LaunchImages.IMG_OBJS_EXEC); } }; TwoPaneElementSelector dialog = new TwoPaneElementSelector(shell, provider, qprovider); dialog.setTitle("Select Process"); dialog.setMessage("Select a Process to attach debugger to:"); IProcessList plist = CCorePlugin.getDefault().getProcessList(); if (plist == null) { MessageDialog.openError(shell, "CDT Launch Error", "Current platform does not support listing processes"); return; } dialog.setElements(plist.getProcessList()); if (dialog.open() == ElementListSelectionDialog.OK) { IProcessInfo info = (IProcessInfo) dialog.getFirstResult(); if ( info != null ) { pid[0] = info.getPid(); } } } }); return pid[0]; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e18d7494d05c2df37d92c9fd60d82ec6edb98ab2/LocalCLaunchConfigurationDelegate.java/buggy/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
18758,
734,
1435,
1216,
30015,
288,
202,
202,
6385,
19433,
5972,
273,
14643,
5370,
3773,
18,
588,
13220,
5621,
202,
202,
6385,
509,
4231,
8526,
273,
288,
300,
21,
289,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
18758,
734,
1435,
1216,
30015,
288,
202,
202,
6385,
19433,
5972,
273,
14643,
5370,
3773,
18,
588,
13220,
5621,
202,
202,
6385,
509,
4231,
8526,
273,
288,
300,
21,
289,
31,... |
public TreeHomeAction(int direction, String name) throws NotImplementedException | public TreeHomeAction(int dir, String name) | public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4902,
8684,
1803,
12,
474,
4068,
16,
514,
508,
13,
565,
1216,
10051,
503,
565,
288,
1377,
368,
2660,
30,
10886,
333,
8214,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4902,
8684,
1803,
12,
474,
4068,
16,
514,
508,
13,
565,
1216,
10051,
503,
565,
288,
1377,
368,
2660,
30,
10886,
333,
8214,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
} else { return name.parseForArrayDimensionality(); | public final int getDimensionality() { if (isArrayType()) { if (isWordArrayType() || isCodeArrayType()) { return 1; } else { return name.parseForArrayDimensionality(); } } else if (isWordType() || isCodeType()) { return -1; } else if (isClassType()) { return 0; } else { return -1; } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/df391e2eb0a2c460dc256c55a70b5421264fa61f/VM_TypeReference.java/clean/rvm/src/vm/classLoader/VM_TypeReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
509,
20283,
7919,
1435,
288,
565,
309,
261,
291,
27182,
10756,
288,
1377,
309,
261,
291,
3944,
27182,
1435,
747,
353,
1085,
27182,
10756,
288,
202,
2463,
404,
31,
1377,
289,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
509,
20283,
7919,
1435,
288,
565,
309,
261,
291,
27182,
10756,
288,
1377,
309,
261,
291,
3944,
27182,
1435,
747,
353,
1085,
27182,
10756,
288,
202,
2463,
404,
31,
1377,
289,
46... | |
this.contextPath = req.getContextPath(); | this.context = context; this.contextPath = "/gridsphere"; | public PortletURLImpl(HttpServletRequest req, HttpServletResponse res) { this.store = new HashMap(); this.res = res; this.req = req; this.contextPath = req.getContextPath(); this.isSecure = req.isSecure(); store.put(SportletProperties.COMPONENT_ID, (String) req.getAttribute(SportletProperties.COMPONENT_ID)); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/4567cbac543fd58edcd8132af8c94ba260f72ffd/PortletURLImpl.java/clean/src/org/gridlab/gridsphere/portlet/jsrimpl/PortletURLImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21305,
1785,
2828,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
288,
3639,
333,
18,
2233,
273,
394,
4317,
5621,
3639,
333,
18,
455,
273,
400,
31,
3639,
333,
18,
3658,
273,
1111,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21305,
1785,
2828,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
288,
3639,
333,
18,
2233,
273,
394,
4317,
5621,
3639,
333,
18,
455,
273,
400,
31,
3639,
333,
18,
3658,
273,
1111,
31,... |
char[] subarray = new char[newSize]; | Object[] subarray = (Object[]) Array.newInstance(type, newSize); | public static char[] subarray(char[] array, int startIndexInclusive, int endIndexExclusive) { if (array == null) { return null; } if (startIndexInclusive < 0) { startIndexInclusive = 0; } if (endIndexExclusive > array.length) { endIndexExclusive = array.length; } int newSize = endIndexExclusive - startIndexInclusive; if (newSize <= 0) { return EMPTY_CHAR_ARRAY; } char[] subarray = new char[newSize]; System.arraycopy(array, startIndexInclusive, subarray, 0, newSize); return subarray; } | 7060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7060/00d021f30e0c2202c3a942b0f93cc9d9285010fc/ArrayUtils.java/buggy/src/java/org/apache/commons/lang/ArrayUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
8526,
720,
1126,
12,
3001,
8526,
526,
16,
509,
10588,
19146,
16,
509,
13818,
17075,
13,
288,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
8526,
720,
1126,
12,
3001,
8526,
526,
16,
509,
10588,
19146,
16,
509,
13818,
17075,
13,
288,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
363... |
if ((start.loadInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { start = start.plus(BYTES_IN_INT); if ((start.loadInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { | if ((start.loadWord().toInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { start = start.plus(BYTES_IN_WORD); if ((start.loadWord().toInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { | public static ObjectReference getObjectFromStartAddress(Address start) { if ((start.loadInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { start = start.plus(BYTES_IN_INT); if ((start.loadInt() & ALIGNMENT_MASK) == ALIGNMENT_MASK) { return ObjectReference.nullReference(); } } return start.plus(OBJECT_REF_OFFSET).toObjectReference(); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4429cbe87e85f0cbda3ba9359631fca3b8a295ea/VM_JavaHeader.java/clean/rvm/src/vm/objectModel/default/VM_JavaHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
31321,
6455,
1265,
1685,
1887,
12,
1887,
787,
13,
288,
565,
309,
14015,
1937,
18,
945,
1702,
1435,
473,
21892,
3212,
67,
11704,
13,
422,
21892,
3212,
67,
11704,
13,
288,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31321,
6455,
1265,
1685,
1887,
12,
1887,
787,
13,
288,
565,
309,
14015,
1937,
18,
945,
1702,
1435,
473,
21892,
3212,
67,
11704,
13,
422,
21892,
3212,
67,
11704,
13,
288,
1377,
... |
logger.log(Level.FINE, "The argList contains non-String elements."); | private void hackyStatValidate() throws IllegalEventParameterException { logger.entering(this.getClass().getName(), "hackyStatValidate"); logger.log(ECGLevel.PACKET, this.toString()); List<String> entryList = new ArrayList<String>(); List argList = this.getArgList(); entryList.add(Long.toString(this.getTimeStamp().getTime())); for (Object elem : argList) { if (elem instanceof String) { String str = (String) elem; entryList.add(str); } else { logger.log(Level.FINE, "The event is not valid in repspect to validity level: " + VALIDATION_LEVEL.HACKYSTAT); logger.log(Level.FINE, "The argList contains non-String elements."); logger.exiting(this.getClass().getName(), "hackyStatValidate"); throw new IllegalEventParameterException( "The argList contains non-String elements."); } } try { SensorDataEntryFactory .getEntry(this.getSensorDataType(), entryList); } catch (SensorDataTypeException e) { logger.log(Level.FINE, "The event is not valid in respect to validity level: " + VALIDATION_LEVEL.HACKYSTAT); logger.log(Level.FINE, e.getMessage()); logger.exiting(this.getClass().getName(), "hackyStatValidate"); throw new IllegalEventParameterException(e.getMessage()); } } | 239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/12e141dfe545f266ed4747df1928e06153238621/ValidEventPacket.java/buggy/lab/ECG_Lab/src/org/electrocodeogram/event/ValidEventPacket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11769,
93,
5000,
4270,
1435,
1216,
2141,
1133,
14819,
288,
3639,
1194,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
76,
484,
93,
5000,
4270,
8863,
3639,
1194,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11769,
93,
5000,
4270,
1435,
1216,
2141,
1133,
14819,
288,
3639,
1194,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
76,
484,
93,
5000,
4270,
8863,
3639,
1194,... | |
} | } | public InactiveLocalBodyStrategy() { } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/625cd3611da648072e66b62b74a66e1548e31628/BodyImpl.java/clean/src/org/objectweb/proactive/core/body/BodyImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
657,
3535,
2042,
2250,
4525,
1435,
288,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
657,
3535,
2042,
2250,
4525,
1435,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public void testClone_IBondOrderSum() { | public void testClone_IBondOrderSum() throws Exception { | public void testClone_IBondOrderSum() { IAtomType at = builder.newAtomType("C"); at.setBondOrderSum(1.0); IAtomType clone = (IAtomType)at.clone(); at.setBondOrderSum(2.0); assertEquals(1.0, clone.getBondOrderSum(), 0.001); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b55a607674535cd8492e3539d8f3dce16fc3b92/AtomTypeTest.java/clean/src/org/openscience/cdk/test/AtomTypeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10930,
67,
45,
9807,
2448,
3495,
1435,
1216,
1185,
288,
3639,
8831,
559,
622,
273,
2089,
18,
2704,
3641,
559,
2932,
39,
8863,
3639,
622,
18,
542,
9807,
2448,
3495,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10930,
67,
45,
9807,
2448,
3495,
1435,
1216,
1185,
288,
3639,
8831,
559,
622,
273,
2089,
18,
2704,
3641,
559,
2932,
39,
8863,
3639,
622,
18,
542,
9807,
2448,
3495,
12,
... |
peerField.set(this, ((EmbeddedWindowSupport) tk).createEmbeddedWindow (this)); | peerField.set(this, tk.createEmbeddedWindow (this)); | public void addNotify() { Toolkit tk = getToolkit(); if (! (tk instanceof EmbeddedWindowSupport)) throw new UnsupportedOperationException ("Embedded windows are not supported by the current peers: " + tk.getClass()); // Circumvent the package-privateness of the AWT internal // java.awt.Component.peer member variable. try { Field peerField = Component.class.getDeclaredField("peer"); AccessController.doPrivileged(new SetAccessibleAction(peerField)); peerField.set(this, ((EmbeddedWindowSupport) tk).createEmbeddedWindow (this)); } catch (IllegalAccessException e) { // This should never happen. } catch (NoSuchFieldException e) { // This should never happen. } super.addNotify(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/EmbeddedWindow.java/clean/core/src/classpath/gnu/gnu/java/awt/EmbeddedWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
9168,
1435,
225,
288,
565,
13288,
8691,
13030,
273,
336,
6364,
8691,
5621,
565,
309,
16051,
261,
16099,
1276,
21829,
3829,
6289,
3719,
1377,
604,
394,
13172,
3639,
7566,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
9168,
1435,
225,
288,
565,
13288,
8691,
13030,
273,
336,
6364,
8691,
5621,
565,
309,
16051,
261,
16099,
1276,
21829,
3829,
6289,
3719,
1377,
604,
394,
13172,
3639,
7566,
149... |
int toDteFilterOperator( String modelOpr ) | public static int toDteFilterOperator( String modelOpr ) | int toDteFilterOperator( String modelOpr ) { if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_EQ ) ) return IConditionalExpression.OP_EQ; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_NE ) ) return IConditionalExpression.OP_NE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_LT ) ) return IConditionalExpression.OP_LT; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_LE ) ) return IConditionalExpression.OP_LE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_GE ) ) return IConditionalExpression.OP_GE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_GT ) ) return IConditionalExpression.OP_GT; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_BETWEEN ) ) return IConditionalExpression.OP_BETWEEN; if ( modelOpr .equals( DesignChoiceConstants.FILTER_OPERATOR_NOT_BETWEEN ) ) return IConditionalExpression.OP_NOT_BETWEEN; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_NULL ) ) return IConditionalExpression.OP_NULL; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_NOT_NULL ) ) return IConditionalExpression.OP_NOT_NULL; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_TRUE ) ) return IConditionalExpression.OP_TRUE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_FALSE ) ) return IConditionalExpression.OP_FALSE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_LIKE ) ) return IConditionalExpression.OP_LIKE; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_TOP_N ) ) return IConditionalExpression.OP_TOP_N; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_BOTTOM_N ) ) return IConditionalExpression.OP_BOTTOM_N; if ( modelOpr .equals( DesignChoiceConstants.FILTER_OPERATOR_TOP_PERCENT ) ) return IConditionalExpression.OP_TOP_PERCENT; if ( modelOpr .equals( DesignChoiceConstants.FILTER_OPERATOR_BOTTOM_PERCENT ) ) return IConditionalExpression.OP_BOTTOM_PERCENT; if ( modelOpr.equals( DesignChoiceConstants.FILTER_OPERATOR_ANY ) ) return IConditionalExpression.OP_ANY; assert false; // unknown filter operator return IConditionalExpression.OP_NONE; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/fc8d300db77dfd9491136c145155ccaa029f1da9/ModelDteApiAdapter.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
358,
40,
736,
1586,
5592,
12,
514,
938,
51,
683,
262,
202,
95,
202,
202,
430,
261,
938,
51,
683,
18,
14963,
12,
29703,
10538,
2918,
18,
11126,
67,
26110,
67,
27247,
262,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
358,
40,
736,
1586,
5592,
12,
514,
938,
51,
683,
262,
202,
95,
202,
202,
430,
261,
938,
51,
683,
18,
14963,
12,
29703,
10538,
2918,
18,
11126,
67,
26110,
67,
27247,
262,
262... |
weapon.minimumRange = 0; | weapon.minimumRange = WEAPON_NA; | public static WeaponType createISNarc() { WeaponType weapon = new WeaponType(); weapon.name = "Narc"; weapon.setInternalName("ISNarcBeacon"); weapon.addLookupName("IS Narc Beacon"); weapon.addLookupName("IS Narc Missile Beacon"); weapon.heat = 0; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 1; weapon.ammoType = AmmoType.T_NARC; weapon.minimumRange = 0; weapon.shortRange = 3; weapon.mediumRange = 6; weapon.longRange = 9; weapon.tonnage = 3.0f; weapon.criticals = 2; weapon.bv = 30; weapon.flags |= F_NO_FIRES; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/401ca1b195eaf75aa5b772970fd108eac60e1389/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5127,
50,
11828,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
50,
11828,
14432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
5127,
50,
11828,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
529,
273,
315,
50,
11828,
14432,
... |
String[] repository_ids = | String[] repository_ids = | private void write_value_internal (final java.io.Serializable value, final String repository_id) { valueMap.put (value, new Integer(pos)); if (value.getClass() == String.class) { // special handling for strings required according to spec String[] repository_ids = (repository_id == null) ? null : new String[]{ repository_id }; write_value_header( repository_ids ); write_wstring((String)value); } else if (value instanceof org.omg.CORBA.portable.StreamableValue) { org.omg.CORBA.portable.StreamableValue streamable = (org.omg.CORBA.portable.StreamableValue)value; write_value_header( streamable._truncatable_ids() ); ((org.omg.CORBA.portable.StreamableValue)value)._write(this);// if( streamable._truncatable_ids().length() > 1 ) // truncatable -> chunked// end_chunk(); } else { String[] repository_ids = (repository_id == null) ? null : new String[]{ repository_id }; String codebase = ValueHandler.getCodebase(value.getClass()); write_value_header( repository_ids, codebase ); ValueHandler.writeValue (this, value); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/814ceec0c432f5f91851da7a7b577943754681bf/CDROutputStream.java/clean/src/org/jacorb/orb/CDROutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
67,
1132,
67,
7236,
261,
6385,
2252,
18,
1594,
18,
21682,
460,
16,
4766,
4202,
727,
514,
3352,
67,
350,
13,
377,
288,
3639,
460,
863,
18,
458,
261,
1132,
16,
394,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1132,
67,
7236,
261,
6385,
2252,
18,
1594,
18,
21682,
460,
16,
4766,
4202,
727,
514,
3352,
67,
350,
13,
377,
288,
3639,
460,
863,
18,
458,
261,
1132,
16,
394,
214... |
popUpActions.size() - popupAddOffset); | popUpActions.size() - getPopupAddOffset()); | public Vector getPopUpActions(MouseEvent me) { Vector popUpActions = super.getPopUpActions(me); // Show ... ArgoJMenu showMenu = new ArgoJMenu("menu.popup.show"); /* Only show the menuitems if they make sense: */ Editor ce = Globals.curEditor(); Vector figs = ce.getSelectionManager().getFigs(); Iterator i = figs.iterator(); boolean sOn = false; boolean sOff = false; boolean vOn = false; boolean vOff = false; while (i.hasNext()) { Fig f = (Fig) i.next(); if (f instanceof StereotypeContainer) { boolean v = ((StereotypeContainer) f).isStereotypeVisible(); if (v) sOn = true; else sOff = true; v = ((VisibilityContainer) f).isVisibilityVisible(); if (v) vOn = true; else vOff = true; } } if (sOn) showMenu.add(new UMLAction( Translator.localize("menu.popup.show.hide-stereotype"), UMLAction.NO_ICON) { /** * @see java.awt.event.ActionListener#actionPerformed( * java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent ae) { doStereotype(false); } }); if (sOff) showMenu.add(new UMLAction( Translator.localize("menu.popup.show.show-stereotype"), UMLAction.NO_ICON) { /** * @see java.awt.event.ActionListener#actionPerformed( * java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent ae) { doStereotype(true); } }); if (vOn) showMenu.add(new UMLAction( Translator.localize("menu.popup.show.hide-visibility"), UMLAction.NO_ICON) { /** * @see java.awt.event.ActionListener#actionPerformed( * java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent ae) { doVisibility(false); } }); if (vOff) showMenu.add(new UMLAction( Translator.localize("menu.popup.show.show-visibility"), UMLAction.NO_ICON) { /** * @see java.awt.event.ActionListener#actionPerformed( * java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent ae) { doVisibility(true); } }); popUpActions.insertElementAt(showMenu, popUpActions.size() - popupAddOffset); // Modifier ... popUpActions.insertElementAt(buildModifierPopUp(ABSTRACT | LEAF | ROOT), popUpActions.size() - popupAddOffset); // Visibility ... popUpActions.insertElementAt(buildVisibilityPopUp(), popUpActions.size() - popupAddOffset); return popUpActions; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/bf39e2e9c35efb3ab501ba04807942833884f678/FigPackage.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ui/FigPackage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
1689,
556,
1211,
6100,
12,
9186,
1133,
1791,
13,
288,
3639,
5589,
1843,
1211,
6100,
273,
2240,
18,
588,
7049,
1211,
6100,
12,
3501,
1769,
3639,
368,
9674,
1372,
3639,
1201,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
1689,
556,
1211,
6100,
12,
9186,
1133,
1791,
13,
288,
3639,
5589,
1843,
1211,
6100,
273,
2240,
18,
588,
7049,
1211,
6100,
12,
3501,
1769,
3639,
368,
9674,
1372,
3639,
1201,
32... |
asm.emitSTW(KLUDGE_TI_REG, VM_Entrypoints.JNIRefsTopField.getOffsetAsInt(), S0); | asm.emitSTWoffset(KLUDGE_TI_REG, S0, VM_Entrypoints.JNIRefsTopField.getOffset()); | private static void storeParameters(VM_Assembler asm, int frameSize, VM_Method method, VM_Class klass) { int nextOSArgReg, nextOSArgFloatReg, nextVMArgReg, nextVMArgFloatReg; // offset to the spill area in the callee (OS frame): int spillOffsetOS; if (VM.BuildForPowerOpenABI || VM.BuildForMachOABI) { // 1st spill = JNIEnv, 2nd spill = class spillOffsetOS = NATIVE_FRAME_HEADER_SIZE + 2*BYTES_IN_STACKSLOT; } else if (VM.BuildForSVR4ABI) { spillOffsetOS = NATIVE_FRAME_HEADER_SIZE; } else { if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } // offset to the spill area in the caller (RVM frame), relative to the callee's FP int spillOffsetVM = frameSize + STACKFRAME_HEADER_SIZE; // does NOT include implicit this or class ptr VM_TypeReference[] types = method.getParameterTypes(); // Set up the Reference table for GC // PR <- JREFS array base asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIRefsField.getOffsetAsInt(), S0); // TI <- JREFS current top asm.emitLInt(KLUDGE_TI_REG, VM_Entrypoints.JNIRefsTopField.getOffsetAsInt(), S0); // JREFS offset for current TOP asm.emitADD(KLUDGE_TI_REG, PROCESSOR_REGISTER, KLUDGE_TI_REG); // convert into address // TODO - count number of refs // TODO - emit overflow check for JNIRefs array // start a new JNIRefs frame on each transition from Java to native C // push current SavedFP ptr onto top of JNIRefs stack (use available S1 reg as a temp) // and make current TOP the new savedFP // asm.emitLInt (S1, VM_Entrypoints.JNIRefsSavedFPField.getOffsetAsInt(), S0); asm.emitSTWU (S1, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // push prev frame ptr onto JNIRefs array asm.emitSUBFC(S1, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset for new TOP asm.emitSTW (S1, VM_Entrypoints.JNIRefsSavedFPField.getOffsetAsInt(), S0); // save new TOP as new frame ptr in JNIEnv // for static methods: caller has placed args in r3,r4,... // for non-static methods:"this" ptr is in r3, and args start in r4,r5,... // // for static methods: for nonstatic methods: // Java caller OS callee Java caller OS callee // ----------- ---------- ----------- ---------- // spill = arg11 -> new spill spill = arg11 -> new spill // spill = arg10 -> new spill spill = arg10 -> new spill // spill = arg9 -> new spill // spill = arg9 -> new spill // spill = arg8 -> new spill spill = arg8 -> new spill // R10 = arg7 -> new spill spill = arg7 -> new spill // R9 = arg6 -> new spill R10 = arg6 -> new spill // // R8 = arg5 -> R10 R9 = arg5 -> R10 // R7 = arg4 -> R9 R8 = arg4 -> R9 // R6 = arg3 -> R8 R7 = arg3 -> R8 // R5 = arg2 -> R7 R6 = arg2 -> R7 // R4 = arg1 -> R6 R5 = arg1 -> R6 // R3 = arg0 -> R5 R4 = arg0 -> R5 // R4 = class R3 = this -> R4 // R3 = JNIenv R3 = JNIenv // nextOSArgFloatReg = FIRST_OS_PARAMETER_FPR; nextVMArgFloatReg = FIRST_VOLATILE_FPR; nextOSArgReg = FIRST_OS_PARAMETER_GPR + 2; // 1st reg = JNIEnv, 2nd reg = class/this if (method.isStatic()) { nextVMArgReg = FIRST_VOLATILE_GPR; } else { nextVMArgReg = FIRST_VOLATILE_GPR+1; // 1st reg = this, to be processed separately } // The loop below assumes the following relationship: if (VM.VerifyAssertions) VM._assert(FIRST_OS_PARAMETER_FPR==FIRST_VOLATILE_FPR); if (VM.VerifyAssertions) VM._assert(LAST_OS_PARAMETER_FPR<=LAST_VOLATILE_FPR); if (VM.VerifyAssertions) VM._assert(FIRST_OS_PARAMETER_GPR==FIRST_VOLATILE_GPR); if (VM.VerifyAssertions) VM._assert(LAST_OS_PARAMETER_GPR<=LAST_VOLATILE_GPR); generateParameterPassingCode(asm, types, nextVMArgReg, nextVMArgFloatReg, spillOffsetVM, nextOSArgReg, nextOSArgFloatReg, spillOffsetOS ); // Now add the 2 JNI parameters: JNI environment and Class or "this" object // if static method, append ref for class, else append ref for "this" // and pass offset in JNIRefs array in r4 (as second arg to called native code) int SECOND_OS_PARAMETER_GPR = FIRST_OS_PARAMETER_GPR+1; if (method.isStatic()) { klass.getClassForType(); // ensure the Java class object is created // ASSMPTION: JTOC saved above in JNIEnv is still valid, // used by following emitLAddrToc asm.emitLAddrToc(SECOND_OS_PARAMETER_GPR, klass.getTibOffset()); // r4 <= TIB asm.emitLAddr(SECOND_OS_PARAMETER_GPR, TIB_TYPE_INDEX, SECOND_OS_PARAMETER_GPR); // r4 <= VM_Type asm.emitLAddr(SECOND_OS_PARAMETER_GPR, VM_Entrypoints.classForTypeField.getOffsetAsInt(), SECOND_OS_PARAMETER_GPR); // r4 <- java.lang.Class asm.emitSTAddrU (SECOND_OS_PARAMETER_GPR, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append class ptr to end of JNIRefs array asm.emitSUBFC(SECOND_OS_PARAMETER_GPR, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes } else { asm.emitSTAddrU(T0, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append this ptr to end of JNIRefs array asm.emitSUBFC(SECOND_OS_PARAMETER_GPR, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes } // store the new JNIRefs array TOP back into JNIEnv asm.emitSUBFC(KLUDGE_TI_REG, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset for the current TOP asm.emitSTW(KLUDGE_TI_REG, VM_Entrypoints.JNIRefsTopField.getOffsetAsInt(), S0); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/607ce8428a60a1e2ea6aeee16fe403ddf08d4b83/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1707,
2402,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
509,
2623,
1225,
16,
4766,
4202,
8251,
67,
1305,
707,
16,
8251,
67,
797,
7352,
13,
288,
565,
509,
1024,
4618,
4117,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
1707,
2402,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
509,
2623,
1225,
16,
4766,
4202,
8251,
67,
1305,
707,
16,
8251,
67,
797,
7352,
13,
288,
565,
509,
1024,
4618,
4117,... |
if (getChannel() != null) getChannel().close (); | if (getChannel() != null) getChannel().close(); | public void close () throws IOException { impl.close (); if (getChannel() != null) getChannel().close (); closed = true; } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/dcbb69e84e9c71073608efebeefaa86de4bd97d3/ServerSocket.java/buggy/libjava/java/net/ServerSocket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1746,
1832,
1216,
1860,
225,
288,
565,
9380,
18,
4412,
261,
1769,
565,
309,
261,
588,
2909,
1435,
480,
446,
13,
1377,
16454,
7675,
4412,
261,
1769,
3639,
4375,
273,
638,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
1832,
1216,
1860,
225,
288,
565,
9380,
18,
4412,
261,
1769,
565,
309,
261,
588,
2909,
1435,
480,
446,
13,
1377,
16454,
7675,
4412,
261,
1769,
3639,
4375,
273,
638,
31,
... |
public void parse(URL url) throws IOException { if (url != null) parse(new URLMetaDataIterator(url)); | public void parse(String rsrc) throws IOException { if (rsrc != null) parse(new ResourceMetaDataIterator(rsrc, _loader)); | public void parse(URL url) throws IOException { if (url != null) parse(new URLMetaDataIterator(url)); } | 47053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47053/ca83f07b459322422b7916f04307b81a553ca193/XMLMetaDataParser.java/buggy/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
1785,
880,
13,
1216,
1860,
288,
3639,
309,
261,
718,
480,
446,
13,
5411,
1109,
12,
2704,
1976,
6998,
3198,
12,
718,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
1785,
880,
13,
1216,
1860,
288,
3639,
309,
261,
718,
480,
446,
13,
5411,
1109,
12,
2704,
1976,
6998,
3198,
12,
718,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100... |
return (Expression) steps.getLast(); | return (Expression) steps.get(steps.size() - 1); | public Expression getLastExpression() { if (steps.size() == 0) return null; return (Expression) steps.getLast(); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/923702659405256598e89b59ccd7b1265023c739/PathExpr.java/clean/src/org/exist/xquery/PathExpr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5371,
7595,
2300,
1435,
288,
3639,
309,
261,
8986,
18,
1467,
1435,
422,
374,
13,
327,
446,
31,
3639,
327,
261,
2300,
13,
6075,
18,
588,
12,
8986,
18,
1467,
1435,
300,
404,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5371,
7595,
2300,
1435,
288,
3639,
309,
261,
8986,
18,
1467,
1435,
422,
374,
13,
327,
446,
31,
3639,
327,
261,
2300,
13,
6075,
18,
588,
12,
8986,
18,
1467,
1435,
300,
404,
1769,
... |
if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( PieChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); } | currentChart.setSampleData( helperModel.getSampleData( ) ); | private Chart getConvertedChart( Chart currentChart, String sNewSubType, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); // Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( currentChart instanceof ChartWithAxes ) { // Create a new instance of the correct type and set initial // properties currentChart = DialChartImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ).isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( PieChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); } currentChart.setScript( helperModel.getScript( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getGridColumnCount( ) > 0 ) { currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); } else { currentChart.setGridColumnCount( 1 ); } // Copy series definitions from old chart ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ); Vector vOSD = new Vector( ); // Only convert series in primary orthogonal axis. Axis primaryOrthogonalAxis = ( (ChartWithAxes) helperModel ).getPrimaryOrthogonalAxis( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ); EList osd = primaryOrthogonalAxis.getSeriesDefinitions( ); for ( int j = 0; j < osd.size( ); j++ ) { SeriesDefinition sd = (SeriesDefinition) osd.get( j ); Series series = sd.getDesignTimeSeries( ); sd.getSeries( ).clear( ); sd.getSeries( ).add( getConvertedSeries( series, j ) ); vOSD.add( sd ); } ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).clear( ); ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).addAll( vOSD ); currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } else if ( currentChart instanceof ChartWithoutAxes ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSubType( sNewSubType ); ( (DialChart) currentChart ).setDialSuperimposition( sNewSubType.equals( SUPERIMPOSED_SUBTYPE_LITERAL ) ); if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } } else { // Create a new instance of the correct type and set initial // properties currentChart = DialChartImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (DialChart) currentChart ).setDialSuperimposition( sNewSubType.equals( SUPERIMPOSED_SUBTYPE_LITERAL ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ) .isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } // Clear existing series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .clear( ); // Copy series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Update the series EList seriesdefinitions = ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } } else { return null; } return currentChart; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/51342f37efb819d66eb6bfa56ebaba4fb7f4fa8b/MeterChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/MeterChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
5... |
if(i+1 >= len) { throw new LDAPException("Missing right paren", | if(i >= len) throw new LDAPException("Unexpected end of filter", | public char peekChar() throws LDAPException { if(i+1 >= len) { throw new LDAPException("Missing right paren", LDAPException.FILTER_ERROR); } return filter.charAt(i+1); } | 9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/b2074950b02e91cf57c7b9f7f2ed1f4404dbf958/RfcFilter.java/clean/com/novell/ldap/rfc2251/RfcFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1149,
8032,
2156,
1435,
1377,
1216,
11916,
503,
282,
288,
1377,
309,
12,
77,
15,
21,
1545,
562,
13,
288,
540,
604,
394,
11916,
503,
2932,
4841,
2145,
22146,
3113,
4766,
11916,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
8032,
2156,
1435,
1377,
1216,
11916,
503,
282,
288,
1377,
309,
12,
77,
15,
21,
1545,
562,
13,
288,
540,
604,
394,
11916,
503,
2932,
4841,
2145,
22146,
3113,
4766,
11916,
503,
... |
if (x != piece.x || y != piece.y) { mpiece = movePiece(user, piece, x, y); if (mpiece == null) { | if (x != unit.x || y != unit.y) { munit = moveUnit(user, unit, x, y); if (munit == null) { | public void move (ClientObject caller, int pieceId, short x, short y, int targetId, BangService.InvocationListener il) throws InvocationException { BangUserObject user = (BangUserObject)caller; int pidx = _bangobj.getPlayerIndex(user.username); Piece piece = (Piece)_bangobj.pieces.get(pieceId); if (piece == null || piece.owner != pidx) { log.info("Rejecting move request [who=" + user.who() + ", piece=" + piece + "]."); return; } if (piece.ticksUntilMovable(_bangobj.tick) > 0) { log.info("Rejecting premature move/fire request " + "[who=" + user.who() + ", piece=" + piece.info() + "]."); return; } Piece target = (Piece)_bangobj.pieces.get(targetId); Piece mpiece = null; try { _bangobj.startTransaction(); // if they specified a non-NOOP move, execute it if (x != piece.x || y != piece.y) { mpiece = movePiece(user, piece, x, y); if (mpiece == null) { throw new InvocationException(MOVE_BLOCKED); } } // if they specified a target, shoot at it if (target != null) { // make sure the target is valid if (!piece.validTarget(target)) { log.info("Target not valid " + target + "."); // target already dead or something return; } // make sure the target is still within range _attacks.clear(); _bangobj.board.computeAttacks( piece.getFireDistance(), x, y, _attacks); if (!_attacks.contains(target.x, target.y)) { throw new InvocationException(TARGET_MOVED); } ShotEffect effect = piece.shoot(target); effect.prepare(_bangobj, _damage); _bangobj.setEffect(effect); recordDamage(user, _damage); // if they did not move in this same action, we need to // set their last acted tick if (mpiece == null) { piece.lastActed = _bangobj.tick; _bangobj.updatePieces(piece); } } // finally update our game statistics _bangobj.updateStats(); } finally { _bangobj.commitTransaction(); } } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/b1f75fcac699c104a2da8deec1b178c7391f6384/BangManager.java/clean/src/java/com/threerings/bang/game/server/BangManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3635,
261,
1227,
921,
4894,
16,
509,
11151,
548,
16,
3025,
619,
16,
3025,
677,
16,
8227,
509,
27729,
16,
605,
539,
1179,
18,
9267,
2223,
14254,
13,
3639,
1216,
11298,
503,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3635,
261,
1227,
921,
4894,
16,
509,
11151,
548,
16,
3025,
619,
16,
3025,
677,
16,
8227,
509,
27729,
16,
605,
539,
1179,
18,
9267,
2223,
14254,
13,
3639,
1216,
11298,
503,
56... |
e.printStackTrace(); | t.printStackTrace(); | void wrapExecute(NodeInfo origin, Node thisNode) { setOrigin( origin ); setThisNode( thisNode ); boolean hadError = false; try { execute( thisNode ); } catch (Exception e) { if ( ! ( this instanceof ReportExceptionCommand || this instanceof ReportCompletionCommand ) ) { try { getOrigin().reportException( getUid(), e ); } catch (Exception ee) { System.err.println( "unable to report error from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); ee.printStackTrace(); } } else { System.err.println( "unable to report error from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); e.printStackTrace(); } } if ( ! ( this instanceof ReportExceptionCommand || this instanceof ReportCompletionCommand ) ) { if ( ! hadError ) { try { getOrigin().reportCompletion( getUid() ); } catch (Exception e) { System.err.println( "unable to report completion from " + getThisNode().getLocalNodeInfo() + " to " + getOrigin() ); e.printStackTrace(); } } } } | 4523 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4523/44f09ca0fa0653b2cd30b8be246b5339f9c3c0ef/Command.java/clean/sysunit/src/main/org/sysunit/mesh/Command.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2193,
5289,
12,
25392,
4026,
16,
5397,
2029,
333,
907,
13,
565,
288,
3639,
444,
7571,
12,
4026,
11272,
3639,
444,
2503,
907,
12,
333,
907,
11272,
3639,
1250,
9323,
668,
273,
629,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2193,
5289,
12,
25392,
4026,
16,
5397,
2029,
333,
907,
13,
565,
288,
3639,
444,
7571,
12,
4026,
11272,
3639,
444,
2503,
907,
12,
333,
907,
11272,
3639,
1250,
9323,
668,
273,
629,
3... |
CDebugUIPlugin.errorDialog( "Operation failed.", ms ); | CDebugUIPlugin.errorDialog( CDebugUIPlugin.getResourceString("internal.ui.actions.SignalZeroObjectActionDelegate.Operation_failed"), ms ); | public void run( IAction action ) { if ( getTarget() != null ) { final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, "Unable to resume ignoring signal.", null ); BusyIndicator.showWhile( Display.getCurrent(), new Runnable() { public void run() { try { doAction( getTarget() ); } catch( DebugException e ) { ms.merge( e.getStatus() ); } } } ); if ( !ms.isOK() ) { IWorkbenchWindow window = CDebugUIPlugin.getActiveWorkbenchWindow(); if ( window != null ) { CDebugUIPlugin.errorDialog( "Operation failed.", ms ); } else { CDebugUIPlugin.log( ms ); } } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7c50719ee75ad53d8a6bd367d0f569749c3680bc/SignalZeroObjectActionDelegate.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/SignalZeroObjectActionDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
467,
1803,
1301,
262,
202,
95,
202,
202,
430,
261,
8571,
1435,
480,
446,
262,
202,
202,
95,
1082,
202,
6385,
5991,
1482,
4086,
273,
394,
5991,
1482,
12,
385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
467,
1803,
1301,
262,
202,
95,
202,
202,
430,
261,
8571,
1435,
480,
446,
262,
202,
202,
95,
1082,
202,
6385,
5991,
1482,
4086,
273,
394,
5991,
1482,
12,
385,
... |
} | public void run() { System.out.println("CreateJininodeTask: lancement de la recherche"); Node[] nodes; JiniNodeFinder finder = new JiniNodeFinder(); nodes = finder.findNodes(host); //System.out.println("fin de la recherche NB de noeud: "+nodes.length); for (int i=0 ; i<nodes.length; i++){ Node node = nodes[i]; String nodeName = node.getNodeInformation().getName(); String hostname = node.getNodeInformation().getInetAddress().getHostName(); HostObject hostObject = worldObject.getHostObject(hostname); //System.out.println("hostObject: "+hostObject.getHostName()); if (hostObject == null) { //System.out.println("CreateJiniNodeTask: creation d'un nouvel host"); hostObject = new HostObject(worldObject, hostname); worldObject.addHostsObject(hostObject); worldObject.putChild(hostname, hostObject); } VMObject vmObject = hostObject.findVMObjectHavingExistingNode(nodeName); if (vmObject == null) { // new NodeObject //System.out.println("CreateJiniNodeTask: creation d'une nouvelle VM "); hostObject.addVMObject(node); } else { //System.out.println("CreateJiniNodeTask: creation d'un node dans une VM "); vmObject.addNodeObject(node); vmObject.sendEventsForAllActiveObjects(); } } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/5e6860c26fe200ecc080f3ddc3de5b5afad88243/CreateJiniNodeTask.java/clean/src/org/objectweb/proactive/ic2d/util/CreateJiniNodeTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
2332,
18,
659,
18,
8222,
2932,
1684,
46,
267,
267,
390,
2174,
30,
328,
1359,
475,
443,
7125,
283,
19322,
18706,
8863,
565,
2029,
8526,
2199,
31,
565,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
2332,
18,
659,
18,
8222,
2932,
1684,
46,
267,
267,
390,
2174,
30,
328,
1359,
475,
443,
7125,
283,
19322,
18706,
8863,
565,
2029,
8526,
2199,
31,
565,
80... | |
info.uri = getContents(child); | info.uri = getTextContents(child); | private TaglibInfo extractInfo(String baseLocation, InputStream tldContents) { TaglibInfo info = new TaglibInfo(); if (tldContents != null) { DocumentProvider provider = new DocumentProvider(); provider.setInputStream(tldContents); provider.setValidating(false); provider.setRootElementName(JSP12TLDNames.TAGLIB); provider.setBaseReference(baseLocation); Node child = provider.getRootElement(); if (child == null || child.getNodeType() != Node.ELEMENT_NODE || !child.getNodeName().equals(JSP12TLDNames.TAGLIB)) { return null; } child = child.getFirstChild(); while (child != null) { if (child.getNodeType() == Node.ELEMENT_NODE) { if (child.getNodeName().equals(JSP12TLDNames.URI)) { info.uri = getContents(child); } else if (child.getNodeName().equals(JSP12TLDNames.SHORT_NAME)) { info.prefix = getContents(child); } else if (child.getNodeName().equals(JSP12TLDNames.JSP_VERSION)) { try { info.jspVersion = Float.parseFloat(getContents(child)); } catch (NumberFormatException e) { info.jspVersion = 0; } } else if (child.getNodeName().equals(JSP12TLDNames.SMALL_ICON)) { info.smallIcon = getContents(child); } else if (child.getNodeName().equals(JSP12TLDNames.LARGE_ICON)) { info.largeIcon = getContents(child); } } child = child.getNextSibling(); } } return info; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/8879f011497e7f3a2360339d97d4c5a130e0ce68/ProjectDescription.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contentmodel/ProjectDescription.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4034,
2941,
966,
2608,
966,
12,
780,
1026,
2735,
16,
5037,
23373,
6323,
13,
288,
202,
202,
1805,
2941,
966,
1123,
273,
394,
4034,
2941,
966,
5621,
202,
202,
430,
261,
88,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4034,
2941,
966,
2608,
966,
12,
780,
1026,
2735,
16,
5037,
23373,
6323,
13,
288,
202,
202,
1805,
2941,
966,
1123,
273,
394,
4034,
2941,
966,
5621,
202,
202,
430,
261,
88,
123... |
catch (Exception e) { | catch (Throwable e) { | public void test() throws Throwable { selenium.setContext("Test Verifications", "info"); /* Test Verifications */ // open|./tests/html/test_verifications.html?foo=bar| selenium.open("./tests/html/test_verifications.html?foo=bar");selenium.assertLocation("/tests/html/test_verifications.html");selenium.assertLocation("/tests/html/test_verifications.html?foo=bar"); // verifyValue|theText|the text value verifyEquals("the text value", selenium.getValue("theText")); // verifyNotValue|theText|not the text value verifyNotEquals("not the text value", selenium.getValue("theText")); // verifyValue|theHidden|the hidden value verifyEquals("the hidden value", selenium.getValue("theHidden")); // verifyText|theSpan|this is the span verifyEquals("this is the span", selenium.getText("theSpan")); // verifyNotText|theSpan|blah blah verifyNotEquals("blah blah", selenium.getText("theSpan")); // verifyTextPresent|this is the span| verifyTrue(this.getText().indexOf("this is the span")!=-1); // verifyTextNotPresent|this is not the span| verifyFalse(this.getText().indexOf("this is not the span")!=-1); boolean sawThrow13 = false; try { // originally verifyElementPresent|theSpan| selenium.assertElementPresent("theSpan"); } catch (Exception e) { sawThrow13 = true; } verifyFalse(sawThrow13); boolean sawThrow14 = false; try { // originally verifyElementPresent|theText| selenium.assertElementPresent("theText"); } catch (Exception e) { sawThrow14 = true; } verifyFalse(sawThrow14); boolean sawThrow15 = false; try { // originally verifyElementNotPresent|unknown| selenium.assertElementNotPresent("unknown"); } catch (Exception e) { sawThrow15 = true; } verifyFalse(sawThrow15); // verifyTable|theTable.1.0|c verifyEquals("c", selenium.getTable("theTable.1.0")); boolean sawThrow17 = false; try { // originally verifySelected|theSelect|index=1 selenium.assertSelected("theSelect", "index=1"); } catch (Exception e) { sawThrow17 = true; } verifyFalse(sawThrow17); boolean sawThrow18 = false; try { // originally verifySelected|theSelect|value=option2 selenium.assertSelected("theSelect", "value=option2"); } catch (Exception e) { sawThrow18 = true; } verifyFalse(sawThrow18); /* This is an example of why you can't just find the first option that matches and then verify that it is the selected option. */ boolean sawThrow21 = false; try { // originally verifySelected|theSelect|value=opt* selenium.assertSelected("theSelect", "value=opt*"); } catch (Exception e) { sawThrow21 = true; } verifyFalse(sawThrow21); boolean sawThrow22 = false; try { // originally verifySelected|theSelect|label=second option selenium.assertSelected("theSelect", "label=second option"); } catch (Exception e) { sawThrow22 = true; } verifyFalse(sawThrow22); boolean sawThrow23 = false; try { // originally verifySelected|theSelect|second option selenium.assertSelected("theSelect", "second option"); } catch (Exception e) { sawThrow23 = true; } verifyFalse(sawThrow23); boolean sawThrow24 = false; try { // originally verifySelected|theSelect|id=o2 selenium.assertSelected("theSelect", "id=o2"); } catch (Exception e) { sawThrow24 = true; } verifyFalse(sawThrow24); String[] tmp1 = {"first option", "second option", "third\\,\\,option"}; // verifySelectOptions|theSelect|first option,second option,third\\,\\,option verifyEquals(tmp1, selenium.getSelectOptions("theSelect")); // verifyAttribute|theText@class|foo verifyEquals("foo", selenium.getAttribute("theText@class")); // verifyNotAttribute|theText@class|fox verifyNotEquals("fox", selenium.getAttribute("theText@class")); // verifyTitle|theTitle| verifyEquals("theTitle", selenium.getTitle()); // verifyNotTitle|Blah Blah| verifyNotEquals("Blah Blah", selenium.getTitle()); checkForVerificationErrors(); } | 4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestVerifications.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestVerifications.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,
6160,
6640,
3113,
315,
1376,
8863,
225,
1748,
7766,
6160,
6640,
4202,
1195,
1082,
202,
759,
1696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6160,
6640,
3113,
315,
1376,
8863,
225,
1748,
7766,
6160,
6640,
4202,
1195,
1082,
202,
759,
1696,
... |
private static Object interpretLoop(Context cx, CallFrame frame, Object throwable) { // throwable holds exception object to rethrow or catch // It is also used for continuation restart in which case // it holds ContinuationJump final Object DBL_MRK = UniqueTag.DOUBLE_MARK; final Object undefined = Undefined.instance; final boolean instructionCounting = (cx.instructionThreshold != 0); // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; // arbitrary exception cost for instruction counting final int EXCEPTION_COST = 100; String stringReg = null; int indexReg = -1; if (cx.lastInterpreterFrame != null) { // save the top frame from the previous interpreterLoop // invocation on the stack if (cx.previousInterpreterInvocations == null) { cx.previousInterpreterInvocations = new ObjArray(); } cx.previousInterpreterInvocations.push(cx.lastInterpreterFrame); } // When restarting continuation throwable is not null and to jump // to the code that rewind continuation state indexReg should be set // to -1. // With the normal call throable == null and indexReg == -1 allows to // catch bugs with using indeReg to access array eleemnts before // initializing indexReg. if (throwable != null) { // Assert assumptions if (!(throwable instanceof ContinuationJump)) { // It should be continuation Kit.codeBug(); } } Object interpreterResult = null; double interpreterResultDbl = 0.0; StateLoop: for (;;) { withoutExceptions: try { if (throwable != null) { // Recovering from exception, indexReg contains // the index of handler if (indexReg >= 0) { // Normal excepton handler, transfer // control appropriately if (frame.frozen) { // XXX Deal with exceptios!!! frame = frame.cloneFrozen(); } int[] table = frame.idata.itsExceptionTable; frame.pc = table[indexReg + EXCEPTION_HANDLER_SLOT]; if (instructionCounting) { frame.pcPrevBranch = frame.pc; } frame.savedStackTop = frame.emptyStackTop; int scopeLocal = frame.localShift + table[indexReg + EXCEPTION_SCOPE_SLOT]; int exLocal = frame.localShift + table[indexReg + EXCEPTION_LOCAL_SLOT]; frame.scope = (Scriptable)frame.stack[scopeLocal]; frame.stack[exLocal] = throwable; throwable = null; } else { // Continuation restoration ContinuationJump cjump = (ContinuationJump)throwable; // Clear throwable to indicate that execptions are OK throwable = null; if (cjump.branchFrame != frame) Kit.codeBug(); // Check that we have at least one frozen frame // in the case of detached continuation restoration: // unwind code ensure that if (cjump.capturedFrame == null) Kit.codeBug(); // Need to rewind branchFrame, capturedFrame // and all frames in between int rewindCount = cjump.capturedFrame.frameIndex + 1; if (cjump.branchFrame != null) { rewindCount -= cjump.branchFrame.frameIndex; } int enterCount = 0; CallFrame[] enterFrames = null; CallFrame x = cjump.capturedFrame; for (int i = 0; i != rewindCount; ++i) { if (!x.frozen) Kit.codeBug(); if (isFrameEnterExitRequired(x)) { if (enterFrames == null) { // Allocate enough space to store the rest // of rewind frames in case all of them // would require to enter enterFrames = new CallFrame[rewindCount - i]; } enterFrames[enterCount] = x; ++enterCount; } x = x.parentFrame; } while (enterCount != 0) { // execute enter: walk enterFrames in the reverse // order since they were stored starting from // the capturedFrame, not branchFrame --enterCount; x = enterFrames[enterCount]; enterFrame(cx, x, ScriptRuntime.emptyArgs); } // Continuation jump is almost done: capturedFrame // points to the call to the function that captured // continuation, so clone capturedFrame and // emulate return that function with the suplied result frame = cjump.capturedFrame.cloneFrozen(); setCallResult(frame, cjump.result, cjump.resultDbl); // restart the execution } // Should be already cleared if (throwable != null) Kit.codeBug(); } else { if (frame.frozen) Kit.codeBug(); } // Use local variables for constant values in frame // for faster access Object[] stack = frame.stack; double[] sDbl = frame.sDbl; Object[] vars = frame.varSource.stack; double[] varDbls = frame.varSource.sDbl; byte[] iCode = frame.idata.itsICode; String[] strings = frame.idata.itsStringTable; // Use local for stackTop as well. Since execption handlers // can only exist at statement level where stack is empty, // it is necessary to save/restore stackTop only accross // function calls and normal returns. int stackTop = frame.savedStackTop; // Store new frame in cx which is used for error reporting etc. cx.lastInterpreterFrame = frame; Loop: for (;;) { // Exception handler assumes that PC is already incremented // pass the instruction start when it searches the // exception handler int op = iCode[frame.pc++]; jumplessRun: { // Back indent to ease imlementation readingswitch (op) { case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; int sourceLine = getIndex(iCode, frame.pc); throwable = new JavaScriptException(value, frame.idata.itsSourceFile, sourceLine); break withoutExceptions; } case Token.RETHROW: { indexReg += frame.localShift; throwable = stack[indexReg]; break withoutExceptions; } case Token.GE : case Token.LE : case Token.GT : case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; object_compare: { number_compare: { double rDbl, lDbl; if (rhs == DBL_MRK) { rDbl = sDbl[stackTop + 1]; lDbl = stack_double(frame, stackTop); } else if (lhs == DBL_MRK) { rDbl = ScriptRuntime.toNumber(rhs); lDbl = sDbl[stackTop]; } else { break number_compare; } switch (op) { case Token.GE: valBln = (lDbl >= rDbl); break object_compare; case Token.LE: valBln = (lDbl <= rDbl); break object_compare; case Token.GT: valBln = (lDbl > rDbl); break object_compare; case Token.LT: valBln = (lDbl < rDbl); break object_compare; default: throw Kit.codeBug(); } } switch (op) { case Token.GE: valBln = ScriptRuntime.cmp_LE(rhs, lhs); break; case Token.LE: valBln = ScriptRuntime.cmp_LE(lhs, rhs); break; case Token.GT: valBln = ScriptRuntime.cmp_LT(rhs, lhs); break; case Token.LT: valBln = ScriptRuntime.cmp_LT(lhs, rhs); break; default: throw Kit.codeBug(); } } stack[stackTop] = ScriptRuntime.wrapBoolean(valBln); continue Loop; } case Token.IN : case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); boolean valBln; if (op == Token.IN) { valBln = ScriptRuntime.in(lhs, rhs, cx); } else { valBln = ScriptRuntime.instanceOf(lhs, rhs, cx); } stack[stackTop] = ScriptRuntime.wrapBoolean(valBln); continue Loop; } case Token.EQ : case Token.NE : { --stackTop; boolean valBln; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; if (rhs == DBL_MRK) { if (lhs == DBL_MRK) { valBln = (sDbl[stackTop] == sDbl[stackTop + 1]); } else { valBln = ScriptRuntime.eqNumber(sDbl[stackTop + 1], lhs); } } else { if (lhs == DBL_MRK) { valBln = ScriptRuntime.eqNumber(sDbl[stackTop], rhs); } else { valBln = ScriptRuntime.eq(lhs, rhs); } } valBln ^= (op == Token.NE); stack[stackTop] = ScriptRuntime.wrapBoolean(valBln); continue Loop; } case Token.SHEQ : case Token.SHNE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; shallow_compare: { double rdbl, ldbl; if (rhs == DBL_MRK) { rdbl = sDbl[stackTop + 1]; if (lhs == DBL_MRK) { ldbl = sDbl[stackTop]; } else if (lhs instanceof Number) { ldbl = ((Number)lhs).doubleValue(); } else { valBln = false; break shallow_compare; } } else if (lhs == DBL_MRK) { ldbl = sDbl[stackTop]; if (rhs == DBL_MRK) { rdbl = sDbl[stackTop + 1]; } else if (rhs instanceof Number) { rdbl = ((Number)rhs).doubleValue(); } else { valBln = false; break shallow_compare; } } else { valBln = ScriptRuntime.shallowEq(lhs, rhs); break shallow_compare; } valBln = (ldbl == rdbl); } valBln ^= (op == Token.SHNE); stack[stackTop] = ScriptRuntime.wrapBoolean(valBln); continue Loop; } case Token.IFNE : if (stack_boolean(frame, stackTop--)) { frame.pc += 2; continue Loop; } break jumplessRun; case Token.IFEQ : if (!stack_boolean(frame, stackTop--)) { frame.pc += 2; continue Loop; } break jumplessRun; case Icode_IFEQ_POP : if (!stack_boolean(frame, stackTop--)) { frame.pc += 2; continue Loop; } stack[stackTop--] = null; break jumplessRun; case Token.GOTO : break jumplessRun; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = frame.pc + 2; break jumplessRun; case Icode_STARTSUB : if (stackTop == frame.emptyStackTop + 1) { // Call from Icode_GOSUB: store return PC address in the local indexReg += frame.localShift; stack[indexReg] = stack[stackTop]; sDbl[indexReg] = sDbl[stackTop]; --stackTop; } else { // Call from exception handler: exception object is already stored // in the local if (stackTop != frame.emptyStackTop) Kit.codeBug(); } continue Loop; case Icode_RETSUB : { // indexReg: local to store return address if (instructionCounting) { addInstructionCount(cx, frame, 0); } indexReg += frame.localShift; Object value = stack[indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow throwable = value; break withoutExceptions; } // Normal return from GOSUB frame.pc = (int)sDbl[indexReg]; if (instructionCounting) { frame.pcPrevBranch = frame.pc; } continue Loop; } case Icode_POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_POP_RESULT : frame.result = stack[stackTop]; frame.resultDbl = sDbl[stackTop]; stack[stackTop] = null; --stackTop; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUP2 : stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stack[stackTop + 2] = stack[stackTop]; sDbl[stackTop + 2] = sDbl[stackTop]; stackTop += 2; continue Loop; case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.RETURN : frame.result = stack[stackTop]; frame.resultDbl = sDbl[stackTop]; --stackTop; break Loop; case Token.RETURN_RESULT : break Loop; case Icode_RETUNDEF : frame.result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(frame, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : { int rIntValue = stack_int32(frame, stackTop); --stackTop; int lIntValue = stack_int32(frame, stackTop); stack[stackTop] = DBL_MRK; switch (op) { case Token.BITAND: lIntValue &= rIntValue; break; case Token.BITOR: lIntValue |= rIntValue; break; case Token.BITXOR: lIntValue ^= rIntValue; break; case Token.LSH: lIntValue <<= rIntValue; break; case Token.RSH: lIntValue >>= rIntValue; break; } sDbl[stackTop] = lIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(frame, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(frame, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.NEG : case Token.POS : { double rDbl = stack_double(frame, stackTop); stack[stackTop] = DBL_MRK; if (op == Token.NEG) { rDbl = -rDbl; } sDbl[stackTop] = rDbl; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop, cx); continue Loop; case Token.SUB : case Token.MUL : case Token.DIV : case Token.MOD : { double rDbl = stack_double(frame, stackTop); --stackTop; double lDbl = stack_double(frame, stackTop); stack[stackTop] = DBL_MRK; switch (op) { case Token.SUB: lDbl -= rDbl; break; case Token.MUL: lDbl *= rDbl; break; case Token.DIV: lDbl /= rDbl; break; case Token.MOD: lDbl %= rDbl; break; } sDbl[stackTop] = lDbl; continue Loop; } case Token.NOT : stack[stackTop] = ScriptRuntime.wrapBoolean( !stack_boolean(frame, stackTop)); continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(cx, frame.scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, cx, frame.scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs, cx); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getObjectProp(lhs, stringReg, cx); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setObjectProp(lhs, stringReg, rhs, cx); continue Loop; } case Icode_PROP_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.propIncrDecr(lhs, stringReg, cx, iCode[frame.pc]); ++frame.pc; continue Loop; } case Token.GETELEM : { --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) { lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); } Object value; Object id = stack[stackTop + 1]; if (id != DBL_MRK) { value = ScriptRuntime.getObjectElem(lhs, id, cx); } else { double d = sDbl[stackTop + 1]; value = ScriptRuntime.getObjectIndex(lhs, d, cx); } stack[stackTop] = value; continue Loop; } case Token.SETELEM : { stackTop -= 2; Object rhs = stack[stackTop + 2]; if (rhs == DBL_MRK) { rhs = ScriptRuntime.wrapNumber(sDbl[stackTop + 2]); } Object lhs = stack[stackTop]; if (lhs == DBL_MRK) { lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); } Object value; Object id = stack[stackTop + 1]; if (id != DBL_MRK) { value = ScriptRuntime.setObjectElem(lhs, id, rhs, cx); } else { double d = sDbl[stackTop + 1]; value = ScriptRuntime.setObjectIndex(lhs, d, rhs, cx); } stack[stackTop] = value; continue Loop; } case Icode_ELEM_INC_DEC: { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.elemIncrDecr(lhs, rhs, cx, iCode[frame.pc]); ++frame.pc; continue Loop; } case Token.GET_REF : { Ref ref = (Ref)stack[stackTop]; stack[stackTop] = ScriptRuntime.refGet(ref, cx); continue Loop; } case Token.SET_REF : { Object value = stack[stackTop]; if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Ref ref = (Ref)stack[stackTop]; stack[stackTop] = ScriptRuntime.refSet(ref, value, cx); continue Loop; } case Token.DEL_REF : { Ref ref = (Ref)stack[stackTop]; stack[stackTop] = ScriptRuntime.refDel(ref, cx); continue Loop; } case Icode_REF_INC_DEC : { Ref ref = (Ref)stack[stackTop]; stack[stackTop] = ScriptRuntime.refIncrDecr(ref, cx, iCode[frame.pc]); ++frame.pc; continue Loop; } case Token.LOCAL_LOAD : ++stackTop; indexReg += frame.localShift; stack[stackTop] = stack[indexReg]; sDbl[stackTop] = sDbl[indexReg]; continue Loop; case Icode_LOCAL_CLEAR : indexReg += frame.localShift; stack[indexReg] = null; continue Loop; case Icode_NAME_AND_THIS : // stringReg: name ++stackTop; stack[stackTop] = ScriptRuntime.getNameFunctionAndThis(stringReg, cx, frame.scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; case Icode_PROP_AND_THIS: { Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]); // stringReg: property stack[stackTop] = ScriptRuntime.getPropFunctionAndThis(obj, stringReg, cx); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_ELEM_AND_THIS: { Object obj = stack[stackTop - 1]; if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop - 1]); Object id = stack[stackTop]; if (id == DBL_MRK) id = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop - 1] = ScriptRuntime.getElemFunctionAndThis(obj, id, cx); stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_VALUE_AND_THIS : { Object value = stack[stackTop]; if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getValueFunctionAndThis(value, cx); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_CALLSPECIAL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } int callType = iCode[frame.pc] & 0xFF; boolean isNew = (iCode[frame.pc + 1] != 0); int sourceLine = getIndex(iCode, frame.pc + 2); // indexReg: number of arguments if (isNew) { // stack change: function arg0 .. argN -> newResult stackTop -= indexReg; Object function = stack[stackTop]; if (function == DBL_MRK) function = ScriptRuntime.wrapNumber(sDbl[stackTop]); Object[] outArgs = getArgsArray( stack, sDbl, stackTop + 1, indexReg); stack[stackTop] = ScriptRuntime.newSpecial( cx, function, outArgs, frame.scope, callType); } else { // stack change: function thisObj arg0 .. argN -> result stackTop -= 1 + indexReg; // Call code generation ensure that stack here // is ... Function Scriptable Scriptable functionThis = (Scriptable)stack[stackTop + 1]; Function function = (Function)stack[stackTop]; Object[] outArgs = getArgsArray( stack, sDbl, stackTop + 2, indexReg); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, functionThis, outArgs, frame.scope, frame.thisObj, callType, frame.idata.itsSourceFile, sourceLine); } frame.pc += 4; continue Loop; } case Token.CALL : case Icode_TAIL_CALL : case Token.REF_CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // stack change: function thisObj arg0 .. argN -> result // indexReg: number of arguments stackTop -= 1 + indexReg; // CALL generation ensures that fun and funThisObj // are already Scriptable and Function objects respectively Function fun = (Function)stack[stackTop]; Scriptable funThisObj = (Scriptable)stack[stackTop + 1]; Scriptable calleeScope = frame.scope; if (frame.useActivation) { calleeScope = ScriptableObject.getTopLevelScope(frame.scope); } if (op == Token.REF_CALL) { Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 2, indexReg); stack[stackTop] = ScriptRuntime.callRef(fun, funThisObj, outArgs, cx, calleeScope); continue Loop; } if (fun instanceof InterpretedFunction) { InterpretedFunction ifun = (InterpretedFunction)fun; if (frame.fnOrScript.securityDomain == ifun.securityDomain) { CallFrame callParentFrame = frame; CallFrame calleeFrame = new CallFrame(); if (op == Icode_TAIL_CALL) { // In principle tail call can re-use the current // frame and its stack arrays but it is hard to // do properly. Any exceptions that can legally // happen during frame re-initialization including // StackOverflowException during innocent looking // System.arraycopy may leave the current frame // data corrupted leading to undefined behaviour // in the catch code bellow that unwinds JS stack // on exceptions. Then there is issue about frame release // end exceptions there. // To avoid frame allocation a released frame // can be cached for re-use which would also benefit // non-tail calls but it is not clear that this caching // would gain in performance due to potentially // bad iteraction with GC. callParentFrame = frame.parentFrame; } initFrame(cx, calleeScope, funThisObj, stack, sDbl, stackTop + 2, indexReg, ifun, callParentFrame, calleeFrame); if (op == Icode_TAIL_CALL) { // Release the parent exitFrame(cx, frame, null); } else { frame.savedStackTop = stackTop; frame.savedCallOp = op; } frame = calleeFrame; continue StateLoop; } } if (fun instanceof Continuation) { // Jump to the captured continuation ContinuationJump cjump; cjump = new ContinuationJump((Continuation)fun, frame); // continuation result is the first argument if any // of contination call if (indexReg == 0) { cjump.result = undefined; } else { cjump.result = stack[stackTop + 2]; cjump.resultDbl = sDbl[stackTop + 2]; } // Start the real unwind job throwable = cjump; break withoutExceptions; } if (fun instanceof IdFunctionObject) { IdFunctionObject ifun = (IdFunctionObject)fun; if (Continuation.isContinuationConstructor(ifun)) { captureContinuation(cx, frame, stackTop); continue Loop; } } Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 2, indexReg); stack[stackTop] = fun.call(cx, calleeScope, funThisObj, outArgs); continue Loop; } case Token.NEW : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // stack change: function arg0 .. argN -> newResult // indexReg: number of arguments stackTop -= indexReg; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { InterpretedFunction f = (InterpretedFunction)lhs; if (frame.fnOrScript.securityDomain == f.securityDomain) { Scriptable newInstance = f.createObject(cx, frame.scope); CallFrame calleeFrame = new CallFrame(); initFrame(cx, frame.scope, newInstance, stack, sDbl, stackTop + 1, indexReg, f, frame, calleeFrame); stack[stackTop] = newInstance; frame.savedStackTop = stackTop; frame.savedCallOp = op; frame = calleeFrame; continue StateLoop; } } if (!(lhs instanceof Function)) { if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); throw ScriptRuntime.notFunctionError(lhs); } Function fun = (Function)lhs; if (fun instanceof IdFunctionObject) { IdFunctionObject ifun = (IdFunctionObject)fun; if (Continuation.isContinuationConstructor(ifun)) { captureContinuation(cx, frame, stackTop); continue Loop; } } Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); stack[stackTop] = fun.construct(cx, frame.scope, outArgs); continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(frame.scope, stringReg); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, frame.pc); frame.pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, frame.pc); frame.pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = frame.idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(cx, frame.scope, stringReg); continue Loop; case Icode_NAME_INC_DEC : stack[++stackTop] = ScriptRuntime.nameIncrDecr(frame.scope, stringReg, iCode[frame.pc]); ++frame.pc; continue Loop; case Icode_SETVAR1: indexReg = iCode[frame.pc++]; // fallthrough case Token.SETVAR : if (!frame.useActivation) { vars[indexReg] = stack[stackTop]; varDbls[indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = ScriptRuntime.wrapNumber(sDbl[stackTop]); stringReg = frame.idata.argNames[indexReg]; frame.scope.put(stringReg, frame.scope, val); } continue Loop; case Icode_GETVAR1: indexReg = iCode[frame.pc++]; // fallthrough case Token.GETVAR : ++stackTop; if (!frame.useActivation) { stack[stackTop] = vars[indexReg]; sDbl[stackTop] = varDbls[indexReg]; } else { stringReg = frame.idata.argNames[indexReg]; stack[stackTop] = frame.scope.get(stringReg, frame.scope); } continue Loop; case Icode_VAR_INC_DEC : { // indexReg : varindex ++stackTop; int incrDecrMask = iCode[frame.pc]; if (!frame.useActivation) { stack[stackTop] = DBL_MRK; Object varValue = vars[indexReg]; double d; if (varValue == DBL_MRK) { d = varDbls[indexReg]; } else { d = ScriptRuntime.toNumber(varValue); vars[indexReg] = DBL_MRK; } double d2 = ((incrDecrMask & Node.DECR_FLAG) == 0) ? d + 1.0 : d - 1.0; varDbls[indexReg] = d2; sDbl[stackTop] = ((incrDecrMask & Node.POST_FLAG) == 0) ? d2 : d; } else { String varName = frame.idata.argNames[indexReg]; stack[stackTop] = ScriptRuntime.nameIncrDecr(frame.scope, varName, incrDecrMask); } ++frame.pc; continue Loop; } case Icode_ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Icode_ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = frame.thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = frame.fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Icode_UNDEF : stack[++stackTop] = undefined; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; frame.scope = ScriptRuntime.enterWith(lhs, cx, frame.scope); continue Loop; } case Token.LEAVEWITH : frame.scope = ScriptRuntime.leaveWith(frame.scope); continue Loop; case Token.CATCH_SCOPE : { // stack top: exception object // stringReg: name of exception variable // indexReg: local for exception scope --stackTop; indexReg += frame.localShift; boolean afterFirstScope = (frame.idata.itsICode[frame.pc] != 0); Throwable caughtException = (Throwable)stack[stackTop + 1]; Scriptable lastCatchScope; if (!afterFirstScope) { lastCatchScope = null; } else { lastCatchScope = (Scriptable)stack[indexReg]; } stack[indexReg] = ScriptRuntime.newCatchScope(caughtException, lastCatchScope, stringReg, cx, frame.scope); ++frame.pc; continue Loop; } case Token.ENUM_INIT_KEYS : case Token.ENUM_INIT_VALUES : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; indexReg += frame.localShift; stack[indexReg] = ScriptRuntime.enumInit( lhs, cx, (op == Token.ENUM_INIT_VALUES)); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { indexReg += frame.localShift; Object val = stack[indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val, cx); continue Loop; } case Token.REF_SPECIAL : { //stringReg: name of special property Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.specialRef(obj, stringReg, cx); continue Loop; } case Token.REF_MEMBER: { //indexReg: flags Object elem = stack[stackTop]; if (elem == DBL_MRK) elem = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.memberRef(obj, elem, cx, indexReg); continue Loop; } case Token.REF_NS_MEMBER: { //indexReg: flags Object elem = stack[stackTop]; if (elem == DBL_MRK) elem = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object ns = stack[stackTop]; if (ns == DBL_MRK) ns = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.memberRef(obj, ns, elem, cx, indexReg); continue Loop; } case Token.REF_NAME: { //indexReg: flags Object name = stack[stackTop]; if (name == DBL_MRK) name = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.nameRef(name, cx, frame.scope, indexReg); continue Loop; } case Token.REF_NS_NAME: { //indexReg: flags Object name = stack[stackTop]; if (name == DBL_MRK) name = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; Object ns = stack[stackTop]; if (ns == DBL_MRK) ns = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.nameRef(ns, name, cx, frame.scope, indexReg); continue Loop; } case Icode_SCOPE_LOAD : indexReg += frame.localShift; frame.scope = (Scriptable)stack[indexReg]; continue Loop; case Icode_SCOPE_SAVE : indexReg += frame.localShift; stack[indexReg] = frame.scope; continue Loop; case Icode_CLOSURE_EXPR : stack[++stackTop] = InterpretedFunction.createFunction(cx, frame.scope, frame.fnOrScript, indexReg); continue Loop; case Icode_CLOSURE_STMT : initFunction(cx, frame.scope, frame.fnOrScript, indexReg); continue Loop; case Token.REGEXP : stack[++stackTop] = frame.scriptRegExps[indexReg]; continue Loop; case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])frame.idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, frame.scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])frame.idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, frame.scope); } stack[stackTop] = val; continue Loop; } case Icode_ENTERDQ : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]); --stackTop; frame.scope = ScriptRuntime.enterDotQuery(lhs, frame.scope); continue Loop; } case Icode_LEAVEDQ : { boolean valBln = stack_boolean(frame, stackTop); Object x = ScriptRuntime.updateDotQuery(valBln, frame.scope); if (x != null) { stack[stackTop] = x; frame.scope = ScriptRuntime.leaveDotQuery(frame.scope); frame.pc += 2; continue Loop; } // reset stack and PC to code after ENTERDQ --stackTop; break jumplessRun; } case Token.DEFAULTNAMESPACE : { Object value = stack[stackTop]; if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setDefaultNamespace(value, cx); continue Loop; } case Token.ESCXMLATTR : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeAttributeValue(value, cx); } continue Loop; } case Token.ESCXMLTEXT : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeTextValue(value, cx); } continue Loop; } case Icode_LINE : frame.pcSourceLineStart = frame.pc; if (frame.debuggerFrame != null) { int line = getIndex(iCode, frame.pc); frame.debuggerFrame.onLineChange(cx, line); } frame.pc += 2; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND_C4: indexReg = 4; continue Loop; case Icode_REG_IND_C5: indexReg = 5; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[frame.pc]; ++frame.pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, frame.pc); frame.pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, frame.pc); frame.pc += 4; continue Loop; case Icode_REG_STR_C0: stringReg = strings[0]; continue Loop; case Icode_REG_STR_C1: stringReg = strings[1]; continue Loop; case Icode_REG_STR_C2: stringReg = strings[2]; continue Loop; case Icode_REG_STR_C3: stringReg = strings[3]; continue Loop; case Icode_REG_STR1: stringReg = strings[0xFF & iCode[frame.pc]]; ++frame.pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, frame.pc)]; frame.pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, frame.pc)]; frame.pc += 4; continue Loop; default : dumpICode(frame.idata); throw new RuntimeException( "Unknown icode : "+op+" @ pc : "+(frame.pc-1));} // end of interpreter switch } // end of jumplessRun label block // This should be reachable only for jump implementation // when pc points to encoded target offset if (instructionCounting) { addInstructionCount(cx, frame, 2); } int offset = getShort(iCode, frame.pc); if (offset != 0) { // -1 accounts for pc pointing to jump opcode + 1 frame.pc += offset - 1; } else { frame.pc = frame.idata.longJumps. getExistingInt(frame.pc); } if (instructionCounting) { frame.pcPrevBranch = frame.pc; } continue Loop; } // end of Loop: for exitFrame(cx, frame, null); interpreterResult = frame.result; interpreterResultDbl = frame.resultDbl; if (frame.parentFrame != null) { frame = frame.parentFrame; if (frame.frozen) { frame = frame.cloneFrozen(); } setCallResult( frame, interpreterResult, interpreterResultDbl); interpreterResult = null; // Help GC continue StateLoop; } break StateLoop; } // end of interpreter withoutExceptions: try catch (Throwable ex) { if (throwable != null) { // This is serious bug and it is better to track it ASAP ex.printStackTrace(System.err); throw new IllegalStateException(); } throwable = ex; } // This should be reachable only after above catch or from // finally when it needs to propagate exception or from // explicit throw if (throwable == null) Kit.codeBug(); // Exception type final int EX_CATCH_STATE = 2; // Can execute JS catch final int EX_FINALLY_STATE = 1; // Can execute JS finally final int EX_NO_JS_STATE = 0; // Terminate JS execution int exState; ContinuationJump cjump = null; if (throwable instanceof JavaScriptException) { exState = EX_CATCH_STATE; } else if (throwable instanceof EcmaError) { // an offical ECMA error object, exState = EX_CATCH_STATE; } else if (throwable instanceof EvaluatorException) { exState = EX_CATCH_STATE; } else if (throwable instanceof RuntimeException) { exState = EX_FINALLY_STATE; } else if (throwable instanceof Error) { exState = EX_NO_JS_STATE; } else { // It must be ContinuationJump exState = EX_FINALLY_STATE; cjump = (ContinuationJump)throwable; } if (instructionCounting) { try { addInstructionCount(cx, frame, EXCEPTION_COST); } catch (RuntimeException ex) { throwable = ex; exState = EX_FINALLY_STATE; } catch (Error ex) { // Error from instruction counting // => unconditionally terminate JS throwable = ex; cjump = null; exState = EX_NO_JS_STATE; } } if (frame.debuggerFrame != null && throwable instanceof RuntimeException) { // Call debugger only for RuntimeException RuntimeException rex = (RuntimeException)throwable; try { frame.debuggerFrame.onExceptionThrown(cx, rex); } catch (Throwable ex) { // Any exception from debugger // => unconditionally terminate JS throwable = ex; cjump = null; exState = EX_NO_JS_STATE; } } for (;;) { if (exState != EX_NO_JS_STATE) { boolean onlyFinally = (exState != EX_CATCH_STATE); indexReg = getExceptionHandler(frame, onlyFinally); if (indexReg >= 0) { // We caught an exception, restart the loop // with exception pending the processing at the loop // start continue StateLoop; } } // No allowed execption handlers in this frame, unwind // to parent and try to look there exitFrame(cx, frame, throwable); frame = frame.parentFrame; if (frame == null) { break; } if (cjump != null && cjump.branchFrame == frame) { // Continuation branch point was hit, // restart the state loop to reenter continuation indexReg = -1; continue StateLoop; } } // No more frames, rethrow the exception or deal with continuation if (cjump != null) { if (cjump.branchFrame != null) { // The above loop should locate the top frame Kit.codeBug(); } if (cjump.capturedFrame != null) { // Restarting detached continuation indexReg = -1; continue StateLoop; } // Return continuation result to the caller interpreterResult = cjump.result; interpreterResultDbl = cjump.resultDbl; throwable = null; } break StateLoop; } // end of StateLoop: for(;;) // Do cleanups/restorations before the final return or throw if (cx.previousInterpreterInvocations != null && cx.previousInterpreterInvocations.size() != 0) { cx.lastInterpreterFrame = cx.previousInterpreterInvocations.pop(); } else { // It was the last interpreter frame on the stack cx.lastInterpreterFrame = null; // Force GC of the value cx.previousInterpreterInvocations cx.previousInterpreterInvocations = null; } if (throwable != null) { if (throwable instanceof RuntimeException) { throw (RuntimeException)throwable; } else { // Must be instance of Error or code bug throw (Error)throwable; } } return (interpreterResult != DBL_MRK) ? interpreterResult : ScriptRuntime.wrapNumber(interpreterResultDbl); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/90ebe1bf30876ca8ca8a098496166e8475268746/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
10634,
6452,
12,
1042,
9494,
16,
3049,
3219,
2623,
16,
4766,
3639,
1033,
10132,
13,
565,
288,
3639,
368,
10132,
14798,
1520,
733,
358,
22225,
578,
1044,
3639,
368,
2597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
10634,
6452,
12,
1042,
9494,
16,
3049,
3219,
2623,
16,
4766,
3639,
1033,
10132,
13,
565,
288,
3639,
368,
10132,
14798,
1520,
733,
358,
22225,
578,
1044,
3639,
368,
2597,
... | ||
if (missile.m_CurrentLocation.x < location.x) { | if (missile.getCurrentLocation().x < location.x) { | public int checkIncoming(MapPoint location) { int incoming = 0; ListIterator iter = m_Flying.listIterator(); while (iter.hasNext()) { Missile missile = (Missile)iter.next(); if (missile.m_CurrentLocation.x == location.x) { // We're in the same row if (missile.m_CurrentLocation.y < location.y) { // The missile is above us if (missile.m_Direction == WorldEntity.kSouthInt) { // and travelling toward us incoming |= WorldEntity.kNorthInt; } } else { // The missile is below us if (missile.m_Direction == WorldEntity.kNorthInt) { // and travelling toward us incoming |= WorldEntity.kSouthInt; } } } if (missile.m_CurrentLocation.y == location.y) { // We're in the same column if (missile.m_CurrentLocation.x < location.x) { // The missile is to our left if (missile.m_Direction == WorldEntity.kEastInt) { // and travelling toward us incoming |= WorldEntity.kWestInt; } } else { // The missile is to our right if (missile.m_Direction == WorldEntity.kWestInt) { // and travelling toward us incoming |= WorldEntity.kEastInt; } } } } return incoming; } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/8f506366ac134b2b2bfdfc39a4aa4a0296f919b2/TankSoarWorld.java/clean/SoarSuite/Environments/JavaTankSoar/source/tanksoar/TankSoarWorld.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
202,
482,
509,
866,
20370,
12,
863,
2148,
2117,
13,
288,
202,
565,
202,
202,
474,
6935,
273,
374,
31,
202,
565,
202,
202,
682,
3198,
1400,
273,
312,
67,
42,
6291,
18,
1098,
3198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
202,
482,
509,
866,
20370,
12,
863,
2148,
2117,
13,
288,
202,
565,
202,
202,
474,
6935,
273,
374,
31,
202,
565,
202,
202,
682,
3198,
1400,
273,
312,
67,
42,
6291,
18,
1098,
3198... |
set(parameterIndex, (new Integer(x)).toString()); | set(parameterIndex, Integer.toString(x)); | public void setShort(int parameterIndex, short x) throws SQLException { set(parameterIndex, (new Integer(x)).toString()); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/49740c5fb99094b3942d7b8588f545907fd17074/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
4897,
12,
474,
25412,
16,
3025,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
202,
97,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
4897,
12,
474,
25412,
16,
3025,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
202,
97,
2,
-100,... |
existsPropertyValue = existingProperty.getStructureValue() != null; | existsPropertyValue = existingProperty.getStructureValue() != null; | public void writePropertyObject(CmsProject project, CmsResource resource, CmsProperty property) throws CmsException { CmsPropertydefinition propertyDefinition = null; PreparedStatement stmt = null; Connection conn = null; String value = null; int mappingType = -1; CmsUUID id = null; CmsProperty existingProperty = null; boolean existsPropertyValue = false; boolean deletePropertyValue = false; try { // read the property definition propertyDefinition = readPropertyDefinition(property.getKey(), project.getId(), resource.getType()); } catch (CmsException e) { propertyDefinition = null; } if (propertyDefinition == null) { if (property.autoCreatePropertyDefinition()) { // create a missing property definition optionally propertyDefinition = createPropertyDefinition(property.getKey(), project.getId(), resource.getType()); if (project.getId() >= 0) { try { // create the property definition implicitly in the backup tables m_driverManager.getBackupDriver().createBackupPropertyDefinition(property.getKey(), resource.getType()); } catch (Exception e) { if (OpenCms.getLog(this).isErrorEnabled()) { OpenCms.getLog(this).error("[" + this.getClass().getName() + "] " + e.toString()); } } } } else { throw new CmsException("[" + this.getClass().getName() + ".writePropertyObject/1] " + property.getKey(), CmsException.C_NOT_FOUND); } } String resourceName = resource.getRootPath(); if (resource.isFolder() && !resourceName.endsWith(I_CmsConstants.C_FOLDER_SEPARATOR)) { resourceName += I_CmsConstants.C_FOLDER_SEPARATOR; } try { // read the existing property to test if we need the // insert or update query to write a property value existingProperty = readPropertyObject(propertyDefinition.getName(), project, resource); conn = m_sqlManager.getConnection(project.getId()); for (int i = 0; i < 2; i++) { mappingType = -1; value = null; id = null; existsPropertyValue = false; deletePropertyValue = false; // 1) take any required decisions to choose and fill the correct SQL query if (i == 0) { // write/delete the *structure value* on the first cycle if (existingProperty.getStructureValue() != null && property.deleteStructureValue()) { // this property value is marked to be deleted deletePropertyValue = true; } else { value = property.getStructureValue(); if (value == null || (value != null && "".equalsIgnoreCase(value.trim()))) { // no structure value set or the structure value is an empty string, // continue with the resource value continue; } } // set the vars to be written to the database mappingType = CmsProperty.C_STRUCTURE_RECORD_MAPPING; id = resource.getStructureId(); existsPropertyValue = existingProperty.getStructureValue() != null; } else if (i == 1) { // write/delete the *resource value* on the second cycle if (existingProperty.getResourceValue() != null && property.deleteResourceValue()) { // this property value is marked to be deleted deletePropertyValue = true; } else { value = property.getResourceValue(); if (value == null || (value != null && "".equalsIgnoreCase(value.trim()))) { // no resource value set or the resource value is an empty string, // break out of the loop break; } } // set the vars to be written to the database mappingType = CmsProperty.C_RESOURCE_RECORD_MAPPING; id = resource.getResourceId(); existsPropertyValue = existingProperty.getResourceValue() != null; } // 2) execute the SQL query if (!deletePropertyValue) { // insert/update the property value if (existsPropertyValue) { // {structure|resource} property value already exists- use update statement stmt = m_sqlManager.getPreparedStatement(conn, project.getId(), "C_PROPERTIES_UPDATE"); stmt.setString(1, m_sqlManager.validateNull(value)); stmt.setString(2, id.toString()); stmt.setInt(3, mappingType); stmt.setInt(4, propertyDefinition.getId()); } else { // {structure|resource} property value doesen't exist- use create statement stmt = m_sqlManager.getPreparedStatement(conn, project.getId(), "C_PROPERTIES_CREATE"); stmt.setInt(1, m_sqlManager.nextId(project.getId(), m_sqlManager.readQuery(project.getId(), "C_TABLE_PROPERTIES"))); stmt.setInt(2, propertyDefinition.getId()); stmt.setString(3, id.toString()); stmt.setInt(4, mappingType); stmt.setString(5, m_sqlManager.validateNull(value)); } } else { // {structure|resource} property value marked as deleted- use delete statement stmt = m_sqlManager.getPreparedStatement(conn, project.getId(), "C_PROPERTIES_DELETE"); stmt.setInt(1, propertyDefinition.getId()); stmt.setString(2, id.toString()); stmt.setInt(3, mappingType); } stmt.executeUpdate(); m_sqlManager.closeAll(null, stmt, null); } } catch (SQLException e) { throw m_sqlManager.getCmsException(this, null, CmsException.C_SQL_ERROR, e, false); } catch (Exception ex) { throw m_sqlManager.getCmsException(this, null, CmsException.C_UNKNOWN_EXCEPTION, ex, false); } finally { m_sqlManager.closeAll(conn, stmt, null); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/68c9e9c7544dbe145bdf51a3ae62c07cb8894073/CmsVfsDriver.java/buggy/src/org/opencms/db/generic/CmsVfsDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1396,
921,
12,
4747,
4109,
1984,
16,
7630,
1058,
16,
18505,
1272,
13,
1216,
11228,
288,
3639,
18505,
6907,
1272,
1852,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1396,
921,
12,
4747,
4109,
1984,
16,
7630,
1058,
16,
18505,
1272,
13,
1216,
11228,
288,
3639,
18505,
6907,
1272,
1852,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639... |
if (state == true) { | if (state) { | public String getStateLabel(boolean state) { if (state == true) { return this.trueStateLabel; } else { return this.falseStateLabel; } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/54d708538f2f67ba81397354eb2e290aa7fd425c/BooleanControl.java/buggy/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8997,
2224,
12,
6494,
919,
13,
288,
3639,
309,
261,
2019,
13,
288,
5411,
327,
333,
18,
3767,
1119,
2224,
31,
3639,
289,
469,
288,
5411,
327,
333,
18,
5743,
1119,
2224,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8997,
2224,
12,
6494,
919,
13,
288,
3639,
309,
261,
2019,
13,
288,
5411,
327,
333,
18,
3767,
1119,
2224,
31,
3639,
289,
469,
288,
5411,
327,
333,
18,
5743,
1119,
2224,
31,
... |
if ( featureID >= 0 ) | switch ( featureID ) | public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case LayoutPackage.PLOT__CHILDREN : return ( (InternalEList) getChildren( ) ).basicRemove( otherEnd, msgs ); case LayoutPackage.PLOT__BOUNDS : return basicSetBounds( null, msgs ); case LayoutPackage.PLOT__INSETS : return basicSetInsets( null, msgs ); case LayoutPackage.PLOT__MIN_SIZE : return basicSetMinSize( null, msgs ); case LayoutPackage.PLOT__OUTLINE : return basicSetOutline( null, msgs ); case LayoutPackage.PLOT__BACKGROUND : return basicSetBackground( null, msgs ); case LayoutPackage.PLOT__TRIGGERS : return ( (InternalEList) getTriggers( ) ).basicRemove( otherEnd, msgs ); case LayoutPackage.PLOT__CLIENT_AREA : return basicSetClientArea( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/PlotImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/PlotImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... |
private void writeDOMtoStream(Document document) { // Prepare the DOM document for writing // DOMSource - Acts as a holder for a transformation Source tree in the // form of a Document Object Model (DOM) tree Source source = new DOMSource(document); // StreamResult - Acts as an holder for a XML transformation result // Prepare the output stream result = new StreamResult(outputStream); // An instance of this class can be obtained with the // TransformerFactory.newTransformer method. This instance may // then be used to process XML from a variety of sources and write // the transformation output to a variety of sinks Transformer xformer = null; try { xformer = TransformerFactory.newInstance().newTransformer(); //Transform the XML Source to a Result // xformer.transform(source, result); } catch (TransformerConfigurationException e) { e.printStackTrace(); } catch (TransformerFactoryConfigurationError e) { e.printStackTrace(); } catch (TransformerException e1) { e1.printStackTrace(); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/97c961c8634109583a193ad9c89f98db472390cf/TaskscapeXmlWriter.java/clean/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/core/util/TaskscapeXmlWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
3238,
918,
1045,
8168,
869,
1228,
12,
2519,
1668,
13,
288,
225,
368,
7730,
326,
4703,
1668,
364,
7410,
225,
368,
4703,
1830,
300,
4603,
87,
487,
279,
10438,
364,
279,
8620,
4998,
2151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
918,
1045,
8168,
869,
1228,
12,
2519,
1668,
13,
288,
225,
368,
7730,
326,
4703,
1668,
364,
7410,
225,
368,
4703,
1830,
300,
4603,
87,
487,
279,
10438,
364,
279,
8620,
4998,
2151,
... | ||
private void createActions() { ISelectionProvider provider= fViewer;// fOpenCUAction= new OpenResourceAction(provider); fPropertyDialogAction= new PropertyDialogAction(getShell(), provider); // fShowTypeHierarchyAction= new ShowTypeHierarchyAction(provider); fShowNavigatorAction= new ShowInNavigatorAction(provider); fAddBookmarkAction= new AddBookmarkAction(provider); fStandardGroups= new ContextMenuGroup[] { new NewGroup(), new BuildGroup(), new ReorgGroup(), new JavaSearchGroup() }; fDeleteAction= new DeleteAction(provider); fRefreshAction= new RefreshAction(getShell());// fFilterAction = new FilterSelectionAction(getShell(), this, PackagesMessages.getString("PackageExplorer.filters")); //$NON-NLS-1$// fShowLibrariesAction = new ShowLibrariesAction(this, PackagesMessages.getString("PackageExplorer.referencedLibs")); //$NON-NLS-1$// fShowBinariesAction = new ShowBinariesAction(getShell(), this, PackagesMessages.getString("PackageExplorer.binaryProjects")); //$NON-NLS-1$// // fBackAction= new BackAction(fFrameList);// fForwardAction= new ForwardAction(fFrameList);// fZoomInAction= new GoIntoAction(fFrameList);// fUpAction= new UpAction(fFrameList);//// fGotoTypeAction= new GotoTypeAction(this);// fGotoPackageAction= new GotoPackageAction(this); IActionBars actionService= getViewSite().getActionBars(); actionService.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, fDeleteAction); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8ef1f2cbdf77210102411bbdb718423e561e0f65/JavaBrowsingPart.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6100,
1435,
288,
202,
202,
45,
6233,
2249,
2893,
33,
284,
18415,
31,
759,
202,
202,
74,
3678,
16001,
1803,
33,
394,
3502,
1420,
1803,
12,
6778,
1769,
202,
202,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6100,
1435,
288,
202,
202,
45,
6233,
2249,
2893,
33,
284,
18415,
31,
759,
202,
202,
74,
3678,
16001,
1803,
33,
394,
3502,
1420,
1803,
12,
6778,
1769,
202,
202,
74,
... | ||
returnval=false; | returnval=false; | public boolean addUserGroup(String usergroupname){ boolean returnval=true; try{ usergrouphome.findByPrimaryKey(usergroupname); returnval=false; }catch(FinderException e){ } if(returnval){ try{ usergrouphome.create(usergroupname); returnval=true; }catch(CreateException e){ returnval=false; } } return returnval; } // addUserGroup | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/407cb8bf1ba941a903c1e7a6da4d1f73ec87560f/LocalAuthorizationSessionBean.java/clean/src/java/se/anatom/ejbca/ra/authorization/LocalAuthorizationSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
21255,
12,
780,
729,
1655,
529,
15329,
1377,
1250,
327,
1125,
33,
3767,
31,
3639,
775,
95,
3639,
729,
1655,
8712,
18,
4720,
858,
11575,
12,
1355,
1655,
529,
1769,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
527,
21255,
12,
780,
729,
1655,
529,
15329,
1377,
1250,
327,
1125,
33,
3767,
31,
3639,
775,
95,
3639,
729,
1655,
8712,
18,
4720,
858,
11575,
12,
1355,
1655,
529,
1769,
3639,
... |
public void handleFiles(List files) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.newDocument(); Element overviewRoot = Util.addChildElement(doc, "overview-frame", null); doc = db.newDocument(); Element allTagsRoot = Util.addChildElement(doc, "all-tags", null); Iterator iter = files.iterator(); while (iter.hasNext()) { File file = (File) iter.next(); if (!file.exists() || !file.canRead()) { continue; } Document xmlDoc = handleFile(file); if (xmlDoc != null) { String shortname = Util.getElementValue( xmlDoc.getDocumentElement(), "body/taglib/shortname"); Util.addChildElement(overviewRoot, "shortname", shortname); List tags = Util.getElements( xmlDoc.getDocumentElement(), "body/taglib/tag"); Iterator tagIter = tags.iterator(); while (tagIter.hasNext()) { Element tag = (Element) tagIter.next(); String tagname = Util.getElementValue(tag, "name"); tag = Util.addChildElement(allTagsRoot, "tag", null); Util.addChildElement(tag, "name", tagname); Util.addChildElement(tag, "taglib", shortname); } } } Source xml = new DOMSource(overviewRoot); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/index.xsl")); Result out = new StreamResult(new File(destdir, "index.html")); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/overview-frame.xsl")); out = new StreamResult(new File(destdir, "overview-frame.html")); t = tf.newTransformer(xsl); t.transform(xml, out); xml = new DOMSource(allTagsRoot); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/all-tags.xsl")); out = new StreamResult(new File(destdir, "all-tags.html")); t = tf.newTransformer(xsl); t.transform(xml, out); Util.copyFile( "/resources/taglibdoc/stylesheet.css", new File(destdir, "stylesheet.css")); } catch (Exception e) { e.printStackTrace(); } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/6c6a574b8da6a8f7989e99ea78e4db5cb63abe6b/TaglibDoc.java/buggy/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
... | ||
WOApplication.ApplicationWillFinishLaunchingNotification, | ERXApplication.ApplicationDidCreateNotification, | public static void setUpFrameworkPrincipalClass(Class c) { try { NSLog.debug.appendln("Loaded items: " + initializedFrameworks); if(observer == null) { observer = new Observer(); NSNotificationCenter center = NSNotificationCenter.defaultCenter(); center.addObserver(observer, new NSSelector("finishInitialization", ERXConstant.NotificationClassArray), WOApplication.ApplicationWillFinishLaunchingNotification, null); } if (initializedFrameworks.objectForKey(c.getName()) == null) { NSLog.debug.appendln("Starting up: " + c.getName()); try { Field f = c.getField("REQUIRES"); Class requires[] = (Class[]) f.get(c); for (int i = 0; i < requires.length; i++) { Class requirement = requires[i]; setUpFrameworkPrincipalClass(requirement); } } catch (NoSuchFieldException e) { // nothing // NSLog.debug.appendln("No requirements: " + c.getName()); } catch (IllegalAccessException e) { NSLog.err.appendln("Can't read field REQUIRES from " + c.getName() + ", check if it is 'public static Class[] REQUIRES= new Class[] {...}' in this class"); NSForwardException._runtimeExceptionForThrowable(e); } ERXFrameworkPrincipal principal = (ERXFrameworkPrincipal)c.newInstance(); initializedFrameworks.setObjectForKey(principal,c.getName()); principal.initialize(); launchingFrameworks.addObject(principal); NSLog.debug.appendln("Initialized : " + c.getName()); } else { NSLog.debug.appendln("Was already inited: " + c.getName()); } } catch (InstantiationException e) { throw NSForwardException._runtimeExceptionForThrowable(e); } catch (IllegalAccessException e) { throw NSForwardException._runtimeExceptionForThrowable(e); } } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/732582c01b478d5fb73f6cef3ac09be0b07405bf/ERXFrameworkPrincipal.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXFrameworkPrincipal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
24292,
13701,
9155,
797,
12,
797,
276,
13,
288,
3639,
775,
288,
5411,
11472,
1343,
18,
4148,
18,
6923,
2370,
2932,
8835,
1516,
30,
315,
397,
6454,
13701,
87,
1769,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
24292,
13701,
9155,
797,
12,
797,
276,
13,
288,
3639,
775,
288,
5411,
11472,
1343,
18,
4148,
18,
6923,
2370,
2932,
8835,
1516,
30,
315,
397,
6454,
13701,
87,
1769,
5411,
... |
public boolean isSet(org.quickfix.field.StipulationType field) | public boolean isSet(quickfix.field.StipulationType field) | public boolean isSet(org.quickfix.field.StipulationType field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix43/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
510,
625,
6234,
559,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
510,
625,
6234,
559,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public void update(IPerspectiveDescriptor newDesc) { perspective = newDesc; | public void update() { | public void update(IPerspectiveDescriptor newDesc) { perspective = newDesc; if (toolItem != null && !toolItem.isDisposed()) { ImageDescriptor imageDescriptor = perspective.getImageDescriptor(); if (imageDescriptor != null) { toolItem.setImage(imageDescriptor.createImage()); } else { toolItem.setImage(WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE) .createImage()); } toolItem.setToolTipText(WorkbenchMessages.format( "PerspectiveBarContributionItem.toolTip", //$NON-NLS-1$ new Object[] { perspective.getLabel()})); } update(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4c0c864491ea8f27d7773b211ddae0e40a81354f/PerspectiveBarContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
2579,
414,
16772,
3187,
394,
4217,
13,
288,
3639,
26651,
273,
394,
4217,
31,
3639,
309,
261,
6738,
1180,
480,
446,
597,
401,
6738,
1180,
18,
291,
1669,
7423,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
2579,
414,
16772,
3187,
394,
4217,
13,
288,
3639,
26651,
273,
394,
4217,
31,
3639,
309,
261,
6738,
1180,
480,
446,
597,
401,
6738,
1180,
18,
291,
1669,
7423,
10756,
... |
declaration(linkage, null, null); | declaration(linkage, null, null, KeywordSetKey.DECLARATION); | protected IASTDeclaration linkageSpecification(IASTScope scope) throws EndOfFileException, BacktrackException { IToken firstToken = consume(IToken.t_extern); if (LT(1) != IToken.tSTRING) throw backtrack; IToken spec = consume(IToken.tSTRING); if (LT(1) == IToken.tLBRACE) { consume(IToken.tLBRACE); IASTLinkageSpecification linkage; try { linkage = astFactory.createLinkageSpecification( scope, spec.getImage(), firstToken.getOffset(), firstToken.getLineNumber()); } catch (Exception e) { logException( "linkageSpecification_1:createLinkageSpecification", e ); //$NON-NLS-1$ throw backtrack; } linkage.enterScope( requestor, astFactory.getReferenceManager() ); linkageDeclarationLoop : while (LT(1) != IToken.tRBRACE) { int checkToken = LA(1).hashCode(); switch (LT(1)) { case IToken.tRBRACE : consume(IToken.tRBRACE); break linkageDeclarationLoop; default : try { declaration(linkage, null, null); } catch (BacktrackException bt) { failParse(); if (checkToken == LA(1).hashCode()) errorHandling(); } } if (checkToken == LA(1).hashCode()) errorHandling(); } // consume the } IToken lastTokenConsumed = consume(); linkage.setEndingOffsetAndLineNumber(lastTokenConsumed.getEndOffset(), lastTokenConsumed.getLineNumber()); linkage.exitScope( requestor, astFactory.getReferenceManager() ); return linkage; } // single declaration IASTLinkageSpecification linkage; try { linkage = astFactory.createLinkageSpecification( scope, spec.getImage(), firstToken.getOffset(), firstToken.getLineNumber()); } catch (Exception e) { logException( "linkageSpecification_2:createLinkageSpecification", e ); //$NON-NLS-1$ throw backtrack; } linkage.enterScope( requestor, astFactory.getReferenceManager() ); declaration(linkage, null, null); linkage.exitScope( requestor, astFactory.getReferenceManager() ); return linkage; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fb57293d470c0087b6edd9673084d38ceb95e5c2/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
6094,
1692,
410,
8615,
12,
45,
9053,
3876,
2146,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
3639,
467,
1345,
1122,
1345,
273,
7865,
12,
1285,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
6094,
1692,
410,
8615,
12,
45,
9053,
3876,
2146,
13,
3639,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
565,
288,
3639,
467,
1345,
1122,
1345,
273,
7865,
12,
1285,
9... |
return evalUnder(mod, args[0], file, line); | Scope currentScope = runtime.getScope().current(); Visibility savedVisibility = currentScope.getVisibility(); currentScope.setVisibility(Visibility.PUBLIC); try { return evalUnder(mod, args[0], file, line); } finally { currentScope.setVisibility(savedVisibility); } | public IRubyObject specificEval(RubyModule mod, IRubyObject[] args) { if (getRuntime().isBlockGiven()) { if (args.length > 0) { throw new ArgumentError(getRuntime(), args.length, 0); } return yieldUnder(mod); } else { if (args.length == 0) { throw new ArgumentError(getRuntime(), "block not supplied"); } else if (args.length > 3) { String lastFuncName = runtime.getCurrentFrame().getLastFunc(); throw new ArgumentError( getRuntime(), "wrong # of arguments: " + lastFuncName + "(src) or " + lastFuncName + "{..}"); } /* if (ruby.getSecurityLevel() >= 4) { Check_Type(argv[0], T_STRING); } else { Check_SafeStr(argv[0]); } */ IRubyObject file = args.length > 1 ? args[1] : RubyString.newString(getRuntime(), "(eval)"); IRubyObject line = args.length > 2 ? args[2] : RubyFixnum.one(getRuntime()); return evalUnder(mod, args[0], file, line); } } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0044a3b88a0afa22dcced1c8213002b0fb16faf4/RubyObject.java/buggy/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2923,
13904,
12,
54,
10340,
3120,
681,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
588,
5576,
7675,
291,
1768,
6083,
10756,
288,
5411,
309,
261,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2923,
13904,
12,
54,
10340,
3120,
681,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
588,
5576,
7675,
291,
1768,
6083,
10756,
288,
5411,
309,
261,
19... |
public boolean isMissingParameter( ) { | public boolean isMissingParameter() { | public boolean isMissingParameter( ) { boolean missingParameter = false; ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); HashMap params = (HashMap) this.getConfigVars( ); List parameters = model.getFlattenParameters( ); if ( parameters != null ) { for ( int i = 0; i < parameters.size( ); i++ ) { if ( parameters.get( i ) instanceof ScalarParameterHandle ) { ScalarParameterHandle parameter = ( (ScalarParameterHandle) parameters .get( i ) ); if ( parameter.isHidden( ) ) { continue; } String paramValue = null; if ( params != null && params.containsKey( parameter.getName( ) ) ) { Object curVal = params.get( parameter.getName( ) ); if ( curVal != null ) paramValue = curVal.toString( ); } else { paramValue = parameter.getDefaultValue( ); } if ( paramValue == null && !parameter.allowNull( ) ) { missingParameter = true; break; } if ( paramValue != null && paramValue.trim( ).length( ) <= 0 && !parameter.allowBlank( ) && parameter.getDataType( ).equalsIgnoreCase( DesignChoiceConstants.PARAM_TYPE_STRING ) ) { missingParameter = true; break; } } } } return missingParameter; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/464f907d246180ca04c84336398722e6d5245566/ReportPreviewFormPage.java/clean/UI/org.eclipse.birt.report.designer.ui.preview/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
4841,
1662,
12,
262,
202,
95,
202,
202,
6494,
3315,
1662,
273,
629,
31,
202,
202,
3120,
3259,
938,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9506,
202,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
4841,
1662,
12,
262,
202,
95,
202,
202,
6494,
3315,
1662,
273,
629,
31,
202,
202,
3120,
3259,
938,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9506,
202,
18,
5... |
parent.setLayout(layout); FormData data = new FormData(); data.top = new FormAttachment(0, 0); data.bottom = new FormAttachment(100, 0); parent.setLayoutData(data); | contents.setLayout(layout); | protected Control createContents(Composite parent) { // initialize the dialog units initializeDialogUnits(parent); FormLayout layout = new FormLayout(); parent.setLayout(layout); FormData data = new FormData(); data.top = new FormAttachment(0, 0); data.bottom = new FormAttachment(100, 0); parent.setLayoutData(data); //Now create a work area for the rest of the dialog workArea = new Composite(parent, SWT.NULL); GridLayout childLayout = new GridLayout(); childLayout.marginHeight = 0; childLayout.marginWidth = 0; childLayout.verticalSpacing = 0; workArea.setLayout(childLayout); Control top = createTitleArea(parent); resetWorkAreaAttachments(top); workArea.setFont(JFaceResources.getDialogFont()); // initialize the dialog units initializeDialogUnits(workArea); // create the dialog area and button bar dialogArea = createDialogArea(workArea); buttonBar = createButtonBar(workArea); return parent; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4c32220f5c7ae7c95649bbe6c2068aebd0ea9f4/TitleAreaDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8888,
752,
6323,
12,
9400,
982,
13,
288,
3639,
368,
4046,
326,
6176,
4971,
3639,
4046,
6353,
7537,
12,
2938,
1769,
3639,
2748,
3744,
3511,
273,
394,
2748,
3744,
5621,
3639,
982,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8888,
752,
6323,
12,
9400,
982,
13,
288,
3639,
368,
4046,
326,
6176,
4971,
3639,
4046,
6353,
7537,
12,
2938,
1769,
3639,
2748,
3744,
3511,
273,
394,
2748,
3744,
5621,
3639,
982,
18,... |
return execSub(cx, this, args, scope, MATCH, this); | return execSub(cx, scope, args, MATCH); | public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return execSub(cx, this, args, scope, MATCH, this); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/df6489821e17e324fc80ecaf97715a68d67771bd/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
288,
3639,
327,
1196,
1676,
12,
71,
92,
16,
2146,
16,
833,
16,
16585,
1769,
565,
289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
288,
3639,
327,
1196,
1676,
12,
71,
92,
16,
2146,
16,
833,
16,
16585,
1769,
565,
289,... |
throw org.postgresql.Driver.notImplemented(); | return connection.getServerMajorVersion(); | public int getDatabaseMajorVersion() throws SQLException { throw org.postgresql.Driver.notImplemented(); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/d23fd9572b4cd6bfea3f74067a2d631c20fda886/AbstractJdbc3DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11263,
17581,
1444,
1435,
1216,
6483,
202,
95,
202,
202,
12849,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11263,
17581,
1444,
1435,
1216,
6483,
202,
95,
202,
202,
12849,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public Vector getPortletApp() { | public List getPortletApp() { | public Vector getPortletApp() { return PortletApp; }; | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/0e5a70e155923cf1db4e96abd8a60a4fe9e80b66/PortletDeploymentDescriptor.java/clean/src/org/gridlab/gridsphere/portletcontainer/descriptor/PortletDeploymentDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
11036,
1810,
3371,
1435,
288,
3639,
327,
21305,
3371,
31,
565,
289,
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,
... | [
1,
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,
377,
1071,
987,
11036,
1810,
3371,
1435,
288,
3639,
327,
21305,
3371,
31,
565,
289,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
setLayout(new FlowLayout(FlowLayout.LEFT,0,0)); | setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); | public MultiToolbar() { setLayout(new FlowLayout(FlowLayout.LEFT,0,0)); this.setBackground(Color.blue); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/MultiToolbar.java/buggy/src_new/org/argouml/ui/MultiToolbar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5991,
17907,
1435,
288,
3639,
18479,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
10066,
16,
374,
16,
374,
10019,
3639,
333,
18,
542,
8199,
12,
2957,
18,
14081,
1769,
565,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5991,
17907,
1435,
288,
3639,
18479,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
10066,
16,
374,
16,
374,
10019,
3639,
333,
18,
542,
8199,
12,
2957,
18,
14081,
1769,
565,
289,
2,
-1... |
final Set bindings = new HashSet(); bindings.add(binding1); bindings.add(binding2); bindingManager.setBindings(bindings); | bindingManager.addBinding(binding2); | public void testConflict() throws NotDefinedException { final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme scheme = bindingManager.getScheme("na"); scheme.define("name", "description", null); bindingManager.setActiveScheme(scheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); final Binding binding1 = new TestBinding("conflict1", "na", "na", null, null, Binding.SYSTEM); final Binding binding2 = new TestBinding("conflict2", "na", "na", null, null, Binding.SYSTEM); final Set bindings = new HashSet(); bindings.add(binding1); bindings.add(binding2); bindingManager.setBindings(bindings); Collection activeBindings = bindingManager .getActiveBindingsFor(binding1.getCommandId()); assertTrue("Neither binding should be active", activeBindings.isEmpty()); activeBindings = bindingManager.getActiveBindingsFor(binding2 .getCommandId()); assertTrue("Neither binding should be active", activeBindings.isEmpty()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/aaf24f9edb61f7e189ff821250cda3d6f0088de9/BindingInteractionsTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingInteractionsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
10732,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10732,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384... |
super(ruby, "$" + bean.name, null); | super(ruby, GlobalVariable.variableName(bean.name), null); | public BeanGlobalVariable(Ruby ruby, BSFDeclaredBean bean) { super(ruby, "$" + bean.name, null); this.bean = bean; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/fe90dd6c556fab30e7ced54beb6d47e382ea6ee0/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7704,
5160,
3092,
12,
54,
10340,
22155,
16,
605,
22395,
18888,
3381,
3931,
13,
288,
5411,
2240,
12,
27768,
16,
8510,
3092,
18,
6105,
461,
12,
14496,
18,
529,
3631,
446,
1769,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7704,
5160,
3092,
12,
54,
10340,
22155,
16,
605,
22395,
18888,
3381,
3931,
13,
288,
5411,
2240,
12,
27768,
16,
8510,
3092,
18,
6105,
461,
12,
14496,
18,
529,
3631,
446,
1769,
5411,
... |
UserDomainObject user, IMCServiceInterface imcref ) throws IOException { | UserDomainObject user, ImcmsServices imcref ) throws IOException { | private boolean upload( MultipartFormdataParser mp, File destDir, File dir1, File dir2, HttpServletResponse res, UserDomainObject user, IMCServiceInterface imcref ) throws IOException { boolean handledOutput = false; String fileContents = mp.getParameter( "file" ); if ( fileContents == null || fileContents.length() < 1 ) { outputBlankFileError( dir1, dir2, res, user, imcref ); handledOutput = true; return handledOutput; } String filename = ( new File( mp.getFilename( "file" ) ) ).getName(); File file = new File( destDir, filename ); File uniqueFile = findUniqueFilename( file ); if ( file.equals( uniqueFile ) || file.renameTo( uniqueFile ) ) { FileOutputStream fout = new FileOutputStream( file ); byte[] bytes = fileContents.getBytes( "8859_1" ); fout.write( bytes ); fout.flush(); fout.close(); if ( !file.equals( uniqueFile ) ) { outputFileExistedAndTheOriginalWasRenamedNotice( dir1, dir2, uniqueFile.getName(), res, user, imcref ); handledOutput = true; } } else { // FIXME: Output failed-to-rename-original-file error dialog handledOutput = false; } return handledOutput; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/FileAdmin.java/clean/server/src/com/imcode/imcms/servlet/superadmin/FileAdmin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3617,
12,
19919,
1204,
892,
2678,
6749,
16,
1387,
26231,
16,
1387,
1577,
21,
16,
1387,
1577,
22,
16,
12446,
400,
16,
18701,
2177,
3748,
921,
729,
16,
2221,
6851,
5676,
709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3617,
12,
19919,
1204,
892,
2678,
6749,
16,
1387,
26231,
16,
1387,
1577,
21,
16,
1387,
1577,
22,
16,
12446,
400,
16,
18701,
2177,
3748,
921,
729,
16,
2221,
6851,
5676,
709,
... |
rowCount = 0; | protected void newContext( ) { createRoot( ); buildTableLayoutInfo( ); root.setWidth( layoutInfo.getTableWidth( ) ); setMaxAvaHeight( getAvaHeight( ) ); setMaxAvaWidth( layoutInfo.getTableWidth( ) ); setCurrentIP( 0 ); setCurrentBP( 0 ); repeatRowCount = 0; setCurrentIP( 0 ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7ed22fff465f0a50978a06defbc3569031f205c8/PDFTableLM.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
492,
1380,
273,
374,
31,
918,
492,
1380,
273,
374,
31,
28210,
12,
492,
1380,
273,
374,
31,
262,
202,
95,
202,
202,
2640,
2375,
12,
492,
1380,
273,
374,
31,
11272,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
492,
1380,
273,
374,
31,
918,
492,
1380,
273,
374,
31,
28210,
12,
492,
1380,
273,
374,
31,
262,
202,
95,
202,
202,
2640,
2375,
12,
492,
1380,
273,
374,
31,
11272,
202,
202,... | |
path.setText(query.getPath()); | if(query.getPath() != null) path.setText(query.getPath()); else path.setText(I18n.getMessage("thaw.common.unspecified")); | public void refreshAll() { refresh(); if(query != null) { file.setText(query.getFilename()); path.setText(query.getPath()); if(query.isGlobal()) globalQueue.setText(I18n.getMessage("thaw.common.yes")); else globalQueue.setText(I18n.getMessage("thaw.common.no")); } else { file.setText(""); key.setText(""); path.setText(""); globalQueue.setText(""); } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/704820d7bded9d740ada32516d8a2acc436e214a/DetailPanel.java/buggy/src/thaw/plugins/queueWatcher/DetailPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4460,
1595,
1435,
288,
202,
202,
9144,
5621,
202,
202,
430,
12,
2271,
480,
446,
13,
288,
1082,
202,
768,
18,
542,
1528,
12,
2271,
18,
588,
5359,
10663,
1082,
202,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
1595,
1435,
288,
202,
202,
9144,
5621,
202,
202,
430,
12,
2271,
480,
446,
13,
288,
1082,
202,
768,
18,
542,
1528,
12,
2271,
18,
588,
5359,
10663,
1082,
202,
803,
... |
if (Initializer.getDatabase() == Initializer.POSTGRES) { | if (DbHelper.getDatabase() == DbHelper.DB_POSTGRES) { | public void testGetConnection() throws SQLException { conn = ConnectionManager.getConnection(); try { assertNotNull(conn); String dateQuery = null; if (Initializer.getDatabase() == Initializer.POSTGRES) { dateQuery = POSTGRES_DATE_QUERY; } else { dateQuery = ORACLE_DATE_QUERY; } java.sql.PreparedStatement stmt = conn.prepareStatement(dateQuery); try { java.sql.ResultSet rs = stmt.executeQuery(); try { if (rs.next()) { String date = rs.getString(1); assertNotNull(date); } else { fail("Empty result set from sysdate query"); } } finally { rs.close(); } } finally { stmt.close(); } } finally { conn.close(); } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/a81e02757ceb6d6ac4c6234daea0574748217fd0/ConnectionManagerTest.java/clean/archive/core-platform/test/src/com/arsdigita/db/ConnectionManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
1952,
1435,
1216,
6483,
288,
3639,
1487,
273,
4050,
1318,
18,
588,
1952,
5621,
3639,
775,
288,
5411,
25395,
12,
4646,
1769,
5411,
514,
1509,
1138,
273,
446,
31,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
1952,
1435,
1216,
6483,
288,
3639,
1487,
273,
4050,
1318,
18,
588,
1952,
5621,
3639,
775,
288,
5411,
25395,
12,
4646,
1769,
5411,
514,
1509,
1138,
273,
446,
31,
5411... |
assertEquals(STRING_1_UTF8_RESULT + CR_LF, convertedHtml1); assertEquals(STRING_2_UTF8_RESULT + CR_LF, convertedHtml2); | assertEquals(STRING_1_UTF8_RESULT , convertedHtml1); assertEquals(STRING_2_UTF8_RESULT , convertedHtml2); | public void testUTF8() { System.out.println("Testing UTF-8 conversion"); CmsHtmlConverter converter = new CmsHtmlConverter("UTF-8", CmsHtmlConverter.PARAM_WORD); String convertedHtml1 = converter.convertToStringSilent(STRING_1); String convertedHtml2 = converter.convertToStringSilent(STRING_2); // the converted code will end with a cr ff (\r\n) assertEquals(STRING_1_UTF8_RESULT + CR_LF, convertedHtml1); assertEquals(STRING_2_UTF8_RESULT + CR_LF, convertedHtml2); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/c2939090018d7c044ebe0e84bde2c0896c542338/TestCmsHtmlConverter.java/buggy/test/org/opencms/util/TestCmsHtmlConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5159,
28,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
22218,
6380,
17,
28,
4105,
8863,
3639,
2149,
4353,
5072,
6027,
273,
394,
2149,
4353,
5072,
2932,
5159,
17,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5159,
28,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
22218,
6380,
17,
28,
4105,
8863,
3639,
2149,
4353,
5072,
6027,
273,
394,
2149,
4353,
5072,
2932,
5159,
17,
28,
... |
else if(buffer.getFoldLevel(i) >= collapseFolds) | else if(buffer.getFoldLevel(i) >= threshold) | public void _linesInserted(int startLine, int numLines) { //{{{ Find fold start of this line boolean visible = true; int foldLevel = buffer.getFoldLevel(startLine); for(int i = startLine - 1; i >= 0; i--) { if(buffer.isFoldStart(i) && buffer.getFoldLevel(i) < foldLevel) { visible = buffer._isLineVisible(i,index); break; } } //}}} int collapseFolds = buffer.getIntegerProperty("collapseFolds",0); if(collapseFolds != 0) collapseFolds = (collapseFolds - 1) * buffer.getIndentSize() + 1; int newVirtualLineCount = virtualLineCount; boolean seenVisibleLine = (startLine != 0); for(int i = startLine; i < startLine + numLines; i++) { boolean _visible; if(collapseFolds == 0) _visible = visible; else if(buffer.getFoldLevel(i) >= collapseFolds) _visible = false; else _visible = visible; if(!seenVisibleLine && !visible) _visible = true; if(_visible) { seenVisibleLine = true; newVirtualLineCount++; } buffer._setLineVisible(i,index,_visible); } virtualLineCount = newVirtualLineCount; if(lastPhysical >= startLine) lastPhysical = lastVirtual = 0; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/bbc2f9d5ca37662f1fdd9549a2be6ddfd2a59ef8/FoldVisibilityManager.java/clean/org/gjt/sp/jedit/textarea/FoldVisibilityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
3548,
27329,
12,
474,
24636,
16,
509,
818,
5763,
13,
202,
95,
202,
202,
759,
12187,
95,
4163,
11590,
787,
434,
333,
980,
202,
202,
6494,
6021,
273,
638,
31,
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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
3548,
27329,
12,
474,
24636,
16,
509,
818,
5763,
13,
202,
95,
202,
202,
759,
12187,
95,
4163,
11590,
787,
434,
333,
980,
202,
202,
6494,
6021,
273,
638,
31,
202,
2... |
super(); | public EvalTextArea(SwingGui debugGui) { super(); this.debugGui = debugGui; history = new java.util.Vector(); Document doc = getDocument(); doc.addDocumentListener(this); addKeyListener(this); setLineWrap(true); setFont(new Font("Monospaced", 0, 12)); append("% "); outputMark = doc.getLength(); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13163,
1528,
5484,
12,
6050,
310,
18070,
1198,
18070,
13,
288,
9079,
333,
18,
4148,
18070,
273,
1198,
18070,
31,
3639,
4927,
273,
394,
2252,
18,
1367,
18,
5018,
5621,
3639,
4319,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13163,
1528,
5484,
12,
6050,
310,
18070,
1198,
18070,
13,
288,
9079,
333,
18,
4148,
18070,
273,
1198,
18070,
31,
3639,
4927,
273,
394,
2252,
18,
1367,
18,
5018,
5621,
3639,
4319,
99... | |
new DepthFirstSearch<GraphType, EdgeType, VertexType>(); | new DepthFirstSearch<GraphType, EdgeType, VertexType>(); | public void findStronglyConnectedComponents(GraphType g, GraphToolkit<GraphType, EdgeType, VertexType> toolkit) { // Perform the initial depth first search DepthFirstSearch<GraphType, EdgeType, VertexType> initialDFS = new DepthFirstSearch<GraphType, EdgeType, VertexType>(); if (m_vertexChooser != null) initialDFS.setVertexChooser(m_vertexChooser); initialDFS.search(g); // Create a transposed graph Transpose<GraphType, EdgeType, VertexType> t = new Transpose<GraphType, EdgeType, VertexType>(); GraphType transpose = t.transpose(g, toolkit); // Create a set of vertices in the transposed graph, // in descending order of finish time in the initial // depth first search. VisitationTimeComparator<VertexType> comparator = new VisitationTimeComparator<VertexType>(initialDFS.getFinishTimeList(), VisitationTimeComparator.DESCENDING); Set<VertexType> descendingByFinishTimeSet = new TreeSet<VertexType>(comparator); Iterator<VertexType> i = transpose.vertexIterator(); while (i.hasNext()) { descendingByFinishTimeSet.add(i.next()); } // Now perform a DFS on the transpose, choosing the vertices // to visit in the main loop by descending finish time DepthFirstSearch<GraphType, EdgeType, VertexType> transposeDFS = new DepthFirstSearch<GraphType, EdgeType, VertexType>(); if (m_vertexChooser != null) transposeDFS.setVertexChooser(m_vertexChooser); transposeDFS.search(transpose, descendingByFinishTimeSet.iterator()); // The search tree roots of the second DFS represent the // strongly connected components. Note that we call copySearchTree() // to make the returned search trees relative to the original // graph, not the transposed graph (which would be very confusing). Iterator<SearchTree<VertexType>> j = transposeDFS.searchTreeIterator(); while (j.hasNext()) { m_stronglyConnectedSearchTreeList.add(copySearchTree(j.next(), t)); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/StronglyConnectedComponents.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/StronglyConnectedComponents.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
1585,
932,
715,
8932,
7171,
12,
4137,
559,
314,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
559,
16,
11342,
559,
16,
12541,
559,
34,
5226,
8691,
13,
288,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
1585,
932,
715,
8932,
7171,
12,
4137,
559,
314,
16,
202,
202,
4137,
6364,
8691,
32,
4137,
559,
16,
11342,
559,
16,
12541,
559,
34,
5226,
8691,
13,
288,
202,
202,
... |
private void setValues(Object obj, List values) throws GameParseException { for(int i = 0; i < values.size() ; i++) { Element current = (Element) values.get(i); //find the setter String name = null; Method setter = null; try { name = current.getAttribute("name"); if(name.length() == 0) throw new GameParseException("option name with 0 length"); name = "set" + capitalizeFirstLetter(name); setter = obj.getClass().getMethod(name, SETTER_ARGS); } catch(NoSuchMethodException nsme) { throw new GameParseException("No setter for attatchment option. Setter:" + name + " Class:" + obj.getClass().getName()); } //find the value String value = current.getAttribute("value"); //invoke try { Object[] args = {value}; setter.invoke(obj, args ); } catch(IllegalAccessException iae) { throw new GameParseException("Setter not public. Setter:" + name + " Class:" + obj.getClass().getName()); } catch(InvocationTargetException ite) { throw new GameParseException("Invocation Exception. Message:" + ite.getMessage()); } } } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/GameParser.java/clean/src/games/strategy/engine/data/GameParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
27466,
12,
921,
1081,
16,
987,
924,
13,
1216,
14121,
13047,
202,
95,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
924,
18,
1467,
1435,
274,
277,
27245,
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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
27466,
12,
921,
1081,
16,
987,
924,
13,
1216,
14121,
13047,
202,
95,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
924,
18,
1467,
1435,
274,
277,
27245,
202,
2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.