rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
addOption(ruleBreakers, new GameOption("blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false));
addOption(ruleBreakers, new GameOption("blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false)); addOption(ruleBreakers, new GameOption("real_blind_drop", "Real Blind Drop", "If checked, only own units are displayed. Defaults to false.", false));
public void initialize() { // set up game options OptionGroup base = new OptionGroup("Base Options"); addGroup(base); addOption(base, new GameOption("friendly_fire", "Friendly fire", "If checked, the game considers mechs owned by a player, or on the same team as a player, as valid targets.\n\nDefaults to checked, but unchecks when a second player joins the server.", true)); addOption(base, new GameOption("skip_ineligable_movement", "Skip ineligable during movement", "If checked, the game will skip a unit during the movement phase if it is immobile or otherwise inactive.\n\nUnchecked by default.", false)); addOption(base, new GameOption("skip_ineligable_firing", "Skip ineligable during firing", "If checked, the game will skip a unit during the firing phase if it is inactive.\n\nUnchecked by default.", false)); addOption(base, new GameOption("skip_ineligable_physical", "Skip ineligable during physical", "If checked, the game will skip a unit during the physical phase if no attacks are possible or there are no valid targets.\n\nChecked by default.", true)); addOption(base, new GameOption("push_off_board", "Allow pushing off the map", "This options allows a mech to be pushed off the map and out of the game by push, charge or DFA attacks.\n\nChecked by default.", true)); addOption(base, new GameOption("check_victory", "Check for victory", "If checked, the server will enter the victory phase at the end of any turn where victory conditions are met. Even if unchecked or conditions are not met, server admins can force victory with the /victory command.\n\nDefaults to checked.", true)); addOption(base, new GameOption("rng_type", "RNG Type", "Note: any type other than 0 or 1 is completely unofficial.\n\nValid types:\n0 - SunRandom: Sun regular RNG\n1 - CryptoRandom: Java crypto-strength RNG\n2 - Pool36Random: Pool of 36 values, randomly shuffled\n\nDefaults to 1.", 1)); addOption(base, new GameOption("team_initiative", "Teams roll initiative", "When checked, teams roll initiative as one group. This team initative is used to order the units according to the normal method. Player order on a team is determined by their own initiative.\n\nChecked by default", true)); addOption(base, new GameOption("is_eq_limits", "Ammo & Equipment Limits", "If checked, Inner Sphere units will be limited to ammo & equipment available at their build year. Turning this option off will not remove invalid equipment.\n\nChecked by default", true)); addOption(base, new GameOption("autosave_msg", "Remind on Autosave", "If checked, the server will send a message each time an auto-save is performed.\n\nChecked by default", true)); addOption(base, new GameOption("paranoid_autosave", "Paranoid Autosave", "If checked, the game will auto-save every phase.\n\nUnchecked by default", false)); OptionGroup level2 = new OptionGroup("Optional Rules (Level 2)"); addGroup(level2); addOption(level2, new GameOption("flamer_heat", "Flamers can deal heat instead of damage", "If checked, flamers can increase the heat of their target by 2 instead of dealing 2 damage.\n\nChecked by default.", true)); addOption(level2, new GameOption("fire", "Fire and smoke", "If checked, fires may be set accidentally or intentionally.\n\nChecked by default.", true)); addOption(level2, new GameOption("indirect_fire", "Indirect fire", "If checked, LRMs may be fire indirectly, and players may choose to spot for indirect fire instead of attacking.\n\nChecked by default.", true)); addOption(level2, new GameOption("minefields", "Minefields", "If checked, minefields can be used.\n\nChecked by default.", true)); addOption(level2, new GameOption("temperature", "Temperature", "The temperature the game takes place at, for use with the Extreme Temperatures rule.\n\nDefaults to 25 degrees Celsius, thus having no effect.", 25)); addOption(level2, new GameOption("gravity", "Gravity", "The gravity of the world the game takes place at, for use with the High/Low Gravity rule.\n\nDefaults to 1 G, thus having no effect.", (float)1.0)); addOption(level2, new GameOption("vacuum", "Vacuum", "If checked, the game takes place in Vacuum.\n\nUnchecked by default.", false)); OptionGroup level3 = new OptionGroup("Optional Rules (Level 3)"); addGroup(level3); addOption(level3, new GameOption("double_blind", "Double blind", "If checked, enemy units will only be visible if they are in line of sight of one or more of your units.\n\nUnchecked by default.", false)); addOption(level3, new GameOption("team_vision", "Teams share vision", "If checked, teams will share vision in double-blind mode. Only valid in double-blind mode.\n\nChecked by default.", true)); addOption(level3, new GameOption("floating_crits", "Through-armor criticals will 'float'", "If checked, rolls of '2' on hit location will result in a new location being rolled for a critical hit, instead of just hitting the local torso.\n\nUnchecked by default.", false)); addOption(level3, new GameOption("engine_explosions", "MaxTech engine explosions", "If checked, any time a mech takes 2 or more engine crits in one round, a roll of '12' will cause a cascading engine explosion.", false)); addOption(level3, new GameOption("pilot_advantages", "MaxTech pilot advantages", "If checked, players can add additional advantages to their pilots through the 'configure mech' window.", false)); addOption(level3, new GameOption("maxtech_physical_BTH", "MaxTech physical BTHs", "If checked, BTHs for physical attacks will use MaxTech levels. These levels take into account the piloting skill of the attacking unit.", false)); addOption(level3, new GameOption("maxtech_physical_psr", "MaxTech physical PSR weight difference", "If checked, after being kicked or pushed the PSR is modified by the weight classes of the two mechs. The PSR is modified by 1 point per weight class difference. The difference is added to the PSR if the attacker is heavier or subtracted if the attacker is lighter.", false)); addOption(level3, new GameOption("maxtech_round_damage", "MaxTech damage per round", "If checked, units will have +1 to their piloting skill roll for every 20 damage taken, not just the first damage. Also, BTH is altered by weight class. Lights get +1 to BTH where as assaults get -2. Mediums and heavies are in between.", false)); addOption(level3, new GameOption("maxtech_prone_fire", "MaxTech firing while prone", "If checked, mechs that are prone can fire if they are missing one arm. Standard rules disallow firing when prone and missing an arm. All weapons are +1 BTH and weapons mounted in propping arm can not be fired.", false)); addOption(level3, new GameOption("maxtech_target_modifiers", "MaxTech target movement modifiers", "If checked, the target movement modifiers table is enhanced by 3 additional steps (14-18 hexes => +5, 19-24 hexes => +6 25+ hexes => +7.", false)); addOption(level3, new GameOption("maxtech_leg_damage", "MaxTech Leg Damage Rule", "If checked, hip criticals are cummulative with other damage to legs, but reduce movement by 2 instead of halving. Destroying both hips does not reduce MPs to zero.", false)); addOption(level3, new GameOption("maxtech_fire", "MaxTech Fire/Smoke Rules", "If checked, fires create smoke that drifts and dissipates, instead of remaining static. In addition, smoke is split into light and heavy varieties.", false)); addOption(level3, new GameOption("maxtech_range", "MaxTech Extreme Range Rules", "If checked, Weapons have an extreme range bracket past their long range distance.", false)); addOption(level3, new GameOption("maxtech_LOS1", "MaxTech Diagramming Line of Sight Rules", "If checked, LOS will be calculated using the Diagramming LOS rules from MaxTech revised, page 22", false)); addOption(level3, new GameOption("maxtech_altdmg", "MaxTech Altered Energy Weapons Damage", "If checked, the damage inflicted by energy weapons (Laser, Flamer, PPC) is altered as follows: Half damage (rounded up) at extreme range, -1 damage at long range, +1 damage at range <= 1. Defaults to false.", false)); OptionGroup ruleBreakers = new OptionGroup("Optional Rules (unofficial)"); addGroup(ruleBreakers); addOption(ruleBreakers, new GameOption("no_tac", "No through-armor criticals", "If checked, rolls of '2' on hit location will only result in a torso hit, and no critical roll. Only applies to mechs. Supercedes the floating criticals option.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("no_immobile_vehicles", "Vehicles not immobilized by crits", "If checked, vehicles with a drive or engine hit will not be counted as 'immobile' for purposes of determining to-hit numbers.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("vehicles_can_eject", "Vehicles can be abandoned", "If checked, vehicle crews can leave their unit (effectively removing it from the game).\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("inf_move_last", "Infantry move after Meks and Vehicles", "If checked, all Meks and Vehicles will move before the first Infantry unit. The move order of Meks and Vehicles ignores the presence of Infantry.\n\nMutually exclusive with \"" + Game.INF_AND_PROTOS_MOVE_MULTI + " Infantry for every Mek or Vehicle\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("inf_deploy_last", "Infantry deploy after Meks and Vehicles", "If checked, all Meks and Vehicles will deploy before the first Infantry unit.\n\nThe above option, \"Infantry move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("inf_move_multi", Game.INF_AND_PROTOS_MOVE_MULTI + " Infantry for every Mek or Vehicle", "If checked, " + Game.INF_AND_PROTOS_MOVE_MULTI + " infantry units will have to move in place of a single Mek or Vehicle. If there are less than " + Game.INF_AND_PROTOS_MOVE_MULTI + " units remaining, they all must move. The move order includes the presence of Infantry.\n\nMutually exclusive with \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("inf_move_later", "A players Infantry moves after that players other units", "If checked, each player must move all their other units before they move their Infantry. If \"A players Protomechs move after that players other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"" + Game.INF_AND_PROTOS_MOVE_MULTI + " Infantry for every Mek or Vehicle\" and \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("protos_move_last", "Protomechs move after Meks and Vehicles", "If checked, all Meks and Vehicles will move before the first Protomech. The move order of Meks and Vehicles ignores the presence of Protomechs.\n\nMutually exclusive with \"" + Game.INF_AND_PROTOS_MOVE_MULTI + " Protomechs for every Mek or Vehicle\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("protos_deploy_last", "Protomechs deploy after Meks and Vehicles", "If checked, all Meks and Vehicles will deploy before the first Protomech.\n\nThe above option, \"Protomechs move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("protos_move_multi", Game.INF_AND_PROTOS_MOVE_MULTI + " Protomechs for every Mek or Vehicle", "If checked, " + Game.INF_AND_PROTOS_MOVE_MULTI + " protomechs will have to move in place of a single Mek or Vehicle. If there are less than " + Game.INF_AND_PROTOS_MOVE_MULTI + " protos remaining, they all must move. The move order includes the presence of Protomechs.\n\nMutually exclusive with \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("protos_move_later", "A players Protomechs move after that players other units", "If checked, each player must move all their other units before they move their Protomechs. If \"A players Infantry moves after that players other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"" + Game.INF_AND_PROTOS_MOVE_MULTI + " Protomechs for every Mek or Vehicle\" and \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false)); addOption(ruleBreakers, new GameOption("clan_ignore_eq_limits", "Ignore Clan Ammo Limitations", "If checked, Clan units can use ammo normally limited to IS units only; for example, Thunder-Augmented, Thunder-Inferno, and Thunder-Active LRM rounds.", false)); addOption(ruleBreakers, new GameOption("no_clan_physical", "No physical attacks for the clans", "If checked, clan Meks may not make physical attacks.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("no_hover_charge", "No charge attacks for Hover vehicles", "If checked, Hover vehicles may not make rams/charges.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("woods_burn_down", "Woods have a chance to burn down", "If checked, woods will burn down as if cleared on a roll of 11+.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("vechicles_safe_from_infernos", "Vehicles may not be the target of an Inferno missle attack.", "If checked, Vehicles cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("protos_safe_from_infernos", "Protomechs may not be the target of an Inferno missle attack.", "If checked, Protomechs cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false)); addOption(ruleBreakers, new GameOption("check_leg_breaches", "Check for Leg breaches in Level 1 water", "If checked, a Mek standing in Level 1 water will check for hull breaches (which is **against** the rules on page 94 of the BMRr).\n\nUnchecked by default.", false)); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/28df75260f3e25c6327b43a9f2c570470b7a1758/GameOptions.java/buggy/megamek/src/megamek/common/GameOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 368, 444, 731, 7920, 702, 3639, 2698, 1114, 1026, 273, 394, 2698, 1114, 2932, 2171, 5087, 8863, 3639, 18899, 12, 1969, 1769, 3639, 12966, 12, 1969, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 368, 444, 731, 7920, 702, 3639, 2698, 1114, 1026, 273, 394, 2698, 1114, 2932, 2171, 5087, 8863, 3639, 18899, 12, 1969, 1769, 3639, 12966, 12, 1969, 16, 3...
Result result = runQuery("with member [Measures].[Foo] as '[Gender].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales where ([Gender].[F])");
Result result = executeQuery( wrap(new String[] { "with member [Measures].[Foo] as '[Gender].CurrentMember.Name'", "select {[Measures].[Foo]} on columns", "from Sales where ([Gender].[F])"}));
public void testCurrentMemberFromSlicer() { Result result = runQuery("with member [Measures].[Foo] as '[Gender].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales where ([Gender].[F])"); Assert.assertEquals("F", result.getCell(new int[]{0}).getValue()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3935, 4419, 1265, 3738, 21349, 1435, 288, 3639, 3438, 563, 273, 1086, 1138, 2932, 1918, 3140, 306, 23177, 1823, 8009, 63, 42, 5161, 65, 487, 5271, 43, 2345, 8009, 3935, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3935, 4419, 1265, 3738, 21349, 1435, 288, 3639, 3438, 563, 273, 1086, 1138, 2932, 1918, 3140, 306, 23177, 1823, 8009, 63, 42, 5161, 65, 487, 5271, 43, 2345, 8009, 3935, 4...
assertTrue(assertArrayEqual(returnObject,null));
assertTrue(assertArrayEqual(returnObject, null));
public void testCustomArray() { BookInformation[] returnObject; System.out.println("minOccurs = 0 and nillable true"); try { returnObject = testCustomArray(null, MIN_EQUALS_ZERO_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{null})); returnObject = testCustomArray(new BookInformation[]{null}, MIN_EQUALS_ZERO_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{null})); returnObject = testCustomArray(new BookInformation[]{getBookInformation()}, MIN_EQUALS_ZERO_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation()})); returnObject = testCustomArray(new BookInformation[]{getBookInformation(), null}, MIN_EQUALS_ZERO_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation(), null})); } catch (Exception e) { fail(); } System.out.println("minOccurs = 0 and nillable false"); try { returnObject = testCustomArray(null, MIN_EQUALS_ZERO_NILLABLE_FALSE_TEST); assertTrue(assertArrayEqual(returnObject,null)); returnObject = testCustomArray(new BookInformation[]{null}, MIN_EQUALS_ZERO_NILLABLE_FALSE_TEST); assertTrue(assertArrayEqual(returnObject,null)); returnObject = testCustomArray(new BookInformation[]{getBookInformation()}, MIN_EQUALS_ZERO_NILLABLE_FALSE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation()})); returnObject = testCustomArray(new BookInformation[]{getBookInformation(), null}, MIN_EQUALS_ZERO_NILLABLE_FALSE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation()})); } catch (Exception e) { fail(); } System.out.println("minOccurs = 1 and nillable true"); try { returnObject = testCustomArray(null, MIN_EQUALS_ONE_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{null})); returnObject = testCustomArray(new BookInformation[]{null}, MIN_EQUALS_ONE_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{null})); returnObject = testCustomArray(new BookInformation[]{getBookInformation()}, MIN_EQUALS_ONE_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation()})); returnObject = testCustomArray(new BookInformation[]{getBookInformation(), null}, MIN_EQUALS_ONE_NILLABLE_TRUE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation(), null})); } catch (Exception e) { fail(); } System.out.println("minOccurs = 1 and nillable false"); try { returnObject = testCustomArray(null, MIN_EQUALS_ONE_NILLABLE_FALSE_TEST); fail(); } catch (Exception e) { assertTrue(true); } try { returnObject = testCustomArray(new BookInformation[]{null}, MIN_EQUALS_ONE_NILLABLE_FALSE_TEST); fail(); } catch (Exception e) { assertTrue(true); } try { returnObject = testCustomArray(new BookInformation[]{getBookInformation(), null}, MIN_EQUALS_ONE_NILLABLE_FALSE_TEST); fail(); } catch (Exception e) { assertTrue(true); } try { returnObject = testCustomArray(new BookInformation[]{getBookInformation()}, MIN_EQUALS_ONE_NILLABLE_FALSE_TEST); assertTrue(assertArrayEqual(returnObject,new BookInformation[]{getBookInformation()})); } catch (Exception e) { fail(); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/efb17f5826a431ff64ff3509a07c970f05494c5c/CustomElementsTest.java/clean/modules/adb-codegen/test/org/apache/axis2/schema/testsuite/CustomElementsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3802, 1076, 1435, 288, 3639, 20258, 5369, 8526, 327, 921, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 1154, 31084, 273, 374, 471, 515, 80, 429, 638, 8863, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3802, 1076, 1435, 288, 3639, 20258, 5369, 8526, 327, 921, 31, 3639, 2332, 18, 659, 18, 8222, 2932, 1154, 31084, 273, 374, 471, 515, 80, 429, 638, 8863, 3639, 775, 288, ...
public MDLMolConvention(Convention conv) { super(conv); }
public MDLMolConvention(CDOInterface cdo) { super(cdo); };
public MDLMolConvention(Convention conv) { super(conv); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/7524e92b94095827a503a45ad2672381853cd9ca/MDLMolConvention.java/buggy/org/openscience/cdk/io/cml/MDLMolConvention.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 8914, 49, 355, 25947, 12, 25947, 6292, 13, 288, 202, 9565, 12, 4896, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 377, 1071, 490, 8914, 49, 355, 25947, 12, 25947, 6292, 13, 288, 202, 9565, 12, 4896, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
protected void acceptType(char[] packageName, char[] typeName, int acceptFlags, boolean needQualification) { IType type= resolveType(packageName, typeName, acceptFlags);
protected void acceptType(char[] packageName, char[] typeName, int acceptFlags, boolean needQualification, boolean isDeclaration, int start, int end) { IType type = null; if(isDeclaration) { type = resolveTypeByLocation(packageName, typeName, acceptFlags, start, end); } else { type = resolveType(packageName, typeName, acceptFlags); }
protected void acceptType(char[] packageName, char[] typeName, int acceptFlags, boolean needQualification) { IType type= resolveType(packageName, typeName, acceptFlags); if (type != null) { addElement(type); if(SelectionEngine.DEBUG){ System.out.print("SELECTION - accept type("); //$NON-NLS-1$ System.out.print(type.toString()); System.out.println(")"); //$NON-NLS-1$ } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3bf5bab95449ec256a601c2551910573083178b4/SelectionRequestor.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SelectionRequestor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 2791, 559, 12, 3001, 8526, 9929, 16, 1149, 8526, 8173, 16, 509, 2791, 5094, 16, 1250, 1608, 21740, 13, 288, 202, 45, 559, 618, 33, 2245, 559, 12, 5610, 461, 16, 8173, 16, 2791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 2791, 559, 12, 3001, 8526, 9929, 16, 1149, 8526, 8173, 16, 509, 2791, 5094, 16, 1250, 1608, 21740, 13, 288, 202, 45, 559, 618, 33, 2245, 559, 12, 5610, 461, 16, 8173, 16, 2791, ...
} else { return hostname.hashCode();
public int hashCode() { if (_address != null) { return _address.hashCode(); } else { return hostname.hashCode(); } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/70c8c802d0f80be37669510e15559106bb0959cd/FreenetInetAddress.java/buggy/src/freenet/io/comm/FreenetInetAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 13374, 1435, 288, 202, 202, 430, 261, 67, 2867, 480, 446, 13, 288, 1082, 202, 2463, 389, 2867, 18, 2816, 1085, 5621, 202, 202, 97, 469, 288, 1082, 202, 2463, 5199, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 13374, 1435, 288, 202, 202, 430, 261, 67, 2867, 480, 446, 13, 288, 1082, 202, 2463, 389, 2867, 18, 2816, 1085, 5621, 202, 202, 97, 469, 288, 1082, 202, 2463, 5199, 18, ...
ClassInfo classInfo = new ClassInfo();
ClassNameAndSuperclassInfo classInfo = new ClassNameAndSuperclassInfo();
private void parseClassName(ICodeBaseEntry entry) { DataInputStream in = null; try { in = new DataInputStream(entry.openResource()); ClassParser parser = new ClassParser(in, null, entry); ClassInfo classInfo = new ClassInfo(); parser.parse(classInfo); entry.overrideResourceName(classInfo.getClassDescriptor().toResourceName()); } catch (IOException e) { errorLogger.logError("Invalid class resource " + entry.getResourceName() + " in " + entry, e); } catch (InvalidClassFileFormatException e) { errorLogger.logError("Invalid class resource " + entry.getResourceName() + " in " + entry, e); } finally { IO.close(in); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f11afb3880be02835b159856c648d0faa28097f1/ClassPathBuilder.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/classfile/impl/ClassPathBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1109, 3834, 12, 45, 1085, 2171, 1622, 1241, 13, 288, 202, 202, 751, 4348, 316, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 267, 273, 394, 29382, 12, 4099, 18, 3190, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 3834, 12, 45, 1085, 2171, 1622, 1241, 13, 288, 202, 202, 751, 4348, 316, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 267, 273, 394, 29382, 12, 4099, 18, 3190, 1...
setSelectionPath(value0);
setSelectionPath(path);
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.length); } leadPath = value0; fireValueChanged(new TreeSelectionEvent(this, value0, true, leadPath, value0)); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b84de612b47edf167d1a205db1270610dfb06eb8/DefaultTreeSelectionModel.java/clean/libraries/javalib/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 6233, 743, 12, 2471, 743, 460, 20, 13, 202, 95, 202, 202, 430, 16051, 291, 743, 7416, 12, 1132, 20, 3719, 202, 202, 95, 1082, 202, 430, 261, 291, 6233, 1921, 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, 225, 202, 482, 918, 527, 6233, 743, 12, 2471, 743, 460, 20, 13, 202, 95, 202, 202, 430, 16051, 291, 743, 7416, 12, 1132, 20, 3719, 202, 202, 95, 1082, 202, 430, 261, 291, 6233, 1921, 10756...
throw new ApplicationError(Debug.show(op));
throw Debug.abort(Debug.show(op));
private Item primitiveOp(Primitive op, Tree left, Tree right, MSILType resType) { // treat some special cases switch (op) { case CONCAT: genLoad(left, MSILType.OBJECT); genLoad(right, MSILType.OBJECT); code.Emit(OpCodes.Call, tc.CONCAT_OBJECT_OBJECT); return items.StackItem(MSILType.STRING); case ADD: if (tc.getType(right.type) == tc.STRING) { System.out.println("primaryOp().ADD: string concat!"); genLoad(left, MSILType.OBJECT); genLoad(right, MSILType.OBJECT); code.Emit(OpCodes.Call, tc.CONCAT_OBJECT_OBJECT); return items.StackItem(MSILType.STRING); } break; case IS: genLoad(left, MSILType.OBJECT); final Type type = tc.getType(right.type); code.Emit(OpCodes.Isinst, type); return mkCond(items.StackItem(msilType(type))); case AS: Item item = genLoad(left, MSILType.OBJECT); final Type type = tc.getType(right.type); final MSILType mtype = msilType(type); if (!item.type.equals(mtype) && !type.equals(MSILType.OBJECT)) { if (type.IsValueType()) { code.Emit(OpCodes.Unbox, type); if (type.IsEnum()) emitLdind(type.getUnderlyingType()); else code.Emit(OpCodes.Ldobj, type); } else { code.Emit(OpCodes.Castclass, type); } } return items.StackItem(mtype); case SYNCHRONIZED: // TODO: reuse temporary local variable whenever possible LocalBuilder tmp = code.DeclareLocal(tc.OBJECT); genLoad(left, MSILType.OBJECT); code.Emit(OpCodes.Stloc, tmp); code.Emit(OpCodes.Ldloc, tmp); code.Emit(OpCodes.Call, tc.MONITOR_ENTER); genLoad(right, MSILType.OBJECT); code.Emit(OpCodes.Ldloc, tmp); code.Emit(OpCodes.Call, tc.MONITOR_EXIT); return items.StackItem(MSILType.OBJECT); } Item iLeft = null; MSILType tleft = msilType(left); switch (left) { case Apply(Tree fun , Tree[] args): Primitive p = primitives.getPrimitive(fun.symbol()); switch (p) { case BOX: assert args.length == 1; iLeft = gen(args[0], msilType(args[0])); break; } break; default: iLeft = gen(left, tleft); } switch (op) { case THROW: load(iLeft); code.Emit(OpCodes.Throw);// code.Emit(OpCodes.Ldnull);// return items.StackItem(MSILType.NULL); //return coerce(loadNull(), resType); return loadNull(); case POS: return load(coerce(iLeft, resType)); case NEG: iLeft = load(coerce(iLeft, resType)); code.Emit(OpCodes.Neg); return iLeft; case NOT: iLeft = load(coerce(iLeft, resType)); code.Emit(OpCodes.Not); return iLeft; case ZNOT: return negate(mkCond(iLeft)); case ZOR: Item.CondItem lcond = mkCond(iLeft), rcond = null; Chain success = lcond.success, failure = lcond.failure; switch (lcond.test) { case True: return lcond; case False: return mkCond(gen(right, MSILType.BOOL)); case And(Test t): success = (success != null) ? success : new Chain(code.DefineLabel(), null); branch(negate(lcond.test), success); resolve(failure); failure = null; break; default: success = (success != null) ? success : new Chain(code.DefineLabel(), null); branch(negate(lcond.test), success); } rcond = mkCond((gen(right, MSILType.BOOL))); rcond = items.CondItem(Test.Or(rcond.test), merge(success, rcond.success), merge(failure, rcond.failure)); return rcond; case ZAND: Item.CondItem lcond = mkCond(iLeft), rcond = null; Chain success = lcond.success, failure = lcond.failure; switch (lcond.test) { case False: return lcond; case True: return mkCond(gen(right, MSILType.BOOL)); case Or(Test t): failure = (failure != null) ? failure : new Chain(code.DefineLabel(), null); branch(lcond.test, failure); resolve(success); success = null; break; default: failure = (failure != null) ? failure : new Chain(code.DefineLabel(), null); branch(lcond.test, failure); } rcond = mkCond(gen(right, MSILType.BOOL)); rcond = items.CondItem(Test.And(rcond.test), merge(success, rcond.success), merge(failure, rcond.failure)); return rcond; } MSILType toType = MSILType.arithmCoercion(iLeft.type.asPrimitive(), primitiveType(right.type)); load(coerce(iLeft, toType)); genLoad(right, toType); Item res = null; switch (op) { case ADD: code.Emit(OpCodes.Add); res = items.StackItem(toType); break; case SUB: code.Emit(OpCodes.Sub); res = items.StackItem(toType); break; case MUL: code.Emit(OpCodes.Mul); res = items.StackItem(toType); break; case DIV: code.Emit(OpCodes.Div); res = items.StackItem(toType); break; case MOD: code.Emit(OpCodes.Rem); res = items.StackItem(toType); break; case OR: code.Emit(OpCodes.Or); res = items.StackItem(toType); break; case XOR: code.Emit(OpCodes.Xor); res = items.StackItem(toType); break; case AND: code.Emit(OpCodes.And); res = items.StackItem(toType); break; case LSL: code.Emit(OpCodes.Shl); res = items.StackItem(toType); break; case LSR: code.Emit(OpCodes.Shr); res = items.StackItem(toType); break; case ASR: code.Emit(OpCodes.Shr_Un); res = items.StackItem(toType); break; case ID: case EQ: // FIXME?: should ID be treated as EQ? res = items.CondItem(Test.Binary(Test.EQ, toType), null, null); break; case NE: res = items.CondItem(Test.Binary(Test.NE, toType), null, null); break; case LT: res = items.CondItem(Test.Binary(Test.LT_IS, toType), null, null); break; case LE: res = items.CondItem(Test.Binary(Test.LE_IS, toType), null, null); break; case GT: res = items.CondItem(Test.Binary(Test.GT_IS, toType), null, null); break; case GE: res = items.CondItem(Test.Binary(Test.GE_IS, toType), null, null); break; default: throw new ApplicationError(Debug.show(op)); } return coerce(res, resType); }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/61b0435b649aa845fb06533464edc239990b4927/GenMSIL.java/buggy/sources/scalac/backend/msil/GenMSIL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4342, 8225, 3817, 12, 9840, 1061, 16, 4902, 2002, 16, 4902, 2145, 16, 490, 2320, 48, 559, 400, 559, 13, 565, 288, 202, 759, 10116, 2690, 4582, 6088, 202, 9610, 261, 556, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4342, 8225, 3817, 12, 9840, 1061, 16, 4902, 2002, 16, 4902, 2145, 16, 490, 2320, 48, 559, 400, 559, 13, 565, 288, 202, 759, 10116, 2690, 4582, 6088, 202, 9610, 261, 556, 13, 288, ...
dest.append(positiveSuffix, positiveSuffixRanges, positiveSuffixAttrs);
{ dest.append(substituteCurrency(positiveSuffix, number), positiveSuffixRanges, positiveSuffixAttrs); }
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTEGER)) { int index = dest.length(); fieldPos.setBeginIndex(index - symbols.getNaN().length()); fieldPos.setEndIndex(index); } return; } boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(negativePrefix, negativePrefixRanges, negativePrefixAttrs); else { dest.append(symbols.getMinusSign(), NumberFormat.Field.SIGN); dest.append(positivePrefix, positivePrefixRanges, positivePrefixAttrs); } number = - number; } else dest.append(positivePrefix, positivePrefixRanges, positivePrefixAttrs); int integerBeginIndex = dest.length(); int integerEndIndex = 0; int zeroStart = symbols.getZeroDigit() - '0'; if (Double.isInfinite (number)) { dest.append(symbols.getInfinity()); integerEndIndex = dest.length(); } else { number *= multiplier; // Compute exponent. long exponent = 0; double baseNumber; if (useExponentialNotation) { exponent = (long) Math.floor (Math.log(number) / Math.log(10)); exponent = exponent - (exponent % exponentRound); if (minimumIntegerDigits > 0) exponent -= minimumIntegerDigits - 1; baseNumber = (number / Math.pow(10.0, exponent)); } else baseNumber = number; // Round to the correct number of digits. baseNumber += 5 * Math.pow(10.0, - maximumFractionDigits - 1); int index = dest.length(); //double intPart = Math.floor(baseNumber); String intPart = Long.toString((long)Math.floor(baseNumber)); int count, groupPosition = intPart.length(); dest.setDefaultAttribute(NumberFormat.Field.INTEGER); for (count = 0; count < minimumIntegerDigits-intPart.length(); count++) dest.append(symbols.getZeroDigit()); for (count = 0; count < maximumIntegerDigits && count < intPart.length(); count++) { int dig = intPart.charAt(count); // Append group separator if required. if (groupingUsed && count > 0 && groupingSize != 0 && groupPosition % groupingSize == 0) { dest.append(symbols.getGroupingSeparator(), NumberFormat.Field.GROUPING_SEPARATOR); dest.setDefaultAttribute(NumberFormat.Field.INTEGER); } dest.append((char) (zeroStart + dig)); groupPosition--; } dest.setDefaultAttribute(null); integerEndIndex = dest.length(); int decimal_index = integerEndIndex; int consecutive_zeros = 0; int total_digits = 0; int localMaximumFractionDigits = maximumFractionDigits; if (useExponentialNotation) localMaximumFractionDigits += minimumIntegerDigits - count; // Strip integer part from NUMBER. double fracPart = baseNumber - Math.floor(baseNumber); if ( ((fracPart != 0 || minimumFractionDigits > 0) && localMaximumFractionDigits > 0) || decimalSeparatorAlwaysShown) { dest.append (symbols.getDecimalSeparator(), NumberFormat.Field.DECIMAL_SEPARATOR); } int fraction_begin = dest.length(); dest.setDefaultAttribute(NumberFormat.Field.FRACTION); for (count = 0; count < localMaximumFractionDigits && (fracPart != 0 || count < minimumFractionDigits); ++count) { ++total_digits; fracPart *= 10; long dig = (long) fracPart; if (dig == 0) ++consecutive_zeros; else consecutive_zeros = 0; dest.append((char) (symbols.getZeroDigit() + dig)); // Strip integer part from FRACPART. fracPart = fracPart - Math.floor (fracPart); } // Strip extraneous trailing `0's. We can't always detect // these in the loop. int extra_zeros = Math.min (consecutive_zeros, total_digits - minimumFractionDigits); if (extra_zeros > 0) { dest.cutTail(extra_zeros); total_digits -= extra_zeros; if (total_digits == 0 && !decimalSeparatorAlwaysShown) dest.cutTail(1); } if (fieldPos != null && fieldPos.getField() == FRACTION_FIELD) { fieldPos.setBeginIndex(fraction_begin); fieldPos.setEndIndex(dest.length()); } // Finally, print the exponent. if (useExponentialNotation) { dest.append(symbols.getExponential(), NumberFormat.Field.EXPONENT_SYMBOL); if (exponent < 0) { dest.append (symbols.getMinusSign (), NumberFormat.Field.EXPONENT_SIGN); exponent = - exponent; } index = dest.length(); dest.setDefaultAttribute(NumberFormat.Field.EXPONENT); String exponentString = Long.toString ((long) exponent); for (count = 0; count < minExponentDigits-exponentString.length(); count++) dest.append((char) symbols.getZeroDigit()); for (count = 0; count < exponentString.length(); ++count) { int dig = exponentString.charAt(count); dest.append((char) (zeroStart + dig)); } } } if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTEGER)) { fieldPos.setBeginIndex(integerBeginIndex); fieldPos.setEndIndex(integerEndIndex); } if (is_neg && negativeSuffix != null) dest.append(negativeSuffix, negativeSuffixRanges, negativeSuffixAttrs); else dest.append(positiveSuffix, positiveSuffixRanges, positiveSuffixAttrs); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d845d1ea25a573e8772fa9e43624451bd759e437/DecimalFormat.java/clean/libraries/javalib/java/text/DecimalFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 740, 3061, 261, 9056, 1300, 16, 4077, 1892, 1570, 16, 9506, 4202, 2286, 2555, 652, 1616, 13, 225, 288, 565, 368, 432, 8572, 4582, 648, 18, 565, 309, 261, 5265, 18, 291, 21172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 3061, 261, 9056, 1300, 16, 4077, 1892, 1570, 16, 9506, 4202, 2286, 2555, 652, 1616, 13, 225, 288, 565, 368, 432, 8572, 4582, 648, 18, 565, 309, 261, 5265, 18, 291, 21172...
hider.setEnabled(false);
public void widgetSelected(SelectionEvent e) { hider.setEnabled(false); if (currentPane != null) { Rectangle bounds = clientComposite.getClientArea(); Point location = new Point(e.x, e.y); int distanceFromEdge = Geometry.getDistanceFromEdge(bounds, location, side); if (distanceFromEdge < MIN_FASTVIEW_SIZE) { distanceFromEdge = MIN_FASTVIEW_SIZE; } if (side == SWT.TOP || side == SWT.LEFT) { distanceFromEdge += SASH_SIZE; } setSize(distanceFromEdge); if (e.detail != SWT.DRAG) { getPresentation().getControl().moveAbove(null); currentPane.moveAbove(null); fastViewSash.moveAbove(null); hider.setEnabled(true); } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/58cc7651815facc4fc9e4bbb808d6e4996c3f650/FastViewPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 1082, 202, 76, 3585, 18, 542, 1526, 12, 5743, 1769, 25083, 202, 430, 261, 2972, 8485, 480, 446, 13, 288, 9506, 202, 19463, 4972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 1082, 202, 76, 3585, 18, 542, 1526, 12, 5743, 1769, 25083, 202, 430, 261, 2972, 8485, 480, 446, 13, 288, 9506, 202, 19463, 4972...
if ( chart instanceof ChartWithAxes )
List orgSdList = ChartUIUtil.getOrthogonalSeriesDefinitions( chart, -1 ); for ( int i = 0; i < orgSdList.size( ); i++ )
private SampleData updateSampleData( SampleData sdOld ) { SampleData sdNew = DataFactory.eINSTANCE.createSampleData( ); Chart chart = getChartModel( ); // CREATE BaseSampleData Series baseSeries = null; if ( chart instanceof ChartWithAxes ) { baseSeries = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) chart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); } else { baseSeries = ( (SeriesDefinition) ( (ChartWithoutAxes) chart ).getSeriesDefinitions( ) .get( 0 ) ).getDesignTimeSeries( ); } if ( baseSeries == null ) { throw new IllegalStateException( "Chart does not have a Base Series!" ); //$NON-NLS-1$ } String sBaseData = ""; //$NON-NLS-1$ try { sBaseData = getDataForSeries( baseSeries ); BaseSampleData bsd = DataFactory.eINSTANCE.createBaseSampleData( ); bsd.setDataSetRepresentation( sBaseData ); sdNew.getBaseSampleData( ).add( bsd ); } catch ( ChartException e ) { container.displayException( e ); return sdOld; } // CREATE OrthogonalSampleData Series orthogonalSeries = null; if ( chart instanceof ChartWithAxes ) { Axis xAxis = ( (Axis) ( (ChartWithAxes) chart ).getAxes( ).get( 0 ) ); int iYAxes = xAxis.getAssociatedAxes( ).size( ); // FOR EACH Y AXIS for ( int i = 0; i < iYAxes; i++ ) { Axis yAxis = (Axis) xAxis.getAssociatedAxes( ).get( i ); int iYSeries = yAxis.getSeriesDefinitions( ).size( ); // FOR EACH SERIES for ( int iS = 0; iS < iYSeries; iS++ ) { orthogonalSeries = ( (SeriesDefinition) yAxis.getSeriesDefinitions( ) .get( iS ) ).getDesignTimeSeries( ); if ( iS == 0 && orthogonalSeries == null ) { throw new IllegalStateException( "Chart does not have an Orthogonal Series!" ); //$NON-NLS-1$ } String sOrthogonalData = ""; //$NON-NLS-1$ try { sOrthogonalData = getDataForSeries( orthogonalSeries ); OrthogonalSampleData osd = DataFactory.eINSTANCE.createOrthogonalSampleData( ); osd.setDataSetRepresentation( sOrthogonalData ); osd.setSeriesDefinitionIndex( iS ); osd.eAdapters( ).addAll( sdOld.eAdapters( ) ); sdNew.getOrthogonalSampleData( ).add( osd ); } catch ( ChartException e ) { container.displayException( e ); return sdOld; } } } } else { orthogonalSeries = ( (SeriesDefinition) ( (ChartWithoutAxes) chart ).getSeriesDefinitions( ) .get( 0 ) ).getDesignTimeSeries( ); } // CREATE AncillarySampleData // ADD ADAPTERS // SET SampleData INTO MODEL return sdNew; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/423afcc00f3b020e429aeb331bd221cb876afaa8/TaskSelectData.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 11474, 751, 1089, 8504, 751, 12, 11474, 751, 8349, 7617, 262, 202, 95, 202, 202, 8504, 751, 8349, 1908, 273, 1910, 1733, 18, 73, 13341, 18, 2640, 8504, 751, 12, 11272, 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, 11474, 751, 1089, 8504, 751, 12, 11474, 751, 8349, 7617, 262, 202, 95, 202, 202, 8504, 751, 8349, 1908, 273, 1910, 1733, 18, 73, 13341, 18, 2640, 8504, 751, 12, 11272, 202, 2...
buffer.append(pattern.pattern());
buffer.append(pattern.pattern().replaceAll("^/|([^\\\\])/", "$1\\\\/"));
public String toString() { StringBuffer buffer = new StringBuffer(100); StringBuffer off = new StringBuffer(3); buffer.append("(?"); flagToString(buffer, off, Pattern.DOTALL, 'm'); flagToString(buffer, off, Pattern.CASE_INSENSITIVE, 'i'); flagToString(buffer, off, Pattern.COMMENTS, 'x'); if (off.length() > 0) { buffer.append('-').append(off); } buffer.append(':'); buffer.append(pattern.pattern()); buffer.append(')'); return buffer.toString(); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/41a9baded6a5a018b3e0e89cbecf7cdfafe6af6b/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 377, 202, 780, 1892, 1613, 273, 394, 6674, 12, 6625, 1769, 377, 202, 780, 1892, 3397, 273, 394, 6674, 12, 23, 1769, 377, 202, 377, 202, 4106, 18, 6923, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1762, 1435, 288, 377, 202, 780, 1892, 1613, 273, 394, 6674, 12, 6625, 1769, 377, 202, 780, 1892, 3397, 273, 394, 6674, 12, 23, 1769, 377, 202, 377, 202, 4106, 18, 6923, 2932,...
if (resourceType == IResource.ROOT) {
if (resourceType == IResource.ROOT)
public IAdaptable createElement(IMemento memento) { // Get the file name. String fileName = memento.getString(TAG_PATH); if (fileName == null) return null; IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IPath path = new Path(fileName); String type = memento.getString(TAG_TYPE); if (type == null) { // Old format memento. Create an IResource using findMember. // Will return null for resources in closed projects. res = root.findMember(path); } else { int resourceType = Integer.parseInt(type); if (resourceType == IResource.ROOT) { res = root; } else { IPath location = root.getLocation().append(path); if (resourceType == IResource.PROJECT || resourceType == IResource.FOLDER) { res = root.getContainerForLocation(location); } else if (resourceType == IResource.FILE) { res = root.getFileForLocation(location); } } } return res; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/23def400473dca9f9fb5cf07d1a07f265b111b0a/ResourceFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/model/ResourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 13716, 429, 6310, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 759, 968, 326, 585, 508, 18, 202, 780, 3968, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 4211, 1769, 202, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 13716, 429, 6310, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 759, 968, 326, 585, 508, 18, 202, 780, 3968, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 4211, 1769, 202, 4...
catch (ServletException e) { Log.warn(Log.EXCEPTION, e); } return true;
public boolean handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException { if (_errorPages!=null) { String error_page= null; Class exClass= (Class)request.getAttribute(ServletHandler.__J_S_ERROR_EXCEPTION_TYPE); if (ServletException.class.equals(exClass)) { error_page= (String)_errorPages.get(exClass.getName()); if (error_page == null) { Throwable th= (Throwable)request.getAttribute(ServletHandler.__J_S_ERROR_EXCEPTION); while (th instanceof ServletException) th= ((ServletException)th).getRootCause(); if (th != null) exClass= th.getClass(); } } while (error_page == null && exClass != null ) { error_page= (String)_errorPages.get(exClass.getName()); exClass= exClass.getSuperclass(); } if (error_page == null) { Integer code=(Integer)request.getAttribute(ServletHandler.__J_S_ERROR_STATUS_CODE); if (code!=null) error_page= (String)_errorPages.get(TypeUtil.toString(code.intValue())); } if (error_page!=null) { Dispatcher dispatcher = (Dispatcher) getServletHandler().getServletContext().getRequestDispatcher(error_page); try { dispatcher.error(request, response); } catch (ServletException e) { Log.warn(Log.EXCEPTION, e); } return true; } } return super.handle(target, request, response, dispatch); }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/8b43835dc2d4eed077782b160847e94f6bbe8b92/WebAppContext.java/buggy/modules/jetty/src/main/java/org/mortbay/jetty/webapp/WebAppContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1640, 12, 780, 1018, 16, 9984, 590, 16, 12446, 766, 16, 509, 3435, 13, 1216, 1860, 3639, 288, 5411, 309, 261, 67, 1636, 5716, 5, 33, 2011, 13, 5411, 288, 7734, 514, 555, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1640, 12, 780, 1018, 16, 9984, 590, 16, 12446, 766, 16, 509, 3435, 13, 1216, 1860, 3639, 288, 5411, 309, 261, 67, 1636, 5716, 5, 33, 2011, 13, 5411, 288, 7734, 514, 555, 6...
assertEquals(Arrays.asList(new Edge [] {
assertEquals(Arrays.asList(new DefaultEdge [] {
public void testPathBetween() { List path; Graph g = create(); path = findPathBetween(g, V1, V2); assertEquals(Arrays.asList(new Edge [] { m_e12 }), path); path = findPathBetween(g, V1, V4); assertEquals(Arrays.asList(new Edge [] { m_e12, m_e24 }), path); path = findPathBetween(g, V1, V5); assertEquals(Arrays.asList(new Edge [] { m_e12, m_e24, m_e45 }), path); path = findPathBetween(g, V3, V4); assertEquals(Arrays.asList(new Edge [] { m_e13, m_e12, m_e24 }), path); }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/c3e5aa9fad3b9e0927939b2a916ae5049377758b/ShortestPathTestCase.java/clean/testsrc/org/jgrapht/alg/ShortestPathTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 743, 11831, 1435, 565, 288, 3639, 987, 589, 31, 3639, 5601, 314, 273, 752, 5621, 3639, 589, 273, 1104, 743, 11831, 12, 75, 16, 776, 21, 16, 776, 22, 1769, 3639, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 743, 11831, 1435, 565, 288, 3639, 987, 589, 31, 3639, 5601, 314, 273, 752, 5621, 3639, 589, 273, 1104, 743, 11831, 12, 75, 16, 776, 21, 16, 776, 22, 1769, 3639, 1815, ...
if (deleteAction == action) return;
if (deleteAction == action) { return; }
public void setDeleteAction(IAction action) { if (deleteAction == action) return; if (deleteAction != null) deleteAction.removePropertyChangeListener(deleteActionListener); deleteAction = action; if (deleteAction != null) deleteAction.addPropertyChangeListener(deleteActionListener); cellDeleteAction.updateEnabledState(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/CellEditorActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/CellEditorActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2613, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 3733, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 3733, 1803, 480, 446, 13, 5411, 1430, 1803, 18, 4479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 2613, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 3733, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 3733, 1803, 480, 446, 13, 5411, 1430, 1803, 18, 4479, ...
msgs = ((InternalEObject)newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__BOUNDS, null, msgs);
msgs = ((InternalEObject) newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__BOUNDS, null, msgs);
public void setBounds(Bounds newBounds) { if (newBounds != bounds) { NotificationChain msgs = null; if (bounds != null) msgs = ((InternalEObject)bounds).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__BOUNDS, null, msgs); if (newBounds != null) msgs = ((InternalEObject)newBounds).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__BOUNDS, null, msgs); msgs = basicSetBounds(newBounds, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LayoutPackage.BLOCK__BOUNDS, newBounds, newBounds)); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/BlockImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5694, 12, 5694, 394, 5694, 13, 565, 288, 3639, 309, 261, 2704, 5694, 480, 4972, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 10576, 480, 446, 13, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 5694, 12, 5694, 394, 5694, 13, 565, 288, 3639, 309, 261, 2704, 5694, 480, 4972, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 10576, 480, 446, 13, 7734...
case 41: {
case 40: {
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a0ef25c366453f5aff64a3c99c145987b17c8f23/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
calculateValues(jTextField4, jLabel17, 100);
jTextField4.selectAll();
private void jTextField4FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextField4FocusGained fGain(jTextField4); calculateValues(jTextField4, jLabel17, 100); }//GEN-LAST:event_jTextField4FocusGained
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/37432f2b33ca7c1efa54f91d8bd61424941ca1da/aeCopiuri.java/buggy/src/imakante/sales/aeCopiuri.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 525, 16157, 24, 9233, 43, 8707, 12, 6290, 18, 2219, 88, 18, 2575, 18, 9233, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 78, 16157, 24, 9233, 43, 8707, 3639, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 525, 16157, 24, 9233, 43, 8707, 12, 6290, 18, 2219, 88, 18, 2575, 18, 9233, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 78, 16157, 24, 9233, 43, 8707, 3639, 2...
Set<Method> lockedMethodSet = findNotUnlockedMethods(classContext); lockedMethodSet.retainAll(findLockedMethods(classContext));
SelfCalls selfCalls = new SelfCalls(classContext) { public boolean wantCallsFor(Method method) { return !method.isPublic(); } }; selfCalls.execute(); CallGraph callGraph = selfCalls.getCallGraph(); if (DEBUG) System.out.println("Call graph (not unlocked methods): " + callGraph.getNumVertices() + " nodes, " + callGraph.getNumEdges() + " edges"); Set<CallSite> obviouslyLockedSites = findObviouslyLockedCallSites(classContext, selfCalls); Set<Method> lockedMethodSet = findNotUnlockedMethods(classContext, selfCalls, obviouslyLockedSites); lockedMethodSet.retainAll(findLockedMethods(classContext, selfCalls, obviouslyLockedSites));
public void visitClassContext(ClassContext classContext) { try { JavaClass javaClass = classContext.getJavaClass(); if (DEBUG) System.out.println("******** Analyzing class " + javaClass.getClassName()); Set<Method> lockedMethodSet = findNotUnlockedMethods(classContext); lockedMethodSet.retainAll(findLockedMethods(classContext)); Method[] methodList = javaClass.getMethods(); for (int i = 0; i < methodList.length; ++i) { Method method = methodList[i]; if (classContext.getMethodGen(method) == null) continue; if (isConstructor(method.getName())) continue; if (method.getName().startsWith("access$")) // Ignore inner class access methods; // we will treat calls to them as field accesses continue; analyzeMethod(classContext, method, lockedMethodSet); } } catch (CFGBuilderException e) { throw new AnalysisException("FindInconsistentSync2 caught exception: " + e.toString(), e); } catch (DataflowAnalysisException e) { throw new AnalysisException("FindInconsistentSync2 caught exception: " + e.toString(), e); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/5c20d9dba7fda256d3af27cb3043f0e3f067b3cb/FindInconsistentSync2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 797, 1042, 12, 797, 1042, 667, 1042, 13, 288, 202, 202, 698, 288, 1082, 202, 5852, 797, 2252, 797, 273, 667, 1042, 18, 588, 5852, 797, 5621, 1082, 202, 430, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 797, 1042, 12, 797, 1042, 667, 1042, 13, 288, 202, 202, 698, 288, 1082, 202, 5852, 797, 2252, 797, 273, 667, 1042, 18, 588, 5852, 797, 5621, 1082, 202, 430, 261, ...
public WizardCollectionElement(IConfigurationElement element, WizardCollectionElement parent) { configElement = element; id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); this.parent = parent; }
public WizardCollectionElement(String id, String pluginId, String name, WizardCollectionElement parent) { this.name = name; this.id = id; this.pluginId = pluginId; this.parent = parent; }
public WizardCollectionElement(IConfigurationElement element, WizardCollectionElement parent) { configElement = element; id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); this.parent = parent; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/WizardCollectionElement.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardCollectionElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 13412, 2532, 1046, 12, 45, 1750, 1046, 930, 16, 678, 13412, 2532, 1046, 982, 13, 288, 202, 202, 1425, 1046, 273, 930, 31, 202, 202, 350, 273, 642, 1046, 18, 588, 1499, 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, 678, 13412, 2532, 1046, 12, 45, 1750, 1046, 930, 16, 678, 13412, 2532, 1046, 982, 13, 288, 202, 202, 1425, 1046, 273, 930, 31, 202, 202, 350, 273, 642, 1046, 18, 588, 1499, 12, ...
if (dialogWithToggle.getToggleState()) { internalStore.setValue(IPreferenceConstants.DONT_PROMPT_WHEN_SAVEABLE_STILL_OPEN, true);
if (choice != ISaveablePart2.CANCEL && dialogWithToggle.getToggleState()) { apiPreferenceStore.setValue(IWorkbenchPreferenceConstants.PROMPT_WHEN_SAVEABLE_STILL_OPEN, false);
private boolean promptForSaving(List modelsToSave, final IWorkbenchWindow window, final boolean canCancel, boolean stillOpenElsewhere) { // Save parts, exit the method if cancel is pressed. if (modelsToSave.size() > 0) { IPreferenceStore internalStore = PrefUtil.getInternalPreferenceStore(); boolean dontPrompt = stillOpenElsewhere && internalStore.getBoolean(IPreferenceConstants.DONT_PROMPT_WHEN_SAVEABLE_STILL_OPEN); if (dontPrompt) { modelsToSave.clear(); return false; } else if (modelsToSave.size() == 1) { Saveable model = (Saveable) modelsToSave.get(0); // Show a dialog. String[] buttons; if(canCancel) { buttons = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; } else { buttons = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL}; } // don't save if we don't prompt int choice = ISaveablePart2.NO; MessageDialog dialog; if (stillOpenElsewhere) { String message = NLS .bind( WorkbenchMessages.EditorManager_saveChangesOptionallyQuestion, model.getName()); MessageDialogWithToggle dialogWithToggle = new MessageDialogWithToggle(window.getShell(), WorkbenchMessages.Save_Resource, null, message, MessageDialog.QUESTION, buttons, 0, WorkbenchMessages.EditorManager_closeWithoutPromptingOption, false) { protected int getShellStyle() { return (canCancel ? SWT.CLOSE : SWT.NONE) | SWT.MIN | SWT.MAX | SWT.RESIZE; } }; dialog = dialogWithToggle; } else { String message = NLS .bind( WorkbenchMessages.EditorManager_saveChangesQuestion, model.getName()); dialog = new MessageDialog(window.getShell(), WorkbenchMessages.Save_Resource, null, message, MessageDialog.QUESTION, buttons, 0) { protected int getShellStyle() { return (canCancel ? SWT.CLOSE : SWT.NONE) | SWT.MIN | SWT.MAX | SWT.RESIZE; } }; } choice = SaveableHelper.testGetAutomatedResponse(); if (SaveableHelper.testGetAutomatedResponse() == SaveableHelper.USER_RESPONSE) { choice = dialog.open(); if(stillOpenElsewhere) { // map value of choice back to ISaveablePart2 values switch (choice) { case IDialogConstants.YES_ID: choice = ISaveablePart2.YES; break; case IDialogConstants.NO_ID: choice = ISaveablePart2.NO; break; case IDialogConstants.CANCEL_ID: choice = ISaveablePart2.CANCEL; break; default: break; } MessageDialogWithToggle dialogWithToggle = (MessageDialogWithToggle) dialog; if (dialogWithToggle.getToggleState()) { internalStore.setValue(IPreferenceConstants.DONT_PROMPT_WHEN_SAVEABLE_STILL_OPEN, true); } } } // Branch on the user choice. // The choice id is based on the order of button labels // above. switch (choice) { case ISaveablePart2.YES: // yes break; case ISaveablePart2.NO: // no modelsToSave.clear(); break; default: case ISaveablePart2.CANCEL: // cancel return true; } } else { MyListSelectionDialog dlg = new MyListSelectionDialog( window.getShell(), modelsToSave, new ArrayContentProvider(), new WorkbenchPartLabelProvider(), stillOpenElsewhere ? WorkbenchMessages.EditorManager_saveResourcesOptionallyMessage : WorkbenchMessages.EditorManager_saveResourcesMessage, canCancel, stillOpenElsewhere); dlg.setInitialSelections(modelsToSave.toArray()); dlg.setTitle(EditorManager.SAVE_RESOURCES_TITLE); // this "if" statement aids in testing. if (SaveableHelper.testGetAutomatedResponse() == SaveableHelper.USER_RESPONSE) { int result = dlg.open(); // Just return null to prevent the operation continuing if (result == IDialogConstants.CANCEL_ID) return true; if (dlg.getDontPromptSelection()) { internalStore.setValue(IPreferenceConstants.DONT_PROMPT_WHEN_SAVEABLE_STILL_OPEN, true); } modelsToSave = Arrays.asList(dlg.getResult()); } } } // Create save block. final List finalModels = modelsToSave; IRunnableWithProgress progressOp = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) { IProgressMonitor monitorWrap = new EventLoopProgressMonitor( monitor); monitorWrap.beginTask("", finalModels.size()); //$NON-NLS-1$ for (Iterator i = finalModels.iterator(); i.hasNext();) { Saveable model = (Saveable) i.next(); // handle case where this model got saved as a result of // saving another if (!model.isDirty()) { monitor.worked(1); continue; } try { model.doSave(new SubProgressMonitor(monitorWrap, 1)); } catch (CoreException e) { ErrorDialog.openError(window.getShell(), WorkbenchMessages.Error, e.getMessage(), e .getStatus()); } if (monitorWrap.isCanceled()) break; } monitorWrap.done(); } }; // Do the save. if (!SaveableHelper.runProgressMonitorOperation( WorkbenchMessages.Save_All, progressOp, window)) { // cancelled return true; } return false; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a823d5df2ef0ece1049b49e3a61227d522c0e333/SaveablesList.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveablesList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 6866, 1290, 24660, 12, 682, 3679, 774, 4755, 16, 1082, 202, 6385, 467, 2421, 22144, 3829, 2742, 16, 727, 1250, 848, 6691, 16, 1250, 4859, 3678, 12427, 6051, 13, 288, 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, 1152, 1250, 6866, 1290, 24660, 12, 682, 3679, 774, 4755, 16, 1082, 202, 6385, 467, 2421, 22144, 3829, 2742, 16, 727, 1250, 848, 6691, 16, 1250, 4859, 3678, 12427, 6051, 13, 288, 202,...
if (startVsEnd) compareMetric = 1;
if (startVsEnd) { compareMetric = 1; }
public static IContributionItem findInsertionPoint(String startId, String sortId, IContributionManager mgr, boolean startVsEnd) { // Get items. IContributionItem[] items = mgr.getItems(); // Find the reference item. int insertIndex = 0; while (insertIndex < items.length) { if (startId.equals(items[insertIndex].getId())) break; ++insertIndex; } if (insertIndex >= items.length) return null; // Calculate startVsEnd comparison value. int compareMetric = 0; if (startVsEnd) compareMetric = 1; // Find the insertion point for the new item. // We do this by iterating through all of the previous // action set contributions define within the current group. for (int nX = insertIndex + 1; nX < items.length; nX++) { IContributionItem item = items[nX]; if (item.isSeparator() || item.isGroupMarker()) { // Fix for bug report 18357 break; } if (item instanceof IActionSetContributionItem) { if (sortId != null) { String testId = ((IActionSetContributionItem) item) .getActionSetId(); if (sortId.compareTo(testId) < compareMetric) break; } insertIndex = nX; } else { break; } } // Return item. return items[insertIndex]; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PluginActionSetBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionSetBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 467, 442, 4027, 1180, 1104, 29739, 2148, 12, 780, 787, 548, 16, 5411, 514, 1524, 548, 16, 467, 442, 4027, 1318, 13333, 16, 1250, 787, 16082, 1638, 13, 288, 3639, 368, 968, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 467, 442, 4027, 1180, 1104, 29739, 2148, 12, 780, 787, 548, 16, 5411, 514, 1524, 548, 16, 467, 442, 4027, 1318, 13333, 16, 1250, 787, 16082, 1638, 13, 288, 3639, 368, 968, 15...
(NodeUtils.getNextEarlierVariation(node) != null);
(NodeUtil.getNextEarlierVariation(node) != null);
public void update(GameTree gameTree, Node node, Clock clock) { Node father = node.getFather(); boolean hasFather = (father != null); boolean hasChildren = (node.getNumberChildren() > 0); boolean hasNextVariation = (NodeUtils.getNextVariation(node) != null); boolean hasNextEarlierVariation = (NodeUtils.getNextEarlierVariation(node) != null); boolean hasPrevEarlierVariation = (NodeUtils.getPreviousEarlierVariation(node) != null); boolean hasPrevVariation = (NodeUtils.getPreviousVariation(node) != null); boolean isInMain = NodeUtils.isInMainVariation(node); boolean treeHasVariations = gameTree.hasVariations(); m_itemBeginning.setEnabled(hasFather); m_itemBackward.setEnabled(hasFather); m_itemBackward10.setEnabled(hasFather); m_itemForward.setEnabled(hasChildren); m_itemForward10.setEnabled(hasChildren); m_itemEnd.setEnabled(hasChildren); m_itemGoto.setEnabled(hasFather || hasChildren); m_itemGotoVar.setEnabled(hasFather || hasChildren); m_itemNextVariation.setEnabled(hasNextVariation); m_itemPreviousVariation.setEnabled(hasPrevVariation); m_itemNextEarlierVariation.setEnabled(hasNextEarlierVariation); m_itemPreviousEarlierBackward.setEnabled(hasPrevEarlierVariation); m_itemBackToMainVar.setEnabled(! isInMain); m_itemTruncate.setEnabled(hasFather); m_itemTruncateChildren.setEnabled(hasChildren); m_itemMakeMainVar.setEnabled(! isInMain); m_itemKeepOnlyMainVar.setEnabled(isInMain && treeHasVariations); m_itemKeepOnlyPosition.setEnabled(hasFather || hasChildren); m_itemClockHalt.setEnabled(clock.isRunning()); m_itemClockResume.setEnabled(! clock.isRunning()); boolean canRestoreClock = clock.isInitialized() && (canRestoreTime(node) || (father != null && canRestoreTime(father))); m_itemClockRestore.setEnabled(canRestoreClock); if (! NodeUtils.isInCleanup(node)) setCleanup(false); }
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/1f50ffb219183ddaf94720a4aba453e11f412425/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 12496, 2471, 7920, 2471, 16, 2029, 756, 16, 18051, 7268, 13, 565, 288, 3639, 2029, 284, 4806, 273, 756, 18, 588, 42, 4806, 5621, 3639, 1250, 711, 42, 4806, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12496, 2471, 7920, 2471, 16, 2029, 756, 16, 18051, 7268, 13, 565, 288, 3639, 2029, 284, 4806, 273, 756, 18, 588, 42, 4806, 5621, 3639, 1250, 711, 42, 4806, 273, 261...
private int getFirstLine(int aStartLine, DetailAST aTree)
protected final int getFirstLine(int aStartLine, DetailAST aTree)
private int getFirstLine(int aStartLine, DetailAST aTree) { // find line for this node // TODO: getLineNo should probably not return < 0, but it is for // the interface methods... I should ask about this int currLine = aTree.getLineNo(); if (currLine < aStartLine) { aStartLine = currLine; } // check children for (DetailAST node = (DetailAST) aTree.getFirstChild(); node != null; node = (DetailAST) node.getNextSibling()) { aStartLine = getFirstLine(aStartLine, node); } return aStartLine; }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/25453fb1b17cf7f63092a1a04e970231a1d35685/ExpressionHandler.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/ExpressionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 509, 7521, 1670, 12, 474, 279, 1685, 1670, 16, 27931, 9053, 279, 2471, 13, 565, 288, 3639, 368, 1104, 980, 364, 333, 756, 3639, 368, 2660, 30, 9851, 2279, 1410, 8656, 486, 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, 4750, 727, 509, 7521, 1670, 12, 474, 279, 1685, 1670, 16, 27931, 9053, 279, 2471, 13, 565, 288, 3639, 368, 1104, 980, 364, 333, 756, 3639, 368, 2660, 30, 9851, 2279, 1410, 8656, 486, 32...
if (internalMatches(name, st.nextToken(), 0, 0)) {
String token = st.nextToken().trim(); if (internalMatches(name, token, 0, 0)) {
static boolean matches(String name, String pattern) { // split pattern StringTokenizer st = new StringTokenizer(pattern, OR, false); while (st.hasMoreTokens()) { if (internalMatches(name, st.nextToken(), 0, 0)) { return true; } } return false; }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/ad2eeb437149924edf3469050bb9b2865a689431/ChildrenCollectorFilter.java/buggy/src/java/org/apache/jackrabbit/core/util/ChildrenCollectorFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1250, 1885, 12, 780, 508, 16, 514, 1936, 13, 288, 3639, 368, 1416, 1936, 3639, 16370, 384, 273, 394, 16370, 12, 4951, 16, 4869, 16, 629, 1769, 3639, 1323, 261, 334, 18, 5332, 7417,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1250, 1885, 12, 780, 508, 16, 514, 1936, 13, 288, 3639, 368, 1416, 1936, 3639, 16370, 384, 273, 394, 16370, 12, 4951, 16, 4869, 16, 629, 1769, 3639, 1323, 261, 334, 18, 5332, 7417,...
setLength(null);
private void evaluateExpressions() throws JspException { try { setCollection(evalAttr("collection", getCollectionExpr(), Object.class)); } catch (NullAttributeException ex) { setCollection(null); } try { setId((String) evalAttr("id", getId(), String.class)); } catch (NullAttributeException ex) { setId(null); } try { setIndexId((String) evalAttr("indexId", getIndexId(), String.class)); } catch (NullAttributeException ex) { setIndexId(null); } try { setLength((String) evalAttr("length", getLength(), String.class)); } catch (NullAttributeException ex) { setLength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOffset((String) evalAttr("offset", getOffset(), String.class)); } catch (NullAttributeException ex) { setOffset(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setType((String) evalAttr("type", getType(), String.class)); } catch (NullAttributeException ex) { setType(null); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELIterateTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELIterateTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 2532, 12, 8622, 3843, 2932, 5548, 3113, 12075, 4742, 9334, 4766, 565, 1033, 18, 1106, 10019, 3639, 289, 1044, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 2532, 12, 8622, 3843, 2932, 5548, 3113, 12075, 4742, 9334, 4766, 565, 1033, 18, 1106, 10019, 3639, 289, 1044, 261, ...
public void updateMenu() { List recent = BufferHistory.getHistory(); NSMenuItem item; File file; int max = recent.size(); int min = max - 20; int length = numberOfItems(); for (int i=0; i<length; i++) removeItemAtIndex(0); if (max == 0) { item = new NSMenuItem(jEdit.getProperty("MacOSPlugin.menu.recent.none"),null,""); item.setEnabled(false); addItem(item); return; } if (min < 0) min = 0; for (int i=max-1; i >= min ; i--) { file = new File(((BufferHistory.Entry)recent.get(i)).path); item = new NSMenuItem(file.getName(),actionSel,""); item.setTarget(new ShowFileAction(file.getPath())); //item.setImage(NSWorkspace.sharedWorkspace().iconForFile(file.getPath())); if (!file.exists()) item.setEnabled(false); addItem(item); } }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/d2bf676fd4cbad64f5fe5446a52a1474e8508c55/Delegate.java/buggy/jars/MacOS/macos/Delegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 6459, 2725, 4599, 1435, 202, 202, 95, 1082, 202, 682, 20872, 33, 1892, 5623, 18, 588, 5623, 5621, 1082, 202, 3156, 12958, 1726, 31, 1082, 202, 812, 768, 31, 1082, 202, 474, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 6459, 2725, 4599, 1435, 202, 202, 95, 1082, 202, 682, 20872, 33, 1892, 5623, 18, 588, 5623, 5621, 1082, 202, 3156, 12958, 1726, 31, 1082, 202, 812, 768, 31, 1082, 202, 474, 1...
m_cms = cms; if (m_cms != null) { m_userName = m_cms.getRequestContext().currentUser().getName(); } else { m_userName = null; }
this(null);
public CmsPasswordInfo(CmsObject cms) { m_cms = cms; if (m_cms != null) { m_userName = m_cms.getRequestContext().currentUser().getName(); } else { m_userName = null; } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/3490d71abdd2f86b3a1412c7e7311ab55b31ba53/CmsPasswordInfo.java/buggy/src/org/opencms/security/CmsPasswordInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 3913, 966, 12, 4747, 921, 6166, 13, 288, 3639, 312, 67, 6851, 273, 6166, 31, 3639, 309, 261, 81, 67, 6851, 480, 446, 13, 288, 5411, 312, 67, 1355, 461, 273, 312, 67, 6851,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2149, 3913, 966, 12, 4747, 921, 6166, 13, 288, 3639, 312, 67, 6851, 273, 6166, 31, 3639, 309, 261, 81, 67, 6851, 480, 446, 13, 288, 5411, 312, 67, 1355, 461, 273, 312, 67, 6851,...
public String jsFunction_toLocaleString(Object arg) { return toString();
private String jsFunction_toLocaleString(int base) { return jsFunction_toString(base);
public String jsFunction_toLocaleString(Object arg) { return toString(); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8584f9aa43e87015068b51a9cd8ce3a893b2449a/NativeNumber.java/buggy/js/rhino/org/mozilla/javascript/NativeNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 2083, 67, 869, 3916, 780, 12, 921, 1501, 13, 288, 202, 202, 2463, 1762, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 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, 377, 1071, 514, 3828, 2083, 67, 869, 3916, 780, 12, 921, 1501, 13, 288, 202, 202, 2463, 1762, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
public void actionPerformed(ActionEvent e) { // Remove the selected tab pane if it's not the Smack info pane if (tabbedPane.getSelectedIndex() < tabbedPane.getComponentCount() - 1) { int index = tabbedPane.getSelectedIndex(); // Notify to the debugger to stop debugging EnhancedDebugger debugger = (EnhancedDebugger)debuggers.get(index); debugger.cancel(); // Remove the debugger from the root window tabbedPane.remove(debugger.tabbedPane); debuggers.remove(debugger); // Update the root window title frame.setTitle( "Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1)); } }
7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/21b89d3fc06d22e014398b00dee8894ec3953265/EnhancedDebuggerWindow.java/buggy/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 368, 3581, 326, 3170, 3246, 13618, 309, 518, 1807, 486, 326, 9425, 484, 1123, 13618, 7734, 309, 261, 7032, 2992, 8485, 18, 588, 7416...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 368, 3581, 326, 3170, 3246, 13618, 309, 518, 1807, 486, 326, 9425, 484, 1123, 13618, 7734, 309, 261, 7032, 2992, 8485, 18, 588, 7416...
if (exp.getBinding() == null && exp.getSymbol() instanceof Symbol)
if (exp.getBinding() == null)
protected Expression walkReferenceExp (ReferenceExp exp) { if (exp.getBinding() == null && exp.getSymbol() instanceof Symbol) { Symbol sym = (Symbol) exp.getSymbol(); if ("".equals(sym.getNamespaceURI())) { String name = sym.getLocalName(); Expression f; if ("request".equals(name)) f = XQParser.makeFunctionExp("gnu.kawa.servlet.GetRequest", "getRequest"); else if ("response".equals(name)) f = XQParser.makeFunctionExp("gnu.kawa.servlet.GetResponse", "getResponse"); else f = null; if (f != null) return new ApplyExp(f, Expression.noExpressions); } } return super.walkReferenceExp(exp); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/b998929ea4b0de656a696d5e4111badc28d1fbbe/XQResolveNames.java/buggy/gnu/xquery/lang/XQResolveNames.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5371, 5442, 2404, 2966, 261, 2404, 2966, 1329, 13, 225, 288, 565, 309, 261, 2749, 18, 588, 5250, 1435, 422, 446, 13, 1377, 288, 202, 5335, 5382, 273, 261, 5335, 13, 1329, 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, 282, 4750, 5371, 5442, 2404, 2966, 261, 2404, 2966, 1329, 13, 225, 288, 565, 309, 261, 2749, 18, 588, 5250, 1435, 422, 446, 13, 1377, 288, 202, 5335, 5382, 273, 261, 5335, 13, 1329, 18, 588,...
this.message = message; }
this.message = message; }
private void setMessage(String message) throws IllegalArgumentException { if ((message == null) || (message.length() == 0)) { throw new IllegalArgumentException("invalid message"); } this.message = message; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/146187b4ae540f5d78085723fb87733b9b22581d/TextOutputCallback.java/clean/libraries/javalib/javax/security/auth/callback/TextOutputCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 15227, 12, 780, 883, 13, 1216, 2754, 225, 288, 565, 309, 14015, 2150, 422, 446, 13, 747, 261, 2150, 18, 2469, 1435, 422, 374, 3719, 1377, 288, 540, 604, 394, 2754, 2932, 5387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 15227, 12, 780, 883, 13, 1216, 2754, 225, 288, 565, 309, 14015, 2150, 422, 446, 13, 747, 261, 2150, 18, 2469, 1435, 422, 374, 3719, 1377, 288, 540, 604, 394, 2754, 2932, 5387...
completedHandshake = false;
public void disconnected() { long now = System.currentTimeMillis(); Logger.normal(this, "Disconnected "+this); node.usm.onDisconnect(this); node.peers.disconnected(this); synchronized(this) { // Force renegotiation. isConnected = false; completedHandshake = false; setPeerNodeStatus(now); // Prevent sending packets to the node until that happens. if(currentTracker != null) currentTracker.disconnected(); if(previousTracker != null) previousTracker.disconnected(); if(unverifiedTracker != null) unverifiedTracker.disconnected(); // DO NOT clear trackers, so can still receive. } node.lm.lostOrRestartedNode(this); sendHandshakeTime = System.currentTimeMillis(); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
if(log.isInfoEnabled()) log.info("removed " + mbr + " from connection table");
if(log.isDebugEnabled()) log.debug("removed " + mbr + " from connection table");
void removeConnection(Object mbr) { Entry entry=(Entry)connections.get(mbr); if(entry != null) { entry.reset(); if(log.isInfoEnabled()) log.info("removed " + mbr + " from connection table"); } connections.remove(mbr); }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/UNICAST.java/buggy/src/org/jgroups/protocols/UNICAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1206, 1952, 12, 921, 312, 2848, 13, 288, 3639, 3841, 1241, 28657, 1622, 13, 13313, 18, 588, 12, 1627, 86, 1769, 3639, 309, 12, 4099, 480, 446, 13, 288, 5411, 1241, 18, 6208, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 1952, 12, 921, 312, 2848, 13, 288, 3639, 3841, 1241, 28657, 1622, 13, 13313, 18, 588, 12, 1627, 86, 1769, 3639, 309, 12, 4099, 480, 446, 13, 288, 5411, 1241, 18, 6208, 5621, ...
int initFilesize = filesize;
long initFilesize = filesize;
private void fetchFile(File localFile, int filesize, OutputStream out, InputStream in) throws IOException { byte[] buf = new byte[BUFFER_SIZE]; sendAck(out); // read a content of lfile FileOutputStream fos = new FileOutputStream(localFile); int length; int totalLength = 0; long startTime = System.currentTimeMillis(); // only track progress for files larger than 100kb in verbose mode boolean trackProgress = getVerbose() && filesize > 102400; // since filesize keeps on decreasing we have to store the // initial filesize int initFilesize = filesize; int percentTransmitted = 0; try { while (true) { length = in.read(buf, 0, (buf.length < filesize) ? buf.length : filesize); if (length < 0) { throw new EOFException("Unexpected end of stream."); } fos.write(buf, 0, length); filesize -= length; totalLength += length; if (filesize == 0) { break; } if (trackProgress) { percentTransmitted = trackProgress(initFilesize, totalLength, percentTransmitted); } } } finally { long endTime = System.currentTimeMillis(); logStats(startTime, endTime, totalLength); fos.flush(); fos.close(); } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/7b5ce7f4b45291f9bb8b2683b9204ab656f3d72f/ScpFromMessage.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2158, 812, 12, 812, 30649, 16, 18701, 509, 14104, 16, 18701, 8962, 596, 16, 18701, 5037, 316, 13, 1216, 1860, 288, 3639, 1160, 8526, 1681, 273, 394, 1160, 63, 11302, 67, 4574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2158, 812, 12, 812, 30649, 16, 18701, 509, 14104, 16, 18701, 8962, 596, 16, 18701, 5037, 316, 13, 1216, 1860, 288, 3639, 1160, 8526, 1681, 273, 394, 1160, 63, 11302, 67, 4574, ...
debugManager.print( "Fitting Plot to width of GramControlFrame"); plot.fitToWidth(); plot.updatePlot(); }
plot.getGramComp().setDrawErrorBars( eCheck.getState() ); plot.updatePlot(); }
public void actionPerformed(ActionEvent e) { debugManager.print( "Fitting Plot to width of GramControlFrame"); plot.fitToWidth(); plot.updatePlot(); }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/59047001db9d7296c3b68e6334eb83f835f6c032/GramControlFrame.java/clean/frog/src/main/uk/ac/starlink/frog/iface/GramControlFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 2398, 1198, 1318, 18, 1188, 12, 315, 14219, 1787, 15211, 358, 1835, 434, 611, 1940, 3367, 3219, 8863, 2398, 3207, 18, 7216, 774, 2384, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 2398, 1198, 1318, 18, 1188, 12, 315, 14219, 1787, 15211, 358, 1835, 434, 611, 1940, 3367, 3219, 8863, 2398, 3207, 18, 7216, 774, 2384, 562...
fname = m_config.getTMRoot() + fname;
fname = m_config.getTMRoot() + File.separator + fname;
protected void loadTM() throws IOException, FileNotFoundException, InterruptedIOException { // build strEntryList for each file // send to buildNearList String [] fileList; String lang; File f; int i; String fname; ArrayList strEntryList = new ArrayList(m_strEntryList.size()); DataInputStream dis; // foreach lang // foreach file // build string entry list // call build near list (entry list, status+filename) //buildNearList(m_strEntryList, status + " (" + fname + ")"); String ext; String src; String trans; StringEntry se; String base = m_config.getProjRoot() + File.separator; strEntryList.clear(); f = new File(m_config.getTMRoot()); fileList = f.list(); for (i=0; i<fileList.length; i++) { strEntryList.clear(); fname = fileList[i]; ext = fname.substring(fname.lastIndexOf('.')); fname = m_config.getTMRoot() + fname; if (ext.equalsIgnoreCase(OConsts.TM_EXTENSION)) loadTMFile(fname); else if (ext.equalsIgnoreCase(OConsts.TMX_EXTENSION)) loadTMXFile(fname, "UTF-8", false); else if (ext.equalsIgnoreCase(OConsts.TMW_EXTENSION)) loadTMXFile(fname, "ISO-8859-1", false); else if (ext.equalsIgnoreCase(OConsts.TAB_EXTENSION)) loadTabFile(fname); } m_nearProj = null; }
8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/92f9fdc0d111e35d8624dd89523537f2f059c86c/CommandThread.java/clean/CommandThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1262, 22903, 1435, 1216, 1860, 16, 13707, 16, 4405, 202, 24485, 14106, 202, 95, 202, 202, 759, 1361, 609, 1622, 682, 364, 1517, 585, 202, 202, 759, 1366, 358, 1361, 24686,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 22903, 1435, 1216, 1860, 16, 13707, 16, 4405, 202, 24485, 14106, 202, 95, 202, 202, 759, 1361, 609, 1622, 682, 364, 1517, 585, 202, 202, 759, 1366, 358, 1361, 24686,...
paramBindingTable.setColumnProperties( new String[]{ COLUMN_PARAMETER, COLUMN_VALUE } );
paramBindingTable.setColumnProperties( new String[]{COLUMN_PARAMETER, COLUMN_VALUE} );
private void createBindingTable( ) { Label label = new Label( displayArea, SWT.NONE ); label.setText( LABEL_REPORT_PARAMETER ); label.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_BEGINNING ) ); paramBindingTable = new TableViewer( displayArea, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION ); Table table = paramBindingTable.getTable( ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.horizontalSpan = 2; table.setLayoutData( gd ); table.setLinesVisible( true ); table.setHeaderVisible( true ); TableColumn parameterColumn = new TableColumn( table, SWT.LEFT ); parameterColumn.setText( COLUMN_PARAMETER ); parameterColumn.setResizable( true ); parameterColumn.setWidth( 150 ); TableColumn valueColumn = new TableColumn( table, SWT.LEFT ); valueColumn.setText( COLUMN_VALUE ); valueColumn.setResizable( true ); valueColumn.setWidth( 180 ); table.addKeyListener( new KeyAdapter( ) { /** * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased( KeyEvent e ) { // If Delete pressed, delete the selected row if ( e.keyCode == SWT.DEL ) { deleteRow( ); } } } ); paramBindingTable.setColumnProperties( new String[]{ COLUMN_PARAMETER, COLUMN_VALUE } ); paramterChooser = new ComboBoxCellEditor( table, new String[0], SWT.READ_ONLY ); ExpressionCellEditor valueEditor = new ExpressionCellEditor( table ); valueEditor.setDataSetList( dataSetList ); paramBindingTable.setCellEditors( new CellEditor[]{ paramterChooser, valueEditor } ); paramBindingTable.setContentProvider( contentProvider ); paramBindingTable.setLabelProvider( labelProvider ); paramBindingTable.setCellModifier( cellModifier ); paramBindingTable.setInput( bindingList ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/f5e62342ed517a2b257e427a5f18c7dee2b63f6d/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 5250, 1388, 12, 262, 202, 95, 202, 202, 2224, 1433, 273, 394, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1925, 18, 542, 1528, 12, 18210, 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, 225, 202, 1152, 918, 752, 5250, 1388, 12, 262, 202, 95, 202, 202, 2224, 1433, 273, 394, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1925, 18, 542, 1528, 12, 18210, 67, ...
currentElement.updateOnClosingBrace(scanner.startPosition, this.rBraceEnd); lastCheckPoint = scanner.currentPosition; if (newElement != currentElement){ currentElement = newElement;
this.currentElement.updateOnClosingBrace(this.scanner.startPosition, this.rBraceEnd); this.lastCheckPoint = this.scanner.currentPosition; if (newElement != this.currentElement){ this.currentElement = newElement;
public void recoveryTokenCheck() { switch (currentToken) { case TokenNameLBRACE : RecoveredElement newElement = null; if(!ignoreNextOpeningBrace) { newElement = currentElement.updateOnOpeningBrace(scanner.startPosition - 1, scanner.currentPosition - 1); } lastCheckPoint = scanner.currentPosition; if (newElement != null){ // null means nothing happened restartRecovery = true; // opening brace detected currentElement = newElement; } break; case TokenNameRBRACE : this.rBraceStart = scanner.startPosition - 1; this.rBraceEnd = scanner.currentPosition - 1; endPosition = this.flushCommentsDefinedPriorTo(this.rBraceEnd); newElement = currentElement.updateOnClosingBrace(scanner.startPosition, this.rBraceEnd); lastCheckPoint = scanner.currentPosition; if (newElement != currentElement){ currentElement = newElement; } break; case TokenNameSEMICOLON : endStatementPosition = scanner.currentPosition - 1; endPosition = scanner.startPosition - 1; // fall through default : { if (this.rBraceEnd > this.rBraceSuccessorStart && scanner.currentPosition != scanner.startPosition){ this.rBraceSuccessorStart = scanner.startPosition; } break; } } ignoreNextOpeningBrace = false;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 11044, 1345, 1564, 1435, 288, 202, 9610, 261, 2972, 1345, 13, 288, 202, 202, 3593, 3155, 461, 12995, 9254, 294, 1875, 202, 426, 16810, 1046, 31308, 273, 446, 31, 1082, 202, 430, 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, 1071, 918, 11044, 1345, 1564, 1435, 288, 202, 9610, 261, 2972, 1345, 13, 288, 202, 202, 3593, 3155, 461, 12995, 9254, 294, 1875, 202, 426, 16810, 1046, 31308, 273, 446, 31, 1082, 202, 430, 12,...
case 568 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); }
case 565 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); }
protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 98 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 100 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 104 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 108 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 120 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 121 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 122 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 123 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 125 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 129 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 130 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 133 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 137 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 138 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 139 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 146 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 149 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 151 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 154 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 155 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 157 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 158 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 163 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 164 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 165 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 166 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 171 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 175 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 176 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 179 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 180 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 181 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 182 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 183 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 184 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 185 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 200 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 203 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 214 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 222 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 225 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 227 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 228 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 229 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 231 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 236 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 240 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 241 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 267 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 268 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 269 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 279 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 280 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 281 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 282 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 283 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 286 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 288 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 289 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 291 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 292 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 293 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 294 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 295 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 296 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 297 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 298 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 299 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 303 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 304 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 305 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 306 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 307 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 308 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 309 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 310 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 311 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 312 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 313 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 314 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 315 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 317 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 319 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 320 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 322 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 323 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 328 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 333 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 341 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 342 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 349 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 351 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 353 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 354 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 356 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 361 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 362 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 364 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 366 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 367 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 370 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 371 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 372 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 377 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 378 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 380 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 381 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 383 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 386 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 387 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 388 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 391 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 392 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 394 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 395 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 397 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 398 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 403 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 404 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 405 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 407 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 408 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 411 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 412 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 414 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 415 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 418 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 419 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 423 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 424 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 426 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 428 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 429 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 431 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 433 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 435 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 437 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 439 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 441 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 444 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 446 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 457 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 458 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 462 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 467 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 468 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 469 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 470 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 471 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 473 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 475 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 479 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 483 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 484 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 485 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 486 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 488 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 492 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 494 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 495 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 496 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 500 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 502 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 503 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 504 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 505 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 506 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 507 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 508 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 510 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 511 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 516 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 518 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 520 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 521 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 522 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 524 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 526 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 527 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 532 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 534 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 538 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 540 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 543 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 545 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 549 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 553 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 557 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 559 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 560 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 561 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 563 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 566 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 569 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 571 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 574 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 577 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 588 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 596 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 601 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 608 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 617 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 620 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 625 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 628 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 631 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 634 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 637 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 640 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 660 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 661 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 669 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 670 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 675 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 677 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 680 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 681 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 685 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 686 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 687 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 688 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 689 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e2b84708e7e9f1a0476422497e11c18bab983558/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 12899, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 2175, 12, 474, 1328, 13, 288, 225, 1620, 261, 1328, 262, 288, 565, 648, 12899, 294, 309, 261, 9394, 13, 288, 2332, 18, 659, 18, 8222, 2932, 559, 493, 33, 14488, 559, 8863, ...
public void drop( int posn ) throws SemanticException
public void drop( DesignElementHandle content ) throws SemanticException
public void drop( int posn ) throws SemanticException { DesignElement content = getElement( ).getSlot( slotID ).getContent( posn ); ContentCommand cmd = new ContentCommand( getDesign( ), getElement( ) ); cmd.remove( content, slotID ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c1142f010d674d3bad4921d62a49bf37cfe76951/SlotHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/SlotHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3640, 12, 509, 949, 82, 262, 1216, 24747, 503, 202, 95, 202, 202, 15478, 1046, 913, 273, 7426, 12, 262, 18, 588, 8764, 12, 4694, 734, 262, 18, 588, 1350, 12, 9506, 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, 3640, 12, 509, 949, 82, 262, 1216, 24747, 503, 202, 95, 202, 202, 15478, 1046, 913, 273, 7426, 12, 262, 18, 588, 8764, 12, 4694, 734, 262, 18, 588, 1350, 12, 9506, 202,...
HTTPRequest request = new HTTPRequestImpl(uri);
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequestImpl(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.addFormChild(ctx.getPageMaker().getContentNode(infobox), "/", "bookmarkAddForm"); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.addFormChild(ctx.getPageMaker().getContentNode(warnbox), "/", "confirmExternalLinkForm"); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = ctx.addFormChild(infoboxContent, ".", "manageBookmarksForm"); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", '/' + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx, MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = ctx.addFormChild(content.addChild("p"), "/", "confirmShutdownForm"); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = ctx.addFormChild(content.addChild("p"), "/", "confirmRestartForm"); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); if(NodeStarter.extBuildNumber < NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER) { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + '(' + NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER + ") r" + NodeStarter.extRevisionNumber); } else { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); } versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/38f8d1fcb37427cee0f076dc77c022abe970c68f/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
throw new ResourceNotFoundException(msg);
throw new ResourceNotFoundException (msg);
public synchronized InputStream getResourceStream(String name) throws ResourceNotFoundException { if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("Need to specify a template name!"); } try { Connection conn = openDbConnection(); try { ResultSet rs = readData(conn, templateColumn, name); try { if (rs.next()) { return new BufferedInputStream(rs.getAsciiStream(templateColumn)); } else { String msg = "DataSourceResourceLoader Error: cannot find resource " + name; rsvc.error(msg); throw new ResourceNotFoundException(msg); } } finally { rs.close(); } } finally { closeDbConnection(conn); } } catch(Exception e) { String msg = "DataSourceResourceLoader Error: database problem trying to load resource " + name + ": " + e.toString(); rsvc.error(msg); throw new ResourceNotFoundException(msg); } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/89173502837b4d67a69cd30d0b93cf47ed84c8cc/DataSourceResourceLoader.java/buggy/src/java/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 3852, 5037, 5070, 1228, 12, 780, 508, 13, 540, 1216, 16676, 377, 288, 540, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 540, 288, 2398, 604, 394, 16676, 7566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 3852, 5037, 5070, 1228, 12, 780, 508, 13, 540, 1216, 16676, 377, 288, 540, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 540, 288, 2398, 604, 394, 16676, 7566,...
SINetworkImpl (SIDatabaseRequest request, long nativeData) {
SINetworkImpl (SIDatabaseRequest request, NativeData nativeData) {
SINetworkImpl (SIDatabaseRequest request, long nativeData) { super(request, nativeData);}
13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/b1f2dddc68b4ce0181ca8ca1d2e261d450787564/SINetworkImpl.java/clean/trunk/mhp/java/org/dvb/si/SINetworkImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 31793, 1572, 2828, 261, 30287, 2451, 691, 590, 16, 16717, 751, 6448, 751, 13, 288, 282, 2240, 12, 2293, 16, 6448, 751, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 31793, 1572, 2828, 261, 30287, 2451, 691, 590, 16, 16717, 751, 6448, 751, 13, 288, 282, 2240, 12, 2293, 16, 6448, 751, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (!isGUIFullyInitialized) { synchronized (initializationLock) { while (!isGUIFullyInitialized) { System.out .println("Wanting to add a row, but GUI not initialized, waiting...");
if (!isGUIFullyInitialized) { synchronized (initializationLock) { while (!isGUIFullyInitialized) { System.out.println( "Wanting to add a row, but GUI not initialized, waiting...");
public void receiveEventBatch(final String ident, final List eventBatchEntrys) { if (eventBatchEntrys.size() == 0) { return; } EventContainer tableModel; JSortTable table; HashMap map = null; if (!isGUIFullyInitialized) { synchronized (initializationLock) { while (!isGUIFullyInitialized) { System.out .println("Wanting to add a row, but GUI not initialized, waiting..."); /** * Lets wait 1 seconds and recheck. */ try { initializationLock.wait(1000); } catch (InterruptedException e) { } } } } if (!getPanelMap().containsKey(ident)) { final String eventType = ((ChainsawEventBatchEntry) eventBatchEntrys .get(0)) .getEventType(); final LogPanel thisPanel = new LogPanel(getStatusBar(), ident, eventType); thisPanel.addEventCountListener(new TabIconHandler(ident)); PropertyChangeListener toolbarMenuUpdateListener = new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { tbms.stateChange(); } }; thisPanel.addPropertyChangeListener(toolbarMenuUpdateListener); thisPanel.getPreferenceModel() .addPropertyChangeListener(toolbarMenuUpdateListener); thisPanel.addPropertyChangeListener("docked", new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { LogPanel logPanel = (LogPanel) evt.getSource(); if (logPanel.isDocked()) { getPanelMap().put(logPanel.getIdentifier(), logPanel); getTabbedPane() .addANewTab(logPanel.getIdentifier(), logPanel, null); } else { getTabbedPane().remove(logPanel); } } }); getTabbedPane().add(ident, thisPanel); getPanelMap().put(ident, thisPanel); getSettingsManager().addSettingsListener(thisPanel); getSettingsManager().configure(thisPanel); /** * Let the new LogPanel receive this batch */ thisPanel.receiveEventBatch(ident, eventBatchEntrys); /** * Now add the panel as a batch listener so it can handle it's own * batchs */ handler.addEventBatchListener(thisPanel); SwingUtilities.invokeLater(new Runnable() { public void run() { getTabbedPane() .addANewTab(ident, thisPanel, new ImageIcon( ChainsawIcons.ANIM_RADIO_TOWER)); } }); String msg = "added tab " + ident; LogLog.debug(msg); statusBar.setMessage(msg); } }
47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/09eb142803eecc3b138902c78e5d7fa2148d79c8/LogUI.java/buggy/src/java/org/apache/log4j/chainsaw/LogUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6798, 1133, 4497, 12, 6385, 514, 3390, 16, 3639, 727, 987, 871, 4497, 1622, 87, 13, 565, 288, 1377, 309, 261, 2575, 4497, 1622, 87, 18, 1467, 1435, 422, 374, 13, 1377, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6798, 1133, 4497, 12, 6385, 514, 3390, 16, 3639, 727, 987, 871, 4497, 1622, 87, 13, 565, 288, 1377, 309, 261, 2575, 4497, 1622, 87, 18, 1467, 1435, 422, 374, 13, 1377, 288, ...
s_exitValue = 1;
m_exitValue = 1;
public void executeOneStatement (String sqlString) throws SQLException { s_stmtCount++; s_log.info ("Statement count: " + s_stmtCount); if (s_echoSQLStatement) { s_log.info (sqlString); } try { int rowsAffected = s_stmt.executeUpdate(sqlString); s_log.warn (" " + rowsAffected + " row(s) affected"); } catch (SQLException e) { s_exitValue = 1; s_log.warn (" -- FAILED: " + e.getMessage()); if (!s_onErrorContinue) { throw e; } } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/8ce9d263fe13880a24fe8a686d4c1d2286b4936a/LoadSQLPlusScript.java/clean/archive/core-platform/src/com/arsdigita/installer/LoadSQLPlusScript.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 3335, 3406, 261, 780, 1847, 780, 13, 3639, 1216, 6483, 288, 3639, 272, 67, 10589, 1380, 9904, 31, 3639, 272, 67, 1330, 18, 1376, 7566, 3406, 1056, 30, 315, 397, 272, 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, 1071, 918, 1836, 3335, 3406, 261, 780, 1847, 780, 13, 3639, 1216, 6483, 288, 3639, 272, 67, 10589, 1380, 9904, 31, 3639, 272, 67, 1330, 18, 1376, 7566, 3406, 1056, 30, 315, 397, 272, 67...
System.out.println("DONE " + cproject.getElementName()+ " :"+ status);
public void start() { String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); //$NON-NLS-1$ taskName += " (" + cproject.getElementName() + ")"; runner = new Job(taskName) { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ protected IStatus run(IProgressMonitor monitor) { IStatus status = Status.OK_STATUS; try { if (cproject == null || monitor.isCanceled()) { status = Status.CANCEL_STATUS; } else { monitor.beginTask(getName(), IProgressMonitor.UNKNOWN); BinaryContainer vbin = (BinaryContainer) cproject.getBinaryContainer(); ArchiveContainer vlib = (ArchiveContainer) cproject.getArchiveContainer(); vlib.removeChildren(); vbin.removeChildren(); cproject.getProject().accept(new Visitor(monitor), IContainer.INCLUDE_PHANTOMS); CModelOperation op = new BinaryRunnerOperation(cproject); op.runOperation(monitor); } } catch (CoreException e) { // Ignore the error and just cancel the binary thread //status = e.getStatus(); status = Status.CANCEL_STATUS; } finally { monitor.done(); } System.out.println("DONE " + cproject.getElementName()+ " :"+ status); return status; } }; runner.setPriority(Job.LONG); runner.schedule(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/477addee94fe6da9701e788464ccc71749562a89/BinaryRunner.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 780, 20172, 273, 385, 4670, 3773, 18, 588, 1420, 780, 2932, 4670, 1488, 18, 5905, 9709, 18, 5905, 67, 2979, 67, 3830, 8863, 4329, 3993, 17, 5106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1435, 288, 202, 202, 780, 20172, 273, 385, 4670, 3773, 18, 588, 1420, 780, 2932, 4670, 1488, 18, 5905, 9709, 18, 5905, 67, 2979, 67, 3830, 8863, 4329, 3993, 17, 5106...
return provider.getImage(editValue); }
return provider.getImage(editValue); }
public Image getImage() { ILabelProvider provider = descriptor.getLabelProvider(); if (provider == null) { return null; } return provider.getImage(editValue); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1ccb6f8ddf35b3b40ebd3ebe3e7982aa947ec045/PropertySheetEntry.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3421, 10567, 1435, 288, 3639, 467, 2224, 2249, 2893, 273, 4950, 18, 588, 2224, 2249, 5621, 3639, 309, 261, 6778, 422, 446, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3421, 10567, 1435, 288, 3639, 467, 2224, 2249, 2893, 273, 4950, 18, 588, 2224, 2249, 5621, 3639, 309, 261, 6778, 422, 446, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 3639, 3...
getServiceBroker());
getBindingSite());
private void initializeModel(String communityName) { if (model == null) { if (logger.isInfoEnabled()) { logger.info("Monitoring community: " + communityName); } model = new CommunityStatusModel(NODE_NAME, communityName, getServiceBroker()); controller = new DefaultRobustnessController(NODE_NAME, getBindingSite(), model); model.setController(controller); model.addChangeListener(controller); } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/4793b2700e275b6a0064a4a834dd9b24be0995fb/NodeHealthMonitorPlugin.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/plugins/NodeHealthMonitorPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4046, 1488, 12, 780, 19833, 461, 13, 288, 565, 309, 261, 2284, 422, 446, 13, 288, 1377, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 3639, 1194, 18, 1376, 2932, 18410, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 1488, 12, 780, 19833, 461, 13, 288, 565, 309, 261, 2284, 422, 446, 13, 288, 1377, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 3639, 1194, 18, 1376, 2932, 18410, 198...
*/
public static void startGCspyServer() throws InterruptiblePragma { /* TODO GCspy.startGCspyServer(); */ }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/104773be3c6426fa34a2501c8838fe5fe713e6c2/MM_Interface.java/buggy/rvm/src/vm/memoryManagers/JMTk/vmInterface/MM_Interface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 787, 15396, 30884, 2081, 1435, 1216, 3094, 4483, 1523, 2050, 9454, 288, 565, 1748, 1377, 2660, 565, 15085, 30884, 18, 1937, 15396, 30884, 2081, 5621, 377, 289, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 787, 15396, 30884, 2081, 1435, 1216, 3094, 4483, 1523, 2050, 9454, 288, 565, 1748, 1377, 2660, 565, 15085, 30884, 18, 1937, 15396, 30884, 2081, 5621, 377, 289, 2, -100, -100...
for (int i = 0; i < ids.length; i++) {
for (int i = ids.length - 1; i >=0; i--) {
private void excludeSelectionAction() { int[] ids = myActionsList.getSelectedIndices(); for (int i = 0; i < ids.length; i++) { ((DefaultListModel)myActionsList.getModel()).remove(ids[i]); } update(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/245da178d413eea24d068084b4127ccf905c25f5/QuickListPanel.java/clean/source/com/intellij/openapi/keymap/impl/ui/QuickListPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4433, 6233, 1803, 1435, 288, 565, 509, 8526, 3258, 273, 3399, 6100, 682, 18, 588, 7416, 8776, 5621, 565, 364, 261, 474, 277, 273, 3258, 18, 2469, 300, 404, 31, 277, 1545, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4433, 6233, 1803, 1435, 288, 565, 509, 8526, 3258, 273, 3399, 6100, 682, 18, 588, 7416, 8776, 5621, 565, 364, 261, 474, 277, 273, 3258, 18, 2469, 300, 404, 31, 277, 1545, 20,...
injectMove(pred, mopTmp.copyRO(), mop);
injectMove(pred, mopTmp.copyRO(), mop.copy());
void rectifyStacks(OPT_BasicBlock block, OperandStack stack, BasicBlockLE p) { if (stack == null || stack.isEmpty()) { if (VM.VerifyAssertions) VM._assert(p.stackState == null); if (!p.isStackKnown()) p.setStackKnown(); if (DBG_STACK || DBG_SELECTED) db("Rectified empty expression stack into "+p+"("+p.block+")"); return; } boolean generated = p.isGenerated(); // (1) Rectify the stacks. if (!p.isStackKnown()) { // First time we reached p. Thus, its expression stack // is implicitly top and the meet degenerates to a copy operation // with possibly some register renaming. // (We need to ensure that non-local registers appear at // most once on each expression stack). if (DBG_STACK || DBG_SELECTED) { db("First stack rectifiction for " + p + "(" + p.block + ") simply saving"); } if (VM.VerifyAssertions) VM._assert(p.stackState == null); p.stackState = new OperandStack(stack.getCapacity()); for (int i = stack.getSize() - 1; i >= 0; i--) { OPT_Operand op = stack.getFromTop(i); if (op == DUMMY) { p.stackState.push(DUMMY); } else if (op instanceof OPT_RegisterOperand) { OPT_RegisterOperand rop = op.asRegister(); if (rop.register.isLocal()) { OPT_RegisterOperand temp = gc.temps.makeTemp(rop); temp.setInheritableFlags(rop); setGuard(temp, getGuard(rop)); OPT_Instruction move = Move.create(OPT_IRTools.getMoveOp(rop.type), temp, rop); move.bcIndex = RECTIFY_BCI; move.position = gc.inlineSequence; block.appendInstructionRespectingTerminalBranch(move); p.stackState.push(temp.copy()); if (DBG_STACK || DBG_SELECTED) db("Inserted " + move + " into " + block + " to rename local"); } else { p.stackState.push(rop.copy()); } } else { p.stackState.push(op.copy()); } } p.setStackKnown(); return; } else { // A real rectification. // We need to update mergedStack such that // mergedStack[i] = meet(mergedStack[i], stack[i]). if (DBG_STACK || DBG_SELECTED) db("rectifying stacks"); try { if (VM.VerifyAssertions) VM._assert(stack.getSize() == p.stackState.getSize()); } catch (NullPointerException e) { System.err.println("stack size " + stack.getSize()); System.err.println(stack); System.err.println(p.stackState); System.err.println(gc.method.toString()); block.printExtended(); p.block.printExtended(); throw e; } for (int i = 0; i < stack.getSize(); ++i) { OPT_Operand sop = stack.getFromTop(i); OPT_Operand mop = p.stackState.getFromTop(i); if ((sop == DUMMY) || (sop instanceof ReturnAddressOperand)) { if (VM.VerifyAssertions) VM._assert(mop.similar(sop)); continue; } else if (sop.isConstant() || mop.isConstant()) { if (mop.similar(sop)) { continue; // constants are similar; so we don't have to do anything. } // sigh. Non-similar constants. if (mop.isConstant()) { // Insert move instructions in all predecessor // blocks except 'block' to move mop into a register. OPT_RegisterOperand mopTmp = gc.temps.makeTemp(mop); if (DBG_STACK || DBG_SELECTED) db("Merged stack has constant operand "+mop); for (OPT_BasicBlockEnumeration preds = p.block.getIn(); preds.hasMoreElements();) { OPT_BasicBlock pred = preds.next(); if (pred == block) continue; injectMove(pred, mopTmp.copyRO(), mop); } p.stackState.replaceFromTop(i, mopTmp.copy()); if (generated) { if (DBG_STACK || DBG_SELECTED) db("\t...forced to regenerate " + p + " (" + p.block + ") because of this"); markBlockForRegeneration(p); generated = false; p.block.deleteOut(); if (DBG_CFG || DBG_SELECTED) db("Deleted all out edges of " + p.block); } mop = mopTmp; } if (sop.isConstant()) { // Insert move instruction into block. OPT_RegisterOperand sopTmp = gc.temps.makeTemp(sop); if (DBG_STACK || DBG_SELECTED) db("incoming stack has constant operand "+sop); injectMove(block, sopTmp, sop); sop = sopTmp.copyRO(); } } // sop and mop are OPT_RegisterOperands (either originally or because // we forced them to be above due to incompatible constants. OPT_RegisterOperand rsop = sop.asRegister(); OPT_RegisterOperand rmop = mop.asRegister(); if (rmop.register != rsop.register) { // must insert move at end of block to get register #s to match OPT_RegisterOperand temp = rsop.copyRO(); temp.setRegister(rmop.register); injectMove(block, temp, rsop.copyRO()); } OPT_Operand meet = OPT_Operand.meet(rmop, rsop, rmop.register); if (DBG_STACK || DBG_SELECTED) db("Meet of "+rmop+" and "+rsop+" is "+ meet); if (meet != rmop) { if (generated) { if (DBG_STACK || DBG_SELECTED) db("\t...forced to regenerate " + p + " (" + p.block + ") because of this"); markBlockForRegeneration(p); generated = false; p.block.deleteOut(); if (DBG_CFG || DBG_SELECTED) db("Deleted all out edges of " + p.block); } p.stackState.replaceFromTop(i, meet); } } } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/961e5e9cbb19eab90da5afe3b577e639183121e3/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4917, 1164, 28090, 12, 15620, 67, 8252, 1768, 1203, 16, 7692, 464, 2624, 2110, 16, 13491, 7651, 1768, 900, 293, 13, 288, 1377, 309, 261, 3772, 422, 446, 747, 2110, 18, 291, 1921, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4917, 1164, 28090, 12, 15620, 67, 8252, 1768, 1203, 16, 7692, 464, 2624, 2110, 16, 13491, 7651, 1768, 900, 293, 13, 288, 1377, 309, 261, 3772, 422, 446, 747, 2110, 18, 291, 1921, 1...
setSelectionResult(new IFolder[] { folder });
setSelectionResult(new IFolder[] { folder });
protected void okPressed() { String linkTarget = linkedResourceGroup.getLinkTarget(); IFolder folder = createNewFolder(folderNameField.getText(), linkTarget); if (folder == null) { return; } setSelectionResult(new IFolder[] { folder }); super.okPressed(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f21a158e540a7a992bc7c1d5732d5d6926ff4f2c/NewFolderDialog.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 1435, 288, 202, 202, 780, 1692, 2326, 273, 8459, 18860, 18, 588, 2098, 2326, 5621, 3639, 467, 3899, 3009, 273, 15291, 3899, 12, 5609, 461, 974, 18, 588, 1528,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 1435, 288, 202, 202, 780, 1692, 2326, 273, 8459, 18860, 18, 588, 2098, 2326, 5621, 3639, 467, 3899, 3009, 273, 15291, 3899, 12, 5609, 461, 974, 18, 588, 1528,...
for (int i=0; i<bs.length; i++)
for (int i=0; i<values.length; i++)
public static void dumpHex(byte bs[]) { for (int i=0; i<bs.length; i++) { int n1 = (bs[i] & 0xff) / 16; int n2 = (bs[i] & 0xff) % 16; char c1 = (char)(n1>9 ? ('A'+(n1-10)) : ('0'+n1)); char c2 = (char)(n2>9 ? ('A'+(n2-10)) : ('0'+n2)); System.out.print( c1 + (c2 + " ")); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/PrintIOR.java/buggy/src/org/jacorb/orb/util/PrintIOR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 4657, 7037, 12, 7229, 7081, 63, 5717, 565, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2372, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 509, 290, 21, 273, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 7037, 12, 7229, 7081, 63, 5717, 565, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2372, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 509, 290, 21, 273, 261,...
} else {
setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoWOProject"));
protected boolean validatePage() { if (super.validatePage()) { if (getContainerFullPath().segmentCount() > 0) { IProject actualProject = ResourcesPlugin.getWorkspace() .getRoot() .getProject(getContainerFullPath().segment(0)); switch (getContainerFullPath().segmentCount()) { case 0 : // no project selected setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoProject")); return false; case 1 : if (!actualProject.getFile( IWOLipsModel.PROJECT_FILE_NAME).exists()) { // no webobjects project selected setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } break; default : if (false) { if (!actualProject.getFile( IWOLipsModel.PROJECT_FILE_NAME).exists()) { // no webobjects project selected setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } else { // project is selected and wo project - now // check for subproject IPath projectFilePath = getContainerFullPath() .removeFirstSegments(1).append( IWOLipsModel.PROJECT_FILE_NAME); if (!actualProject.getFile(projectFilePath) .exists()) { // no webobjects subproject selected setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoWOSubproject")); return false; } } } break; } // selection validated return true; } else { // no project selected (container path is < 1) setErrorMessage(Messages .getString("WizardNewWOResourcePage.errorMessage.containerNoWOProject")); return false; } } else { // super validation failed return false; } }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/08e980720213c61dcc100260efe0252dae894baa/WizardNewWOResourcePage.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wizards/java/org/objectstyle/wolips/wizards/WizardNewWOResourcePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 1954, 1964, 1435, 288, 202, 202, 430, 261, 9565, 18, 5662, 1964, 10756, 288, 1082, 202, 430, 261, 588, 2170, 24173, 7675, 9273, 1380, 1435, 405, 374, 13, 288, 9506, 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, 1250, 1954, 1964, 1435, 288, 202, 202, 430, 261, 9565, 18, 5662, 1964, 10756, 288, 1082, 202, 430, 261, 588, 2170, 24173, 7675, 9273, 1380, 1435, 405, 374, 13, 288, 9506, 202, ...
return lhsHash.isSameHash(rhsHash) ? 0 : cmp;
if (lhsHash.isSameHash(rhsHash)) { if (DEBUG) System.out.println("class hash match!"); return 0; } else { if (DEBUG) System.out.println("class hash mismatch"); return cmp; }
public int compareClasses(BugCollection lhsCollection, BugCollection rhsCollection, ClassAnnotation lhsClass, ClassAnnotation rhsClass) { if (lhsClass == null || rhsClass == null) { return compareNullElements(lhsClass, rhsClass); } int cmp; // Compare by class name. If same, great. cmp = lhsClass.compareTo(rhsClass); if (cmp == 0) return 0; // Get class hashes ClassHash lhsHash = getClassHash(lhsCollection, lhsClass.getClassName()); ClassHash rhsHash = getClassHash(rhsCollection, rhsClass.getClassName()); if (lhsHash == null || rhsHash == null) return cmp; return lhsHash.isSameHash(rhsHash) ? 0 : cmp; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9a4826e2eec6e05f30c2717aade91e9b39439346/FuzzyBugComparator.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FuzzyBugComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 4818, 12, 19865, 2532, 8499, 2532, 16, 16907, 2532, 7711, 2532, 16, 1659, 3257, 8499, 797, 16, 1659, 3257, 7711, 797, 13, 288, 202, 202, 430, 261, 80, 4487, 797, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 4818, 12, 19865, 2532, 8499, 2532, 16, 16907, 2532, 7711, 2532, 16, 1659, 3257, 8499, 797, 16, 1659, 3257, 7711, 797, 13, 288, 202, 202, 430, 261, 80, 4487, 797, 42...
ICElement celement = (ICElement) element;
ICElement celement = (ICElement)element;
public Image getImage(Object element) { if (!(element instanceof ICElement)) { return super.getImage(element); } ICElement celement = (ICElement) element; if (celement.getElementType() == ICElement.C_BINARY) { IBinary belement = (IBinary) celement; if (belement.isExecutable()) { Image image = super.getImage(element); Point size = new Point(image.getBounds().width, image.getBounds().height); return CUIPlugin.getImageDescriptorRegistry().get( new CElementImageDescriptor(CPluginImages.DESC_OBJS_CEXEC, 0, size)); } } return super.getImage(element); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6a1a4e7365dcf140888457a3b2c6660d05cc5234/CMainTab.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 9506, 202, 430, 16051, 12, 2956, 1276, 26899, 1046, 3719, 288, 6862, 202, 2463, 2240, 18, 588, 2040, 12, 2956, 1769, 9506, 202, 97, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 9506, 202, 430, 16051, 12, 2956, 1276, 26899, 1046, 3719, 288, 6862, 202, 2463, 2240, 18, 588, 2040, 12, 2956, 1769, 9506, 202, 97, 9506, ...
public static void printlnI(String message, int messageLevel)
public static void printlnI(int messageLevel, String message)
public static void printlnI(String message, int messageLevel) { if (interactiveDebug) println(message); }
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/56870c92c8c941b04a5036a221c26dd23c639e9b/Debug.java/clean/ecologylab/generic/Debug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 918, 3785, 45, 12, 474, 883, 2355, 16, 514, 883, 13, 565, 288, 1377, 309, 261, 24761, 2829, 13, 202, 3785, 12, 2150, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 918, 3785, 45, 12, 474, 883, 2355, 16, 514, 883, 13, 565, 288, 1377, 309, 261, 24761, 2829, 13, 202, 3785, 12, 2150, 1769, 282, 289, 2, -100, -100, -100, -100, -100, -100, ...
return (EVAL_BODY_BUFFERED);
return (EVAL_BODY_TAG);
public int doStartTag() throws JspException { if( this.name!=null || this.value!=null ) return (SKIP_BODY); else return (EVAL_BODY_BUFFERED); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/7050e8d33f5898021e9c928930b72c9732f449c7/DefineTag.java/clean/src/share/org/apache/struts/taglib/bean/DefineTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 9079, 309, 12, 333, 18, 529, 5, 33, 2011, 747, 333, 18, 1132, 5, 33, 2011, 262, 5411, 327, 261, 22589, 67, 16691, 1769, 3639, 469, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 9079, 309, 12, 333, 18, 529, 5, 33, 2011, 747, 333, 18, 1132, 5, 33, 2011, 262, 5411, 327, 261, 22589, 67, 16691, 1769, 3639, 469, 5411, ...
return copyright;
return (copyright == null ? "" : copyright);
public String getCopyright() { return copyright;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cacefa4d355eabdef28efd9d240ed810fe9706df/PlatformInfo.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PlatformInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 1927, 1101, 4083, 1435, 288, 202, 2463, 22245, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 1927, 1101, 4083, 1435, 288, 202, 2463, 22245, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
int thisCount = dfsMatch( candidate.candidate, branch, initCount, null );
int thisCount = dfsMatch( candidate.candidate, branch, initCount );
private void match( BaseNode base, BranchNode branch ) {// System.out.println("Finding cand for " +branch.getContent().toString()); Vector candidates = findCandidates( base, branch ); // Find candidates for node branch in base // Find best trees //System.out.println("Finding best match"); int bestCount = 0; CandidateEntry best = null; Vector bestCandidates = new Vector(); for( Iterator i = candidates.iterator(); i.hasNext(); ) { CandidateEntry candidate = (CandidateEntry) i.next(); // Bounus count of 1 for all candidates whose parents match the parent of the current node// int initCount = candidate.candidate.parent != null && branch.parent != null// && ((BranchNode) branch.parent).getBaseMatch() == candidate.candidate.parent ? 1 : 0; int initCount = 0; int thisCount = dfsMatch( candidate.candidate, branch, initCount, null ); if( thisCount == bestCount ) bestCandidates.add( candidate ); else if( thisCount > bestCount ) { bestCount = thisCount; bestCandidates.clear(); bestCandidates.add( candidate ); } } //System.out.println("Resolving amb"); // Resolve ambiguities if any exist... if( bestCandidates.size() > 1 ) { // Ambiguities - we need to find out which one is the best... // First calc all missing left-right correlations for( Iterator i = bestCandidates.iterator(); i.hasNext(); ) { CandidateEntry candidate = (CandidateEntry) i.next(); if( candidate.leftRightDown < 0.0 ) {/* System.out.println("left="+getDistanceOfLeft(candidate.candidate,branch)); System.out.println("right="+getDistanceOfRight(candidate.candidate,branch)); System.out.println("clist="+measure.childListDistance(candidate.candidate,branch));*/ candidate.leftRightDown = Math.min( measure.childListDistance(candidate.candidate,branch), Math.min( getDistanceOfRight(candidate.candidate,branch), getDistanceOfLeft(candidate.candidate,branch))); } } Collections.sort(bestCandidates,candlrdComp); /*System.out.println("Best cands for " + branch.getContent().toString()); for( Iterator i = bestCandidates.iterator(); i.hasNext(); ) { CandidateEntry ce = (CandidateEntry) i.next(); System.out.println( ce.distance + "," + ce.leftRightDown + ": " + ce.candidate.getContent().toString()); }*/ } best = bestCandidates.isEmpty() ? null : (CandidateEntry) bestCandidates.elementAt(0); if( best!=null && (bestCount == 1 && (Math.min(best.leftRightDown,best.distance) > 0.1 || best.candidate.content.getInfoSize() < COPY_THRESHOLD ))) best=null; //System.out.println("No candidate was very good, leaving unmatched" ); // Add matchings and find nodes below matching subtree Vector stopNodes = new Vector(); if( best != null ) dfsMatch( best.candidate, branch, 0, stopNodes ); else { // Unmatched for( int i=0;i<branch.getChildCount();i++) stopNodes.add(branch.getChild(i)); } // Recurse //System.out.println("---Recurse"); for( Iterator i=stopNodes.iterator();i.hasNext();) match(base,(BranchNode) i.next()); }
7752 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7752/22d7fb96d51db2f5bc968c9cca12178a0d4690ba/Matching.java/buggy/3dm/src/tdm/lib/Matching.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 845, 12, 3360, 907, 1026, 16, 15449, 907, 3803, 262, 288, 759, 565, 2332, 18, 659, 18, 8222, 2932, 21358, 15350, 364, 315, 397, 7500, 18, 588, 1350, 7675, 10492, 10663, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 845, 12, 3360, 907, 1026, 16, 15449, 907, 3803, 262, 288, 759, 565, 2332, 18, 659, 18, 8222, 2932, 21358, 15350, 364, 315, 397, 7500, 18, 588, 1350, 7675, 10492, 10663, 565, ...
public void setColor(int r, int g, int b, int type) { setColor(new Color(r,g,b), type);
public void setColor(int r, int g, int b, int a, int type) { setColor(new Color(r,g,b,a), type);
public void setColor(int r, int g, int b, int type) { setColor(new Color(r,g,b), type); }
10473 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10473/4b07abe8c21e15d736f7f48d078229ef98a25b39/AbstractColorTheme.java/buggy/plastik/src/de/hampelratte/plastik/theme/AbstractColorTheme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16207, 12, 474, 436, 16, 509, 314, 16, 509, 324, 16, 509, 618, 13, 288, 202, 202, 542, 2957, 12, 2704, 5563, 12, 86, 16, 75, 16, 70, 3631, 618, 1769, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16207, 12, 474, 436, 16, 509, 314, 16, 509, 324, 16, 509, 618, 13, 288, 202, 202, 542, 2957, 12, 2704, 5563, 12, 86, 16, 75, 16, 70, 3631, 618, 1769, 202, 97, 2, -1...
super (impl); this.impl = impl;
super (new NIOSocketImpl(channel));
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0775c21093571dbb049293760df0896d396210d3/NIOSocket.java/buggy/core/src/classpath/gnu/gnu/java/nio/NIOSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 423, 4294, 4534, 261, 13360, 4534, 2828, 9380, 16, 8758, 2909, 2828, 1904, 13, 565, 1216, 1860, 225, 288, 565, 2240, 261, 11299, 1769, 565, 333, 18, 11299, 273, 9380, 31, 565, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 423, 4294, 4534, 261, 13360, 4534, 2828, 9380, 16, 8758, 2909, 2828, 1904, 13, 565, 1216, 1860, 225, 288, 565, 2240, 261, 11299, 1769, 565, 333, 18, 11299, 273, 9380, 31, 565, 333, ...
TextUICommandLine commandLine = new TextUICommandLine(DetectorFactoryCollection.instance());
TextUICommandLine commandLine = new TextUICommandLine();
public static void main(String[] argv) { try { TextUICommandLine commandLine = new TextUICommandLine(DetectorFactoryCollection.instance()); FindBugs findBugs = createEngine(commandLine, argv); try { runMain(findBugs, commandLine); } catch (RuntimeException e) { System.err.println("Fatal exception: " + e.toString()); String currentClass = findBugs.getCurrentClass(); if (currentClass != null) { System.err.println("\tWhile analyzing " + currentClass); } e.printStackTrace(); System.err.println("Please report the failure to " + Version.SUPPORT_EMAIL); System.exit(1); } } catch (java.io.IOException e) { // Probably a missing file if (DEBUG) { e.printStackTrace(); } System.err.println("IO Error: " + e.getMessage()); System.exit(1); } catch (FilterException e) { System.err.println("Filter exception: " + e.getMessage()); } catch (IllegalArgumentException e) { // Probably an illegal command line argument System.err.println("Illegal argument: " + e.getMessage()); System.exit(1); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/5b044561f89a46a6901a7cad50ce15fbfcbbc8cd/FindBugs.java/clean/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 202, 202, 698, 288, 1082, 202, 1528, 5370, 21391, 20894, 273, 394, 3867, 5370, 21391, 12, 12594, 1733, 2532, 18, 1336, 10663, 1082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 202, 202, 698, 288, 1082, 202, 1528, 5370, 21391, 20894, 273, 394, 3867, 5370, 21391, 12, 12594, 1733, 2532, 18, 1336, 10663, 1082,...
Set<LoanActivityEntity> loanActivityDetailsSet = loanBO.getLoanActivityDetails(); List<Object> objectList = Arrays.asList(loanActivityDetailsSet.toArray()); LoanActivityEntity loanActivityEntity = (LoanActivityEntity) objectList.get(0); assertEquals( new Timestamp(DateUtils.getCurrentDateWithoutTimeStamp().getTime()), loanActivityEntity.getTrxnCreatedDate()); assertEquals(new Money("200"),loanActivityEntity.getPenalty()); assertEquals(loanBO.getLoanSummary().getOriginalPenalty().subtract(loanBO.getLoanSummary().getPenaltyPaid()), loanActivityEntity.getPenaltyOutstanding());
Set<LoanActivityEntity> loanActivityDetailsSet = loanBO .getLoanActivityDetails(); List<Object> objectList = Arrays.asList(loanActivityDetailsSet .toArray()); LoanActivityEntity loanActivityEntity = (LoanActivityEntity) objectList .get(0); assertEquals(new Timestamp(DateUtils.getCurrentDateWithoutTimeStamp() .getTime()), loanActivityEntity.getTrxnCreatedDate()); assertEquals(new Money("200"), loanActivityEntity.getPenalty()); assertEquals(loanBO.getLoanSummary().getOriginalPenalty().subtract( loanBO.getLoanSummary().getPenaltyPaid()), loanActivityEntity .getPenaltyOutstanding());
public void testWaivePenaltyOverDue() throws Exception { accountBO = getLoanAccount(); for (AccountActionDateEntity installment : ((LoanBO)accountBO) .getAccountActionDates()) { LoanScheduleEntity loanScheduleEntity = (LoanScheduleEntity) installment; if (installment.getInstallmentId().intValue() == 1) { loanScheduleEntity.setMiscPenalty(new Money("100")); } else if (installment.getInstallmentId().intValue() == 2) { loanScheduleEntity.setMiscPenalty(new Money("100")); } } ((LoanBO)accountBO).getLoanSummary().setOriginalPenalty(new Money("200")); TestObjectFactory.updateObject(accountBO); HibernateUtil.closeSession(); LoanBO loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, accountBO.getAccountId()); Calendar calendar = new GregorianCalendar(); calendar.setTime(DateUtils.getCurrentDateWithoutTimeStamp()); calendar.add(calendar.WEEK_OF_MONTH, -1); java.sql.Date lastWeekDate = new java.sql.Date(calendar .getTimeInMillis()); Calendar date = new GregorianCalendar(); date.setTime(DateUtils.getCurrentDateWithoutTimeStamp()); date.add(date.WEEK_OF_MONTH, -2); java.sql.Date twoWeeksBeforeDate = new java.sql.Date(date .getTimeInMillis()); for (AccountActionDateEntity installment : loanBO .getAccountActionDates()) { if (installment.getInstallmentId().intValue() == 1) { installment.setActionDate(lastWeekDate); } else if (installment.getInstallmentId().intValue() == 2) { installment.setActionDate(twoWeeksBeforeDate); } } TestObjectFactory.updateObject(loanBO); HibernateUtil.closeSession(); loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, loanBO .getAccountId()); UserContext userContext = TestObjectFactory.getUserContext(); loanBO.setUserContext(userContext); loanBO.waiveAmountOverDue(WaiveEnum.PENALTY); TestObjectFactory.flushandCloseSession(); loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, loanBO .getAccountId()); for (AccountActionDateEntity accountAction : loanBO .getAccountActionDates()) { LoanScheduleEntity accountActionDateEntity = (LoanScheduleEntity) accountAction; assertEquals(new Money(), accountActionDateEntity.getMiscPenalty()); } Set<LoanActivityEntity> loanActivityDetailsSet = loanBO.getLoanActivityDetails(); List<Object> objectList = Arrays.asList(loanActivityDetailsSet.toArray()); LoanActivityEntity loanActivityEntity = (LoanActivityEntity) objectList.get(0); assertEquals( new Timestamp(DateUtils.getCurrentDateWithoutTimeStamp().getTime()), loanActivityEntity.getTrxnCreatedDate()); assertEquals(new Money("200"),loanActivityEntity.getPenalty()); assertEquals(loanBO.getLoanSummary().getOriginalPenalty().subtract(loanBO.getLoanSummary().getPenaltyPaid()), loanActivityEntity.getPenaltyOutstanding()); }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8b7a0cdb79f363f8ac3f82d8f06e16d5166a08ed/TestLoanBO.java/clean/mifos/test/org/mifos/application/accounts/loan/business/TestLoanBO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 59, 69, 688, 24251, 15006, 4851, 30023, 1435, 1216, 1185, 288, 202, 202, 4631, 5315, 273, 336, 1504, 304, 3032, 5621, 9506, 202, 1884, 261, 3032, 1803, 1626, 1943, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 59, 69, 688, 24251, 15006, 4851, 30023, 1435, 1216, 1185, 288, 202, 202, 4631, 5315, 273, 336, 1504, 304, 3032, 5621, 9506, 202, 1884, 261, 3032, 1803, 1626, 1943, 37...
assocReq = new AssociationRequest(type);
assocReq = AssociationRequest.createAssociationRequest(type);
private AssociationRequest createAssociationRequest( AssociationSessionType type, URL idpUrl) { try { if (_minAssocSessEnc.isBetter(type)) return null; AssociationRequest assocReq = null; DiffieHellmanSession dhSess; if (type.getHAlgorithm() != null) // DH session { dhSess = DiffieHellmanSession.create(type, _dhParams); if (DiffieHellmanSession.isDhSupported(type) && Association.isHmacSupported(type.getAssociationType())) assocReq = new AssociationRequest(type, dhSess); } else // no-enc session { if ((_allowNoEncHttpSess || idpUrl.getProtocol().equals("https")) && Association.isHmacSupported(type.getAssociationType())) assocReq = new AssociationRequest(type); } return assocReq; } catch (OpenIDException e) { return null; } }
51216 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51216/039a03d7f0655e85bd0927b5df9bf1d8ca038941/ConsumerManager.java/clean/src/net/openid/consumer/ConsumerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 18400, 691, 752, 7174, 691, 12, 5411, 18400, 2157, 559, 618, 16, 1976, 19493, 1489, 13, 565, 288, 3639, 775, 3639, 288, 5411, 309, 261, 67, 1154, 16974, 55, 403, 4280, 18, 291, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18400, 691, 752, 7174, 691, 12, 5411, 18400, 2157, 559, 618, 16, 1976, 19493, 1489, 13, 565, 288, 3639, 775, 3639, 288, 5411, 309, 261, 67, 1154, 16974, 55, 403, 4280, 18, 291, 38...
return arg.REALP();
if (arg instanceof AbstractVector) return ((AbstractVector)arg).reverse(); if (arg instanceof Cons) { LispObject result = NIL; while (arg != NIL) { result = new Cons(arg.car(), result); arg = arg.cdr(); } return result; } if (arg == NIL) return NIL; throw new ConditionThrowable(new TypeError(arg, "proper sequence"));
public LispObject execute(LispObject arg) { return arg.REALP(); }
8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/7a80a234ed70e008775e13a37b7ac5f337cc7fb2/Primitives.java/buggy/j/src/org/armedbear/lisp/Primitives.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1501, 13, 3639, 288, 5411, 309, 261, 3175, 1276, 4115, 5018, 13, 327, 14015, 7469, 5018, 13, 3175, 2934, 9845, 5621, 309, 261, 3175, 1276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1501, 13, 3639, 288, 5411, 309, 261, 3175, 1276, 4115, 5018, 13, 327, 14015, 7469, 5018, 13, 3175, 2934, 9845, 5621, 309, 261, 3175, 1276,...
public void doRender(GridSphereEvent event) throws PortletLayoutException, IOException { super.doRender(event); PortletRequest req = event.getPortletRequest(); PortletResponse res = event.getPortletResponse(); User user = req.getUser(); if (!(user instanceof GuestUser)) { //boolean hasrole = hasRequiredRole(req, false); boolean hasrole = false; hasrole = aclService.hasRequiredRole(req, portletClass, false); //boolean hasrole = aclService.hasRequiredRole(user, portletClass, false); //System.err.println("hasRole = " + hasrole + " portletclass= " + portletClass); if (!hasrole) { System.err.println("User " + user + " has no permissions to access portlet: " + portletClass + "!"); return; } } String id = event.getPortletRequest().getPortletSession(true).getId(); frame = (StringBuffer) cacheService.getCached(this.getComponentID() + portletClass + id); String nocache = (String) req.getAttribute(CacheService.NO_CACHE); if ((frame != null) && (nocache == null)) { return; } frame = new StringBuffer(); req.setAttribute(SportletProperties.PORTLETID, portletClass); // TODO try to cache portlet's rendering--- StringWriter storedWriter = new StringWriter(); PrintWriter writer = new PrintWriter(storedWriter); ///// begin portlet frame writer.println("<!-- PORTLET STARTS HERE -->"); //out.println("<div class=\"window-main\">"); writer.print("<table "); if (getOuterPadding().equals("")) { writer.print(" cellspacing=\"0\" class=\"window-main\""); } else { //out.print("border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\""); // this is the main table around one portlet //out.print(" cellspacing=\""+getOuterPadding()+"\" style=\"padding:"+getOuterPadding()+"px\" class=\"window-main\" "); // this is the main table around one portlet writer.print(" cellspacing=\"0\" style=\"margin:" + getOuterPadding() + "px\" class=\"window-main\" "); // this is the main table around one portlet //out.print("cellpadding=\""+getOuterPadding()+"\" class=\"window-main\" "); // this is the main table around one portlet } writer.println(">"); String preframe = storedWriter.toString(); StringBuffer postframe = new StringBuffer(); // Render title bar if (!transparent) { titleBar.doRender(event); /* if (titleBar.hasRenderError()) { errorFrame.setMessage(titleBar.getErrorMessage()); } */ } else { req.setMode(titleBar.getPortletMode()); req.setAttribute(SportletProperties.PREVIOUS_MODE, titleBar.getPreviousMode()); req.setAttribute(SportletProperties.PORTLET_WINDOW, titleBar.getWindowState()); } if (req.getAttribute(SportletProperties.RESPONSE_COMMITTED) != null) renderPortlet = false; if (renderPortlet) { if (!transparent) { postframe.append(titleBar.getBufferedOutput()); postframe.append("<tr><td "); // now the portlet content begins if (!getInnerPadding().equals("")) { writer.print("style=\"padding:" + getInnerPadding() + "px\""); } postframe.append(" class=\"window-content\"> "); } else { postframe.append("<tr><td >"); } // TODO try to cache portlet's rendering--- storedWriter = new StringWriter(); writer = new PrintWriter(storedWriter); PortletResponse wrappedResponse = new StoredPortletResponseImpl(res, writer); if (isClosing) { PortletURI portletURI = res.createURI(); portletURI.addParameter(SportletProperties.COMPONENT_ID, String.valueOf(titleBar.getComponentID())); portletURI.addParameter(SportletProperties.PORTLET_WINDOW, PortletWindow.State.CLOSED.toString()); postframe.append("<form action=\"" + portletURI.toString() + "\" method=\"POST\""); Locale locale = req.getLocale(); ResourceBundle bundle = ResourceBundle.getBundle("gridsphere.resources.Portlet", locale); String value = bundle.getString("UNSUBSCRIBE_MESSAGE"); String ok = bundle.getString("OK"); String cancel = bundle.getString("CANCEL"); postframe.append("<p><b>" + value + "</b></p>"); portletURI = res.createURI(); portletURI.addParameter(PortletWindow.State.CLOSED.toString(), Boolean.TRUE.toString()); postframe.append("<p><input class=\"portlet-form-button\" type=\"submit\" name=\"" + SportletProperties.DEFAULT_PORTLET_ACTION + "=" + FRAME_CLOSE_OK_ACTION + "\" value=\"" + ok + "\""); portletURI = res.createURI(); portletURI.addParameter(PortletWindow.State.CLOSED.toString(), Boolean.FALSE.toString()); postframe.append("<input class=\"portlet-form-button\" type=\"submit\" name=\"" + SportletProperties.DEFAULT_PORTLET_ACTION + "=" + FRAME_CLOSE_CANCEL_ACTION + "\" value=\"" + cancel + "\""); postframe.append("</p></form>"); } else { //System.err.println("in portlet frame render: class= " + portletClass + " setting prev mode= " + req.getPreviousMode() + " cur mode= " + req.getMode()); if (hasError(req)) { doRenderCustomError(postframe, req, wrappedResponse); if (storedWriter.toString().equals("")) { doRenderError(postframe, req, wrappedResponse); } postframe.append(storedWriter.toString()); } else { try { if (!renderParams.isEmpty()) { //System.err.println("PortletFrame: in " + portletClass + " sending render params"); //System.err.println("in render " + portletClass + " there are render params in the frame setting in request! key= " + SportletProperties.RENDER_PARAM_PREFIX + portletClass + "_" + componentIDStr); req.setAttribute(SportletProperties.RENDER_PARAM_PREFIX + portletClass + "_" + componentIDStr, renderParams); } PortletInvoker.service((String)req.getAttribute(SportletProperties.PORTLETID), req, wrappedResponse); postframe.append(storedWriter.toString()); } catch (PortletException e) { doRenderCustomError(postframe, req, wrappedResponse); if (storedWriter.toString().equals("")) { doRenderError(postframe, req, wrappedResponse); } postframe.append(storedWriter.toString()); } } } postframe.append("</td></tr>"); } else { postframe.append("<tr><td class=\"window-content-minimize\">"); // now the portlet content begins postframe.append("</td></tr>"); } postframe.append("</table>"); postframe.append("<!--- PORTLET ENDS HERE -->"); // piece together portlet frame + title depending on whether title was set during doXXX method // or not if (!transparent) { String titleStr = (String) req.getAttribute(SportletProperties.PORTLET_TITLE); if (titleStr == null) { titleStr = titleBar.getTitle(); req.removeAttribute(SportletProperties.PORTLET_TITLE); } frame.append(preframe); frame.append(titleBar.getPreBufferedTitle()); frame.append(titleStr); frame.append(titleBar.getPostBufferedTitle()); } frame.append(postframe); //out = res.getWriter(); //out.println(frame.toString()); if (cacheExpiration > 0) { cacheService.cache(this.getComponentID() + portletClass + id, frame, cacheExpiration); } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/a5e895b104f5b326e19123b00b2484a2a6ebcadb/PortletFrame.java/buggy/src/org/gridlab/gridsphere/layout/PortletFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2896, 3420, 12, 6313, 22747, 1133, 2575, 13, 15069, 18566, 3744, 503, 16, 14106, 95, 9565, 18, 2896, 3420, 12, 2575, 1769, 18566, 691, 3658, 33, 2575, 18, 588, 18566, 691, 5621, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2896, 3420, 12, 6313, 22747, 1133, 2575, 13, 15069, 18566, 3744, 503, 16, 14106, 95, 9565, 18, 2896, 3420, 12, 2575, 1769, 18566, 691, 3658, 33, 2575, 18, 588, 18566, 691, 5621, 18...
throw new PSQLException("postgresql.stream.ioerror", e);
throw new PSQLException("postgresql.stream.ioerror", PSQLState.COMMUNICATION_ERROR, e);
public int ReceiveChar() throws SQLException { int c = 0; try { c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror", e); } return c; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/0378a269f3ab3c44e67b14f96414b6ca95263263/PGStream.java/buggy/src/interfaces/jdbc/org/postgresql/core/PGStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 17046, 2156, 1435, 1216, 6483, 202, 95, 202, 202, 474, 276, 273, 374, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 71, 273, 7184, 67, 2630, 18, 896, 5621, 1082, 202, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 17046, 2156, 1435, 1216, 6483, 202, 95, 202, 202, 474, 276, 273, 374, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 71, 273, 7184, 67, 2630, 18, 896, 5621, 1082, 202, 430...
readResourceBundle(location);
public FontRegistry(String location) throws MissingResourceException { Display display = Display.getCurrent(); Assert.isNotNull(display); readResourceBundle(location); hookDisplayDispose(display);}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6bffdc796366d005b1598256ca1d6a15d5d7b294/FontRegistry.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/resource/FontRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 10063, 4243, 12, 780, 2117, 13, 1216, 10230, 14785, 288, 202, 4236, 2562, 273, 9311, 18, 588, 3935, 5621, 202, 8213, 18, 291, 5962, 12, 5417, 1769, 202, 896, 18731, 12, 3562, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 10063, 4243, 12, 780, 2117, 13, 1216, 10230, 14785, 288, 202, 4236, 2562, 273, 9311, 18, 588, 3935, 5621, 202, 8213, 18, 291, 5962, 12, 5417, 1769, 202, 896, 18731, 12, 3562, 1769, 202, ...
" \"COL_SMALLINT\" NUMBER(5,0),\n"+
" \"COL_SMALLINT\" NUMBER(5),\n"+
public void testColumnTypes() throws Exception { assertEqualsIgnoringWhitespaces( "DROP TABLE \"coltype\" CASCADE CONSTRAINTS;\n"+ "CREATE TABLE \"coltype\"\n"+ "(\n"+ " \"COL_ARRAY\" BLOB,\n"+ " \"COL_BIGINT\" NUMBER(38,0),\n"+ " \"COL_BINARY\" RAW(254),\n"+ " \"COL_BIT\" NUMBER(1,0),\n"+ " \"COL_BLOB\" BLOB,\n"+ " \"COL_BOOLEAN\" NUMBER(1,0),\n"+ " \"COL_CHAR\" CHAR(15),\n"+ " \"COL_CLOB\" CLOB,\n"+ " \"COL_DATALINK\" BLOB,\n"+ " \"COL_DATE\" DATE,\n"+ " \"COL_DECIMAL\" NUMBER(15,3),\n"+ " \"COL_DECIMAL_NOSCALE\" NUMBER(15,0),\n"+ " \"COL_DISTINCT\" BLOB,\n"+ " \"COL_DOUBLE\" NUMBER(38),\n"+ " \"COL_FLOAT\" NUMBER(38),\n"+ " \"COL_INTEGER\" NUMBER(20,0),\n"+ " \"COL_JAVA_OBJECT\" BLOB,\n"+ " \"COL_LONGVARBINARY\" BLOB,\n"+ " \"COL_LONGVARCHAR\" CLOB,\n"+ " \"COL_NULL\" BLOB,\n"+ " \"COL_NUMERIC\" NUMBER(15,0),\n"+ " \"COL_OTHER\" BLOB,\n"+ " \"COL_REAL\" NUMBER(18),\n"+ " \"COL_REF\" BLOB,\n"+ " \"COL_SMALLINT\" NUMBER(5,0),\n"+ " \"COL_STRUCT\" BLOB,\n"+ " \"COL_TIME\" DATE,\n"+ " \"COL_TIMESTAMP\" TIMESTAMP,\n"+ " \"COL_TINYINT\" NUMBER(3,0),\n"+ " \"COL_VARBINARY\" RAW(15),\n"+ " \"COL_VARCHAR\" VARCHAR2(15)\n"+ ");\n", createTestDatabase(COLUMN_TEST_SCHEMA)); }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/ca254167df5b93edf72a7fc2f7c90db929e1f14a/TestOracle9Platform.java/clean/src/test/org/apache/ddlutils/platform/TestOracle9Platform.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1494, 2016, 1435, 1216, 1185, 565, 288, 3639, 1815, 8867, 21702, 2888, 21693, 12, 5411, 315, 18768, 7567, 1239, 1293, 723, 2412, 6425, 25517, 29316, 55, 9747, 82, 6, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1494, 2016, 1435, 1216, 1185, 565, 288, 3639, 1815, 8867, 21702, 2888, 21693, 12, 5411, 315, 18768, 7567, 1239, 1293, 723, 2412, 6425, 25517, 29316, 55, 9747, 82, 6, 15, ...
public void run(final PrintStream out, PrintStream err) throws SVNException { boolean recursive = !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE); String[] localPaths = new String[getCommandLine().getPathCount()]; for(int i = 0; i < getCommandLine().getPathCount(); i++) { localPaths[i] = getCommandLine().getPathAt(i).replace(File.separatorChar, '/'); } final String homePath = localPaths.length == 1 ? localPaths[0] : PathUtil.getFSCommonRoot(localPaths); List pathsList = new ArrayList(); String[] paths; try { for(int i = 0; i < getCommandLine().getPathCount(); i++) { String path = getCommandLine().getPathAt(i); pathsList.add(new File(path).getCanonicalPath().replace(File.separatorChar, '/')); } } catch (IOException e) { err.println("error: " + e.getMessage()); return; } DebugLog.log("commit paths: " + pathsList); paths = (String[]) pathsList.toArray(new String[pathsList.size()]); // only if path is not a single directory! String rootPath; if (getCommandLine().getPathCount() == 1 && new File(getCommandLine().getPathAt(0)).isDirectory()) { rootPath = (String) pathsList.get(0); } else { rootPath = PathUtil.getFSCommonRoot(paths); } DebugLog.log("commit root: " + rootPath); final ISVNWorkspace workspace = createWorkspace(rootPath); for(int i = 0; i < paths.length; i++) { paths[i] = SVNUtil.getWorkspacePath(workspace, paths[i]); } String message = getCommitMessage(); workspace.addWorkspaceListener(new SVNWorkspaceAdapter() { public void committed(String committedPath, int kind) { DebugLog.log("commit path: " + committedPath); DebugLog.log("home path: " + homePath); String verb = "Sending "; if (kind == SVNStatus.ADDED) { verb = "Adding "; try { String mimeType = workspace.getPropertyValue(committedPath, SVNProperty.MIME_TYPE); if (mimeType != null && !mimeType.startsWith("text")) { verb += " (bin) "; } DebugLog.log("mimetype: " + mimeType); } catch (SVNException e1) { DebugLog.error(e1); } } else if (kind == SVNStatus.DELETED) { verb = "Deleting "; } else if (kind == SVNStatus.REPLACED) { verb = "Replacing "; } try { committedPath = convertPath(homePath, workspace, committedPath); } catch (IOException e) {} DebugLog.log(verb + committedPath); out.println(verb + committedPath); } }); long revision = workspace.commit(paths, message, recursive); if (revision >= 0) { out.println("Committed revision " + revision + "."); } }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/5bd733d6790abf97460f412330a9a7cb4d0402b5/CommitCommand.java/buggy/javasvn/src/org/tmatesoft/svn/cli/command/CommitCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 6385, 21677, 596, 16, 21677, 393, 13, 1216, 29537, 50, 503, 288, 3639, 1250, 5904, 273, 401, 588, 21391, 7675, 5332, 1379, 12, 23927, 50, 1379, 18, 3993, 67, 862, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 6385, 21677, 596, 16, 21677, 393, 13, 1216, 29537, 50, 503, 288, 3639, 1250, 5904, 273, 401, 588, 21391, 7675, 5332, 1379, 12, 23927, 50, 1379, 18, 3993, 67, 862, 7...
}
public static String addCredentials(String url, String userName, String password) throws UnsupportedEncodingException {// if (repository.hasCredentials()) { url += "&" + POST_ARGS_LOGIN + URLEncoder.encode(userName, BugzillaPlugin.ENCODING_UTF_8) + POST_ARGS_PASSWORD + URLEncoder.encode(password, BugzillaPlugin.ENCODING_UTF_8);// } return url; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2db168ec156a800884e9005780cc3ff32732011b/BugzillaRepositoryUtil.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 97, 760, 97, 514, 97, 527, 6163, 12, 780, 97, 880, 29531, 514, 97, 12065, 29531, 514, 97, 2201, 16869, 1216, 97, 15367, 97, 288, 759, 202, 202, 430, 97, 261, 9071, 18, 5332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 97, 760, 97, 514, 97, 527, 6163, 12, 780, 97, 880, 29531, 514, 97, 12065, 29531, 514, 97, 2201, 16869, 1216, 97, 15367, 97, 288, 759, 202, 202, 430, 97, 261, 9071, 18, 5332,...
for (Iterator iter = (Iterator) filterCollections.keySet().iterator(); iter.hasNext();) { FilterCollection collection = (FilterCollection) filterCollections.get((Integer) iter.next());
for (Iterator iter = (Iterator) filterCollections.iterator(); iter.hasNext();) { FilterCollection collection = (FilterCollection) iter.next();
public boolean containsFilterDescription(String internalName) { boolean contains = false; if (lastFilt == null) { if ( ( internalName.indexOf(".") > 0 ) && !( internalName.endsWith(".") ) ) { String[] refs = internalName.split("\\."); if (refs.length > 1 && containsFilterDescription( refs[1] ) ) contains = true; } if (!contains) { for (Iterator iter = (Iterator) filterCollections.keySet().iterator(); iter.hasNext();) { FilterCollection collection = (FilterCollection) filterCollections.get((Integer) iter.next()); if (collection.containsFilterDescription(internalName)) { lastFilt = collection.getFilterDescriptionByInternalName(internalName); contains = true; break; } } } } else { if ( lastFilt.getInternalName().equals(internalName) ) contains = true; else if (lastFilt.containsOption(internalName)) contains = true; else if ( (internalName.indexOf(".") > 0) && !(internalName.endsWith(".")) && lastFilt.getInternalName().equals( internalName.split("\\.")[1] ) ) contains = true; else { lastFilt = null; contains = containsFilterDescription(internalName); } } return contains; }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/16a9b4a2f910dae8967a02428e2bfad83cc46e96/FilterGroup.java/buggy/src/java/org/ensembl/mart/lib/config/FilterGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1914, 1586, 3291, 12, 780, 2713, 461, 13, 288, 202, 202, 6494, 1914, 273, 629, 31, 202, 202, 430, 261, 2722, 42, 4526, 422, 446, 13, 288, 1082, 202, 430, 261, 261, 271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1914, 1586, 3291, 12, 780, 2713, 461, 13, 288, 202, 202, 6494, 1914, 273, 629, 31, 202, 202, 430, 261, 2722, 42, 4526, 422, 446, 13, 288, 1082, 202, 430, 261, 261, 271...
public void read(DataInputStream dis) throws IOException { super.read(dis); records = dis.readShort(); dataLen = dis.readInt(); nextTID = dis.readShort(); nextInChain = dis.readLong(); lastInChain = dis.readLong();
public int read(byte[] data, int offset) throws IOException { offset = super.read(data, offset); records = ByteConversion.byteToShort(data, offset); offset += 2; dataLen = ByteConversion.byteToInt(data, offset); offset += 4; nextTID = ByteConversion.byteToShort(data, offset); offset += 2; nextInChain = ByteConversion.byteToLong(data, offset); offset += 8; lastInChain = ByteConversion.byteToLong(data, offset); return offset + 8;
public void read(DataInputStream dis) throws IOException { super.read(dis); records = dis.readShort(); dataLen = dis.readInt(); nextTID = dis.readShort(); nextInChain = dis.readLong(); lastInChain = dis.readLong(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/df74b3b616d469b75d0dcbefff10257f707167fe/BFile.java/clean/src/org/exist/storage/BFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 855, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 1082, 202, 9565, 18, 896, 12, 2251, 1769, 1082, 202, 7094, 273, 1015, 18, 896, 4897, 5621, 1082, 202, 892, 2891, 273, 1015...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 918, 855, 12, 751, 4348, 1015, 13, 1216, 1860, 288, 1082, 202, 9565, 18, 896, 12, 2251, 1769, 1082, 202, 7094, 273, 1015, 18, 896, 4897, 5621, 1082, 202, 892, 2891, 273, 1015...
catch(IOException ex) { log.warn("Failed to load database config", ex); throw new UndeclaredThrowableException(ex); } catch(MarshalException ex) { log.warn("Failed to unmarshall database config", ex); throw new UndeclaredThrowableException(ex); } catch(ValidationException ex) { log.warn("Failed to unmarshall database config", ex); throw new UndeclaredThrowableException(ex); }
public synchronized void rtcNodeIpRescan(long nodeid, String ip) throws SQLException, FilterParseException, RTCException { Category log = ThreadCategory.getInstance(DataManager.class); // Get a new database connection java.sql.Connection dbConn = null; try { try { DatabaseConnectionFactory.reload(); dbConn = DatabaseConnectionFactory.getInstance().getConnection(); } catch(IOException ex) { log.warn("Failed to load database config", ex); throw new UndeclaredThrowableException(ex); } catch(MarshalException ex) { log.warn("Failed to unmarshall database config", ex); throw new UndeclaredThrowableException(ex); } catch(ValidationException ex) { log.warn("Failed to unmarshall database config", ex); throw new UndeclaredThrowableException(ex); } catch(SQLException ex) { log.warn("Failed to get database connection", ex); throw new UndeclaredThrowableException(ex); } catch(ClassNotFoundException ex) { log.warn("Failed to get database connection", ex); throw new UndeclaredThrowableException(ex); } // Create the filter Filter filter = new Filter(); // create a hashtable of IP->RTCNodes list for startup to save on database access HashMap knownIPs = new HashMap(); // Prepare the statement to get service entries for each IP PreparedStatement servicesGetStmt = dbConn.prepareStatement(RTCConstants.DB_GET_SVC_ENTRIES); // Prepared statement to get node info for an ip PreparedStatement ipInfoGetStmt = dbConn.prepareStatement(RTCConstants.DB_GET_INFO_FOR_IP); // Prepared statement to get outages entries PreparedStatement outagesGetStmt = dbConn.prepareStatement(RTCConstants.DB_GET_OUTAGE_ENTRIES); // loop through the categories Iterator catIter = m_categories.values().iterator(); while(catIter.hasNext()) { RTCCategory cat = (RTCCategory)catIter.next(); // get the rule for this category, get the list of nodes that satisfy this rule String filterRule = cat.getEffectiveRule(); if(log.isDebugEnabled()) log.debug("Category: " + cat.getLabel() + "\t" + filterRule); String catip = null; String catnodeip = null; ResultSet ipRS=null; try { List nodeIPs = filter.getIPList(filterRule); // See if the node is currently in the category boolean ipInCat = false; boolean ipInFilter = false; List catnodelist = cat.getNodes(); Long longnodeid = Long.valueOf(String.valueOf(nodeid)); ipInCat = catnodelist.contains(longnodeid); if (log.isDebugEnabled()) log.debug("IP in cat: " + ipInCat); // Interesting problem. Since it is not possible to determine if a node has been // added to a category with a particular service, on a rescan it is best // to delete the node from the category and re-add it. if (ipInCat) { ipInCat = false; cat.deleteNode(nodeid); } Iterator nodeIter = nodeIPs.iterator(); while(nodeIter.hasNext()) { catip = (String)nodeIter.next(); // Only care if the catip is equal to ip if(catip.equals(ip)) ipInFilter = true; } if (log.isDebugEnabled()) log.debug("IP in filter: " + ipInFilter); if (log.isDebugEnabled()) log.debug("Number of IPs satisfying rule: " + nodeIPs.size()); if(log.isDebugEnabled()) log.debug("IP: " + ip); // get node info for this ip ipInfoGetStmt.setString(1, ip); ipRS = ipInfoGetStmt.executeQuery(); while(ipRS.next()) { int nodeColIndex = 1; long catnodeid = ipRS.getLong(nodeColIndex++); if(log.isDebugEnabled()) log.debug("IP->node info lookup result: " + catnodeid); if(nodeid != catnodeid) continue; // // get the services for this IP address // ResultSet svcRS=null; servicesGetStmt.setLong(1, nodeid); servicesGetStmt.setString(2, ip); svcRS = servicesGetStmt.executeQuery(); // create node objects for this nodeID/IP/service while(svcRS.next()) { int colIndex = 1; // read data from the resultset String svcname = svcRS.getString(colIndex++); if(log.isDebugEnabled()) log.debug("services result: " + nodeid + "\t" + ip + "\t" + svcname); // unless the service found is in the category's services list, // do not add that service if (ipInFilter && !ipInCat) { if (!cat.containsService(svcname)) { if(log.isDebugEnabled()) log.debug("service " + svcname + " not in category service list of cat " + cat.getLabel() + " - skipping " + nodeid + "\t" + ip + "\t" + svcname); continue; } // see if the node is in this category if(log.isDebugEnabled()) log.debug("Adding service to category"); addNodeIpSvcToCategory(nodeid, ip, svcname, cat, knownIPs, outagesGetStmt); } else if (!ipInFilter && ipInCat) { if (!cat.containsService(svcname)) { if(log.isDebugEnabled()) log.debug("service " + svcname + " not in category service list of cat " + cat.getLabel() + " - skipping " + nodeid + "\t" + ip + "\t" + svcname); continue; } // delete the node from this category if(log.isDebugEnabled()) log.debug("Deleting service to category"); delNodeIpSvcToCategory(nodeid, ip, svcname, cat); } } } } catch(SQLException e) { if(log.isDebugEnabled()) log.debug("Unable to get node list for category \'" + cat.getLabel(), e); throw e; } catch(FilterParseException e) { // if we get here, the error was most likely in // getting the nodelist from the filters if(log.isDebugEnabled()) log.debug("Unable to get node list for category \'" + cat.getLabel(), e); // throw exception throw e; } catch(Exception e) { if(log.isDebugEnabled()) log.debug("Unable to get node list for category \'" + cat.getLabel(), e); // throw rtc exception throw new RTCException("Unable to get node list for category \'" + cat.getLabel() + "\':\n\t" + e.getMessage()); } finally { try { if(ipRS != null) ipRS.close(); } catch(Exception e) { if(log.isDebugEnabled()) log.debug("Exception while closing the ip get node info result set - ip: " + ip, e); } } } // // close the prepared statements // try { if (servicesGetStmt != null) servicesGetStmt.close(); if (ipInfoGetStmt != null) ipInfoGetStmt.close(); if (outagesGetStmt != null) outagesGetStmt.close(); } catch (SQLException csqle) { if (log.isDebugEnabled()) log.debug("Exception while closing the prepared statements after populating nodes from DB"); // do nothing } } finally { if (dbConn != null) try { dbConn.close(); } catch (Exception e) {}; } }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/08954903f6d1e5d3d72b34dfafa41ceca3b49728/DataManager.java/clean/src/services/org/opennms/netmgt/rtc/DataManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 436, 5111, 907, 5273, 607, 4169, 12, 5748, 756, 350, 16, 514, 2359, 13, 1082, 202, 15069, 6483, 16, 4008, 13047, 16, 13060, 39, 503, 202, 95, 202, 565, 9856, 613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 436, 5111, 907, 5273, 607, 4169, 12, 5748, 756, 350, 16, 514, 2359, 13, 1082, 202, 15069, 6483, 16, 4008, 13047, 16, 13060, 39, 503, 202, 95, 202, 565, 9856, 613, ...
assertNull(descriptor.getInboundEndpoint()); assertNull(descriptor.getInboundTransformer());
public void testDescriptorDefaults() throws Exception { MuleDescriptor descriptor = new MuleDescriptor(); descriptor.initialise(); MuleConfiguration config = new MuleConfiguration(); assertNotNull(descriptor.getInterceptors()); assertEquals(0, descriptor.getInterceptors().size()); //TODO RM*// assertEquals(config.getQueueProfile().getMaxOutstandingMessages(), descriptor.getQueueProfile()// .getMaxOutstandingMessages());// assertEquals(config.getPoolingProfile().getMaxIdle(), descriptor.getPoolingProfile().getMaxIdle());// assertEquals(config.getPoolingProfile().getMaxWait(), descriptor.getPoolingProfile().getMaxWait());// assertEquals(config.getPoolingProfile().getMaxActive(), descriptor.getPoolingProfile().getMaxActive());// assertEquals("1.0", descriptor.getVersion()); // assertEquals(2, descriptor.getInitialisationPolicy()); assertNull(descriptor.getImplementation()); assertNull(descriptor.getInboundEndpoint()); assertNull(descriptor.getInboundTransformer()); assertNull(descriptor.getName()); assertNull(descriptor.getOutboundEndpoint()); assertNull(descriptor.getOutboundTransformer()); assertEquals(0, descriptor.getProperties().size()); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/e7a904f2d4b39c4e1d7e55677ec26d46fa90e676/MuleDescriptorTestCase.java/clean/tests/core/src/test/java/org/mule/test/mule/MuleDescriptorTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3187, 7019, 1435, 1216, 1185, 565, 288, 3639, 490, 725, 3187, 4950, 273, 394, 490, 725, 3187, 5621, 3639, 4950, 18, 6769, 784, 5621, 3639, 490, 725, 1750, 642, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3187, 7019, 1435, 1216, 1185, 565, 288, 3639, 490, 725, 3187, 4950, 273, 394, 490, 725, 3187, 5621, 3639, 4950, 18, 6769, 784, 5621, 3639, 490, 725, 1750, 642, 273, 394, ...
TasksUiPlugin.getRepositoryManager().setSyncTime(repository, mostRecentTimeStamp, TasksUiPlugin.getDefault().getRepositoriesFilePath());
TasksUiPlugin.getRepositoryManager().setSyncTime(repository, mostRecentTimeStamp, TasksUiPlugin.getDefault().getRepositoriesFilePath());
public void done(IJobChangeEvent event) { if (!Platform.isRunning() || TasksUiPlugin.getRepositoryManager() == null) { return; } Date mostRecent = new Date(0); String mostRecentTimeStamp = repository.getSyncTimeStamp(); for (AbstractRepositoryTask task : tasksToSync) { Date taskModifiedDate; if (connector.getOfflineTaskHandler() != null && task.getTaskData() != null && task.getTaskData().getLastModified() != null) { taskModifiedDate = connector.getOfflineTaskHandler().getDateForAttributeType( RepositoryTaskAttribute.DATE_MODIFIED, task.getTaskData().getLastModified()); } else { continue; } if (taskModifiedDate != null && taskModifiedDate.after(mostRecent)) { mostRecent = taskModifiedDate; mostRecentTimeStamp = task.getTaskData().getLastModified(); } } // TODO: Get actual time stamp of query from repository rather // than above hack TasksUiPlugin.getRepositoryManager().setSyncTime(repository, mostRecentTimeStamp, TasksUiPlugin.getDefault().getRepositoriesFilePath()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/39c6df5267235c0f0a02f27f34ae719f6015dfe1/RepositorySynchronizationManager.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/RepositorySynchronizationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 2731, 12, 45, 2278, 20930, 871, 13, 288, 9506, 202, 430, 16051, 8201, 18, 291, 7051, 1435, 747, 20350, 13943, 3773, 18, 588, 3305, 1318, 1435, 422, 446, 13, 288, 6862, 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, 1875, 202, 482, 918, 2731, 12, 45, 2278, 20930, 871, 13, 288, 9506, 202, 430, 16051, 8201, 18, 291, 7051, 1435, 747, 20350, 13943, 3773, 18, 588, 3305, 1318, 1435, 422, 446, 13, 288, 6862, 2...
addToken(attributeValue, lexer);
addToken(parent, lexer);
private void parseAttributeList(CompositeElement tag, Lexer lexer) { int lastPosition = -1; while (true) { if (lexer.getTokenType() == XML_ENTITY_REF_TOKEN) { TreeUtil.addChildren(tag, parseEntityRef(lexer)); continue; } if (lexer.getTokenType() != XML_NAME) { return; } if (lastPosition != -1) { if (lastPosition == lexer.getTokenStart()) { TreeUtil.addChildren(tag, Factory.createErrorElement("Whitespace expected")); lastPosition = -1; } } CompositeElement attribute = Factory.createCompositeElement(XML_ATTRIBUTE); TreeUtil.addChildren(tag, attribute); addToken(attribute, lexer); if (lexer.getTokenType() != XML_EQ) { TreeUtil.addChildren(attribute, Factory.createErrorElement("'=' expected")); continue; } addToken(attribute, lexer); CompositeElement attributeValue = Factory.createCompositeElement(XML_ATTRIBUTE_VALUE); TreeUtil.addChildren(attribute,attributeValue); if (lexer.getTokenType() != XML_ATTRIBUTE_VALUE_START_DELIMITER) { return; } addToken(attributeValue, lexer); if (lexer.getTokenType() == XML_ATTRIBUTE_VALUE_TOKEN) { addToken(attributeValue, lexer); if (lexer.getTokenType() == XML_ATTRIBUTE_VALUE_END_DELIMITER) { lastPosition = lexer.getTokenEnd(); addToken(attributeValue, lexer); } else { lastPosition = -1; } } else { lastPosition = -1; } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c201b7cce6f4ebf6cb9ed0f3d67e50b1a2467c43/XmlParsing.java/clean/source/com/intellij/psi/impl/source/parsing/xml/XmlParsing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 1499, 682, 12, 9400, 1046, 1047, 16, 14234, 8512, 13, 288, 565, 509, 1142, 2555, 273, 300, 21, 31, 565, 1323, 261, 3767, 13, 288, 1377, 309, 261, 31731, 18, 588, 28675,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 1499, 682, 12, 9400, 1046, 1047, 16, 14234, 8512, 13, 288, 565, 509, 1142, 2555, 273, 300, 21, 31, 565, 1323, 261, 3767, 13, 288, 1377, 309, 261, 31731, 18, 588, 28675,...
Double o0 = getDoubleArg(evaluator, args, 0); Double o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) {
String o0 = getStringArg(evaluator, args, 0, null); String o1 = getStringArg(evaluator, args, 1, null); if (o0 == null || o1 == null) {
public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0); Double o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.compareTo(o1) >= 0); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/c9e00c64943ce43962e024696d2be989490b4a44/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 3698, 320, 20, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 7734, 3698, 320, 21, 273, 16097, 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, 2398, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 7734, 3698, 320, 20, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 7734, 3698, 320, 21, 273, 16097, 4117, ...
undoMgr.contentRemoved(offset,length,seg.toString());
{ undoMgr.contentRemoved(offset,length, seg.toString(),!getFlag(DIRTY)); }
public void remove(int offset, int length) { if(length == 0) return; if(isReadOnly()) throw new RuntimeException("buffer read-only"); try { writeLock(); if(offset < 0 || length < 0 || offset + length > contentMgr.getLength()) throw new ArrayIndexOutOfBoundsException(offset + ":" + length); int startLine = offsetMgr.getLineOfOffset(offset); contentMgr.getText(offset,length,seg); int numLines = 0; for(int i = 0; i < seg.count; i++) { if(seg.array[seg.offset + i] == '\n') numLines++; } if(numLines > 0) { // notify fold visibility managers // BEFORE the line info array is shrunk // so they can update their virtual line // counts properly for(int i = 0; i < inUseFVMs.length; i++) { if(inUseFVMs[i] != null) { inUseFVMs[i]._linesRemoved( startLine,numLines); } } } if(!getFlag(UNDO_IN_PROGRESS)) undoMgr.contentRemoved(offset,length,seg.toString()); contentMgr.remove(offset,length); if(lastTokenizedLine >= startLine) lastTokenizedLine = -1; offsetMgr.contentRemoved(startLine,offset,numLines,length); fireContentRemoved(startLine,offset,numLines,length); setDirty(true); } finally { writeUnlock(); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/03b2be5a218772d29a0f4237af2250c9b00348fb/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 474, 1384, 16, 509, 769, 13, 202, 95, 202, 202, 430, 12, 2469, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 430, 12, 291, 12066, 10756, 1082, 202, 12849, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 474, 1384, 16, 509, 769, 13, 202, 95, 202, 202, 430, 12, 2469, 422, 374, 13, 1082, 202, 2463, 31, 202, 202, 430, 12, 291, 12066, 10756, 1082, 202, 12849, 394,...
public void write(DataOutputStream dos) throws IOException { super.write(dos); dos.writeShort(records); dos.writeInt(dataLen); dos.writeLong(nextDataPage); dos.writeLong(prevDataPage); dos.writeShort(tid);
public int write(byte[] data, int offset) throws IOException { offset = super.write(data, offset); ByteConversion.shortToByte(records, data, offset); offset += 2; ByteConversion.intToByte(dataLen, data, offset); offset += 4; ByteConversion.longToByte(nextDataPage, data, offset); offset += 8; ByteConversion.longToByte(prevDataPage, data, offset); offset += 8; ByteConversion.shortToByte(tid, data, offset); return offset + 2;
public void write(DataOutputStream dos) throws IOException { super.write(dos); dos.writeShort(records); dos.writeInt(dataLen); dos.writeLong(nextDataPage); dos.writeLong(prevDataPage); dos.writeShort(tid); // if(dataLen == 0) { // LOG.debug("dataLen == 0"); // Thread.dumpStack(); // } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/df74b3b616d469b75d0dcbefff10257f707167fe/DOMFile.java/clean/src/org/exist/storage/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1045, 12, 751, 4632, 16153, 13, 1216, 1860, 288, 1082, 202, 9565, 18, 2626, 12, 19219, 1769, 1082, 202, 19219, 18, 2626, 4897, 12, 7094, 1769, 1082, 202, 19219, 18, 2626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 918, 1045, 12, 751, 4632, 16153, 13, 1216, 1860, 288, 1082, 202, 9565, 18, 2626, 12, 19219, 1769, 1082, 202, 19219, 18, 2626, 4897, 12, 7094, 1769, 1082, 202, 19219, 18, 2626, ...
String text = node.getNodeValue();
String text = textContent.getText();
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as the previous one if (prev != null && prev.getNode() == node) {//prev != null && prev.getContent() == content start = prev.end_index; } // get the text of the node String text = node.getNodeValue();//content.getText() // transform the text if required (like converting to caps) // this must be done before any measuring since it might change the // size of the text //u.p("text from the node = \"" + text + "\""); CalculatedStyle style = c.css.getStyle(node);//content.getStyle() text = TextUtil.transformText(text, style); // u.p("calculating inline: text = " + text); // u.p("avail space = " + avail + " max = " + max_width + " start index = " + start); // get the current font. required for sizing Font font = FontUtil.getFont(c, style); // handle each case if (LayoutUtil.isReplaced(c, node)) {//content instanceof ReplacedContent //u.p("is replaced"); return LineBreaker.generateReplacedInlineBox(c, node, avail, prev, text, prev_align, font); } //u.p("calc inline on node : " + node); if (LayoutUtil.isFloatedBlock(node, c)) {//content instanceof ReplacedContent //u.p("calcinline: is floated block"); return FloatUtil.generateFloatedBlockInlineBox(c, node, avail, prev, text, prev_align, font); } if (LineBreaker.isFirstLetter(c, node, start)) {//TODO:should be handled earlier and differently //u.p("is first letter"); return LineBreaker.generateFirstLetterInlineBox(c, node, start, text, prev, prev_align, avail); } if (c.getRenderingContext().getLayoutFactory().isBreak(node)) {//not needed // u.p("is break"); return LineBreaker.generateBreakInlineBox(node); } // new whitespace code WhitespaceStripper whitespace = new WhitespaceStripper(); // u.p("calling whitespace stripper on node: " + node); // u.p(" prev = " + prev); return whitespace.createInline(c, node, text, prev, prev_align, avail, max_width, font); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16355, 3514, 4604, 10870, 12, 1042, 276, 16, 2029, 756, 16, 509, 15783, 16, 509, 943, 67, 2819, 16, 4766, 1377, 5377, 3514, 980, 16, 16355, 3514, 2807, 16, 3010, 4191, 67, 2629, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16355, 3514, 4604, 10870, 12, 1042, 276, 16, 2029, 756, 16, 509, 15783, 16, 509, 943, 67, 2819, 16, 4766, 1377, 5377, 3514, 980, 16, 16355, 3514, 2807, 16, 3010, 4191, 67, 2629, 1...
ruby.getCRef().push(module);
ruby.getCRef().push(module);
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; RubyFrame frame = ruby.getRubyFrame(); frame.setTmp(ruby.getRubyFrame()); ruby.setRubyFrame(frame); ruby.pushClass(); ruby.setRubyClass(module); ruby.getRubyScope().push(); RubyVarmap.push(ruby); if (getTable() != null) { /*List tmp = Collections.nCopies(idTable[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, this); vars.shift(1);*/ RubyPointer vars = new RubyPointer(ruby.getNil(), getTable().getId(0).intValue() + 1); vars.set(0, this); vars.inc(); ruby.getRubyScope().setLocalVars(vars); ruby.getRubyScope().setLocalTbl(getTable()); } else { ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); } // +++ // if (ruby.getCRef() != null) { ruby.getCRef().push(module); // } else { // ruby.setCRef(new CRefNode(module, null)); // } // --- ruby.getRubyFrame().setCbase(ruby.getCRef()); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = getNextNode() != null ? getNextNode().eval(ruby, ruby.getRubyClass()) : ruby.getNil(); // } // POP_TAG(); ruby.getCRef().pop(); RubyVarmap.pop(ruby); ruby.getRubyScope().pop(); ruby.popClass(); ruby.setRubyFrame(frame.getTmp()); // if (trace_func) { // call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class ); // } // if (state != 0) { // JUMP_TAG(state); // } return result; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f629550c5947df9c1dbe414645f3dc76bcb70df4/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 3875, 3120, 12, 54, 10340, 22155, 16, 19817, 3120, 1605, 13, 288, 3639, 368, 2029, 756, 273, 290, 31, 7734, 514, 585, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 3875, 3120, 12, 54, 10340, 22155, 16, 19817, 3120, 1605, 13, 288, 3639, 368, 2029, 756, 273, 290, 31, 7734, 514, 585, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 980, ...
nativeWebShell = windowControl.getNativeWebShell();
public EventRegistrationImpl(WrapperFactory yourFactory, BrowserControl yourBrowserControl){ super(yourFactory, yourBrowserControl); // save the native webshell ptr try { WindowControl windowControl = (WindowControl) myBrowserControl.queryInterface(BrowserControl.WINDOW_CONTROL_NAME); nativeWebShell = windowControl.getNativeWebShell(); // pull out the NativeEventThread from the WindowControl if (windowControl instanceof WindowControlImpl) { nativeEventThread = ((WindowControlImpl)windowControl).getNativeEventThread(); } } catch (Exception e) { System.out.println(e.getMessage()); }}
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/20a71940582b763fa6dc38021fde51ba85ba4b71/EventRegistrationImpl.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2587, 7843, 2828, 12, 3611, 1733, 3433, 1733, 16, 4697, 377, 15408, 3367, 3433, 9132, 3367, 15329, 565, 2240, 12, 93, 477, 1733, 16, 3433, 9132, 3367, 1769, 565, 368, 1923, 326, 6448, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2587, 7843, 2828, 12, 3611, 1733, 3433, 1733, 16, 4697, 377, 15408, 3367, 3433, 9132, 3367, 15329, 565, 2240, 12, 93, 477, 1733, 16, 3433, 9132, 3367, 1769, 565, 368, 1923, 326, 6448, 33...
new_coords = lineIntersect(x1, y1, x2, y2, 0, getHeight(), 0);
new_coords = lineIntersect(x1, y1, x2, y2, 0, this.getHeight(), 0);
private FastVector makePolygon(FastVector v) { FastVector building = new FastVector(v.size() + 10); double x1, y1, x2, y2; int edge1 = 0, edge2 = 0; for (int noa = 0; noa < v.size() - 2; noa++) { building.addElement(new Double(((Double)v.elementAt(noa)). doubleValue())); } //now clip the lines double[] new_coords; //note lineIntersect , expects the values to have been converted to //screen coords //note the first point passed is the one that gets shifted. x1 = convertToPanelX(((Double)v.elementAt(1)).doubleValue()); y1 = convertToPanelY(((Double)v.elementAt(2)).doubleValue()); x2 = convertToPanelX(((Double)v.elementAt(3)).doubleValue()); y2 = convertToPanelY(((Double)v.elementAt(4)).doubleValue()); if (x1 < 0) { //test left new_coords = lineIntersect(x1, y1, x2, y2, 0, getHeight(), 0); edge1 = 0; if (new_coords[0] < 0) { //then not left if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge1 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge1 = 3; } } } else if (x1 > getWidth()) { //test right new_coords = lineIntersect(x1, y1, x2, y2, 0, getHeight(), getWidth()); edge1 = 2; if (new_coords[0] < 0) { //then not right if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge1 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge1 = 3; } } } else if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge1 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge1 = 3; } building.setElementAt(new Double(convertToAttribX(new_coords[0])), 1); building.setElementAt(new Double(convertToAttribY(new_coords[1])), 2); x1 = convertToPanelX(((Double)v.elementAt(v.size() - 4)).doubleValue()); y1 = convertToPanelY(((Double)v.elementAt(v.size() - 3)).doubleValue()); x2 = convertToPanelX(((Double)v.elementAt(v.size() - 6)).doubleValue()); y2 = convertToPanelY(((Double)v.elementAt(v.size() - 5)).doubleValue()); if (x1 < 0) { //test left new_coords = lineIntersect(x1, y1, x2, y2, 0, getHeight(), 0); edge2 = 0; if (new_coords[0] < 0) { //then not left if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge2 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge2 = 3; } } } else if (x1 > getWidth()) { //test right new_coords = lineIntersect(x1, y1, x2, y2, 0, getHeight(), getWidth()); edge2 = 2; if (new_coords[0] < 0) { //then not right if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge2 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge2 = 3; } } } else if (y1 < 0) { //test top new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, 0); edge2 = 1; } else { //test bottom new_coords = lineIntersect(x1, y1, x2, y2, getWidth(), 0, getHeight()); edge2 = 3; } building.setElementAt(new Double(convertToAttribX(new_coords[0])), building.size() - 2); building.setElementAt(new Double(convertToAttribY(new_coords[1])), building.size() - 1); //trust me this complicated piece of code will //determine what points on the boundary of the view to add to the polygon int xp, yp; xp = getWidth() * ((edge2 & 1) ^ ((edge2 & 2) / 2)); yp = getHeight() * ((edge2 & 2) / 2); //System.out.println(((-1 + 4) % 4) + " hoi"); if (inPolyline(v, convertToAttribX(xp), convertToAttribY(yp))) { //then add points in a clockwise direction building.addElement(new Double(convertToAttribX(xp))); building.addElement(new Double(convertToAttribY(yp))); for (int noa = (edge2 + 1) % 4; noa != edge1; noa = (noa + 1) % 4) { xp = getWidth() * ((noa & 1) ^ ((noa & 2) / 2)); yp = getHeight() * ((noa & 2) / 2); building.addElement(new Double(convertToAttribX(xp))); building.addElement(new Double(convertToAttribY(yp))); } } else { xp = getWidth() * ((edge2 & 2) / 2); yp = getHeight() * (1 & ~((edge2 & 1) ^ ((edge2 & 2) / 2))); if (inPolyline(v, convertToAttribX(xp), convertToAttribY(yp))) { //then add points in anticlockwise direction building.addElement(new Double(convertToAttribX(xp))); building.addElement(new Double(convertToAttribY(yp))); for (int noa = (edge2 + 3) % 4; noa != edge1; noa = (noa + 3) % 4) { xp = getWidth() * ((noa & 2) / 2); yp = getHeight() * (1 & ~((noa & 1) ^ ((noa & 2) / 2))); building.addElement(new Double(convertToAttribX(xp))); building.addElement(new Double(convertToAttribY(yp))); } } } return building; }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/dab572c119692e2deb0fa2d817b347c7cfe42ded/VisualizePanel.java/buggy/gui/explorer/VisualizePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9545, 5018, 1221, 11787, 12, 12305, 5018, 331, 13, 288, 1377, 9545, 5018, 10504, 273, 394, 9545, 5018, 12, 90, 18, 1467, 1435, 397, 1728, 1769, 1377, 1645, 619, 21, 16, 677, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9545, 5018, 1221, 11787, 12, 12305, 5018, 331, 13, 288, 1377, 9545, 5018, 10504, 273, 394, 9545, 5018, 12, 90, 18, 1467, 1435, 397, 1728, 1769, 1377, 1645, 619, 21, 16, 677, 21, 1...
{ mT46(); if (failed) return ;
{ mT49(); if (failed) return ;
public void mTokens() throws RecognitionException { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | MISC ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T26 { mT26(); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T27 { mT27(); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T28 { mT28(); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T29 { mT29(); if (failed) return ; } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T30 { mT30(); if (failed) return ; } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T31 { mT31(); if (failed) return ; } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T32 { mT32(); if (failed) return ; } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T33 { mT33(); if (failed) return ; } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T34 { mT34(); if (failed) return ; } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T35 { mT35(); if (failed) return ; } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T36 { mT36(); if (failed) return ; } break; case 12 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T37 { mT37(); if (failed) return ; } break; case 13 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T38 { mT38(); if (failed) return ; } break; case 14 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T39 { mT39(); if (failed) return ; } break; case 15 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T40 { mT40(); if (failed) return ; } break; case 16 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T41 { mT41(); if (failed) return ; } break; case 17 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T42 { mT42(); if (failed) return ; } break; case 18 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T43 { mT43(); if (failed) return ; } break; case 19 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T44 { mT44(); if (failed) return ; } break; case 20 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T45 { mT45(); if (failed) return ; } break; case 21 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T46 { mT46(); if (failed) return ; } break; case 22 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T47 { mT47(); if (failed) return ; } break; case 23 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T48 { mT48(); if (failed) return ; } break; case 24 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T49 { mT49(); if (failed) return ; } break; case 25 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T50 { mT50(); if (failed) return ; } break; case 26 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T51 { mT51(); if (failed) return ; } break; case 27 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T52 { mT52(); if (failed) return ; } break; case 28 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T53 { mT53(); if (failed) return ; } break; case 29 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T54 { mT54(); if (failed) return ; } break; case 30 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T55 { mT55(); if (failed) return ; } break; case 31 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T56 { mT56(); if (failed) return ; } break; case 32 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T57 { mT57(); if (failed) return ; } break; case 33 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T58 { mT58(); if (failed) return ; } break; case 34 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T59 { mT59(); if (failed) return ; } break; case 35 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T60 { mT60(); if (failed) return ; } break; case 36 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T61 { mT61(); if (failed) return ; } break; case 37 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T62 { mT62(); if (failed) return ; } break; case 38 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T63 { mT63(); if (failed) return ; } break; case 39 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T64 { mT64(); if (failed) return ; } break; case 40 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T65 { mT65(); if (failed) return ; } break; case 41 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T66 { mT66(); if (failed) return ; } break; case 42 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T67 { mT67(); if (failed) return ; } break; case 43 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T68 { mT68(); if (failed) return ; } break; case 44 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T69 { mT69(); if (failed) return ; } break; case 45 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T70 { mT70(); if (failed) return ; } break; case 46 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T71 { mT71(); if (failed) return ; } break; case 47 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T72 { mT72(); if (failed) return ; } break; case 48 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T73 { mT73(); if (failed) return ; } break; case 49 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: MISC { mMISC(); if (failed) return ; } break; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
contentMgr.remove(0,getLength());
contentMgr.remove(0,length);
public boolean load(final View view, final boolean reload) { if(isPerformingIO()) { GUIUtilities.error(view,"buffer-multiple-io",null); return false; } setBooleanProperty(BufferIORequest.ERROR_OCCURRED,false); setFlag(LOADING,true); // view text areas temporarily blank out while a buffer is // being loaded, to indicate to the user that there is no // data available yet. if(!getFlag(TEMPORARY)) EditBus.send(new BufferUpdate(this,view,BufferUpdate.LOAD_STARTED)); final boolean loadAutosave; if(reload || !getFlag(NEW_FILE)) { if(file != null) modTime = file.lastModified(); // Only on initial load if(!reload && autosaveFile != null && autosaveFile.exists()) loadAutosave = recoverAutosave(view); else { if(autosaveFile != null) autosaveFile.delete(); loadAutosave = false; } if(!loadAutosave) { VFS vfs = VFSManager.getVFSForPath(path); if(!checkFileForLoad(view,vfs,path)) { setFlag(LOADING,false); return false; } // have to check again since above might set // NEW_FILE flag if(reload || !getFlag(NEW_FILE)) { if(!vfs.load(view,this,path)) { setFlag(LOADING,false); return false; } } } } else loadAutosave = false; //{{{ Do some stuff once loading is finished Runnable runnable = new Runnable() { public void run() { String newPath = getStringProperty( BufferIORequest.NEW_PATH); Segment seg = (Segment)getProperty( BufferIORequest.LOAD_DATA); IntegerArray endOffsets = (IntegerArray) getProperty(BufferIORequest.END_OFFSETS); if(seg == null) seg = new Segment(new char[1024],0,0); if(endOffsets == null) { endOffsets = new IntegerArray(); endOffsets.add(1); } try { writeLock(); // For `reload' command firePreContentRemoved(0,0,getLineCount() - 1,getLength()); contentMgr.remove(0,getLength()); lineMgr.contentRemoved(0,0,getLineCount() - 1,getLength()); positionMgr.contentRemoved(0,getLength()); fireContentRemoved(0,0,getLineCount() - 1,getLength()); // theoretically a segment could // have seg.offset != 0 but // SegmentBuffer never does that contentMgr._setContent(seg.array,seg.count); lineMgr._contentInserted(endOffsets); positionMgr.contentInserted(0,seg.count); fireContentInserted(0,0, endOffsets.getSize() - 1, seg.count - 1); } finally { writeUnlock(); } unsetProperty(BufferIORequest.LOAD_DATA); unsetProperty(BufferIORequest.END_OFFSETS); unsetProperty(BufferIORequest.NEW_PATH); undoMgr.clear(); undoMgr.setLimit(jEdit.getIntegerProperty( "buffer.undoCount",100)); if(!getFlag(TEMPORARY)) finishLoading(); setFlag(LOADING,false); // if reloading a file, clear dirty flag if(reload) setDirty(false); if(!loadAutosave && newPath != null) setPath(newPath); // if loadAutosave is false, we loaded an // autosave file, so we set 'dirty' to true // note that we don't use setDirty(), // because a) that would send an unnecessary // message, b) it would also set the // AUTOSAVE_DIRTY flag, which will make // the autosave thread write out a // redundant autosave file if(loadAutosave) setFlag(DIRTY,true); // send some EditBus messages if(!getFlag(TEMPORARY)) { EditBus.send(new BufferUpdate(Buffer.this, view,BufferUpdate.LOADED)); //EditBus.send(new BufferUpdate(Buffer.this, // view,BufferUpdate.MARKERS_CHANGED)); } } }; //}}} if(getFlag(TEMPORARY)) runnable.run(); else VFSManager.runInAWTThread(runnable); return true; } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/c175d5ed4734ce38259ed135d25fe1d4b7edf2e3/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1262, 12, 6385, 4441, 1476, 16, 727, 1250, 7749, 13, 202, 95, 202, 202, 430, 12, 291, 4990, 310, 4294, 10756, 202, 202, 95, 1082, 202, 43, 5370, 11864, 18, 1636, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1262, 12, 6385, 4441, 1476, 16, 727, 1250, 7749, 13, 202, 95, 202, 202, 430, 12, 291, 4990, 310, 4294, 10756, 202, 202, 95, 1082, 202, 43, 5370, 11864, 18, 1636, 12, 1...
jj_la1[100] = jj_gen;
jj_la1[99] = jj_gen;
final public void SwitchStatement() throws ParseException { /*@bgen(jjtree) SwitchStatement */ ASTSwitchStatement jjtn000 = new ASTSwitchStatement(this, JJTSWITCHSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(SWITCH); jj_consume_token(LPAREN); Expression(); jj_consume_token(RPAREN); jj_consume_token(LBRACE); label_38: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CASE: case _DEFAULT: ; break; default: jj_la1[100] = jj_gen; break label_38; } SwitchLabel(); label_39: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BOOLEAN: case BREAK: case BYTE: case CHAR: case CLASS: case CONTINUE: case DO: case DOUBLE: case FALSE: case FINAL: case FLOAT: case FOR: case IF: case INT: case INTERFACE: case LONG: case NEW: case NULL: case RETURN: case SHORT: case SUPER: case SWITCH: case SYNCHRONIZED: case THIS: case THROW: case TRUE: case TRY: case VOID: case WHILE: case ASSERT: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: case IDENTIFIER: case LPAREN: case LBRACE: case SEMICOLON: case INCR: case DECR: ; break; default: jj_la1[101] = jj_gen; break label_39; } BlockStatement(); } } jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/e4e1467181b67cfd9bbbd764d319d740024b0993/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 13967, 3406, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 13967, 3406, 1195, 225, 9183, 10200, 3406, 10684, 5088, 3784, 273, 394, 9183, 10200, 3406, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 13967, 3406, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 13967, 3406, 1195, 225, 9183, 10200, 3406, 10684, 5088, 3784, 273, 394, 9183, 10200, 3406, 1...
for (int state = reader.getEventType(); reader.hasNext(); state = reader.next()) { switch (state) { case XMLStreamReader.START_ELEMENT: cnt++; break; case XMLStreamReader.END_ELEMENT: if (cnt == 0) { assert reader.hasNext(); reader.next(); return; } else { cnt--; } break; case XMLStreamReader.END_DOCUMENT: throw new XmlRuntimeException("unexpected end of xml document"); default: break;
for (int state = reader.getEventType(); reader.hasNext(); state = reader.next()) { switch (state) { case XMLStreamReader.START_ELEMENT: cnt++; break; case XMLStreamReader.END_ELEMENT: if (cnt == 0) { assert reader.hasNext(); reader.next(); return; } else { cnt--; } break; case XMLStreamReader.END_DOCUMENT: throw new XmlException("unexpected end of xml document"); default: break; }
static void skipElement(XMLStreamReader reader) throws XMLStreamException { assert reader.isStartElement(); int cnt = -1; //TODO: seem to be rechecking assertion, why not skip one ahead... for (int state = reader.getEventType(); reader.hasNext(); state = reader.next()) { switch (state) { case XMLStreamReader.START_ELEMENT: cnt++; break; case XMLStreamReader.END_ELEMENT: if (cnt == 0) { assert reader.hasNext(); reader.next(); return; } else { cnt--; } break; case XMLStreamReader.END_DOCUMENT: //should not happen for well-formed xml throw new XmlRuntimeException("unexpected end of xml document"); default: break; } } //should not happen for well-formed xml throw new XmlRuntimeException("unexpected end of xml stream"); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/0ba682709a30583d8f10dc9441130ea815207504/MarshalStreamUtils.java/buggy/v2/src/marshal/org/apache/xmlbeans/impl/marshal/MarshalStreamUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 2488, 1046, 12, 4201, 31495, 2949, 13, 3639, 1216, 21526, 565, 288, 3639, 1815, 2949, 18, 291, 1685, 1046, 5621, 3639, 509, 7599, 273, 300, 21, 31, 3639, 368, 6241, 30, 19264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 2488, 1046, 12, 4201, 31495, 2949, 13, 3639, 1216, 21526, 565, 288, 3639, 1815, 2949, 18, 291, 1685, 1046, 5621, 3639, 509, 7599, 273, 300, 21, 31, 3639, 368, 6241, 30, 19264, ...
options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_CONTROL_STATEMENTS, JavaCore.DO_NOT_INSERT);
options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT, JavaCore.DO_NOT_INSERT); options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT, JavaCore.DO_NOT_INSERT); options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT, JavaCore.DO_NOT_INSERT); options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT, JavaCore.DO_NOT_INSERT);
public void test270() { Hashtable options = new Hashtable(); options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_CONTROL_STATEMENTS, JavaCore.DO_NOT_INSERT); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ANONYMOUS_TYPE_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, JavaCore.TAB); DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test270", "A.java", CodeFormatter.K_COMPILATION_UNIT);//$NON-NLS-1$ //$NON-NLS-2$ }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/efbaf5f01b1dd1c4f8135936aa48ce411ca71c6c/FormatterRegressionTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5324, 20, 1435, 288, 202, 202, 5582, 14544, 702, 273, 394, 18559, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 67, 11356, 67, 12917, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5324, 20, 1435, 288, 202, 202, 5582, 14544, 702, 273, 394, 18559, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 67, 11356, 67, 12917, 6...
MylarTaskListPlugin.getTaskListManager().notifyLocalInfoChanged(newTask);
MylarTaskListPlugin.getTaskListManager().getTaskList().notifyLocalInfoChanged(newTask);
protected void setTitle(final String pageTitle) { newTask.setDescription(pageTitle); MylarTaskListPlugin.getTaskListManager().notifyLocalInfoChanged(newTask); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/e126413d7377a72b7d4a3c4621ae64fda6eec16a/TaskListDropAdapter.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListDropAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 1117, 918, 14109, 12, 6385, 514, 1363, 4247, 13, 288, 6862, 202, 2704, 2174, 18, 542, 3291, 12, 2433, 4247, 1769, 6862, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 1117, 918, 14109, 12, 6385, 514, 1363, 4247, 13, 288, 6862, 202, 2704, 2174, 18, 542, 3291, 12, 2433, 4247, 1769, 6862, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, ...
Component[] result = new Component[componentCount]; if (componentCount > 0) System.arraycopy(components, 0, result, 0, componentCount);
Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents);
public Component[] getComponents() { Component[] result = new Component[componentCount]; if (componentCount > 0) System.arraycopy(components, 0, result, 0, componentCount); return result; }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/42de8277e53eabea04a48598c12ed6d488412a7b/Container.java/buggy/libjava/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 8526, 336, 7171, 1435, 225, 288, 565, 5435, 8526, 563, 273, 394, 5435, 63, 4652, 1380, 15533, 565, 309, 261, 4652, 1380, 405, 374, 13, 1377, 2332, 18, 1126, 3530, 12, 8119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 8526, 336, 7171, 1435, 225, 288, 565, 5435, 8526, 563, 273, 394, 5435, 63, 4652, 1380, 15533, 565, 309, 261, 4652, 1380, 405, 374, 13, 1377, 2332, 18, 1126, 3530, 12, 8119, ...
List filteredEntries = new ArrayList(entires.length); for (int i = 0; i < entires.length; i++) { String[] filters = ((IPropertySheetEntry) entires[i]).getFilters();
List filteredEntries = new ArrayList(entries.length); for (int i = 0; i < entries.length; i++) { String[] filters = entries[i].getFilters();
private List getFilteredEntries(IPropertySheetEntry[] entires) { // if no filter just return all entries if (isShowingExpertProperties) return Arrays.asList(entires); // check each entry for the filter List filteredEntries = new ArrayList(entires.length); for (int i = 0; i < entires.length; i++) { String[] filters = ((IPropertySheetEntry) entires[i]).getFilters(); boolean expert = false; if (filters != null) { for (int j = 0; j < filters.length; j++) { if (filters[j].equals(IPropertySheetEntry.FILTER_ID_EXPERT)) { expert = true; break; } } } if (!expert) filteredEntries.add(entires[i]); } return filteredEntries; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3fe46568fedba60643e0be03da922f6da9a1bdb3/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 12267, 329, 5400, 12, 45, 1396, 8229, 1622, 8526, 3281, 2814, 13, 288, 202, 202, 759, 309, 1158, 1034, 2537, 327, 777, 3222, 202, 202, 430, 261, 291, 5706, 310, 424, 672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 12267, 329, 5400, 12, 45, 1396, 8229, 1622, 8526, 3281, 2814, 13, 288, 202, 202, 759, 309, 1158, 1034, 2537, 327, 777, 3222, 202, 202, 430, 261, 291, 5706, 310, 424, 672...
public UIAction[] getActions() {
public Event[] getActions() {
public UIAction[] getActions() { return defaultActions; // XXX WHS need to translate Actions to UICmds // return TextAction.augmentList(mEditor.getActions(), defaultActions); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/CompositionPanel.java/clean/grendel/sources/grendel/composition/CompositionPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2587, 8526, 336, 6100, 1435, 288, 565, 327, 805, 6100, 31, 565, 368, 11329, 678, 13173, 1608, 358, 4204, 18765, 358, 587, 2871, 1264, 87, 565, 368, 327, 3867, 1803, 18, 6480, 475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2587, 8526, 336, 6100, 1435, 288, 565, 327, 805, 6100, 31, 565, 368, 11329, 678, 13173, 1608, 358, 4204, 18765, 358, 587, 2871, 1264, 87, 565, 368, 327, 3867, 1803, 18, 6480, 475, ...
file = cms.readFileHeader(filename);
file = cms.readFileHeader(filename, CmsResourceFilter.IGNORE_EXPIRATION);
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = CmsXmlTemplateLoader.getSession(cms.getRequestContext(), true); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); // the template to be displayed String template = null; // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if (initial != null) { // remove all session values session.removeValue(C_PARA_RESOURCE); //session.removeValue("versionid"); session.removeValue("restore"); session.removeValue("lasturl"); } // get the lasturl parameter String lasturl = getLastUrl(cms, parameters); String restore = (String)parameters.get("restore"); if (restore != null) { session.putValue("restore", restore); } restore = (String)session.getValue("restore"); String filename = (String)parameters.get(C_PARA_RESOURCE); if (filename != null) { session.putValue(C_PARA_RESOURCE, filename); } filename = (String)session.getValue(C_PARA_RESOURCE); String version = (String)session.getValue("version"); String action = (String)parameters.get("action"); CmsResource file = null; if (filename.endsWith("/")) { file = cms.readFolder(filename); } else { file = cms.readFileHeader(filename); } //check if the name parameter was included in the request // if not, the restoreresource page is shown for the first time if (restore != null) { if (action != null) { // restore the resource try { // check the autolock resource setting and lock the resource if necessary if (OpenCms.getWorkplaceManager().autoLockResources()) { if (cms.getLock(filename).isNullLock()) { // resource is not locked, lock it automatically cms.lockResource(filename); } } cms.restoreResource(Integer.parseInt(version), cms.readAbsolutePath(file)); session.removeValue(C_PARA_RESOURCE); //template = "done"; // return to filelist try { if (lasturl == null || "".equals(lasturl)) { CmsXmlTemplateLoader.getResponse(cms.getRequestContext()).sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(CmsXmlTemplateLoader.getRequest(cms.getRequestContext()).getOriginalRequest())); } else { CmsXmlTemplateLoader.getResponse(cms.getRequestContext()).sendRedirect(lasturl); } } catch (Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + CmsWorkplaceAction.getExplorerFileUri(CmsXmlTemplateLoader.getRequest(cms.getRequestContext()).getOriginalRequest()), CmsException.C_UNKNOWN_EXCEPTION, e); } return null; } catch (CmsException e) { session.removeValue(C_PARA_RESOURCE); xmlTemplateDocument.setData("details", CmsException.getStackTraceAsString(e)); xmlTemplateDocument.setData("lasturl", lasturl); return startProcessing(cms, xmlTemplateDocument, "", parameters, "error"); } } else { template = "wait"; } } // set the required datablocks if (action == null) { xmlTemplateDocument.setData("CHANGEDATE", CmsMessages.getDateTimeShort(file.getDateLastModified())); xmlTemplateDocument.setData("USER", cms.readUser(file.getUserLastModified()).getName()); xmlTemplateDocument.setData("FILENAME", file.getName()); } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/d3dd6db9505b84c0af1f210f072c5ac92035eb4c/CmsRestoreResource.java/buggy/src/com/opencms/workplace/CmsRestoreResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 16084,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 16084,...
throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented");
if (address == null) throw new NullPointerException(); if (!(address instanceof InetSocketAddress)) throw new SocketException("unknown address type"); impl.leaveGroup((InetSocketAddress) address, netIf);
public void leaveGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8851, 1114, 12, 15520, 1758, 16, 21109, 2901, 2047, 13, 225, 288, 565, 604, 394, 3186, 668, 1377, 7566, 13360, 5139, 17049, 4534, 2828, 2866, 19574, 1114, 353, 486, 8249, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 8851, 1114, 12, 15520, 1758, 16, 21109, 2901, 2047, 13, 225, 288, 565, 604, 394, 3186, 668, 1377, 7566, 13360, 5139, 17049, 4534, 2828, 2866, 19574, 1114, 353, 486, 8249, 8863, ...
topColorChooser = new SimpleColorChooser(); topColorChooser.setBorder(new EmptyBorder(8,8,8,8)); topColorChooser.addChangeListener( new ChangeListener() {
backgroundColorChooser = new SimpleColorChooser(); backgroundColorChooser.setBorder(new EmptyBorder(8,8,8,8)); backgroundColorChooser.addChangeListener( new ChangeListener() {
private void makeEnvTab() { topColorChooser = new SimpleColorChooser(); topColorChooser.setBorder(new EmptyBorder(8,8,8,8)); topColorChooser.addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent e) { setTopColor(topColorChooser.getColor()); } }); topColorChooser.addActionListener(closeListener); bottomColorChooser = new SimpleColorChooser(); bottomColorChooser.setBorder(new EmptyBorder(8,8,8,8)); bottomColorChooser.addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent e) { setBottomColor(bottomColorChooser.getColor()); } }); bottomColorChooser.addActionListener(closeListener); landscape.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { getViewerVR().setEnvironment(landscape.getCubeMap()); updateEnv(); } }); Insets insets = new Insets(0,2,0,2); envPanel = new JPanel(new BorderLayout()); envPanel.setBorder(new EmptyBorder(0,0,0,0)); JPanel selectionPanel = new JPanel(new BorderLayout()); selectionPanel.setBorder(new EmptyBorder(0,5,0,5)); selectionPanel.add(landscape.getSelectionComponent(), BorderLayout.CENTER); envPanel.add(selectionPanel, BorderLayout.CENTER); Box envControlBox = new Box(BoxLayout.Y_AXIS); skyBoxHidden = new JCheckBox("no sky"); skyBoxHidden.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateEnv(); } }); envControlBox.add(skyBoxHidden); JPanel backgroundColorPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); JLabel backgroundLabel = new JLabel("background:"); backgroundLabel.setBorder(new EmptyBorder(0,5,0,10)); backgroundColorPanel.add(backgroundLabel); JButton topColorButton = new JButton("top"); topColorButton.setMargin(insets); topColorButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { switchToTopColorChooser(); } }); backgroundColorPanel.add(topColorButton); bottomColorButton = new JButton("bottom"); bottomColorButton.setMargin(insets); bottomColorButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { switchToBottomColorChooser(); } }); backgroundColorPanel.add(bottomColorButton); backgroundFlat = new JCheckBox("flat"); backgroundFlat.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { setBackgroundFlat(backgroundFlat.isSelected()); } }); backgroundColorPanel.add(backgroundFlat); envControlBox.add(backgroundColorPanel); envPanel.add(envControlBox, BorderLayout.SOUTH); }
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/0dc65996290e830fc91f21c4395b7f5058fc1628/EnvironmentPluginVR.java/buggy/src-vr/de/jreality/vr/EnvironmentPluginVR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1221, 3491, 5661, 1435, 288, 202, 202, 3669, 2957, 17324, 273, 394, 4477, 2957, 17324, 5621, 202, 202, 3669, 2957, 17324, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 28, 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, 225, 202, 1152, 918, 1221, 3491, 5661, 1435, 288, 202, 202, 3669, 2957, 17324, 273, 394, 4477, 2957, 17324, 5621, 202, 202, 3669, 2957, 17324, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 28, 16, ...