rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
buff.append( "MegaMek version " )
buff.append( Messages.getString("CommonAboutDialog.version") )
public CommonAboutDialog( Frame frame ) { // Construct the superclass. super( frame, "About MegaMek" ); // Make sure we close at the appropriate times. this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { quit(); } } ); // Make a splash image panel. BufferedPanel panTitle = new BufferedPanel(); Image imgSplash = CommonAboutDialog.getTitleImage( frame ); BackGroundDrawer bgdTitle = new BackGroundDrawer( imgSplash ); panTitle.addBgDrawer(bgdTitle); panTitle.setPreferredSize( imgSplash.getWidth(null), imgSplash.getHeight(null) ); // Make a label containing the version of this app. StringBuffer buff = new StringBuffer(); buff.append( "MegaMek version " ) .append( megamek.MegaMek.VERSION ) .append( "\nTimestamp " ) .append( new Date(megamek.MegaMek.TIMESTAMP).toString() ) .append( "\nJava Vendor " ) .append( System.getProperty("java.vendor") ) .append( "\nJava Version " ) .append( System.getProperty("java.version") ); AdvancedLabel lblVersion = new AdvancedLabel( buff.toString() ); // Create the copyright. buff = new StringBuffer(); buff.append( "MegaMek Copyright 2000,2001,2002,2003,2004,2005 Ben Mazur\n\n" ) .append( "BattleTech, BattleMech, 'Mech, and MechWarrior are registered trademarks of\n" ) .append( "WizKids, LLC. Original BattleTech material Copyright by WizKids, LLC.\n" ) .append( "All Rights Reserved. Used without permission." ); AdvancedLabel lblCopyright = new AdvancedLabel( buff.toString() ); // Give us some "about" text. buff = new StringBuffer(); buff.append( "MegaMek is community effort to implement the Classic BattleTech rules in an\n" ) .append( "operating-system-agnostic, network enabled manner. MegaMek is distributed\n" ) .append( "under the GNU General Public License. A copy of the liscense should be avail-\n" ) .append( "able in the installation directory. If you've enjoyed playing MegaMek, please share\n" ) .append( "it with a friend. If you'd like to improve it, please be aware that your contributions\n" ) .append( "must ALSO be distributed under the GNU General Public License, Version 2 or later.\n" ); AdvancedLabel lblAbout = new AdvancedLabel( buff.toString() ); // Add a "Close" button. Button butClose = new Button( "Close" ); butClose.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent event ) { quit(); } } ); // Layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); this.setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.NORTH; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(4, 4, 1, 1); c.gridwidth = GridBagConstraints.REMAINDER; c.ipadx = 10; c.ipady = 5; c.gridx = 0; c.gridy = 0; this.add(panTitle, c); c.weighty = 1.0; c.fill = GridBagConstraints.HORIZONTAL; c.gridy = 1; this.add(lblVersion, c); c.gridy = 2; this.add(lblCopyright, c); c.gridy = 3; this.add(lblAbout, c); c.gridy = 4; this.add(butClose, c); // Place this dialog on middle of screen. Dimension screenSize = frame.getToolkit().getScreenSize(); this.pack(); this.setLocation( screenSize.width / 2 - this.getSize().width / 2, screenSize.height / 2 - this.getSize().height / 2); // Stop allowing resizing. this.setResizable( false ); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/CommonAboutDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CommonAboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5658, 24813, 6353, 12, 8058, 2623, 262, 288, 3639, 368, 14291, 326, 12098, 18, 3639, 2240, 12, 2623, 16, 315, 24813, 490, 11061, 49, 3839, 6, 11272, 3639, 368, 4344, 3071, 732, 1746...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5658, 24813, 6353, 12, 8058, 2623, 262, 288, 3639, 368, 14291, 326, 12098, 18, 3639, 2240, 12, 2623, 16, 315, 24813, 490, 11061, 49, 3839, 6, 11272, 3639, 368, 4344, 3071, 732, 1746...
Thread.sleep(SLEEP_DURATION);
Thread.sleep(TIME_PULSE_PAUSE);
public void run() { keepRunning = true; // Keep running until told not to while (keepRunning) { try { Thread.sleep(SLEEP_DURATION); } catch (InterruptedException e) {} try { //Increment the uptimer uptimer.addTime(SLEEP_DURATION); // Get the time pulse length in millisols. double timePulse = getTimePulse(); // Send simulation a clock pulse representing the time pulse length (in millisols). Simulation.instance().clockPulse(timePulse); // Add time pulse length to Earth and Mars clocks. earthTime.addTime(MarsClock.convertMillisolsToSeconds(timePulse)); marsTime.addTime(timePulse); } catch (Exception e) { System.out.println(e.getMessage()); stop(); } } }
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/f24471cbb89ab0b98010a7197a879ea07168801a/MasterClock.java/buggy/org/mars_sim/msp/simulation/time/MasterClock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 3455, 7051, 273, 638, 31, 3639, 368, 10498, 3549, 3180, 268, 1673, 486, 358, 3639, 1323, 261, 10102, 7051, 13, 288, 5411, 775, 288, 7734, 4884, 18, 19607...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 3455, 7051, 273, 638, 31, 3639, 368, 10498, 3549, 3180, 268, 1673, 486, 358, 3639, 1323, 261, 10102, 7051, 13, 288, 5411, 775, 288, 7734, 4884, 18, 19607...
asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt());
asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset());
private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, +4); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +8); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); int offsetToJavaArg = 3*WORDSIZE; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); offsetToJavaArg += 16; paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg += 8; paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, ip.getOffsetAsInt()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset().toInt()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 1250, 3157, 19289, 261, 7397, 67, 1305, 2404, 312, 13, 288, 565, 8251, 67, 3641, 4918, 273, 312, 18, 17994, 5621, 565, 309, 261, 81, 18, 588, 559, 1435, 422, 8251, 67, 7534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1250, 3157, 19289, 261, 7397, 67, 1305, 2404, 312, 13, 288, 565, 8251, 67, 3641, 4918, 273, 312, 18, 17994, 5621, 565, 309, 261, 81, 18, 588, 559, 1435, 422, 8251, 67, 7534, ...
_actions = new LinkedList();
_actions = (List) new LinkedList();
public SmcGuard(SmcAction condition, int line_number) { _condition = condition; _line_number = line_number; _end_state = ""; _actions = new LinkedList(); }
50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/ffbfa44caa39de8d579429432aa3aca8bd077721/SmcGuard.java/buggy/net/sf/smc/SmcGuard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9425, 71, 16709, 12, 9552, 71, 1803, 2269, 16, 509, 980, 67, 2696, 13, 565, 288, 3639, 389, 4175, 273, 2269, 31, 3639, 389, 1369, 67, 2696, 273, 980, 67, 2696, 31, 3639, 389, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9425, 71, 16709, 12, 9552, 71, 1803, 2269, 16, 509, 980, 67, 2696, 13, 565, 288, 3639, 389, 4175, 273, 2269, 31, 3639, 389, 1369, 67, 2696, 273, 980, 67, 2696, 31, 3639, 389, 40...
} else { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null);
private void fillViewMenu(IMenuManager viewMenu) { if (!fMultipleSelection) { ToggleStatusLineAction showStatusLineAction= new ToggleStatusLineAction(); showStatusLineAction.setChecked(fSettings.getBoolean(SHOW_STATUS_LINE)); viewMenu.add(showStatusLineAction); } FullyQualifyDuplicatesAction fullyQualifyDuplicatesAction= new FullyQualifyDuplicatesAction(); fullyQualifyDuplicatesAction.setChecked(fSettings.getBoolean(FULLY_QUALIFY_DUPLICATES)); viewMenu.add(fullyQualifyDuplicatesAction); if (fScope == null) { fFilterActionGroup= new WorkingSetFilterActionGroup(getShell(), JavaPlugin.getActivePage(), new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { IWorkingSet ws= (IWorkingSet)event.getNewValue(); if (ws == null) { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); } else { fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true); fTitleLabel.setText(ws.getLabel()); } fViewer.setSearchScope(fScope, true); } }); String setting= fSettings.get(WORKINGS_SET_SETTINGS); if (setting != null) { try { IMemento memento= XMLMemento.createReadRoot(new StringReader(setting)); fFilterActionGroup.restoreState(memento); } catch (WorkbenchException e) { } } IWorkingSet ws= fFilterActionGroup.getWorkingSet(); if (ws != null) { fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true); fTitleLabel.setText(ws.getLabel()); } else { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); } fFilterActionGroup.fillViewMenu(viewMenu); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a5b01145861cb2aeb54ab3c646cd8e0eb3f361f8/TypeSelectionComponent.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3636, 1767, 4599, 12, 3445, 2104, 1318, 1476, 4599, 13, 288, 202, 202, 430, 16051, 74, 8438, 6233, 13, 288, 1082, 202, 17986, 1482, 1670, 1803, 2405, 1482, 1670, 1803, 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, 225, 202, 1152, 918, 3636, 1767, 4599, 12, 3445, 2104, 1318, 1476, 4599, 13, 288, 202, 202, 430, 16051, 74, 8438, 6233, 13, 288, 1082, 202, 17986, 1482, 1670, 1803, 2405, 1482, 1670, 1803, 33,...
super(dn, attrs, null); resetData();
super(LdapUtil.getAttrString(attrs, Provisioning.A_cn), LdapUtil.getAttrString(attrs, Provisioning.A_zimbraId), LdapUtil.getAttrs(attrs)); mDn = dn;
LdapCos(String dn, Attributes attrs) throws NamingException, ServiceException { super(dn, attrs, null); resetData(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/3909766becf4a5a2c4e32d431d9fbd071d42944d/LdapCos.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapCos.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 18053, 39, 538, 12, 780, 8800, 16, 9055, 3422, 13, 1216, 26890, 16, 16489, 288, 3639, 2240, 12, 5176, 16, 3422, 16, 446, 1769, 3639, 2715, 751, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 18053, 39, 538, 12, 780, 8800, 16, 9055, 3422, 13, 1216, 26890, 16, 16489, 288, 3639, 2240, 12, 5176, 16, 3422, 16, 446, 1769, 3639, 2715, 751, 5621, 565, 289, 2, -100, -100, -100, -100...
public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) {
public void exploring(int ttl, UUID uuid, P2PService remoteService) {
public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) { if (uuid != null) { logger.debug("Exploring message received with #" + uuid); ttl--; } boolean broadcast; try { broadcast = broadcaster(ttl, uuid, remoteService); } catch (P2POldMessageException e) { return; } // This should be register if (this.shouldBeAcquaintance(remoteService)) { this.register(remoteService); try { remoteService.register(this.stubOnThis); } catch (Exception e) { logger.debug("Trouble with registering remote peer", e); this.acquaintanceManager.remove(remoteService); } } else if (broadcast) { // Forwarding the message if (uuid == null) { logger.debug("Generating uuid for exploring message"); uuid = generateUuid(); } this.acquaintances.exploring(ttl, uuid, remoteService); logger.debug("Broadcast exploring message with #" + uuid); uuid = null; } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/e70757232ba0f4b99fe39c97c5d3ec49b554e13e/P2PService.java/clean/src/org/objectweb/proactive/p2p/service/P2PService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 1194, 18, 4148, 2932, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22991, 6053, 12, 474, 6337, 16, 27705, 31118, 3822, 16, 3639, 453, 22, 52, 1179, 2632, 1179, 13, 288, 3639, 309, 261, 7080, 480, 446, 13, 288, 5411, 1194, 18, 4148, 2932, 424...
throw new InternalError ("not implemented");
return textField;
protected JFormattedTextField getFormattedTextField () { throw new InternalError ("not implemented"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e763280cf1369c9681ea91b32ae758840a76dc3/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 18298, 16157, 15562, 16157, 1832, 565, 288, 1377, 327, 977, 974, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 18298, 16157, 15562, 16157, 1832, 565, 288, 1377, 327, 977, 974, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
res.put("java.vm.version", "0.1.5");
res.put("java.vm.version", vm.getVersion());
public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("java.vm.specification.version", "1.4"); res.put("java.vm.specification.vendor", "JNode.org"); res.put("java.vm.specification.name", "jnode"); res.put("java.vm.version", "0.1.5"); res.put("java.vm.vendor", "JNode.org"); res.put("java.vm.name", "JNode"); res.put("java.class.version", "1.1"); res.put("java.class.path", ""); res.put("java.library.path", ""); res.put("java.io.tmpdir", "/tmp"); res.put("java.compiler", "Internal"); res.put("java.ext.dirs", ""); res.put("os.name", "JNode"); res.put("os.arch", arch); res.put("os.version", "0.1.5"); res.put("file.separator", "/"); res.put("path.separator", ":"); res.put("line.separator", "\n"); res.put("user.name", "System"); res.put("user.home", "/"); res.put("user.dir", "/"); return res; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/06ef01b2121b3c49ebf7112f24742fd8617db518/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6183, 26458, 2297, 1435, 288, 3639, 727, 514, 6637, 31, 3639, 6637, 273, 27476, 18, 588, 3935, 5164, 7675, 588, 12269, 18123, 7675, 17994, 5621, 3639, 27476, 18, 4148, 2932, 991,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6183, 26458, 2297, 1435, 288, 3639, 727, 514, 6637, 31, 3639, 6637, 273, 27476, 18, 588, 3935, 5164, 7675, 588, 12269, 18123, 7675, 17994, 5621, 3639, 27476, 18, 4148, 2932, 991,...
Iterator it = computedCol1.iterator( ); Iterator it2 = computedCol1.iterator( );
Iterator it = newComputedCol1.iterator( ); Iterator it2 = newComputedCol2.iterator( );
private boolean isEqualComputedColumns( List computedCol1, List computedCol2 ) { if ( computedCol1 == computedCol2 ) return true; int basicCol = isEqualBasicCol( computedCol1, computedCol2 ); if ( basicCol == B_TRUE ) return true; else if ( basicCol == B_FALSE ) return false; Iterator it = computedCol1.iterator( ); Iterator it2 = computedCol1.iterator( ); while ( it.hasNext( ) ) { IComputedColumn cc = (IComputedColumn) it.next( ); IComputedColumn cc2 = (IComputedColumn) it2.next( ); if ( isEqualComputedCol( cc, cc2 ) == false ) return false; } return true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5cf8338ab22c60916ff85ce4985b705cdebeb9e4/DataSourceAndDataSet.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceAndDataSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 21614, 17934, 3380, 12, 987, 8470, 914, 21, 16, 987, 8470, 914, 22, 262, 202, 95, 202, 202, 430, 261, 8470, 914, 21, 422, 8470, 914, 22, 262, 1082, 202, 2463, 638, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21614, 17934, 3380, 12, 987, 8470, 914, 21, 16, 987, 8470, 914, 22, 262, 202, 95, 202, 202, 430, 261, 8470, 914, 21, 422, 8470, 914, 22, 262, 1082, 202, 2463, 638, 31...
case Id_shift: return jsFunction_shift(cx, thisObj, args);
case Id_shift: return jsFunction_shift(cx, thisObj, args);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: return jsConstructor(cx, scope, args, f, thisObj == null); case Id_toString: return jsFunction_toString(cx, thisObj, args); case Id_toLocaleString: return jsFunction_toLocaleString(cx, thisObj, args); case Id_join: return jsFunction_join(cx, thisObj, args); case Id_reverse: return jsFunction_reverse(cx, thisObj, args); case Id_sort: return jsFunction_sort(cx, thisObj, args, f); case Id_push: return jsFunction_push(cx, thisObj, args); case Id_pop: return jsFunction_pop(cx, thisObj, args); case Id_shift: return jsFunction_shift(cx, thisObj, args); case Id_unshift: return jsFunction_unshift(cx, thisObj, args); case Id_splice: return jsFunction_splice(cx, thisObj, args, f); case Id_concat: return jsFunction_concat(cx, thisObj, args, f); case Id_slice: return jsFunction_slice(cx, thisObj, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/3db7f50283cb2dd0859494c7e36c278004f2f6a8/NativeArray.java/clean/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 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, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
Logger log = getLogger(); if (log.isDebugEnabled()) { log.debug("Enter rollback");
if (getLogger().isDebugEnabled()) { getLogger().debug("Enter rollback");
public void rollback() throws CalFacadeException {/* if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); }*/ Logger log = getLogger(); if (log.isDebugEnabled()) { log.debug("Enter rollback"); } try { if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { if (log.isDebugEnabled()) { log.debug("About to rollback"); } tx.rollback(); } tx = null; } catch (Throwable t) { exc = t; throw new CalFacadeException(t); } }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/4583c936e771c0e3d32d0cbcb448b26a13b84aeb/HibSession.java/clean/calendar3/calCore/src/org/bedework/calcore/hibernate/HibSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8006, 1435, 1216, 3596, 12467, 503, 288, 20308, 565, 309, 261, 10075, 480, 446, 13, 288, 1377, 368, 21148, 82, 1404, 366, 2091, 1791, 1142, 813, 35, 1377, 604, 394, 3596, 12467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8006, 1435, 1216, 3596, 12467, 503, 288, 20308, 565, 309, 261, 10075, 480, 446, 13, 288, 1377, 368, 21148, 82, 1404, 366, 2091, 1791, 1142, 813, 35, 1377, 604, 394, 3596, 12467...
authenticate();
checkAuthenticated();
public boolean hasEntry( NextInterceptor next, Name name ) throws NamingException { if ( log.isDebugEnabled() ) { log.debug( "Testing if entry name = '" + name.toString() + "' exists"); } authenticate(); return next.hasEntry( name ); }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/9bd2f1d71ad648c8a4ac6c82cbb24d17a857680c/AuthenticationService.java/buggy/core/src/main/java/org/apache/ldap/server/authn/AuthenticationService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1622, 12, 4804, 10281, 1024, 16, 1770, 508, 262, 1216, 26890, 565, 288, 377, 202, 430, 261, 613, 18, 291, 2829, 1526, 1435, 262, 377, 202, 95, 377, 202, 202, 1330, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1622, 12, 4804, 10281, 1024, 16, 1770, 508, 262, 1216, 26890, 565, 288, 377, 202, 430, 261, 613, 18, 291, 2829, 1526, 1435, 262, 377, 202, 95, 377, 202, 202, 1330, 18, ...
assertNull(event.getProperty("prop"));
assertNull(event.getMessage().getProperty("prop"));
public void testProperties() throws Exception { UMOEvent prevEvent; Properties props; UMOMessage msg; UMOEndpoint endpoint; UMOEvent event; // nowhere prevEvent = getTestEvent("payload"); props = new Properties(); msg = new MuleMessage("payload", props); endpoint = getTestEndpoint("Test", UMOEndpoint.ENDPOINT_TYPE_SENDER); props = new Properties(); endpoint.setProperties(props); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertNull(event.getProperty("prop")); // in previous event => previous event prevEvent.setProperty("prop", "value0"); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value0", event.getProperty("prop")); // in previous event + endpoint => endpoint //This doesn't apply now as the previous event properties will be the same as the current event props// props = new Properties();// props.put("prop", "value2");// endpoint.setProperties(props);// event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent);// assertEquals("value2", event.getProperty("prop")); // in previous event + message => message props = new Properties(); props.put("prop", "value1"); msg = new MuleMessage("payload", props); endpoint = getTestEndpoint("Test", UMOEndpoint.ENDPOINT_TYPE_SENDER); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value1", event.getProperty("prop")); // in previous event + endpoint + message => message props = new Properties(); props.put("prop", "value1"); msg = new MuleMessage("payload", props); Properties props2 = new Properties(); props2.put("prop", "value2"); endpoint.setProperties(props2); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value1", event.getProperty("prop")); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/297837b3c5041467650faa66ed8fca8403349da7/MuleEventTestCase.java/clean/src/test/java/org/mule/test/mule/MuleEventTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2297, 1435, 1216, 1185, 565, 288, 3639, 587, 5980, 1133, 2807, 1133, 31, 3639, 6183, 3458, 31, 3639, 587, 5980, 1079, 1234, 31, 3639, 587, 5980, 3293, 2494, 31, 3639, 587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2297, 1435, 1216, 1185, 565, 288, 3639, 587, 5980, 1133, 2807, 1133, 31, 3639, 6183, 3458, 31, 3639, 587, 5980, 1079, 1234, 31, 3639, 587, 5980, 3293, 2494, 31, 3639, 587...
e.printStackTrace();
public static void main(String[] argv) { try { System.out.println(Evaluation.evaluateModel(new VotedPerceptron(), argv)); } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/b8b493a195612a9874363bb74e6660d86132fd50/VotedPerceptron.java/clean/weka/classifiers/VotedPerceptron.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 3639, 775, 288, 1377, 2332, 18, 659, 18, 8222, 12, 13468, 18, 21024, 1488, 12, 2704, 776, 16474, 2173, 311, 6723, 265, 9334, 5261, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 5261, 13, 288, 3639, 775, 288, 1377, 2332, 18, 659, 18, 8222, 12, 13468, 18, 21024, 1488, 12, 2704, 776, 16474, 2173, 311, 6723, 265, 9334, 5261, 10...
throw runtime.newNameError("cannot load Java class " + className);
throw runtime.newNameError("cannot load Java class " + className, className);
public Class loadJavaClass(String className) { try { Class result = primitiveClass(className); if (result == null) { return Class.forName(className, true, javaClassLoader); } return result; } catch (ClassNotFoundException cnfExcptn) { throw runtime.newNameError("cannot load Java class " + className); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/JavaSupport.java/clean/src/org/jruby/javasupport/JavaSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 1262, 5852, 797, 12, 780, 2658, 13, 288, 3639, 775, 288, 5411, 1659, 563, 273, 8225, 797, 12, 12434, 1769, 5411, 309, 261, 2088, 422, 446, 13, 288, 7734, 327, 1659, 18, 1884...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1659, 1262, 5852, 797, 12, 780, 2658, 13, 288, 3639, 775, 288, 5411, 1659, 563, 273, 8225, 797, 12, 12434, 1769, 5411, 309, 261, 2088, 422, 446, 13, 288, 7734, 327, 1659, 18, 1884...
throw new JMSException("Only primatives are allowed object is:" + object.getClass());
throw new MessageFormatException("Only primatives are allowed object is:" + object.getClass());
public void setObject(String string, Object object) throws JMSException { checkPropertyName(string); try { _fieldtable.setObject(string, object); } catch (AMQPInvalidClassException aice) { throw new JMSException("Only primatives are allowed object is:" + object.getClass()); } }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/84a0be01cca60ce41804df6bea36135d711d98dc/JMSPropertyFieldTable.java/clean/qpid/java/common/src/main/java/org/apache/qpid/framing/JMSPropertyFieldTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20530, 12, 780, 533, 16, 1033, 733, 13, 1216, 20343, 565, 288, 3639, 866, 13073, 12, 1080, 1769, 3639, 775, 3639, 288, 5411, 389, 1518, 2121, 18, 542, 921, 12, 1080, 16, 733,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20530, 12, 780, 533, 16, 1033, 733, 13, 1216, 20343, 565, 288, 3639, 866, 13073, 12, 1080, 1769, 3639, 775, 3639, 288, 5411, 389, 1518, 2121, 18, 542, 921, 12, 1080, 16, 733,...
logger.info("change condition of " + name);
public void enter(String name) { if(getDeconflictHelper() != null) { if(!getDeconflictHelper().isDefenseApplicable(name)) { //logger.info("change condition of " + name); getDeconflictHelper().changeApplicabilityCondition(name); } if(getDeconflictHelper().isOpEnabaled(name)) newState(name, RESTART); } if(getDeconflictHelper() == null) newState(name, RESTART); }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/b49cef399cc9d443e6b19bcb6e75c06acb59d9cc/DefaultRobustnessController.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/controllers/DefaultRobustnessController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 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, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 18, 1376, 2932, 3427, 2269, 434, 315, 397, 508, 1769, 1194, 18, ...
targetList = new ArrayList();
public ManagedBuildInfo(IResource owner) { targetList = new ArrayList(); this.owner = owner; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1661bb802280c66eb06adca1ff4d5b1bdbabccc2/ManagedBuildInfo.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10024, 3116, 966, 12, 45, 1420, 3410, 13, 288, 202, 202, 3299, 682, 273, 394, 2407, 5621, 202, 202, 2211, 18, 8443, 273, 3410, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10024, 3116, 966, 12, 45, 1420, 3410, 13, 288, 202, 202, 3299, 682, 273, 394, 2407, 5621, 202, 202, 2211, 18, 8443, 273, 3410, 31, 202, 97, 2, -100, -100, -100, -100, -100, ...
log.debug("RESPONSE: " + response.getText());
if (log.isDebugEnabled()) { log.debug("RESPONSE: " + response.getText()); }
public void doTest(String jspName) throws Exception { WebRequest request = new GetMethodWebRequest(jspName); WebResponse response = runner.getResponse(request); log.debug("RESPONSE: " + response.getText()); WebTable[] tables = response.getTables(); assertEquals("Expected one table in result.", 1, tables.length); assertEquals("Bad number of generated columns.", 4, tables[0].getColumnCount()); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/3b50c79e3280d9a33c9a06029bc6d0021644bdb0/BasicTableTagTest.java/clean/displaytag/src/test/java/org/displaytag/tags/BasicTableTagTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 2999, 1064, 766, 273, 8419, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 2999, 1064, 766, 273, 8419, 18, 58...
removeInclude(includesList.getSelectedRow());
approve();
public void actionPerformed(ActionEvent e) { removeInclude(includesList.getSelectedRow()); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/1640090ea9a0826d35804dd3a906c209348c6d3f/NewConfigDialog.java/clean/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ui/NewConfigDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 540, 288, 5411, 6617, 537, 5621, 540, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 540, 288, 5411, 6617, 537, 5621, 540, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
generateInFactory( item, content );
itemGeneration.setModelObject( handle ); itemGeneration.setReportQueries( ( (ExtendedItemDesign) item ) .getQueries( ) ); IRowSet[] rowSets = executeQueries( item ); try { if ( rowSets != null ) { itemGeneration.onRowSets( rowSets ); } if ( itemGeneration.needSerialization( ) ) { ByteArrayOutputStream out = new ByteArrayOutputStream( ); itemGeneration.serialize( out ); generationStatus = out.toByteArray( ); } itemGeneration.finish( ); } catch ( BirtException ex ) { logger.log( Level.SEVERE, ex.getMessage( ), ex ); context.addException( new EngineException( MessageConstants.EXTENDED_ITEM_GENERATION_ERROR, handle .getExtensionName( ) + ( name != null ? " " + name : "" ), ex ) ); } closeQueries( rowSets );
protected void generateContent( ExtendedItemDesign item, IForeignContent content ) { if ( context.isInFactory( ) ) { generateInFactory( item, content ); } else { loadFromArchive( item, content ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c20ca9242b39d9b07a5f33e58e8af1e3a67e4a9b/ExtendedItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExtendedItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2103, 1350, 12, 14094, 1180, 15478, 761, 16, 1082, 202, 5501, 6147, 1350, 913, 262, 202, 95, 202, 202, 430, 261, 819, 18, 291, 382, 1733, 12, 262, 262, 202, 202, 95, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2103, 1350, 12, 14094, 1180, 15478, 761, 16, 1082, 202, 5501, 6147, 1350, 913, 262, 202, 95, 202, 202, 430, 261, 819, 18, 291, 382, 1733, 12, 262, 262, 202, 202, 95, 1...
AST __t1488 = _t;
AST __t1489 = _t;
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1401 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1402 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1403 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1404 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case ASC: { AST __t1405 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1406 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1407 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1408 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1409 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1410 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1410; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1411 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case CHR: { AST __t1412 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1413 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1414 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1415 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1416 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1417 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1418 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case DATE: { AST __t1419 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1420 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1421 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case DAY: { AST __t1422 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1423 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1424 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1425 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1426 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1427 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1428 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1429 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1430 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1431 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1432 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1433 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1434 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case EXP: { AST __t1435 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case FILL: { AST __t1436 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1437 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1438 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1439 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1440 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1441 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1442 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1443 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1444 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1445 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1446 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1447 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1448 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1449 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1450 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1451 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1452 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1453 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1454 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1455 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1456 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1457 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1458 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1459 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1460 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1461 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1462 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1463 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1464 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1465 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1466 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1467 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1468 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case LAST: { AST __t1469 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1470 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case LC: { AST __t1471 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1472 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1473 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1474 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1475 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1476 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1477 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1478 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case LOG: { AST __t1479 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1480 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1481 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1482 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1483 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1484 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1485 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1486 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1487 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1488 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1489 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1490 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1491 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1492 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1493 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1494 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1495 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1496 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1497 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1498 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1499 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1500 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1501 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1502 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1503 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1504 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1505 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1506 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1507 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case STRING: { AST __t1508 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1509 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1510 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1511 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1512 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1513 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1514 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1515 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1515; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1516 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1516; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1517 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1517; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1518 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1518; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1519 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1519; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
reportGenericSchemaError("!!Schema not found in #addAttributeDeclFromAnotherSchema, schema uri : " + uriStr);
reportGenericSchemaError( "no attribute named \"" + name + "\" was defined in schema : " + uriStr);
private int addAttributeDeclFromAnotherSchema( String name, String uriStr, ComplexTypeInfo typeInfo) throws Exception { SchemaGrammar aGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uriStr); if (uriStr == null || ! (aGrammar instanceof SchemaGrammar) ) { // REVISIT: Localize reportGenericSchemaError("!!Schema not found in #addAttributeDeclFromAnotherSchema, schema uri : " + uriStr); return -1; } Hashtable attrRegistry = aGrammar.getAttributeDeclRegistry(); if (attrRegistry == null) { // REVISIT: Localize reportGenericSchemaError("no attribute was defined in schema : " + uriStr); return -1; } XMLAttributeDecl tempAttrDecl = (XMLAttributeDecl) attrRegistry.get(name); if (tempAttrDecl == null) { // REVISIT: Localize reportGenericSchemaError( "no attribute named \"" + name + "\" was defined in schema : " + uriStr); return -1; } if (typeInfo!= null) { fSchemaGrammar.addAttDef( typeInfo.templateElementIndex, tempAttrDecl.name, tempAttrDecl.type, -1, tempAttrDecl.defaultType, tempAttrDecl.defaultValue, tempAttrDecl.datatypeValidator, tempAttrDecl.list); } return 0; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/63597ca041f2ace1ab2478457827da4f358e7555/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10759, 3456, 1265, 37, 24413, 3078, 12, 514, 508, 16, 514, 2003, 1585, 16, 16060, 17305, 23112, 13, 1216, 1185, 288, 3639, 4611, 18576, 279, 18576, 273, 261, 3078, 18576, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10759, 3456, 1265, 37, 24413, 3078, 12, 514, 508, 16, 514, 2003, 1585, 16, 16060, 17305, 23112, 13, 1216, 1185, 288, 3639, 4611, 18576, 279, 18576, 273, 261, 3078, 18576, 13, 2...
ASTExpression left = (ASTExpression)expression.getRHSExpression();
ASTExpression left = (ASTExpression)expression.getLHSExpression();
protected List getExpressionResultType(IASTExpression expression, ISymbol symbol){ List result = new ArrayList(); TypeInfo info = new TypeInfo(); // types that resolve to void if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_EMPTY) || (expression.getExpressionKind() == IASTExpression.Kind.THROWEXPRESSION)) { info.setType(TypeInfo.t_void); result.add(info); return result; } // types that resolve to int // the relational kinds are 0 and !0 if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_EQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_NOTEQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.ANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.EXCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.INCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALOREXPRESSION) ){ info.setType(TypeInfo.t_int); result.add(info); return result; } // types that resolve to char if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_CHAR_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR)){ info.setType(TypeInfo.t_char); result.add(info); return result; } // types that resolve to float if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT)){ info.setType(TypeInfo.t_float); result.add(info); return result; } // types that resolve to string if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_STRING_LITERAL){ info.setType(TypeInfo.t_char); info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); result.add(info); return result; } // types that resolve to double if( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE){ info.setType(TypeInfo.t_double); result.add(info); return result; } // types that resolve to wchar if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART){ info.setType(TypeInfo.t_wchar_t); result.add(info); return result; } // types that resolve to bool if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL) ) { info.setType(TypeInfo.t_bool); result.add(info); return result; } // short added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isShort); result.add(info); return result; } // long added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isLong); result.add(info); return result; } // signed added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(false, TypeInfo.isUnsigned); result.add(info); return result; } // unsigned added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // types that resolve to t_type, symbol already looked up in type id if (expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION){ info.setType(TypeInfo.t_type); if(symbol != null) info.setTypeSymbol(symbol); result.add(info); return result; } // an ampersand implies a pointer operation of type reference if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_reference)); } result.add(info); return result; } // a star implies a pointer operation of type pointer if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null)&& (info.getTypeSymbol() != null)){ info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); } result.add(info); return result; } // types that resolve to LHS types if ((expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MULTIPLY) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_DIVIDE) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MODULUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_LEFT) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_RIGHT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_NORMAL) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MULT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_DIV) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MOD) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_LSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_RSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_AND) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_OR) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_XOR) ){ ASTExpression left = (ASTExpression)expression.getRHSExpression(); if(left != null){ TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); result.add(leftType); } } // a list collects all types of left and right hand sides if(expression.getExpressionKind() == IASTExpression.Kind.EXPRESSIONLIST){ if(expression.getLHSExpression() != null){ Iterator i = ((ASTExpression)expression.getLHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } if(expression.getRHSExpression() != null){ Iterator i = ((ASTExpression)expression.getRHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } return result; } // a function call type is the return type of the function if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ if(symbol != null){ IParameterizedSymbol psymbol = (IParameterizedSymbol) symbol; ISymbol returnTypeSymbol = psymbol.getReturnType(); info.setType(returnTypeSymbol.getType()); } result.add(info); return result; } return result; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d4cfca7836d1d5eb240ef63d55aabd48fdbf4fd3/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 16183, 1253, 559, 12, 45, 9053, 2300, 2652, 16, 4437, 3284, 3273, 15329, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 17305, 1123, 273, 394, 1412, 966, 5621, 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, 225, 202, 1117, 987, 16183, 1253, 559, 12, 45, 9053, 2300, 2652, 16, 4437, 3284, 3273, 15329, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 17305, 1123, 273, 394, 1412, 966, 5621, 9506, ...
if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); }
if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); }
public void setBendpoints(Bendpoints newBendpoints) { if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/EdgeImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/EdgeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15268, 20502, 12, 38, 20502, 394, 38, 20502, 13, 288, 202, 202, 430, 261, 2704, 38, 20502, 480, 324, 20502, 13, 288, 1082, 202, 4386, 3893, 8733, 273, 446, 31, 1082, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15268, 20502, 12, 38, 20502, 394, 38, 20502, 13, 288, 202, 202, 430, 261, 2704, 38, 20502, 480, 324, 20502, 13, 288, 1082, 202, 4386, 3893, 8733, 273, 446, 31, 1082, 202,...
assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2"));
assertValueInCollection("details", 0, 5, getProductUnitPriceMultiplyBy("2"));
public void testSections_aggregateCollection_orderedCollectionsInModel_posdeleteCollectionElement() throws Exception { // Create execute("CRUD.new"); execute("Sections.change", "activeSection=0"); assertExists("customer.number"); assertNotExists("vatPercentage"); String year = getValue("year"); setValue("number", "66"); setValue("customer.number", "1"); assertValue("customer.number", "1"); assertValue("customer.name", "Javi"); // First vat percentage for no validation error on save first detail execute("Sections.change", "activeSection=2"); assertNotExists("customer.number"); assertExists("vatPercentage"); setValue("vatPercentage", "23"); execute("Sections.change", "activeSection=1"); assertNotExists("customer.number"); assertNotExists("vatPercentage"); assertCollectionRowCount("details", 0); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "0"); setValue("details.quantity", "20"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("20")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "18/03/2004"); // Testing multiple-mapping in aggregate setValue("details.soldBy.number", getProductNumber()); execute("Collection.save", "viewObject=xava_view_section1_details"); assertNoErrors(); assertNotExists("details.serviceType"); // Testing hide detail on save assertCollectionRowCount("details", 1); assertNoEditable("year"); // Testing header is saved assertNoEditable("number"); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "1"); setValue("details.quantity", "200"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("200")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "19/03/2004"); // Testing multiple-mapping in aggregate setValue("details.soldBy.number", getProductNumber()); execute("Collection.save", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 2); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "2"); setValue("details.quantity", "2"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("2")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "20/03/2004"); // Testing multiple-mapping in aggregate execute("Collection.save", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 3); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "200"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("200")); assertValueInCollection("details", 2, 0, ""); assertValueInCollection("details", 2, 1, getProductDescription()); assertValueInCollection("details", 2, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 2, 3, "20"); assertValueInCollection("details", 2, 4, getProductUnitPrice()); assertValueInCollection("details", 2, 5, getProductUnitPriceFor("20")); execute("CRUD.save"); assertNoErrors(); assertValue("number", ""); execute("Sections.change", "activeSection=0"); assertValue("customer.number", ""); assertValue("customer.name", ""); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 0); execute("Sections.change", "activeSection=2"); assertValue("vatPercentage", ""); // Consulting setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertValue("year", year); assertValue("number", "66"); execute("Sections.change", "activeSection=0"); assertValue("customer.number", "1"); assertValue("customer.name", "Javi"); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 3); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "200"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("200")); assertValueInCollection("details", 2, 0, ""); assertValueInCollection("details", 2, 1, getProductDescription()); assertValueInCollection("details", 2, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 2, 3, "20"); assertValueInCollection("details", 2, 4, getProductUnitPrice()); assertValueInCollection("details", 2, 5, getProductUnitPriceFor("20")); execute("Sections.change", "activeSection=2"); assertValue("vatPercentage", "23"); // Edit line execute("Sections.change", "activeSection=1"); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "200"); assertValue("details.deliveryDate", "19/03/2004"); setValue("details.quantity", "234"); setValue("details.deliveryDate", "23/04/2004"); execute("Collection.save", "viewObject=xava_view_section1_details"); assertNoErrors(); assertValueInCollection("details", 1, 3, "234"); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Return to save and consult for see if the line is edited execute("CRUD.save"); assertNoErrors(); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "234"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("234")); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Verifying that it do not delete member in collection that not are in list execute("CRUD.new"); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("CRUD.save"); assertNoErrors(); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Remove a row from collection assertCollectionRowCount("details", 3); execute("Collection.remove", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 2); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, ""); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "20"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("20")); //ejecutar("CRUD.save"); // It is not necessary delete for record the deleted of a row execute("CRUD.new"); assertNoErrors(); assertCollectionRowCount("details", 0); // Verifying that line is deleted setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 2); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, ""); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "20"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("20")); assertValue("comment", "DETAIL DELETED"); // verifying postdelete-calculator in collection // Delete execute("CRUD.delete"); execute("ConfirmDelete.confirmDelete"); assertMessage("Invoice deleted successfully"); }
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/fd55afcaeadc0aadf218eb140d58ebfb6396b883/InvoicesTest.java/clean/OpenXavaTest/src/org/openxava/test/tests/InvoicesTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15965, 67, 18573, 2532, 67, 9885, 15150, 382, 1488, 67, 917, 3733, 2532, 1046, 1435, 1216, 1185, 288, 4697, 202, 759, 1788, 202, 202, 8837, 2932, 5093, 12587, 18, 270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15965, 67, 18573, 2532, 67, 9885, 15150, 382, 1488, 67, 917, 3733, 2532, 1046, 1435, 1216, 1185, 288, 4697, 202, 759, 1788, 202, 202, 8837, 2932, 5093, 12587, 18, 270...
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStatus.java/buggy/src/java/src/quickfix/fix43/ListStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
public Object put(String keyToUse, Object valueToPut)
public Object put(String key, Object value)
public Object put(String keyToUse, Object valueToPut) { if (this.size == 0) { this.key = keyToUse.toUpperCase().intern(); if (valueToPut instanceof String) { this.value = ((String) valueToPut).intern(); } else { this.value = valueToPut; } this.size = 1; return this.value; } else if (this.size == 1) { this.hidden = new LinkedHashMap<String, Object>(); this.hidden.put(this.key, this.value); this.key = null; this.value = null; this.size = 2; if (valueToPut instanceof String) { return this.hidden.put(keyToUse.toUpperCase().intern(), ((String) valueToPut).intern()); } // otherwise... return this.hidden.put(keyToUse.toUpperCase().intern(), valueToPut); } else { this.size++; if (valueToPut instanceof String) { return this.hidden.put(keyToUse.toUpperCase().intern(), ((String) valueToPut).intern()); } // otherwise... return this.hidden.put(keyToUse.toUpperCase().intern(), valueToPut); } }
49735 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49735/6a34a4cb5cc8374e5588b5833b5726f8ca03111d/OneOptimalNodemaster.java/buggy/JavaSource/org/aitools/programd/graph/OneOptimalNodemaster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1378, 12, 780, 498, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 2211, 18, 1467, 422, 374, 13, 3639, 288, 5411, 333, 18, 856, 273, 498, 18762, 18, 869, 8915, 7675, 267, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1378, 12, 780, 498, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 2211, 18, 1467, 422, 374, 13, 3639, 288, 5411, 333, 18, 856, 273, 498, 18762, 18, 869, 8915, 7675, 267, 79...
for (RepositoryTemplate info : connector.getTemplates()) { if (info.label.equals(text)) { setUrl(info.repositoryUrl); setAnonymous(info.anonymous);
RepositoryTemplate template = connector.getTemplate(text); if (template != null) { setUrl(template.repositoryUrl); setAnonymous(template.anonymous);
public void widgetSelected(SelectionEvent e) { String text = repositoryLabelCombo.getText(); for (RepositoryTemplate info : connector.getTemplates()) { if (info.label.equals(text)) { setUrl(info.repositoryUrl); setAnonymous(info.anonymous); try { Version version = Version.valueOf(info.version); setTracVersion(version); } catch (RuntimeException ex) { setTracVersion(Version.TRAC_0_9); } getContainer().updateButtons(); return; } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f0a3427e5ca929817bebd4cb4cea52e8c60c7864/TracRepositorySettingsPage.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 780, 977, 273, 3352, 2224, 16156, 18, 588, 1528, 5621, 9506, 202, 1884, 261, 3305, 2283, 1123, 294, 225, 8703, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 780, 977, 273, 3352, 2224, 16156, 18, 588, 1528, 5621, 9506, 202, 1884, 261, 3305, 2283, 1123, 294, 225, 8703, 18, 5...
ctype.interfaces = new ClassType[nInterfaces]; ctype.interfaceIndexes = new int[nInterfaces]; for (int i = 0; i < nInterfaces; i++)
if (nInterfaces > 0)
public void readClassInfo () throws IOException { ctype.access_flags = readUnsignedShort(); CpoolClass clas; String name; ctype.thisClassIndex = readUnsignedShort(); clas = (CpoolClass) ctype.constants.getForced(ctype.thisClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.this_name = name.replace('/', '.'); ctype.setSignature("L"+name+";"); ctype.superClassIndex = readUnsignedShort(); if (ctype.superClassIndex == 0) ctype.setSuper((ClassType) null); else { clas = (CpoolClass) ctype.constants.getForced(ctype.superClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.setSuper(name.replace('/', '.')); } int nInterfaces = readUnsignedShort(); ctype.interfaces = new ClassType[nInterfaces]; ctype.interfaceIndexes = new int[nInterfaces]; for (int i = 0; i < nInterfaces; i++) { ctype.interfaceIndexes[i] = readUnsignedShort(); clas = (CpoolClass) ctype.constants.getForced(ctype.superClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.interfaces[i] = ClassType.make(name.replace('/', '.')); } }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/45dca6cedead762f9b4921c11b708cfa37e02be3/ClassFileInput.java/buggy/gnu/bytecode/ClassFileInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 19455, 1832, 1216, 1860, 225, 288, 565, 11920, 18, 3860, 67, 7133, 273, 28198, 5621, 565, 385, 6011, 797, 23268, 31, 565, 514, 508, 31, 565, 11920, 18, 2211, 797, 1016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 19455, 1832, 1216, 1860, 225, 288, 565, 11920, 18, 3860, 67, 7133, 273, 28198, 5621, 565, 385, 6011, 797, 23268, 31, 565, 514, 508, 31, 565, 11920, 18, 2211, 797, 1016, ...
super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); }
super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); }
public NewFolderDialog(Shell parentShell, IContainer container) { super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f21a158e540a7a992bc7c1d5732d5d6926ff4f2c/NewFolderDialog.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1166, 3899, 6353, 12, 13220, 982, 13220, 16, 467, 2170, 1478, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 333, 18, 3782, 273, 1478, 31, 3639, 14109, 12, 10385, 2421, 22144, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1166, 3899, 6353, 12, 13220, 982, 13220, 16, 467, 2170, 1478, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 333, 18, 3782, 273, 1478, 31, 3639, 14109, 12, 10385, 2421, 22144, 50...
if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; }
double rad2Deg;
public TA_RetCode HT_DCPERIOD(int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double[] detrender_Odd = new double[3]; ; double[] detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd; double prev_detrender_Even; double prev_detrender_input_Odd; double prev_detrender_input_Even; double[] Q1_Odd = new double[3]; ; double[] Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd; double prev_Q1_Even; double prev_Q1_input_Odd; double prev_Q1_input_Even; double[] jI_Odd = new double[3]; ; double[] jI_Even = new double[3]; ; double jI; double prev_jI_Odd; double prev_jI_Even; double prev_jI_input_Odd; double prev_jI_input_Even; double[] jQ_Odd = new double[3]; ; double[] jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd; double prev_jQ_Even; double prev_jQ_input_Odd; double prev_jQ_input_Even; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg; double todayValue, smoothPeriod; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; rad2Deg = 180.0 / (4.0 * Math.atan(1)); lookbackTotal = 32 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_DCPERIOD .ordinal()]); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 3.0; trailingWMAValue = 0.0; i = 9; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; } while (--i != 0); hilbertIdx = 0; { detrender_Odd[0] = 0.0; detrender_Odd[1] = 0.0; detrender_Odd[2] = 0.0; detrender_Even[0] = 0.0; detrender_Even[1] = 0.0; detrender_Even[2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd[0] = 0.0; Q1_Odd[1] = 0.0; Q1_Odd[2] = 0.0; Q1_Even[0] = 0.0; Q1_Even[1] = 0.0; Q1_Even[2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd[0] = 0.0; jI_Odd[1] = 0.0; jI_Odd[2] = 0.0; jI_Even[0] = 0.0; jI_Even[1] = 0.0; jI_Even[2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd[0] = 0.0; jQ_Odd[1] = 0.0; jQ_Odd[2] = 0.0; jQ_Even[0] = 0.0; jQ_Even[1] = 0.0; jQ_Even[2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; while (today <= endIdx) { adjustedPrevPeriod = (0.075 * period) + 0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; if ((today % 2) == 0) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even[hilbertIdx]; detrender_Even[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even; prev_detrender_Even = b * prev_detrender_input_Even; detrender += prev_detrender_Even; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even[hilbertIdx]; Q1_Even[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even; prev_Q1_Even = b * prev_Q1_input_Even; Q1 += prev_Q1_Even; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even[hilbertIdx]; jI_Even[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even; prev_jI_Even = b * prev_jI_input_Even; jI += prev_jI_Even; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even[hilbertIdx]; jQ_Even[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even; prev_jQ_Even = b * prev_jQ_input_Even; jQ += prev_jQ_Even; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if (++hilbertIdx == 3) hilbertIdx = 0; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForEvenPrev3 - jQ)) + (0.8 * prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd[hilbertIdx]; detrender_Odd[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd; prev_detrender_Odd = b * prev_detrender_input_Odd; detrender += prev_detrender_Odd; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd[hilbertIdx]; Q1_Odd[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd; prev_Q1_Odd = b * prev_Q1_input_Odd; Q1 += prev_Q1_Odd; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd[hilbertIdx]; jI_Odd[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd; prev_jI_Odd = b * prev_jI_input_Odd; jI += prev_jI_Odd; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd[hilbertIdx]; jQ_Odd[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd; prev_jQ_Odd = b * prev_jQ_input_Odd; jQ += prev_jQ_Odd; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForOddPrev3 - jQ)) + (0.8 * prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2 * ((I2 * prevI2) + (Q2 * prevQ2))) + (0.8 * Re); Im = (0.2 * ((I2 * prevQ2) - (Q2 * prevI2))) + (0.8 * Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if ((Im != 0.0) && (Re != 0.0)) period = 360.0 / (Math.atan(Im / Re) * rad2Deg); tempReal2 = 1.5 * tempReal; if (period > tempReal2) period = tempReal2; tempReal2 = 0.67 * tempReal; if (period < tempReal2) period = tempReal2; if (period < 6) period = 6; else if (period > 50) period = 50; period = (0.2 * period) + (0.8 * tempReal); smoothPeriod = (0.33 * period) + (0.67 * smoothPeriod); if (today >= startIdx) { outReal[outIdx++] = smoothPeriod; } today++; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 19408, 67, 5528, 28437, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 19408, 67, 5528, 28437, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, ...
m.frame.setSize(width,height); m.frame.centerFrame();
m.frame1.setSize(width,height); m.frame1.centerFrame();
static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances if (isSpecified("-d",args)) { strapper = new BootStrapper(); strapper.start(); } } else { System.exit(0); } } My5250 m = new My5250(); if (strapper != null) strapper.addBootListener(m); if (args.length > 0) { if (isSpecified("-width",args) || isSpecified("-height",args)) { int width = m.frame.getWidth(); int height = m.frame.getHeight(); if (isSpecified("-width",args)) { width = Integer.parseInt(m.getParm("-width",args)); } if (isSpecified("-height",args)) { height = Integer.parseInt(m.getParm("-height",args)); } m.frame.setSize(width,height); m.frame.centerFrame(); } /** * @todo this crap needs to be rewritten it is a mess */ if (args[0].startsWith("-")) { // check if a session parameter is specified on the command line if (isSpecified("-s",args)) { String sd = getParm("-s",args); if (sessions.containsKey(sd)) { sessions.setProperty("emul.default",sd); } else { args = null; } } // check if a locale parameter is specified on the command line if (isSpecified("-L",args)) { Locale.setDefault(parseLocal(getParm("-L",args))); LangTool.init(); if (args[0].startsWith("-")) { m.sessionArgs = null; } else { m.frame.setVisible(true); LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); if (isSpecified("-s",args)) m.sessionArgs = args; else m.sessionArgs = null; } } else { LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); m.sessionArgs = null; } if (m.sessionArgs != null) { // BEGIN // 2001/09/19 natural computing MR Vector os400_sessions = new Vector(); Vector session_params = new Vector(); for (int x = 0; x < args.length; x++) { if (args[x].equals("-s")) { x++; if (args[x] != null && sessions.containsKey(args[x])) { os400_sessions.addElement(args[x]); }else{ x--; session_params.addElement(args[x]); } }else{ session_params.addElement(args[x]); } } for (int x = 0; x < session_params.size(); x++) m.sessionArgs[x] = session_params.elementAt(x).toString(); m.startNewSession(); for (int x = 1; x < os400_sessions.size(); x++ ) { String sel = os400_sessions.elementAt(x).toString(); if (!m.frame.isVisible()) m.frame.setVisible(true); m.sessionArgs = new String[NUM_PARMS]; m.parseArgs(sessions.getProperty(sel),m.sessionArgs); m.newSession(sel,m.sessionArgs); } // 2001/09/19 natural computing MR // END } else { m.startNewSession(); } }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/4c59a6fee6c7505cf2062ba9286c6ac043f9c52f/My5250.java/buggy/src/org/tn5250j/My5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 760, 1071, 918, 2774, 12, 780, 8526, 833, 13, 288, 1377, 309, 16051, 291, 17068, 2932, 17, 14202, 3113, 1968, 3719, 288, 540, 309, 16051, 1893, 15817, 1585, 438, 457, 12, 1968, 3719, 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, 565, 760, 1071, 918, 2774, 12, 780, 8526, 833, 13, 288, 1377, 309, 16051, 291, 17068, 2932, 17, 14202, 3113, 1968, 3719, 288, 540, 309, 16051, 1893, 15817, 1585, 438, 457, 12, 1968, 3719, 288,...
void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException;
void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException;
void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException;
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/I_CmsVfsDriver.java/buggy/src/org/opencms/db/I_CmsVfsDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 1350, 12, 4747, 4331, 1042, 9881, 16, 2149, 4109, 1984, 16, 15792, 15035, 16, 1160, 8526, 913, 13, 1216, 2149, 751, 9773, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 1350, 12, 4747, 4331, 1042, 9881, 16, 2149, 4109, 1984, 16, 15792, 15035, 16, 1160, 8526, 913, 13, 1216, 2149, 751, 9773, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
final PaymentsManagementDTO managementDTO = (PaymentsManagementDTO) RenderUtils.getViewState( "paymentsManagementDTO").getMetaObject().getObject(); request.setAttribute("paymentsManagementDTO", managementDTO); if (managementDTO.getSelectedEntries().isEmpty()) { addActionMessage(request, "error.administrativeOffice.payments.guide.entries.selection.is.required"); return mapping.findForward("showEvents"); } else { return mapping.findForward("showGuide"); }
return internalPreparePrintGuide(mapping, request, "showGuide", "showEvents");
public ActionForward preparePrintGuide(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { final PaymentsManagementDTO managementDTO = (PaymentsManagementDTO) RenderUtils.getViewState( "paymentsManagementDTO").getMetaObject().getObject(); request.setAttribute("paymentsManagementDTO", managementDTO); if (managementDTO.getSelectedEntries().isEmpty()) { addActionMessage(request, "error.administrativeOffice.payments.guide.entries.selection.is.required"); return mapping.findForward("showEvents"); } else { return mapping.findForward("showGuide"); } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/cefa23f5571b1584f2bdd0fa4b03e59f6afe7e8a/PaymentsManagementDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/commons/administrativeOffice/payments/PaymentsManagementDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 2911, 5108, 17424, 12, 1803, 3233, 2874, 16, 4382, 1204, 1301, 1204, 16, 202, 565, 9984, 590, 16, 12446, 766, 13, 288, 202, 6385, 13838, 1346, 10998, 19792, 11803, 19792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 2911, 5108, 17424, 12, 1803, 3233, 2874, 16, 4382, 1204, 1301, 1204, 16, 202, 565, 9984, 590, 16, 12446, 766, 13, 288, 202, 6385, 13838, 1346, 10998, 19792, 11803, 19792, ...
if (infoPopup != null)
if (infoPopup != null) {
public void widgetSelected(SelectionEvent e) { // If a proposal has been selected, show it in the popup. // Otherwise close the popup. if (e.item == null) { if (infoPopup != null) infoPopup.close(); } else { TableItem item = (TableItem) e.item; IContentProposal proposal = (IContentProposal) item .getData(); showProposalDescription(proposal.getDescription()); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 6862, 202, 759, 971, 279, 14708, 711, 2118, 3170, 16, 2405, 518, 316, 326, 10431, 18, 6862, 202, 759, 5272, 1746, 326, 10431, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 6862, 202, 759, 971, 279, 14708, 711, 2118, 3170, 16, 2405, 518, 316, 326, 10431, 18, 6862, 202, 759, 5272, 1746, 326, 10431, 1...
NativeFunction f = activation.funObj; if (index < f.argCount) activation.put(f.argNames[index], activation, value); else args[index] = value; return;
if (args[index] != NOT_FOUND) { if (sharedWithActivation(index)) { String argName = activation.funObj.argNames[index]; activation.put(argName, activation, value); return; } synchronized (this) { if (args[index] != NOT_FOUND) { if (args == activation.getOriginalArguments()) { args = (Object[])args.clone(); } args[index] = value; return; } } }
public void put(int index, Scriptable start, Object value) { if (0 <= index && index < args.length) { NativeFunction f = activation.funObj; if (index < f.argCount) activation.put(f.argNames[index], activation, value); else args[index] = value; return; } super.put(index, start, value); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5808f6b10c57fdeefef8f2176ac3d7dbf6310f5b/Arguments.java/buggy/src/org/mozilla/javascript/Arguments.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 474, 770, 16, 22780, 787, 16, 1033, 460, 13, 288, 3639, 309, 261, 20, 1648, 770, 597, 770, 411, 833, 18, 2469, 13, 288, 5411, 16717, 2083, 284, 273, 10027, 18, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 474, 770, 16, 22780, 787, 16, 1033, 460, 13, 288, 3639, 309, 261, 20, 1648, 770, 597, 770, 411, 833, 18, 2469, 13, 288, 5411, 16717, 2083, 284, 273, 10027, 18, 12...
AnalysisContext analysisContext = new AnalysisContext(lookupFailureCallback);
AnalysisContext analysisContext = AnalysisContext.create(lookupFailureCallback);
public static void main(String[] argv) throws Exception { if (argv.length != 1) { System.err.println("Usage: " + DominatorsAnalysis.class.getName() + " <classfile>"); System.exit(1); } RepositoryLookupFailureCallback lookupFailureCallback = new DebugRepositoryLookupFailureCallback(); AnalysisContext analysisContext = new AnalysisContext(lookupFailureCallback); JavaClass jclass = new ClassParser(argv[0]).parse(); ClassContext classContext = analysisContext.getClassContext(jclass); String methodName = System.getProperty("dominators.method"); boolean ignoreExceptionEdges = Boolean.getBoolean("dominators.ignoreExceptionEdges"); Method[] methodList = jclass.getMethods(); for (Method method : methodList) { if (method.isNative() || method.isAbstract()) continue; if (methodName != null && !methodName.equals(method.getName())) continue; System.out.println("Method: " + method.getName()); CFG cfg = classContext.getCFG(method); DepthFirstSearch dfs = classContext.getDepthFirstSearch(method); DominatorsAnalysis analysis = new DominatorsAnalysis(cfg, dfs, ignoreExceptionEdges); Dataflow<BitSet, DominatorsAnalysis> dataflow = new Dataflow<BitSet, DominatorsAnalysis>(cfg, analysis); dataflow.execute(); for (Iterator<BasicBlock> j = cfg.blockIterator(); j.hasNext();) { BasicBlock block = j.next(); BitSet dominators = analysis.getResultFact(block); System.out.println("Block " + block.getId() + ": " + dominators); } } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1e623e9ca4892a064c56767266a899bd70d63789/DominatorsAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/DominatorsAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 5261, 13, 1216, 1185, 288, 202, 202, 430, 261, 19485, 18, 2469, 480, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1216, 1185, 288, 202, 202, 430, 261, 19485, 18, 2469, 480, 404, 13, 288, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 5357, 30, 315, 39...
synchronized (m_doc)
Document doc = DocumentHolder.m_doc; synchronized (doc)
public static NodeList split(String str, String pattern) { try { // Lock the instance to ensure thread safety if (m_doc == null) { synchronized (m_instance) { if (m_doc == null) m_doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); } } } catch(ParserConfigurationException pce) { throw new org.apache.xml.utils.WrappedRuntimeException(pce); } NodeSet resultSet = new NodeSet(); resultSet.setShouldCacheNodes(true); boolean done = false; int fromIndex = 0; int matchIndex = 0; String token = null; while (!done && fromIndex < str.length()) { matchIndex = str.indexOf(pattern, fromIndex); if (matchIndex >= 0) { token = str.substring(fromIndex, matchIndex); fromIndex = matchIndex + pattern.length(); } else { done = true; token = str.substring(fromIndex); } synchronized (m_doc) { Element element = m_doc.createElement("token"); Text text = m_doc.createTextNode(token); element.appendChild(text); resultSet.addNode(element); } } return resultSet; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1d55a0e1d61c15bdbc27b22dba8853a8acf4cc5b/ExsltStrings.java/buggy/src/org/apache/xalan/lib/ExsltStrings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 16781, 1416, 12, 780, 609, 16, 514, 1936, 13, 225, 288, 565, 775, 565, 288, 1377, 368, 3488, 326, 791, 358, 3387, 2650, 24179, 1377, 309, 261, 81, 67, 2434, 422, 446, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 16781, 1416, 12, 780, 609, 16, 514, 1936, 13, 225, 288, 565, 775, 565, 288, 1377, 368, 3488, 326, 791, 358, 3387, 2650, 24179, 1377, 309, 261, 81, 67, 2434, 422, 446, 13, 1...
viewer.setSorter(new ViewerSorter());
viewer.setSorter(new ViewerSorter() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof TaskRepository && e2 instanceof TaskRepository) { TaskRepository t1 = (TaskRepository)e1; TaskRepository t2 = (TaskRepository)e2; return (t1.getKind() + t1.getUrl()).compareTo(t2.getKind() + t2.getUrl()); } else { return super.compare(viewer, e1, e2); } } });
public void createPartControl(Composite parent) { viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setSorter(new ViewerSorter()); viewer.setInput(getViewSite()); hookContextMenu(); contributeToActionBars(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/bdcbae990a075b8b4ed1f30e4e6d0b8f052af02b/TaskRepositoriesView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskRepositoriesView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 25256, 273, 394, 3555, 18415, 12, 2938, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 25256, 273, 394, 3555, 18415, 12, 2938, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 44, 67, 2312, 14555, 571, 348, ...
setSamples, 2, 2, null, null, null, false);
setSamples, 2, 2, null, null, null, false, false);
public DataImpl getData() { float padding = 0.02f * overlay.getScalingValue(); double xx = x2 - x1; double yy = y2 - y1; double dist = Math.sqrt(xx * xx + yy * yy); double mult = padding / dist; float qx = (float) (mult * xx); float qy = (float) (mult * yy); RealTupleType domain = overlay.getDomainType(); RealTupleType range = overlay.getRangeType(); float[][] setSamples = { {x1, x2 - qy, x2 + qy, x1}, {y1, y2 + qx, y2 - qx, y1} }; boolean missing = false; for (int i=0; i<setSamples.length; i++) { for (int j=0; j<setSamples[i].length; j++) { if (Float.isNaN(setSamples[i][j])) missing = true; } } GriddedSet fieldSet = null; try { if (filled && !missing) { // CTR START HERE figure out how to make the friggin' grid valid setSamples[0][0] = (x1 + x2) / 2; setSamples[1][0] = (y1 + y2) / 2; fieldSet = new Gridded2DSet(domain, setSamples, 2, 2, null, null, null, false); } else { fieldSet = new Gridded2DSet(domain, setSamples, setSamples[0].length, null, null, null, false); } } catch (VisADException exc) { exc.printStackTrace(); } float r = color.getRed() / 255f; float g = color.getGreen() / 255f; float b = color.getBlue() / 255f; float[][] fieldSamples = new float[3][setSamples[0].length]; Arrays.fill(fieldSamples[0], r); Arrays.fill(fieldSamples[1], g); Arrays.fill(fieldSamples[2], b); FlatField field = null; try { FunctionType fieldType = new FunctionType(domain, range); field = new FlatField(fieldType, fieldSet); field.setSamples(fieldSamples, false); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } return field; }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/fd1b0a858f008d0748107a71f2765d636dcdbf20/OverlayArrow.java/clean/loci/visbio/overlays/OverlayArrow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 2828, 4303, 1435, 288, 565, 1431, 4992, 273, 374, 18, 3103, 74, 380, 9218, 18, 588, 8471, 620, 5621, 565, 1645, 12223, 273, 619, 22, 300, 619, 21, 31, 565, 1645, 9016, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 2828, 4303, 1435, 288, 565, 1431, 4992, 273, 374, 18, 3103, 74, 380, 9218, 18, 588, 8471, 620, 5621, 565, 1645, 12223, 273, 619, 22, 300, 619, 21, 31, 565, 1645, 9016, 273, ...
if (log.isDebug()) debug = "Execute sql: "+sql;
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(ExecSQLMeta)smi; data=(ExecSQLData)sdi; debug = "execute SQL start"; //$NON-NLS-1$ Row row = null; if (!meta.isExecutedEachInputRow()) { debug = "exec once: return result"; //$NON-NLS-1$ row = getResultRow(data.result, meta.getUpdateField(), meta.getInsertField(), meta.getDeleteField(), meta.getReadField()); putRow(row); setOutputDone(); // Stop processing, this is all we do! return false; } row = getRow(); if (row==null) // no more input to be expected... { setOutputDone(); return false; } StringBuffer sql = new StringBuffer( meta.getSql() ); if (first) // we just got started { first=false; debug = "Find the indexes of the arguments"; //$NON-NLS-1$ // Find the indexes of the arguments data.argumentIndexes = new int[meta.getArguments().length]; for (int i=0;i<meta.getArguments().length;i++) { data.argumentIndexes[i] = row.searchValueIndex(meta.getArguments()[i]); if (data.argumentIndexes[i]<0) { logError(Messages.getString("ExecSQL.Log.ErrorFindingField")+meta.getArguments()[i]+"]"); //$NON-NLS-1$ //$NON-NLS-2$ throw new KettleStepException(Messages.getString("ExecSQL.Exception.CouldNotFindField",meta.getArguments()[i])); //$NON-NLS-1$ //$NON-NLS-2$ } } debug = "Find the locations of the question marks in the String..."; //$NON-NLS-1$ // Find the locations of the question marks in the String... // We replace the question marks with the values... // We ignore quotes etc. to make inserts easier... data.markerPositions = new ArrayList(); int len = sql.length(); int pos = len-1; while (pos>=0) { if (sql.charAt(pos)=='?') data.markerPositions.add(new Integer(pos)); // save the marker position pos--; } } debug = "Replace the values in the SQL string..."; //$NON-NLS-1$ // Replace the values in the SQL string... for (int i=0;i<data.markerPositions.size();i++) { Value value = row.getValue( data.argumentIndexes[data.markerPositions.size()-i-1]); int pos = ((Integer)data.markerPositions.get(i)).intValue(); sql.replace(pos, pos+1, value.getString()); // replace the '?' with the String in the row. } if (log.isDebug()) debug = "Execute sql: "+sql; //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("ExecSQL.Log.ExecutingSQLScript")+Const.CR+sql); //$NON-NLS-1$ data.result = data.db.execStatements(sql.toString()); debug = "Get result"; //$NON-NLS-1$ Row add = getResultRow(data.result, meta.getUpdateField(), meta.getInsertField(), meta.getDeleteField(), meta.getReadField()); row.addRow(add); if (!data.db.isAutoCommit()) data.db.commit(); putRow(row); // send it out! if ((linesWritten>0) && (linesWritten%Const.ROWS_UPDATE)==0) logBasic(Messages.getString("ExecSQL.Log.LineNumber")+linesWritten); //$NON-NLS-1$ return true; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3f39d037ba2ddf06fc422d6ae1f3add16df6eae5/ExecSQL.java/clean/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1207, 1999, 12, 4160, 2781, 1358, 3029, 77, 16, 8693, 751, 1358, 272, 3211, 13, 1216, 1475, 278, 5929, 503, 202, 95, 3639, 2191, 28657, 1905, 3997, 2781, 13, 4808, 77, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1207, 1999, 12, 4160, 2781, 1358, 3029, 77, 16, 8693, 751, 1358, 272, 3211, 13, 1216, 1475, 278, 5929, 503, 202, 95, 3639, 2191, 28657, 1905, 3997, 2781, 13, 4808, 77, 3...
TokenMarker.LineContext context = lineMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; char[] oldSpanEndSubst; if(context == null) { oldRule = null; oldRules = null; oldSpanEndSubst = null; } else { oldRule = context.inRule; oldRules = context.rules; oldSpanEndSubst = (context.parent != null ? context.parent.spanEndSubst : null); }
oldContext = lineMgr.getLineContext(i);
public void markTokens(int lineIndex, TokenHandler tokenHandler) { Segment seg; if(SwingUtilities.isEventDispatchThread()) seg = this.seg; else seg = new Segment(); if(lineIndex < 0 || lineIndex >= lineMgr.getLineCount()) throw new ArrayIndexOutOfBoundsException(lineIndex); int firstInvalidLineContext = lineMgr.getFirstInvalidLineContext(); int start; if(textMode || firstInvalidLineContext == -1) { start = lineIndex; } else { start = Math.min(firstInvalidLineContext, lineIndex); } if(Debug.TOKEN_MARKER_DEBUG) Log.log(Log.DEBUG,this,"tokenize from " + start + " to " + lineIndex); for(int i = start; i <= lineIndex; i++) { getLineText(i,seg); TokenMarker.LineContext context = lineMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; char[] oldSpanEndSubst; if(context == null) { //System.err.println(i + ": null context"); oldRule = null; oldRules = null; oldSpanEndSubst = null; } else { oldRule = context.inRule; oldRules = context.rules; oldSpanEndSubst = (context.parent != null ? context.parent.spanEndSubst : null); } TokenMarker.LineContext prevContext = ( (i == 0 || textMode) ? null : lineMgr.getLineContext(i - 1) ); context = tokenMarker.markTokens(prevContext, (i == lineIndex ? tokenHandler : DummyTokenHandler.INSTANCE),seg); lineMgr.setLineContext(i,context); } int lineCount = lineMgr.getLineCount(); if(lineCount - 1 == lineIndex) lineMgr.setFirstInvalidLineContext(-1); //XXX //else if(nextLineRequested) // lineMgr.setFirstInvalidLineContext(lineIndex + 1); else if(firstInvalidLineContext == -1) /* do nothing */; else { lineMgr.setFirstInvalidLineContext(Math.max( firstInvalidLineContext,lineIndex + 1)); } } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/222c09d9e5611fef4dfb1ac6f0298aedd5529681/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2267, 5157, 12, 474, 980, 1016, 16, 3155, 1503, 1147, 1503, 13, 202, 95, 202, 202, 4131, 2291, 31, 202, 202, 430, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 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, 2267, 5157, 12, 474, 980, 1016, 16, 3155, 1503, 1147, 1503, 13, 202, 95, 202, 202, 4131, 2291, 31, 202, 202, 430, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 10756, ...
if(rp.getTurn()%100==0 && getHP()<getBaseHP());
if(rp.getTurn()%100==0 && getHP()<getBaseHP())
public void logic() { Log4J.startMethod(logger,"logic"); if(getNearestPlayer(20)==null && owner==null) // if there is no player near and none will see us... { stop(); world.modify(this); return; } hungry++; SheepFood food=null; if(hungry>50 && (food=getNearestFood(6))!=null && weight<MAX_WEIGHT) { if(nextto(food,0.25)) { logger.debug("Sheep eats"); setIdea("eat"); eat(food); clearPath(); stop(); } else { logger.debug("Sheep moves to food"); setIdea("food");// setMovement(food,0,0); setAsynchonousMovement(food,0,0); moveto(SPEED); } } else if(owner==null) { logger.debug("Sheep(ownerless) moves randomly"); setIdea("walk"); moveRandomly(SPEED); } else if(owner!=null && !nextto(owner,0.25)) { logger.debug("Sheep(owner) moves to Owner"); setIdea("follow");// setMovement(owner,0,0); setAsynchonousMovement(owner,0,0); moveto(SPEED); } else { logger.debug("Sheep has nothing to do"); setIdea("stop"); stop(); clearPath(); } if(owner!=null && owner.has("text") && owner.get("text").contains("sheep")) { logger.debug("Sheep(owner) moves to Owner"); setIdea("follow"); clearPath();// setMovement(owner,0,0); setAsynchonousMovement(owner,0,0); moveto(SPEED); } if(!stopped()) { StendhalRPAction.move(this); // if we collided with something we stop and clear the path if (collided()) { stop(); clearPath(); } } if(rp.getTurn()%100==0 && getHP()<getBaseHP()); { if(getHP()+5<=getBaseHP()) { setHP(getHP()+5); } else { setHP(getBaseHP()); } } world.modify(this); Log4J.finishMethod(logger,"logic"); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/1e56146169cbcd6f1065cc0b235e5f35055c7c5d/Sheep.java/buggy/src/games/stendhal/server/entity/creature/Sheep.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4058, 1435, 565, 288, 565, 1827, 24, 46, 18, 1937, 1305, 12, 4901, 10837, 28339, 8863, 565, 309, 12, 588, 28031, 12148, 12, 3462, 13, 631, 2011, 597, 3410, 631, 2011, 13, 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, 282, 1071, 918, 4058, 1435, 565, 288, 565, 1827, 24, 46, 18, 1937, 1305, 12, 4901, 10837, 28339, 8863, 565, 309, 12, 588, 28031, 12148, 12, 3462, 13, 631, 2011, 597, 3410, 631, 2011, 13, 368...
return graphics.indexOf(geometry);
synchronized (graphics) { return graphics.indexOf(geometry); }
protected int _indexOf(OMGeometry geometry) { return graphics.indexOf(geometry); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/5c8becaa532b8787aab339fe2dead5d8a29304d4/OMGraphicList.java/buggy/src/openmap/com/bbn/openmap/omGraphics/OMGraphicList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 389, 31806, 12, 1872, 9823, 5316, 13, 288, 202, 22043, 261, 31586, 13, 288, 327, 17313, 18, 31806, 12, 14330, 1769, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 389, 31806, 12, 1872, 9823, 5316, 13, 288, 202, 22043, 261, 31586, 13, 288, 327, 17313, 18, 31806, 12, 14330, 1769, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
break;
continue Loop;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/369d8e109106915195bef3af1282543ab09e3869/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
subtemplates = doc.getAllSubElements();
subtemplates = doc.getAllSubElements(templateSelector);
public boolean subtemplatesCacheable(A_CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) { boolean cacheable = true; CmsXmlTemplateFile doc = null; Vector subtemplates = null; try { doc = this.getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); doc.init(cms, templateFile); subtemplates = doc.getAllSubElements(); } catch(Exception e) { System.err.println(e); return false; } int numSubtemplates = subtemplates.size(); for(int i=0; i<numSubtemplates; i++) { String elName = (String)subtemplates.elementAt(i); String className = null; String templateName = null; try { className = getTemplateClassName(elName, doc, parameters); templateName = getTemplateFileName(elName, doc, parameters); } catch(CmsException e) { // There was an error while reading the class name or template name // from the subtemplate. // So we cannot determine the cacheability. if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + "Could not determine cacheability of subelement " + elName + " in template file " + doc.getFilename() + ". There were missing datablocks."); } return false; } try { I_CmsTemplate templClass = (I_CmsTemplate)CmsTemplateClassManager.getClassInstance(cms, className); cacheable = cacheable && templClass.isCacheable(cms, templateName, elName, parameters, null); } catch(Exception e) { System.err.println("E: " + e); } } return cacheable; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a095732b650580ceb1110310aced8c5bc3844074/CmsXmlTemplate.java/clean/src/com/opencms/template/CmsXmlTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 720, 8502, 1649, 429, 12, 37, 67, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 18559, 1472, 16, 514, 1542, 4320, 13, 288, 540, 1250, 27730, 273, 638, 31, 3639, 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, 1250, 720, 8502, 1649, 429, 12, 37, 67, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 18559, 1472, 16, 514, 1542, 4320, 13, 288, 540, 1250, 27730, 273, 638, 31, 3639, 16084...
if (IS_ARG() && ISSPACE(c)) {
if (isArgState() && isSpace(c)) {
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 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, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261...
double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; }
double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; }
public static char toUint16(Object val) { long int16 = 0x10000; double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } d = Math.IEEEremainder(d, int16); d = d >= 0 ? d : d + int16; return (char) Math.floor(d); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/143829c7ce50e2f730490d4ac63f6e9ac9322095/ScriptRuntime.java/buggy/js/rhino/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1149, 358, 5487, 2313, 12, 921, 1244, 13, 288, 202, 5748, 509, 2313, 273, 374, 92, 23899, 31, 202, 9056, 302, 273, 358, 1854, 12, 1125, 1769, 202, 430, 261, 72, 480, 302, 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, 760, 1149, 358, 5487, 2313, 12, 921, 1244, 13, 288, 202, 5748, 509, 2313, 273, 374, 92, 23899, 31, 202, 9056, 302, 273, 358, 1854, 12, 1125, 1769, 202, 430, 261, 72, 480, 302, 7...
addMenuItem(menu, "Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcutKeyMask, "game-info");
menu.addItem("Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcut, "game-info");
private JMenu createMenuEdit() { JMenu menu = createMenu("Edit", KeyEvent.VK_E); addMenuItem(menu, "Find in Comments...", KeyEvent.VK_F, KeyEvent.VK_F, m_shortcutKeyMask, "find-in-comments"); m_itemFindNext = addMenuItem(menu, "Find Next", KeyEvent.VK_N, KeyEvent.VK_F3, getFunctionKeyShortcut(), "find-next"); m_itemFindNext.setEnabled(false); menu.addSeparator(); addMenuItem(menu, "Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcutKeyMask, "game-info"); menu.add(createBoardSizeMenu()); menu.add(createHandicapMenu()); menu.addSeparator(); m_itemMakeMainVar = addMenuItem(menu, "Make Main Variation", KeyEvent.VK_M, "make-main-variation"); m_itemKeepOnlyMainVar = addMenuItem(menu, "Delete Side Variations", KeyEvent.VK_D, "keep-only-main-variation"); m_itemKeepOnlyPosition = addMenuItem(menu, "Keep Only Position", KeyEvent.VK_K, "keep-only-position"); m_itemTruncate = addMenuItem(menu, "Truncate", KeyEvent.VK_T, "truncate"); m_itemTruncateChildren = addMenuItem(menu, "Truncate Children", KeyEvent.VK_C, "truncate-children"); menu.addSeparator(); m_itemSetup = new JCheckBoxMenuItem("Setup Mode"); addMenuItem(menu, m_itemSetup, KeyEvent.VK_S, "setup"); ButtonGroup group = new ButtonGroup(); m_itemSetupBlack = addRadioItem(menu, group, "Setup Black", KeyEvent.VK_B, "setup-black"); m_itemSetupBlack.setSelected(true); m_itemSetupWhite = addRadioItem(menu, group, "Setup White", KeyEvent.VK_W, "setup-white"); return menu; }
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/d10ef3afb87b5fa533364efda721c197866c21a6/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 4599, 752, 4599, 4666, 1435, 565, 288, 3639, 804, 4599, 3824, 273, 752, 4599, 2932, 4666, 3113, 23737, 18, 58, 47, 67, 41, 1769, 3639, 527, 12958, 12, 5414, 16, 315, 3125, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 4599, 752, 4599, 4666, 1435, 565, 288, 3639, 804, 4599, 3824, 273, 752, 4599, 2932, 4666, 3113, 23737, 18, 58, 47, 67, 41, 1769, 3639, 527, 12958, 12, 5414, 16, 315, 3125, 31...
public AdminWriter(String lineSeparator) {
public AdminWriter(String lineSeparator, final String charset) {
public AdminWriter(String lineSeparator) { myLineSeparator = lineSeparator; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3de0fd6612b01325d3a8e2dd29c980447948f32c/AdminWriter.java/buggy/plugins/cvs2/smartcvs-src/org/netbeans/lib/cvsclient/admin/AdminWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7807, 2289, 12, 780, 31053, 16, 727, 514, 4856, 13, 288, 1850, 3399, 1670, 6581, 273, 31053, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7807, 2289, 12, 780, 31053, 16, 727, 514, 4856, 13, 288, 1850, 3399, 1670, 6581, 273, 31053, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for "
throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for "
public void addProperty(final String name, final boolean readable, final boolean writeable) { final PropertyInfo info = new PropertyInfo(); info.setReadable(readable); info.setWriteable(writeable); try { if (readable) { info.setReadMethod(linkedClass_.getMethod(GETTER_PREFIX + name, null)); } } catch (final NoSuchMethodException e) { throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for " + name + " property in " + linkedClass_.getName()); } // For the setters, we have to loop through the methods since we do not know what type of argument // the method takes. if (writeable) { final Method[] methods = linkedClass_.getMethods(); final String setMethodName = SETTER_PREFIX + name; for( int i=0; i<methods.length; i++ ) { if( methods[i].getName().equals(setMethodName) && methods[i].getParameterTypes().length == 1 ) { info.setWriteMethod(methods[i]); break; } } if(info.getWriteMethod() == null) { throw new IllegalStateException("Method '" + SETTER_PREFIX + name + "' was not found for " + name + " property in " + linkedClass_.getName()); } } propertyMap_.put(name, info); }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/a29b4d215e65ac8211b0fc8aaf4d375d3c5c55c3/ClassConfiguration.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/configuration/ClassConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14324, 12, 6385, 514, 508, 16, 727, 1250, 7471, 16, 727, 1250, 30223, 13, 288, 3639, 727, 4276, 966, 1123, 273, 394, 4276, 966, 5621, 3639, 1123, 18, 542, 14151, 12, 11018, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14324, 12, 6385, 514, 508, 16, 727, 1250, 7471, 16, 727, 1250, 30223, 13, 288, 3639, 727, 4276, 966, 1123, 273, 394, 4276, 966, 5621, 3639, 1123, 18, 542, 14151, 12, 11018, 1...
private void pushAsWrapperObject(double num) { // Generate code to create the new numeric constant // // new java/lang/<WrapperType> // dup // push <number> // invokestatic java/lang/<WrapperType>/<init>(X)V String wrapperType; String signature; boolean isInteger; int inum = (int)num; if (inum == num) { isInteger = true; if ((byte)inum == inum) { wrapperType = "java/lang/Byte"; signature = "(B)V"; } else if ((short)inum == inum) { wrapperType = "java/lang/Short"; signature = "(S)V"; } else { wrapperType = "java/lang/Integer"; signature = "(I)V"; } } else { isInteger = false; // See comments in push(double) //if ((float)num == num) { // wrapperType = "java/lang/Float"; // signature = "(F)V"; //} //else { wrapperType = "java/lang/Double"; signature = "(D)V"; //} } addByteCode(ByteCode.NEW, wrapperType); addByteCode(ByteCode.DUP); if (isInteger) { push(inum); } else { push(num); } addSpecialInvoke(wrapperType, "<init>", signature); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1817, 1463, 3611, 921, 12, 9056, 818, 13, 565, 288, 3639, 368, 6654, 981, 358, 752, 326, 394, 6389, 5381, 3639, 368, 3639, 368, 394, 2252, 19, 4936, 28177, 3611, 559, 34, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1817, 1463, 3611, 921, 12, 9056, 818, 13, 565, 288, 3639, 368, 6654, 981, 358, 752, 326, 394, 6389, 5381, 3639, 368, 3639, 368, 394, 2252, 19, 4936, 28177, 3611, 559, 34, 363...
for (int idx = 0; idx < table.getColumnCount(); idx++)
for (int idx = 0; idx < pkColumns.length; idx++)
private Identity buildIdentityFromPKs(Table table, DynaBean bean) { Identity identity = new Identity(table.getName()); for (int idx = 0; idx < table.getColumnCount(); idx++) { Column column = table.getColumn(idx); identity.setIdentityColumn(column.getName(), bean.get(column.getName())); } return identity; }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/a1e8106e78949f71a018fcfcf77f648db0ac37b1/DataToDatabaseSink.java/buggy/src/java/org/apache/ddlutils/io/DataToDatabaseSink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7808, 1361, 4334, 1265, 8784, 87, 12, 1388, 1014, 16, 463, 23041, 3381, 3931, 13, 565, 288, 3639, 7808, 4215, 273, 394, 7808, 12, 2121, 18, 17994, 10663, 3639, 364, 261, 474, 2067, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7808, 1361, 4334, 1265, 8784, 87, 12, 1388, 1014, 16, 463, 23041, 3381, 3931, 13, 565, 288, 3639, 7808, 4215, 273, 394, 7808, 12, 2121, 18, 17994, 10663, 3639, 364, 261, 474, 2067, ...
AbstractTableModel model = new AbstractTableModel() { public int getRowCount() { return quickDialData.size(); } public int getColumnCount() { return 4; } public String getColumnName(int column) { switch (column) { case 0: return messages.getString("description"); case 1: return messages.getString("quickdial"); case 2: return messages.getString("vanity"); case 3: return messages.getString("number"); default: return null; } } public Object getValueAt(int rowIndex, int columnIndex) { QuickDial quick = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: return quick.getDescription(); case 1: return quick.getQuickdial(); case 2: return quick.getVanity(); case 3: return quick.getNumber(); default: return null; } } /** * Sets a value to a specific position */ public void setValueAt(Object object, int rowIndex, int columnIndex) { if (rowIndex < table.getRowCount()) { QuickDial dial = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: dial.setDescription(object.toString()); break; case 1: dial.setQuickdial(object.toString()); break; case 2: dial.setVanity(object.toString()); break; case 3: dial.setNumber(object.toString()); break; } fireTableCellUpdated(rowIndex, columnIndex); } } }; table = new JTable(model) {
table = new JTable(dataModel) {
private void drawDialog() { super.dialogInit(); setTitle(messages.getString("quickdial")); setModal(true); setLayout(new BorderLayout()); getContentPane().setLayout(new BorderLayout()); JPanel bottomPane = new JPanel(); JPanel topPane = new JPanel(); topPane.setLayout(new FlowLayout(FlowLayout.CENTER)); KeyListener keyListener = (new KeyAdapter() { public void keyPressed(KeyEvent e) { Debug.msg("KEY: " + e); if (e.getKeyCode() == KeyEvent.VK_ESCAPE || (e.getSource() == cancelButton && e.getKeyCode() == KeyEvent.VK_ENTER)) { pressed_OK = false; setVisible(false); } if (e.getSource() == okButton && e.getKeyCode() == KeyEvent.VK_ENTER) { pressed_OK = true; setVisible(false); } } }); addKeyListener(keyListener); ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent e) { Object source = e.getSource(); pressed_OK = (source == okButton); setVisible((source != okButton) && (source != cancelButton)); if (e.getSource() == delButton) { int row = table.getSelectedRow(); if (row >= 0) { quickDialData.remove(row); AbstractTableModel model = (AbstractTableModel) table .getModel(); model.fireTableRowsDeleted(row, row); } } } }; okButton = new JButton("Okay"); okButton.setEnabled(JFritz.DEVEL_VERSION); cancelButton = new JButton("Abbruch"); newButton = new JButton("Neue Kurzwahl"); newButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/modify.png")))); delButton = new JButton("Kurzwahl lschen"); delButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/delete.png")))); topPane.add(newButton); topPane.add(delButton); JButton b1 = new JButton("Von der Box holen"); b1.setActionCommand("fetchSIP"); b1.addActionListener(actionListener); JButton b2 = new JButton("Auf die Box speichern"); b2.setEnabled(false); topPane.add(b1); topPane.add(b2); okButton.addActionListener(actionListener); okButton.addKeyListener(keyListener); cancelButton.addActionListener(actionListener); cancelButton.addKeyListener(keyListener); newButton.addActionListener(actionListener); delButton.addActionListener(actionListener); bottomPane.add(okButton); bottomPane.add(cancelButton); AbstractTableModel model = new AbstractTableModel() { public int getRowCount() { return quickDialData.size(); } public int getColumnCount() { return 4; } public String getColumnName(int column) { switch (column) { case 0: return messages.getString("description"); case 1: return messages.getString("quickdial"); case 2: return messages.getString("vanity"); case 3: return messages.getString("number"); default: return null; } } public Object getValueAt(int rowIndex, int columnIndex) { QuickDial quick = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: return quick.getDescription(); case 1: return quick.getQuickdial(); case 2: return quick.getVanity(); case 3: return quick.getNumber(); default: return null; } } /** * Sets a value to a specific position */ public void setValueAt(Object object, int rowIndex, int columnIndex) { if (rowIndex < table.getRowCount()) { QuickDial dial = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: dial.setDescription(object.toString()); break; case 1: dial.setQuickdial(object.toString()); break; case 2: dial.setVanity(object.toString()); break; case 3: dial.setNumber(object.toString()); break; } fireTableCellUpdated(rowIndex, columnIndex); } } }; table = new JTable(model) { public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex) { Component c = super.prepareRenderer(renderer, rowIndex, vColIndex); if (rowIndex % 2 == 0 && !isCellSelected(rowIndex, vColIndex)) { c.setBackground(new Color(255, 255, 200)); } else if (!isCellSelected(rowIndex, vColIndex)) { c.setBackground(getBackground()); } else { c.setBackground(new Color(204, 204, 255)); } return c; } public boolean isCellEditable(int rowIndex, int columnIndex) { return true; } }; table.setRowHeight(24); table.setFocusable(false); table.setAutoCreateColumnsFromModel(false); table.setColumnSelectionAllowed(false); table.setCellSelectionEnabled(false); table.setRowSelectionAllowed(true); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); if (table.getRowCount() != 0) table.setRowSelectionInterval(0, 0); table.getColumnModel().getColumn(0).setCellEditor( new ParticipantCellEditor()); table.getColumnModel().getColumn(1).setCellEditor( new ParticipantCellEditor()); table.getColumnModel().getColumn(2).setCellEditor( new ParticipantCellEditor()); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(topPane, BorderLayout.NORTH); panel.add(new JScrollPane(table), BorderLayout.CENTER); panel.add(bottomPane, BorderLayout.SOUTH); getContentPane().add(panel); setSize(new Dimension(400,350)); // setResizable(false); // pack(); }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/b1f015cd662602824d1219daaa6ae8536cabc7ef/QuickDialDialog.java/buggy/jfritz/src/de/moonflower/jfritz/dialogs/quickdial/QuickDialDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3724, 6353, 1435, 288, 202, 202, 9565, 18, 12730, 2570, 5621, 202, 202, 542, 4247, 12, 6833, 18, 588, 780, 2932, 19525, 25909, 7923, 1769, 202, 202, 542, 20191, 12, 3767, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 6353, 1435, 288, 202, 202, 9565, 18, 12730, 2570, 5621, 202, 202, 542, 4247, 12, 6833, 18, 588, 780, 2932, 19525, 25909, 7923, 1769, 202, 202, 542, 20191, 12, 3767, ...
chkBox .setEnabled( !( ( (Template) templates.get( selectedIndex ) ) .getCheatSheetId( ).equals( "" ) || ( (Template) templates .get( selectedIndex ) ) .getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) );
chkBox.setEnabled( !( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "" ) || ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) );
public void handleEvent( Event event ) { // change description/image selectedIndex = templateList.getSelectionIndex( ); description.setText( ( (Template) templates.get( selectedIndex ) ) .getTemplateDescription( ) ); // we need to relayout if the new text has different number of lines previewPane.layout( ); String key = ( (Template) templates.get( selectedIndex ) ) .getPicturePath( ); Object img = null; if ( key == null || "".equals( key.trim( ) ) ) { img = ReportPlatformUIImages .getImage( IReportGraphicConstants.ICON_TEMPLATE_NO_PREVIEW ); } else { img = imageMap.get( key ); if ( img == null ) { img = ReportPlugin.getImage( key ); imageMap.put( key, img ); } } previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) img ) ); previewCanvas.showOriginal( ); chkBox .setEnabled( !( ( (Template) templates.get( selectedIndex ) ) .getCheatSheetId( ).equals( "" ) || ( (Template) templates .get( selectedIndex ) ) .getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b537714732979acce16d6e2b388b62e52e38b0ca/WizardTemplateChoicePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1640, 1133, 12, 2587, 871, 262, 202, 202, 95, 1082, 202, 759, 2549, 2477, 19, 2730, 1082, 202, 8109, 1016, 273, 1542, 682, 18, 588, 6233, 1016, 12, 11272, 1082, 202, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1133, 12, 2587, 871, 262, 202, 202, 95, 1082, 202, 759, 2549, 2477, 19, 2730, 1082, 202, 8109, 1016, 273, 1542, 682, 18, 588, 6233, 1016, 12, 11272, 1082, 202, 338...
public PruneInfeasibleExceptionEdges(CFG cfg, TypeDataflow typeDataflow, ConstantPoolGen cpg) {
public PruneInfeasibleExceptionEdges(CFG cfg, MethodGen methodGen, TypeDataflow typeDataflow, ConstantPoolGen cpg) {
public PruneInfeasibleExceptionEdges(CFG cfg, TypeDataflow typeDataflow, ConstantPoolGen cpg) { this.cfg = cfg; this.typeDataflow = typeDataflow; this.cpg = cpg; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0182fa6e66a762f3778ecd658f861ed1093cf9b6/PruneInfeasibleExceptionEdges.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/PruneInfeasibleExceptionEdges.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2301, 7556, 382, 3030, 30711, 503, 10697, 12, 19727, 2776, 16, 1412, 751, 2426, 618, 751, 2426, 16, 10551, 2864, 7642, 3283, 75, 13, 288, 202, 202, 2211, 18, 7066, 273, 2776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2301, 7556, 382, 3030, 30711, 503, 10697, 12, 19727, 2776, 16, 1412, 751, 2426, 618, 751, 2426, 16, 10551, 2864, 7642, 3283, 75, 13, 288, 202, 202, 2211, 18, 7066, 273, 2776, ...
ZParameter(ICalTok tok, String value) { mTok = tok; mName = tok.toString();
ZParameter(String name, String value) { setName(name);
ZParameter(ICalTok tok, String value) { mTok = tok; mName = tok.toString(); setValue(value); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/ZCalendar.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/ZCalendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 2285, 1662, 12, 2871, 287, 20477, 946, 16, 514, 460, 13, 288, 5411, 312, 20477, 273, 946, 31, 5411, 312, 461, 273, 946, 18, 10492, 5621, 5411, 5524, 12, 1132, 1769, 3639, 289, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 2285, 1662, 12, 2871, 287, 20477, 946, 16, 514, 460, 13, 288, 5411, 312, 20477, 273, 946, 31, 5411, 312, 461, 273, 946, 18, 10492, 5621, 5411, 5524, 12, 1132, 1769, 3639, 289, 2, -100, ...
private void addCondition( Condition c ) { if ( conditions == null ) {
private void addCondition(Condition c) { if (conditions == null) {
private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/c5e4137650b883bbb105b1671ee06fa69cd65ec3/Selector.java/buggy/src/java/org/xhtmlrenderer/css/newmatch/Selector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3418, 12, 7949, 276, 262, 288, 3639, 309, 261, 4636, 422, 446, 262, 288, 5411, 4636, 273, 394, 2252, 18, 1367, 18, 19558, 5621, 3639, 289, 3639, 4636, 18, 1289, 12, 276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3418, 12, 7949, 276, 262, 288, 3639, 309, 261, 4636, 422, 446, 262, 288, 5411, 4636, 273, 394, 2252, 18, 1367, 18, 19558, 5621, 3639, 289, 3639, 4636, 18, 1289, 12, 276,...
scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue);
scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue.copy());
public void transform () { // first set up temporary scalars for the array elements // initialize them before the def. OPT_RegisterOperand scalars[] = new OPT_RegisterOperand[size]; VM_Type elementType = vmArray.getElementType(); OPT_RegisterOperand def = reg.defList; OPT_Instruction defI = def.instruction; OPT_Operand defaultValue = OPT_IRTools.getDefaultOperand(elementType.getTypeRef()); for (int i = 0; i < size; i++) { scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue); } // now remove the def if (DEBUG) System.out.println("Removing " + defI); OPT_DefUse.removeInstructionAndUpdateDU(defI); // now handle the uses for (OPT_RegisterOperand use = reg.useList; use != null; use = (OPT_RegisterOperand)use.getNext()) { scalarReplace(use, scalars); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/f058924457fa7c3534598c7957e9a277335f4b1b/OPT_ShortArrayReplacer.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/simpleSSA/escape/OPT_ShortArrayReplacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 1832, 288, 565, 368, 1122, 444, 731, 6269, 23743, 364, 326, 526, 2186, 565, 368, 4046, 2182, 1865, 326, 1652, 18, 565, 16456, 67, 3996, 10265, 23743, 8526, 273, 394, 1645...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 1832, 288, 565, 368, 1122, 444, 731, 6269, 23743, 364, 326, 526, 2186, 565, 368, 4046, 2182, 1865, 326, 1652, 18, 565, 16456, 67, 3996, 10265, 23743, 8526, 273, 394, 1645...
cmof.reflection.Object object = new cmof.PropertyImpl(_414, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _697);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_578});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Element.owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _516);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
cmof.reflection.Object object = new cmof.AssociationImpl(_464, extent, null, "cmof.AssociationImpl", new String[]{"cmof.ClassifierCustom", "core.abstractions.umlsuper.ClassifierCustom", "cmof.TypeCustom", "core.abstractions.classifiers.ClassifierCustom", "core.abstractions.typedelements.TypeCustom", "core.abstractions.namespaces.NamespaceCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("packageImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("metaClassifier", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_639,_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("metaInstances", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _649);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("relatedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("endType", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedEnd", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.null");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("memberEnd", new java.lang.Object[] {_639,_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("package", _485);
private static cmof.reflection.Object getObject746(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.PropertyImpl(_414, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _697);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_578});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Element.owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _516);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {}); return object; }
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5003, 792, 18, 26606, 18, 921, 6455, 5608, 26, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5003, 792, 18, 26606, 18, 921, 6455, 5608, 26, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, ...
if (viewer != null) viewer.setSelection(selection, reveal);
if (viewer != null) { viewer.setSelection(selection, reveal); }
public void setSelection(ISelection selection, boolean reveal) { Assert.isTrue(selection instanceof IStructuredSelection); IStructuredSelection ssel = (IStructuredSelection) selection; for (Iterator i = ssel.iterator(); i.hasNext();) Assert.isTrue(i.next() instanceof IMarker); if (viewer != null) viewer.setSelection(selection, reveal); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TaskList.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 6233, 12, 45, 6233, 4421, 16, 1250, 283, 24293, 13, 288, 3639, 5452, 18, 291, 5510, 12, 10705, 1276, 467, 30733, 6233, 1769, 3639, 467, 30733, 6233, 272, 1786, 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, 444, 6233, 12, 45, 6233, 4421, 16, 1250, 283, 24293, 13, 288, 3639, 5452, 18, 291, 5510, 12, 10705, 1276, 467, 30733, 6233, 1769, 3639, 467, 30733, 6233, 272, 1786, 273, 261, ...
nf.addChildToBack(tempBlock, function(ts, false));
n = function(ts, FunctionNode.FUNCTION_STATEMENT);
public Object parse(TokenStream ts) throws IOException { this.ok = true; sourceTop = 0; functionNumber = 0; int tt; // last token from getToken(); int baseLineno = ts.getLineno(); // line number where source starts /* so we have something to add nodes to until * we've collected all the source */ Object tempBlock = nf.createLeaf(TokenStream.BLOCK); // Add script indicator sourceAdd((char)ts.SCRIPT); while (true) { ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; if (tt <= ts.EOF) { break; } if (tt == ts.FUNCTION) { try { nf.addChildToBack(tempBlock, function(ts, false)); } catch (JavaScriptException e) { this.ok = false; break; } } else { ts.ungetToken(tt); nf.addChildToBack(tempBlock, statement(ts)); } } if (!this.ok) { // XXX ts.clearPushback() call here? return null; } String source = sourceToString(0); sourceBuffer = null; // To help GC Object pn = nf.createScript(tempBlock, ts.getSourceName(), baseLineno, ts.getLineno(), source); return pn; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/cb9350e1a2eb151e87843cfcd75986fa06c9fdeb/Parser.java/buggy/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1109, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 565, 288, 3639, 333, 18, 601, 273, 638, 31, 3639, 1084, 3401, 273, 374, 31, 3639, 445, 1854, 273, 374, 31, 3639, 509, 3574,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1109, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 565, 288, 3639, 333, 18, 601, 273, 638, 31, 3639, 1084, 3401, 273, 374, 31, 3639, 445, 1854, 273, 374, 31, 3639, 509, 3574,...
String value = combo.getText( ); if ( value.equals( NONE ) )
String value = null; if ( combo.getSelectionIndex( ) != 0 )
public void widgetSelected( SelectionEvent event ) { String value = combo.getText( ); if ( value.equals( NONE ) ) { value = null; } int rCode = canChangeDataSet( value ); if ( rCode == 2 ) { combo.setText( getDataSetName( ) ); } else { try { DataSetHandle dataSet = null; if ( value != null ) { dataSet = inputElement.getModuleHandle( ) .findDataSet( value ); } inputElement.setDataSet( dataSet ); getParameterBindingPropertyHandle( ).clearValue( ); if ( rCode == 0 ) { inputElement.getColumnBindings( ).clearValue( ); } generateBindingColumns( ); setHihtLightColumn( ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4a4bb70b0839e47bd10454d7eff3a69c006e37d4/ColumnBindingDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 9506, 202, 95, 6862, 202, 780, 460, 273, 16778, 18, 588, 1528, 12, 11272, 6862, 202, 430, 261, 460, 18, 14963, 12, 11829, 262, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 9506, 202, 95, 6862, 202, 780, 460, 273, 16778, 18, 588, 1528, 12, 11272, 6862, 202, 430, 261, 460, 18, 14963, 12, 11829, 262, 262...
setModified(true);
public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCategoryModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCategoryModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 10502, 12, 780, 6249, 13, 288, 202, 202, 430, 261, 12443, 18991, 422, 446, 13, 597, 261, 67, 18991, 480, 446, 3719, 747, 9506, 202, 12443, 18991, 480, 446, 13, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 10502, 12, 780, 6249, 13, 288, 202, 202, 430, 261, 12443, 18991, 422, 446, 13, 597, 261, 67, 18991, 480, 446, 3719, 747, 9506, 202, 12443, 18991, 480, 446, 13, 597, ...
public void saveBugReport(IBugzillaBug bugzillaBug) {
public void saveBugReport(BugzillaReport bugzillaBug) {
public void saveBugReport(IBugzillaBug bugzillaBug) { String handle = AbstractRepositoryTask.getHandle(bugzillaBug.getRepositoryUrl(), bugzillaBug.getId()); ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle); if (task instanceof BugzillaTask) { BugzillaTask bugzillaTask = (BugzillaTask) task; bugzillaTask.setBugReport((BugReport) bugzillaBug); if (bugzillaBug.hasChanges()) { bugzillaTask.setSyncState(RepositoryTaskSyncState.OUTGOING); } else { bugzillaTask.setSyncState(RepositoryTaskSyncState.SYNCHRONIZED); } } saveOffline(bugzillaBug, true); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/021b803558816829652dd500f5695e5bfd03ae6c/BugzillaRepositoryConnector.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 19865, 4820, 12, 13450, 637, 15990, 19865, 7934, 15990, 19865, 13, 288, 202, 202, 780, 1640, 273, 4115, 3305, 2174, 18, 588, 3259, 12, 925, 15990, 19865, 18, 588, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 19865, 4820, 12, 13450, 637, 15990, 19865, 7934, 15990, 19865, 13, 288, 202, 202, 780, 1640, 273, 4115, 3305, 2174, 18, 588, 3259, 12, 925, 15990, 19865, 18, 588, 330...
new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON));
new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON));
public PropPanelExtend() { super("Extend", ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox())); addField(Argo.localize("UMLMenu", "label.namespace"), getNamespaceScroll()); addSeperator(); // Link to the two ends. This is done as a drop down. First for the // base use case. addField(Argo.localize("UMLMenu", "label.usecase-base"), new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON)); addField(Argo.localize("UMLMenu", "label.extension"), new UMLComboBox2(new UMLExtendExtensionComboBoxModel(), ActionSetExtendExtension.SINGLETON)); JList extensionPointList = new UMLMutableLinkedList(new UMLExtendExtensionPointListModel(), ActionAddExtendExtensionPoint.SINGLETON, ActionNewExtendExtensionPoint.SINGLETON); addField(Argo.localize("UMLMenu", "label.extension-points"), new JScrollPane(extensionPointList)); addSeperator(); UMLExpressionModel conditionModel = new UMLExpressionModel(this,MExtend.class,"condition", MBooleanExpression.class,"getCondition","setCondition"); JTextArea conditionArea = new UMLExpressionBodyField(conditionModel, true); conditionArea.setRows(5); JScrollPane conditionScroll = new JScrollPane(conditionArea); addField("Condition:", conditionScroll); // Add the toolbar. new PropPanelButton(this, buttonPanel, _navUpIcon, Argo.localize("UMLMenu", "button.go-up"), "navigateNamespace", null); new PropPanelButton(this, buttonPanel, _extensionPointIcon, localize("Add extension point"), "newExtensionPoint", null); new PropPanelButton(this, buttonPanel, _deleteIcon, localize("Delete"), "removeElement", null); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/PropPanelExtend.java/clean/src_new/org/argouml/uml/ui/behavior/use_cases/PropPanelExtend.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10484, 5537, 16675, 1435, 288, 3639, 2240, 2932, 16675, 3113, 1903, 2886, 18, 588, 5661, 5047, 14097, 10663, 3639, 11742, 12, 686, 3240, 18, 3729, 554, 2932, 57, 1495, 4599, 3113, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10484, 5537, 16675, 1435, 288, 3639, 2240, 2932, 16675, 3113, 1903, 2886, 18, 588, 5661, 5047, 14097, 10663, 3639, 11742, 12, 686, 3240, 18, 3729, 554, 2932, 57, 1495, 4599, 3113, 315...
"\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"",
CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime),
String[] buildLogCommand(Date lastBuildTime, Date currentTime) { //(PENDING) get rid of this duplication somehow if (cvsroot == null) { // omit -d CVSROOT return new String[] {"cvs", "log", "-d", "\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"", getLocalPath() }; } else { return new String[] {"cvs", "-d", cvsroot, "log", "-d", "\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"", getLocalPath() }; } }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/5c45612d06afb7558ab2edf49647601cf94843cc/CVSElement.java/clean/main/src/net/sourceforge/cruisecontrol/CVSElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8526, 1361, 1343, 2189, 12, 1626, 1142, 3116, 950, 16, 2167, 6680, 13, 288, 3639, 368, 12, 25691, 13, 336, 10911, 434, 333, 31201, 28578, 3639, 309, 261, 71, 6904, 3085, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8526, 1361, 1343, 2189, 12, 1626, 1142, 3116, 950, 16, 2167, 6680, 13, 288, 3639, 368, 12, 25691, 13, 336, 10911, 434, 333, 31201, 28578, 3639, 309, 261, 71, 6904, 3085, 422, 446, ...
fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier);
if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else { fsBackup = null; }
public FormatSpecifierDialog(FormatSpecifier formatspecifier) { super(); this.formatspecifier = formatspecifier; fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier); shell = new Shell(Display.getCurrent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; shell.setLayout(new FillLayout()); placeComponents(); shell.setText("Format Specifier Dialog:"); shell.setSize(332, 255); shell.setLocation(Display.getCurrent().getClientArea().width / 2 - (shell.getSize().x / 2), Display .getCurrent().getClientArea().height / 2 - (shell.getSize().y / 2)); shell.open(); while (!shell.isDisposed()) { if (!shell.getDisplay().readAndDispatch()) { shell.getDisplay().sleep(); } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/258bad0d502f0759055374875005f9978172c4d7/FormatSpecifierDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4077, 21416, 6353, 12, 1630, 21416, 740, 2793, 1251, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 2139, 2793, 1251, 273, 740, 2793, 1251, 31, 3639, 309, 261, 2139, 2793, 1251, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4077, 21416, 6353, 12, 1630, 21416, 740, 2793, 1251, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 2139, 2793, 1251, 273, 740, 2793, 1251, 31, 3639, 309, 261, 2139, 2793, 1251, 422...
super (statement, fields, tuples, status, updateCount, insertOID, binaryCursor);
super (statement, fields, tuples, status, updateCount, insertOID);
public AbstractJdbc3ResultSet(BaseStatement statement, Field[] fields, Vector tuples, String status, int updateCount, long insertOID, boolean binaryCursor) { super (statement, fields, tuples, status, updateCount, insertOID, binaryCursor); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/dbcc71c724f1a2827ab7522aecf56268dbacf9b6/AbstractJdbc3ResultSet.java/clean/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4115, 25316, 23, 13198, 12, 2171, 3406, 3021, 16, 2286, 8526, 1466, 16, 5589, 10384, 16, 514, 1267, 16, 509, 1089, 1380, 16, 1525, 2243, 12945, 16, 1250, 3112, 6688, 13, 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, 4115, 25316, 23, 13198, 12, 2171, 3406, 3021, 16, 2286, 8526, 1466, 16, 5589, 10384, 16, 514, 1267, 16, 509, 1089, 1380, 16, 1525, 2243, 12945, 16, 1250, 3112, 6688, 13, 202, ...
return v0 <= v1;
return b0.compareTo(b1) < 0;
public boolean evaluateBoolean(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == Double.NaN || v1 == Double.NaN || v0 == DoubleNull || v1 == DoubleNull) { return BooleanNull; } return v0 <= v1; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 1645, 331, 20, 273, 7029, 20, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 727, 1645, 331, 21, 273, 7029, 21, 18, 21024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 1645, 331, 20, 273, 7029, 20, 18, 21024, 5265, 12, 14168, 639, 1769, 13491, 727, 1645, 331, 21, 273, 7029, 21, 18, 21024, ...
oldURI = ((SVGOMDocument)svgDocument).getURLObject();
oldURI = svgDocument.getURL();
public void loadSVGDocument(String url) { stopProcessing(); URL oldURI = null; if (svgDocument != null) { oldURI = ((SVGOMDocument)svgDocument).getURLObject(); } URL newURI = null; try { newURI = new URL(oldURI, url); } catch (MalformedURLException e) { userAgent.displayError(e); return; } url = newURI.toString(); fragmentIdentifier = newURI.getRef(); loader = new DocumentLoader(userAgent); nextDocumentLoader = new SVGDocumentLoader(url, loader); nextDocumentLoader.setPriority(Thread.MIN_PRIORITY); Iterator it = svgDocumentLoaderListeners.iterator(); while (it.hasNext()) { nextDocumentLoader.addSVGDocumentLoaderListener ((SVGDocumentLoaderListener)it.next()); } if (documentLoader == null && gvtTreeBuilder == null && gvtTreeRenderer == null && svgLoadEventDispatcher == null && updateManager == null) { startDocumentLoader(); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/14cb6855dec11e25d5b03410f3137b8f17174d8a/JSVGComponent.java/buggy/sources/org/apache/batik/swing/svg/JSVGComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 26531, 2519, 12, 780, 880, 13, 288, 3639, 2132, 7798, 5621, 3639, 1976, 1592, 3098, 273, 446, 31, 3639, 309, 261, 11451, 2519, 480, 446, 13, 288, 5411, 1592, 3098, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 26531, 2519, 12, 780, 880, 13, 288, 3639, 2132, 7798, 5621, 3639, 1976, 1592, 3098, 273, 446, 31, 3639, 309, 261, 11451, 2519, 480, 446, 13, 288, 5411, 1592, 3098, 273, ...
public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch (StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); } } } catch (StringIndexOutOfBoundsException E) { return name; } catch (NullPointerException E) { return null; }
public static String decapitalize(String name) { try { if(!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if(Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch(StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); }
public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch (StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); } } } catch (StringIndexOutOfBoundsException E) { return name; } catch (NullPointerException E) { return null; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Introspector.java/clean/core/src/classpath/java/java/beans/Introspector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2109, 438, 7053, 554, 12, 780, 508, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 16051, 7069, 18, 291, 8915, 12, 529, 18, 3001, 861, 12, 20, 20349, 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, 482, 760, 514, 2109, 438, 7053, 554, 12, 780, 508, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 16051, 7069, 18, 291, 8915, 12, 529, 18, 3001, 861, 12, 20, 20349, 288, 9506, 202,...
CtClass rtype)
CtClass rtype, int returnVarNo)
private int insertAfterHandler(boolean asFinally, Bytecode b, CtClass rtype) { if (!asFinally) return 0; int var = b.getMaxLocals(); b.incMaxLocals(1); int pc = b.currentPc(); b.addAstore(var); if (rtype.isPrimitive()) { char c = ((CtPrimitiveType)rtype).getDescriptor(); if (c == 'D') b.addDconst(0.0); else if (c == 'F') b.addFconst(0); else if (c == 'J') b.addLconst(0); else if (c != 'V') // int, boolean, char, short, ... b.addIconst(0); } else b.addOpcode(Opcode.ACONST_NULL); b.addOpcode(Opcode.JSR); int pc2 = b.currentPc(); b.addIndex(0); // correct later b.addAload(var); b.addOpcode(Opcode.ATHROW); int pc3 = b.currentPc(); b.write16bit(pc2, pc3 - pc2 + 1); return pc3 - pc; }
56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/c8eb33fc60e880e0f8c75d442fa6df7660c87939/CtBehavior.java/clean/src/main/javassist/CtBehavior.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2243, 4436, 1503, 12, 6494, 487, 29987, 16, 2525, 16651, 324, 16, 4766, 282, 30714, 797, 9328, 16, 509, 327, 1537, 2279, 13, 565, 288, 3639, 309, 16051, 345, 29987, 13, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2243, 4436, 1503, 12, 6494, 487, 29987, 16, 2525, 16651, 324, 16, 4766, 282, 30714, 797, 9328, 16, 509, 327, 1537, 2279, 13, 565, 288, 3639, 309, 16051, 345, 29987, 13, 5411, ...
Assert.isNotNull( columnName);
Assert.isNotNull( columnName ); if ( StringUtil.isBlank( columnName ) ) { return null; }
public static String getColumnExpression(String columnName) { Assert.isNotNull( columnName); return IReportElementConstants.DATA_COLUMN_PREFIX + "[\"" + DEUtil.escape( columnName ) + "\"]";//$NON-NLS-1$ //$NON-NLS-2$ }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a08454f8a4196b01ad1f775864243017363280f5/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 6716, 2300, 12, 780, 7578, 13, 202, 95, 202, 202, 8213, 18, 291, 5962, 12, 7578, 1769, 202, 202, 2463, 467, 4820, 1046, 2918, 18, 4883, 67, 11009, 67, 6307, 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, 514, 6716, 2300, 12, 780, 7578, 13, 202, 95, 202, 202, 8213, 18, 291, 5962, 12, 7578, 1769, 202, 202, 2463, 467, 4820, 1046, 2918, 18, 4883, 67, 11009, 67, 6307, 1082, ...
throw new PSQLException("postgresql.con.type", new Character((char) c));
throw new PSQLException("postgresql.con.type", PSQLState.CONNECTION_FAILURE, new Character((char) c));
private BaseResultSet executeV2() throws SQLException { StringBuffer errorMessage = null; if (pgStream == null) { throw new PSQLException("postgresql.con.closed"); } synchronized (pgStream) { sendQueryV2(); int c; boolean l_endQuery = false; while (!l_endQuery) { c = pgStream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pgStream.ReceiveInteger(4); String msg = pgStream.ReceiveString(connection.getEncoding()); connection.addNotification(new org.postgresql.core.Notification(msg, pid)); break; case 'B': // Binary Data Transfer receiveTupleV2(true); break; case 'C': // Command Status receiveCommandStatusV2(); break; case 'D': // Text Data Transfer receiveTupleV2(false); break; case 'E': // Error Message // it's possible to get more than one error message for a query // see libpq comments wrt backend closing a connection // so, append messages to a string buffer and keep processing // check at the bottom to see if we need to throw an exception if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(pgStream.ReceiveString(connection.getEncoding())); // keep processing break; case 'I': // Empty Query int t = pgStream.ReceiveChar(); break; case 'N': // Error Notification statement.addWarning(pgStream.ReceiveString(connection.getEncoding())); break; case 'P': // Portal Name String pname = pgStream.ReceiveString(connection.getEncoding()); break; case 'T': // MetaData Field Description receiveFieldsV2(); break; case 'Z': l_endQuery = true; break; default: throw new PSQLException("postgresql.con.type", new Character((char) c)); } } // did we get an error during this query? if ( errorMessage != null ) throw new SQLException( errorMessage.toString().trim() ); //if an existing result set was passed in reuse it, else //create a new one if (rs != null) { rs.reInit(fields, tuples, status, update_count, insert_oid, binaryCursor); } else { rs = statement.createResultSet(fields, tuples, status, update_count, insert_oid, binaryCursor); } return rs; } }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/0378a269f3ab3c44e67b14f96414b6ca95263263/QueryExecutor.java/buggy/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3360, 13198, 1836, 58, 22, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 1228, 422, 446, 13, 3196, 202, 95, 1082, 202, 12849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 13198, 1836, 58, 22, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 1228, 422, 446, 13, 3196, 202, 95, 1082, 202, 12849, ...
protected int addElement(final Object parentElement, int index, final Object value, final boolean fire) { TreeNode parentNode = getTreeNode(parentElement); if (parentNode == null) return -1; if (!hasChildren(parentElement) && parentNode.getChildren()==null) parentNode.setChildren(new ArrayList()); List list = parentNode.getChildren(); int addedIndex = -1; if (!list.contains(value)) { addedIndex = primAddChildElement(list, value, index); TreeNode valueNode = new TreeNode(parentElement); nodes.put(value, valueNode); final int fireIndex=addedIndex; updateViewer(new Runnable() { public void run() { viewer.add(parentElement == null ? viewerInput : parentElement, value); if (fire) fireChangeEvent(ChangeEvent.ADD, null, value, parentElement, fireIndex); } }); } return addedIndex;
public int addElement(final Object parentElement, final int index, final Object value) { SyncRunnable runnable = new SyncRunnable() { public Object run() { return new Integer(addElement(parentElement, index, value, true)); } }; return ((Integer)runnable.run()).intValue();
protected int addElement(final Object parentElement, int index, final Object value, final boolean fire) { TreeNode parentNode = getTreeNode(parentElement); if (parentNode == null) return -1; if (!hasChildren(parentElement) && parentNode.getChildren()==null) parentNode.setChildren(new ArrayList()); List list = parentNode.getChildren(); int addedIndex = -1; if (!list.contains(value)) { addedIndex = primAddChildElement(list, value, index); TreeNode valueNode = new TreeNode(parentElement); nodes.put(value, valueNode); final int fireIndex=addedIndex; updateViewer(new Runnable() { public void run() { viewer.add(parentElement == null ? viewerInput : parentElement, value); if (fire) fireChangeEvent(ChangeEvent.ADD, null, value, parentElement, fireIndex); } }); } return addedIndex; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9d125503204eb791fd5d7ba10d10960ac0bbffba/TreeViewerUpdatableTree.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/viewers/TreeViewerUpdatableTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 9335, 12, 6385, 1033, 30363, 16, 509, 770, 16, 727, 1033, 460, 16, 727, 1250, 4452, 13, 288, 25083, 202, 12513, 7234, 273, 336, 12513, 12, 2938, 1046, 1769, 202, 202, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 9335, 12, 6385, 1033, 30363, 16, 509, 770, 16, 727, 1033, 460, 16, 727, 1250, 4452, 13, 288, 25083, 202, 12513, 7234, 273, 336, 12513, 12, 2938, 1046, 1769, 202, 202, 43...
interfaceName);
interfaceName, requestParameters);
protected IRequestTarget resolveRenderedPage(final RequestCycle requestCycle, final RequestParameters requestParameters) { String componentPath = requestParameters.getComponentPath(); Session session = requestCycle.getSession(); Page page = session.getPage(requestParameters.getPageMapName(), componentPath, requestParameters.getVersionNumber()); // Does page exist? if (page != null) { // see whether this resolves to a component call or just the page String interfaceName = requestParameters.getInterfaceName(); if (interfaceName != null) { return resolveListenerInterfaceTarget(requestCycle, page, componentPath, interfaceName); } else { return new PageRequestTarget(page); } } else { // Page was expired from session, probably because backtracking // limit was reached return new ExpiredPageClassRequestTarget(); } }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/939ec30df4d34491207d80658eee36f84667599f/DefaultRequestTargetResolverStrategy.java/clean/wicket/src/java/wicket/request/compound/DefaultRequestTargetResolverStrategy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 691, 2326, 2245, 19222, 1964, 12, 6385, 1567, 13279, 590, 13279, 16, 1082, 202, 6385, 1567, 2402, 590, 2402, 13, 202, 95, 202, 202, 780, 1794, 743, 273, 590, 2402, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 691, 2326, 2245, 19222, 1964, 12, 6385, 1567, 13279, 590, 13279, 16, 1082, 202, 6385, 1567, 2402, 590, 2402, 13, 202, 95, 202, 202, 780, 1794, 743, 273, 590, 2402, 18, 5...
assertEquals("example.com", sessCtx.getHostName());
public void testHandshakeWithNoError() throws Exception { StringReader rdr = new StringReader("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2s_123' from='example.com' version='1.0'></stream:stream>"); String outRes = "com/echomine/xmpp/data/XMPPEmptyStream.xml"; run(rdr, stream); endOutgoingStreamHeader(); compare(outRes); assertEquals("c2s_123", sessCtx.getSessionId()); // assertEquals("example.com", sessCtx.getHost()); }
5648 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5648/20e12efa5b91554bf12d196f5b410a2efdfc99fd/XMPPClientHandshakeStreamTest.java/clean/feridian/trunk/test/xmpp/com/echomine/xmpp/stream/XMPPClientHandshakeStreamTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, 6442, 18, 588, 20946, 10663, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, 6442, 18, 588, 20946, 10663, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, 6442, 18, 588, 20946, 10663, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, 6442, 18, 588, 20946, 10663, 1815, 8867, 2932, 8236, 18, 832, 3113, 8451, ...
set(parameterIndex, x.toString());
if (x == null) setNull(parameterIndex, Types.OTHER); else { set(parameterIndex, x.toString()); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { set(parameterIndex, x.toString()); }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/da631e931f9da4bc5df4bfd39f0c42684adfb8e5/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 542, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 542, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 97, 2, -100, -100, -100, -100, -100, ...
String baseColor;
BallColor baseColor;
public String getIconColor() { if(!isBuilding()) { // already built if(result==Result.SUCCESS) return "blue"; if(result== Result.UNSTABLE) return "yellow"; else return "red"; } // a new build is in progress String baseColor; if(previousBuild==null) baseColor = "grey"; else baseColor = previousBuild.getIconColor(); return baseColor +"_anime"; }
48095 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48095/84e0676229b1f5526d4ad0e0107998685f04a0e2/Run.java/clean/core/src/main/java/hudson/model/Run.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 21724, 2957, 1435, 288, 3639, 309, 12, 5, 291, 16713, 10756, 288, 5411, 368, 1818, 6650, 5411, 309, 12, 2088, 631, 1253, 18, 12778, 13, 7734, 327, 315, 14081, 14432, 5411, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 21724, 2957, 1435, 288, 3639, 309, 12, 5, 291, 16713, 10756, 288, 5411, 368, 1818, 6650, 5411, 309, 12, 2088, 631, 1253, 18, 12778, 13, 7734, 327, 315, 14081, 14432, 5411, 309,...
return new StringWebResponse(str, url) { public String getContentType() { return contentType; } };
if (contentType.startsWith("text")) { final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); final String str = IOUtils.toString(new FileInputStream(file), encoding); return new StringWebResponse(str, url) { public String getContentType() { return contentType; } }; } else { final byte[] data = IOUtils.toByteArray(new FileInputStream(file)); return new BinaryWebResponse(data, url, contentType); }
private WebResponse makeWebResponseForFileUrl(final URL url) throws IOException { final File file = FileUtils.toFile(url); // take default encoding of the computer (in J2SE5 it's easier but...) final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); final String str = FileUtils.readFileToString(file, encoding); final String contentType = guessContentType(file); return new StringWebResponse(str, url) { public String getContentType() { return contentType; } }; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/c94b7421a32b1583fb8dd65d3de21fd43b09dc90/WebClient.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2999, 1064, 1221, 4079, 1064, 1290, 812, 1489, 12, 6385, 1976, 880, 13, 1216, 1860, 288, 3639, 727, 1387, 585, 273, 13779, 18, 869, 812, 12, 718, 1769, 3639, 368, 4862, 805, 2688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2999, 1064, 1221, 4079, 1064, 1290, 812, 1489, 12, 6385, 1976, 880, 13, 1216, 1860, 288, 3639, 727, 1387, 585, 273, 13779, 18, 869, 812, 12, 718, 1769, 3639, 368, 4862, 805, 2688, ...
return text; }
return text; }
protected Text getText() { return text;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b55db1f8df03ebade4e59f55f97c8c3917057362/InputDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 3867, 6701, 1435, 288, 202, 2463, 977, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 3867, 6701, 1435, 288, 202, 2463, 977, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
public void handleEvent(Event event) { Point localPos = new Point(event.x, event.y); CTabItem tabUnderPointer = tabFolder.getItem(localPos); if (tabUnderPointer == null) { // drag the entire stack if (getSite().isStackMoveable()) getSite().dragStart(tabFolder.toDisplay(localPos), false); return; } IPresentablePart part = getPartForTab(tabUnderPointer); if (getSite().isPartMoveable(part)) { // drag the part getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21EditorStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21EditorStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 5411, 4686, 1191, 1616, 273, 394, 4686, 12, 2575, 18, 92, 16, 871, 18, 93, 1769, 5411, 385, 5661, 1180, 3246, 14655, 4926, 273, 3246, 3899...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1640, 1133, 12, 1133, 871, 13, 288, 5411, 4686, 1191, 1616, 273, 394, 4686, 12, 2575, 18, 92, 16, 871, 18, 93, 1769, 5411, 385, 5661, 1180, 3246, 14655, 4926, 273, 3246, 3899...
public int getRowCount() { return rowCount; }
public int getRowCount() { return rowCount; }
public int getRowCount() { return rowCount; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c706ac52c9e6b6a05988079a5d1a442784a7531e/PacketEndTokenResult.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/PacketEndTokenResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 11835, 1380, 1435, 282, 288, 1377, 327, 14888, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 11835, 1380, 1435, 282, 288, 1377, 327, 14888, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile xmlTemplateDocument = (CmsXmlWpTemplateFile)getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // 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_FOLDER); session.removeValue("lasturl"); } // getting the URL to which we need to return when we're done String lasturl = getLastUrl(cms, parameters); // read the parameters String foldername = (String)parameters.get(C_PARA_FOLDER); if(foldername != null) { // need the foldername in the session in case of an exception in the dialog session.putValue(C_PARA_FOLDER, foldername); } else { foldername = (String)session.getValue(C_PARA_FOLDER); } String action = (String)parameters.get("action"); String newname = (String)parameters.get(C_PARA_NAME); String title = (String)parameters.get("TITLE"); // both for gallery and upload file String step = (String)parameters.get("step"); if(foldername == null) { foldername = ""; } if("new".equals(action)) { String galleryname = (String)parameters.get("NAME"); String group = (String)parameters.get("GROUP"); if(galleryname != null && group != null && galleryname != "" && group != "") { boolean read = parameters.get("READ") != null; boolean write = parameters.get("WRITE") != null; try { // create the folder // get the path from the workplace.ini String superfolder = getConfigFile(cms).getPicGalleryPath(); CmsFolder folder = cms.createFolder(superfolder, galleryname); cms.lockResource(folder.getAbsolutePath()); if(title != null) { cms.writeProperty(folder.getAbsolutePath(), C_PROPERTY_TITLE, title); } cms.chgrp(folder.getAbsolutePath(), group); int flag = folder.getAccessFlags(); // set the access rights for 'other' users if(read != ((flag & C_ACCESS_PUBLIC_READ) != 0)) { flag ^= C_ACCESS_PUBLIC_READ; } if(write != ((flag & C_ACCESS_PUBLIC_WRITE) != 0)) { flag ^= C_ACCESS_PUBLIC_WRITE; } cms.chmod(folder.getAbsolutePath(), flag); } catch(CmsException ex) { xmlTemplateDocument.setData("ERRORDETAILS", Utils.getStackTrace(ex)); templateSelector = "error"; } } else { templateSelector = "datamissing"; } } else { if("upload".equals(action)) { // get filename and file content if available String filename = null; byte[] filecontent = new byte[0]; // get the filename Enumeration files = cms.getRequestContext().getRequest().getFileNames(); while(files.hasMoreElements()) { filename = (String)files.nextElement(); } if(filename != null) { session.putValue(C_PARA_FILE, filename); } filename = (String)session.getValue(C_PARA_FILE); // get the filecontent if(filename != null) { filecontent = cms.getRequestContext().getRequest().getFile(filename); } if(filecontent != null) { session.putValue(C_PARA_FILECONTENT, filecontent); } filecontent = (byte[])session.getValue(C_PARA_FILECONTENT); if("0".equals(step)) { templateSelector = ""; } else { if("1".equals(step)) { // display the select filetype screen if(filename != null) { // check if the file size is 0 if(filecontent.length == 0) { templateSelector = "error"; xmlTemplateDocument.setData("details", filename); } else { xmlTemplateDocument.setData("MIME", filename); xmlTemplateDocument.setData("SIZE", "Not yet available"); xmlTemplateDocument.setData("FILESIZE", new Integer(filecontent.length).toString() + " Bytes"); xmlTemplateDocument.setData("FILENAME", filename); templateSelector = "step1"; } } } else { if("2".equals(step)) { // check if a new filename is given if(newname != null) { filename = newname; } try { CmsFile file = cms.createFile(foldername, filename, filecontent, C_TYPE_IMAGE_NAME); if(title != null) { String filepath = file.getAbsolutePath(); cms.lockResource(filepath); cms.writeProperty(filepath, C_PROPERTY_TITLE, title); } } catch(CmsException ex) { xmlTemplateDocument.setData("details", Utils.getStackTrace(ex)); templateSelector = "error"; xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } try { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + lasturl); } catch(Exception ex) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + lasturl, CmsException.C_UNKNOWN_EXCEPTION, ex); } } } } } } xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); // Finally start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/4340319d06bbb57613711013c96d806cebe115b3/CmsAdminPicGalleries.java/buggy/src/com/opencms/workplace/CmsAdminPicGalleries.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, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 6166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 467, 67, 4747, 2157, 1339, 273, 6166, ...
return RubyArray.newArray(getRuntime(), other, this);
return getRuntime().newArray(other, this);
public RubyArray coerce(RubyNumeric other) { if (getMetaClass() == other.getMetaClass()) { return RubyArray.newArray(getRuntime(), other, this); } return RubyArray.newArray( getRuntime(), RubyFloat.newFloat(getRuntime(), other.getDoubleValue()), RubyFloat.newFloat(getRuntime(), getDoubleValue())); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 12270, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 588, 2781, 797, 1435, 422, 1308, 18, 588, 2781, 797, 10756, 288, 5411, 327, 18814, 7675, 2704, 1076, 12, 3011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1076, 12270, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 588, 2781, 797, 1435, 422, 1308, 18, 588, 2781, 797, 10756, 288, 5411, 327, 18814, 7675, 2704, 1076, 12, 3011...
void handleIncomingUdpPacket(IpAddress dest, InetAddress sender, int port, byte[] data) { ByteArrayInputStream inp_stream=null; DataInputStream inp=null; Message msg=null; List l; // used if bundling is enabled try { // skip the first n bytes (default: 4), this is the version info inp_stream=new ByteArrayInputStream(data, VERSION_LENGTH, data.length - VERSION_LENGTH); inp=new DataInputStream(inp_stream); // inp=new ObjectInputStream(new BufferedInputStream(inp_stream)); // BufferedInputStream above makes no diff // inp=new ObjectInputStream(inp_stream); // inp=new MagicObjectInputStream(inp_stream); if(enable_bundling) { // l=new List(); // l.readExternal(inp); l=bufferToList(inp, dest, sender, port); for(Enumeration en=l.elements(); en.hasMoreElements();) { msg=(Message)en.nextElement(); try { handleMessage(msg); } catch(Throwable t) { if(log.isErrorEnabled()) log.error("failure: " + t.toString()); } } } else { // msg=new Message(); // msg.readExternal(inp); msg=bufferToMessage(inp, dest, sender, port); handleMessage(msg); } } catch(Throwable e) { if(log.isErrorEnabled()) log.error("exception in processing incoming packet", e); } finally { closeInputStream(inp); closeInputStream(inp_stream); } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/c8c626436dfef4be1df7bb508ef791d65fdad692/UDP.java/clean/src/org/jgroups/protocols/UDP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 1640, 20370, 57, 9295, 6667, 12, 16875, 1570, 16, 14218, 5793, 16, 509, 1756, 16, 1160, 8526, 501, 13, 288, 8826, 4348, 12789, 67, 3256, 33, 2011, 31, 751, 4348, 31647, 33, 2011, 31, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 1640, 20370, 57, 9295, 6667, 12, 16875, 1570, 16, 14218, 5793, 16, 509, 1756, 16, 1160, 8526, 501, 13, 288, 8826, 4348, 12789, 67, 3256, 33, 2011, 31, 751, 4348, 31647, 33, 2011, 31, 49...
-1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 59, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, 125, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263,
private static final short[] yyCheck4() { return new short[] { -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, 41, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 336, -1, -1, 339, 340, 341, 342, -1, 10, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 58, 59, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 60, -1, 62, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, 40, -1, 42, 43, -1, 45, 344, 47, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 124, 47, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 257, 258, 259, 260, 261, 262, 263, 264, -1, 344, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, 60, -1, 62, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, 257, 258, 259, -1, 261, -1, -1, 344, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, }; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, ...
case 346: {
case 342: {
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("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 ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 45: ImportDeclarations ::= ImportDeclaration // case 45: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 46: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 46: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclaration // case 47: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 48: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: PackageDeclaration ::= package PackageName SEMICOLON // case 49: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 50: ImportDeclaration ::= SingleTypeImportDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= SingleStaticImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 53: break; // // Rule 54: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 55: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 55: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 56: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 57: bad_rule = 57; break; // // Rule 58: TypeDeclaration ::= ClassDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= InterfaceDeclaration // case 59: break; // // Rule 60: TypeDeclaration ::= SEMICOLON // case 60: { btParser.setSym1(null); break; } // // Rule 61: ClassDeclaration ::= NormalClassDeclaration // case 61: break; // // Rule 62: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 62: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); if (a.isValue()) btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); else btParser.setSym1(nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 63: ClassModifiers ::= ClassModifier // case 63: break; // // Rule 64: ClassModifiers ::= ClassModifiers ClassModifier // case 64: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 65: ClassModifier ::= public // case 65: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 66: ClassModifier ::= protected // case 66: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 67: ClassModifier ::= private // case 67: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 68: ClassModifier ::= abstract // case 68: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 69: ClassModifier ::= static // case 69: { btParser.setSym1(Flags.STATIC); break; } // // Rule 70: ClassModifier ::= final // case 70: { btParser.setSym1(Flags.FINAL); break; } // // Rule 71: ClassModifier ::= strictfp // case 71: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 72: TypeParameters ::= LESS TypeParameterList GREATER // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 74: bad_rule = 74; break; // // Rule 75: Super ::= extends ClassType // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: Interfaces ::= implements InterfaceTypeList // case 76: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 77: InterfaceTypeList ::= InterfaceType // case 77: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 78: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 78: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 79: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 79: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclaration // case 80: break; // // Rule 81: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 81: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 82: ClassBodyDeclaration ::= ClassMemberDeclaration // case 82: break; // // Rule 83: ClassBodyDeclaration ::= InstanceInitializer // case 83: { 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 84: ClassBodyDeclaration ::= StaticInitializer // case 84: { 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 85: ClassBodyDeclaration ::= ConstructorDeclaration // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 86: ClassMemberDeclaration ::= FieldDeclaration // case 86: break; // // Rule 87: ClassMemberDeclaration ::= MethodDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= ClassDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= InterfaceDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 91: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 91: { 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 92: VariableDeclarators ::= VariableDeclarator // case 92: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 93: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 93: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 94: VariableDeclarator ::= VariableDeclaratorId // case 94: break; // // Rule 95: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 95: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 96: VariableDeclaratorId ::= identifier // case 96: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 97: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 98: VariableInitializer ::= Expression // case 98: break; // // Rule 99: VariableInitializer ::= ArrayInitializer // case 99: break; // // Rule 100: FieldModifiers ::= FieldModifier // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifiers FieldModifier // case 101: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 102: FieldModifier ::= public // case 102: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 103: FieldModifier ::= protected // case 103: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 104: FieldModifier ::= private // case 104: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 105: FieldModifier ::= static // case 105: { btParser.setSym1(Flags.STATIC); break; } // // Rule 106: FieldModifier ::= final // case 106: { btParser.setSym1(Flags.FINAL); break; } // // Rule 107: FieldModifier ::= transient // case 107: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 108: FieldModifier ::= volatile // case 108: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 109: MethodDeclaration ::= MethodHeader MethodBody // case 109: { MethodDecl a = (MethodDecl) btParser.getSym(1); Block b = (Block) btParser.getSym(2); btParser.setSym1(a.body(b)); break; } // // Rule 110: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 110: { 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 111: ResultType ::= Type // case 111: break; // // Rule 112: ResultType ::= void // case 112: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 113: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 113: { 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 114: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 114: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 115: FormalParameterList ::= LastFormalParameter // case 115: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 116: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 116: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 117: FormalParameters ::= FormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameters COMMA FormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 119: { 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 121: VariableModifiers ::= VariableModifiers VariableModifier // case 121: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 122: VariableModifier ::= final // case 122: { btParser.setSym1(Flags.FINAL); break; } // // Rule 123: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 123: { 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 124: MethodModifiers ::= MethodModifier // case 124: break; // // Rule 125: MethodModifiers ::= MethodModifiers MethodModifier // case 125: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 126: MethodModifier ::= public // case 126: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 127: MethodModifier ::= protected // case 127: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 128: MethodModifier ::= private // case 128: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 129: MethodModifier ::= abstract // case 129: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 130: MethodModifier ::= static // case 130: { btParser.setSym1(Flags.STATIC); break; } // // Rule 131: MethodModifier ::= final // case 131: { btParser.setSym1(Flags.FINAL); break; } // // Rule 132: MethodModifier ::= synchronized // case 132: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 133: MethodModifier ::= native // case 133: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 134: MethodModifier ::= strictfp // case 134: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 135: Throws ::= throws ExceptionTypeList // case 135: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 136: ExceptionTypeList ::= ExceptionType // case 136: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 137: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 137: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 138: ExceptionType ::= ClassType // case 138: break; // // Rule 139: ExceptionType ::= TypeVariable // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= SEMICOLON // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants COMMA EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= LPAREN ArgumentListopt RPAREN // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= SEMICOLON // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { 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 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } 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 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= SEMICOLON // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName EQUAL ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues COMMA ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= AT TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= LBRACE BlockStatementsopt RBRACE // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); 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 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= SEMICOLON // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier COLON Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression SEMICOLON // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression SEMICOLON // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression COLON // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant COLON // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default COLON // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt SEMICOLON // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt SEMICOLON // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type DOT class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void DOT class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName DOT this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { // 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 322: Literal ::= LongLiteral // case 322: { // 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 323: Literal ::= FloatingPointLiteral // case 323: { // 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 324: Literal ::= DoubleLiteral // case 324: { // 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 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList COMMA Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: ArrayCreationExpression ::= new PrimitiveType DimExprs Dimsopt // case 336: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 337: ArrayCreationExpression ::= new ClassOrInterfaceType DimExprs Dimsopt // case 337: { TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 338: ArrayCreationExpression ::= new PrimitiveType Dims ArrayInitializer // case 338: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 339: ArrayCreationExpression ::= new ClassOrInterfaceType Dims ArrayInitializer // case 339: { TypeNode a = (TypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 340: DimExprs ::= DimExpr // case 340: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 341: DimExprs ::= DimExprs DimExpr // case 341: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 342: DimExpr ::= LBRACKET Expression RBRACKET // case 342: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 343: Dims ::= LBRACKET RBRACKET // case 343: { btParser.setSym1(new Integer(1)); break; } // // Rule 344: Dims ::= Dims LBRACKET RBRACKET // case 344: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 345: FieldAccess ::= Primary DOT identifier // case 345: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 346: FieldAccess ::= super DOT identifier // case 346: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 347: FieldAccess ::= ClassName DOT super DOT identifier // case 347: { 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 348: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 348: { 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 349: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { 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 350: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 350: {//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 351: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 351: { 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 352: PostfixExpression ::= Primary // case 352: break; // // Rule 353: PostfixExpression ::= ExpressionName // case 353: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 354: PostfixExpression ::= PostIncrementExpression // case 354: break; // // Rule 355: PostfixExpression ::= PostDecrementExpression // case 355: break; // // Rule 356: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 356: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 357: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 357: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 358: UnaryExpression ::= PreIncrementExpression // case 358: break; // // Rule 359: UnaryExpression ::= PreDecrementExpression // case 359: break; // // Rule 360: UnaryExpression ::= PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 361: UnaryExpression ::= MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 363: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 364: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 365: break; // // Rule 366: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 367: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 369: MultiplicativeExpression ::= UnaryExpression // case 369: break; // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 371: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 372: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 373: AdditiveExpression ::= MultiplicativeExpression // case 373: break; // // Rule 374: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 375: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 376: ShiftExpression ::= AdditiveExpression // case 376: break; // // Rule 377: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 378: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 378: { // 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 379: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 379: { // 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 380: RelationalExpression ::= ShiftExpression // case 380: break; // // Rule 381: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 383: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 384: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 385: EqualityExpression ::= RelationalExpression // case 385: break; // // Rule 386: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 387: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 388: AndExpression ::= EqualityExpression // case 388: break; // // Rule 389: AndExpression ::= AndExpression AND EqualityExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 390: ExclusiveOrExpression ::= AndExpression // case 390: break; // // Rule 391: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 392: InclusiveOrExpression ::= ExclusiveOrExpression // case 392: break; // // Rule 393: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 394: ConditionalAndExpression ::= InclusiveOrExpression // case 394: break; // // Rule 395: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 396: ConditionalOrExpression ::= ConditionalAndExpression // case 396: break; // // Rule 397: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 398: ConditionalExpression ::= ConditionalOrExpression // case 398: break; // // Rule 399: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 399: { 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 400: AssignmentExpression ::= ConditionalExpression // case 400: break; // // Rule 401: AssignmentExpression ::= Assignment // case 401: break; // // Rule 402: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 402: { 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 403: LeftHandSide ::= ExpressionName // case 403: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 404: LeftHandSide ::= FieldAccess // case 404: break; // // Rule 405: LeftHandSide ::= ArrayAccess // case 405: break; // // Rule 406: AssignmentOperator ::= EQUAL // case 406: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 407: AssignmentOperator ::= MULTIPLY_EQUAL // case 407: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= DIVIDE_EQUAL // case 408: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= REMAINDER_EQUAL // case 409: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= PLUS_EQUAL // case 410: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= MINUS_EQUAL // case 411: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 412: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= GREATER GREATER EQUAL // case 413: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 414: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= AND_EQUAL // case 415: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 416: AssignmentOperator ::= XOR_EQUAL // case 416: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 417: AssignmentOperator ::= OR_EQUAL // case 417: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 418: Expression ::= AssignmentExpression // case 418: break; // // Rule 419: ConstantExpression ::= Expression // case 419: break; // // Rule 420: Dimsopt ::= // case 420: { btParser.setSym1(new Integer(0)); break; } // // Rule 421: Dimsopt ::= Dims // case 421: break; // // Rule 422: Catchesopt ::= // case 422: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 423: Catchesopt ::= Catches // case 423: break; // // Rule 424: identifieropt ::= // case 424: btParser.setSym1(null); break; // // Rule 425: identifieropt ::= identifier // case 425: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 426: ForUpdateopt ::= // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 427: ForUpdateopt ::= ForUpdate // case 427: break; // // Rule 428: Expressionopt ::= // case 428: btParser.setSym1(null); break; // // Rule 429: Expressionopt ::= Expression // case 429: break; // // Rule 430: ForInitopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 431: ForInitopt ::= ForInit // case 431: break; // // Rule 432: SwitchLabelsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 433: SwitchLabelsopt ::= SwitchLabels // case 433: break; // // Rule 434: SwitchBlockStatementGroupsopt ::= // case 434: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 435: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 435: break; // // Rule 436: VariableModifiersopt ::= // case 436: { btParser.setSym1(Flags.NONE); break; } // // Rule 437: VariableModifiersopt ::= VariableModifiers // case 437: break; // // Rule 438: VariableInitializersopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: VariableInitializersopt ::= VariableInitializers // case 439: break; // // Rule 440: ElementValuesopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuesopt ::= ElementValues // case 441: bad_rule = 441; break; // // Rule 442: ElementValuePairsopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: ElementValuePairsopt ::= ElementValuePairs // case 443: bad_rule = 443; break; // // Rule 444: DefaultValueopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: DefaultValueopt ::= DefaultValue // case 445: break; // // Rule 446: AnnotationTypeElementDeclarationsopt ::= // case 446: btParser.setSym1(null); break; // // Rule 447: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 447: bad_rule = 447; break; // // Rule 448: AbstractMethodModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 449: break; // // Rule 450: ConstantModifiersopt ::= // case 450: { btParser.setSym1(Flags.NONE); break; } // // Rule 451: ConstantModifiersopt ::= ConstantModifiers // case 451: break; // // Rule 452: InterfaceMemberDeclarationsopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 453: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 453: break; // // Rule 454: ExtendsInterfacesopt ::= // case 454: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 455: ExtendsInterfacesopt ::= ExtendsInterfaces // case 455: break; // // Rule 456: InterfaceModifiersopt ::= // case 456: { btParser.setSym1(Flags.NONE); break; } // // Rule 457: InterfaceModifiersopt ::= InterfaceModifiers // case 457: break; // // Rule 458: ClassBodyopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: ClassBodyopt ::= ClassBody // case 459: break; // // Rule 460: Argumentsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: Argumentsopt ::= Arguments // case 461: bad_rule = 461; break; // // Rule 462: EnumBodyDeclarationsopt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 463: bad_rule = 463; break; // // Rule 464: ,opt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: ,opt ::= COMMA // case 465: break; // // Rule 466: EnumConstantsopt ::= // case 466: btParser.setSym1(null); break; // // Rule 467: EnumConstantsopt ::= EnumConstants // case 467: bad_rule = 467; break; // // Rule 468: ArgumentListopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 469: ArgumentListopt ::= ArgumentList // case 469: break; // // Rule 470: BlockStatementsopt ::= // case 470: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 471: BlockStatementsopt ::= BlockStatements // case 471: break; // // Rule 472: ExplicitConstructorInvocationopt ::= // case 472: btParser.setSym1(null); break; // // Rule 473: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 473: break; // // Rule 474: ConstructorModifiersopt ::= // case 474: { btParser.setSym1(Flags.NONE); break; } // // Rule 475: ConstructorModifiersopt ::= ConstructorModifiers // case 475: break; // // Rule 476: ...opt ::= // case 476: btParser.setSym1(null); break; // // Rule 477: ...opt ::= ELLIPSIS // case 477: break; // // Rule 478: FormalParameterListopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 479: FormalParameterListopt ::= FormalParameterList // case 479: break; // // Rule 480: Throwsopt ::= // case 480: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 481: Throwsopt ::= Throws // case 481: break; // // Rule 482: MethodModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: MethodModifiersopt ::= MethodModifiers // case 483: break; // // Rule 484: FieldModifiersopt ::= // case 484: { btParser.setSym1(Flags.NONE); break; } // // Rule 485: FieldModifiersopt ::= FieldModifiers // case 485: break; // // Rule 486: ClassBodyDeclarationsopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 487: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 487: break; // // Rule 488: Interfacesopt ::= // case 488: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 489: Interfacesopt ::= Interfaces // case 489: break; // // Rule 490: Superopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: Superopt ::= Super // case 491: break; // // Rule 492: TypeParametersopt ::= // case 492: btParser.setSym1(null); break; // // Rule 493: TypeParametersopt ::= TypeParameters // case 493: break; // // Rule 494: ClassModifiersopt ::= // case 494: { btParser.setSym1(Flags.NONE); break; } // // Rule 495: ClassModifiersopt ::= ClassModifiers // case 495: break; // // Rule 496: Annotationsopt ::= // case 496: btParser.setSym1(null); break; // // Rule 497: Annotationsopt ::= Annotations // case 497: bad_rule = 497; break; // // Rule 498: TypeDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 499: TypeDeclarationsopt ::= TypeDeclarations // case 499: break; // // Rule 500: ImportDeclarationsopt ::= // case 500: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 501: ImportDeclarationsopt ::= ImportDeclarations // case 501: break; // // Rule 502: PackageDeclarationopt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: PackageDeclarationopt ::= PackageDeclaration // case 503: break; // // Rule 504: WildcardBoundsOpt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: WildcardBoundsOpt ::= WildcardBounds // case 505: bad_rule = 505; break; // // Rule 506: AdditionalBoundListopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: AdditionalBoundListopt ::= AdditionalBoundList // case 507: bad_rule = 507; break; // // Rule 508: TypeBoundopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeBoundopt ::= TypeBound // case 509: bad_rule = 509; break; // // Rule 510: TypeArgumentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: TypeArgumentsopt ::= TypeArguments // case 511: bad_rule = 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: bad_rule = 521; break; // // Rule 522: PlaceType ::= activity // case 522: bad_rule = 522; break; // // Rule 523: PlaceType ::= method // case 523: bad_rule = 523; break; // // Rule 524: PlaceType ::= current // case 524: bad_rule = 524; break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: bad_rule = 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); System.out.println("Parser parses X10ArrayType Type [.] as |" + t +"|"); 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 LBRACKET Expression RBRACKET // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(4); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c); btParser.setSym1(nf.NewArray(pos(), a, l)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType LBRACKET RBRACKET ArrayInitializer // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(5); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 0, d)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); System.out.println("parser: Parsed new " + a + " [. " + c + " ]"); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, null)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET Expression // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); System.out.println("parser: Parsed new " + a + " [. " + c + " ]" + d); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, d)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, null)); break; } // // Rule 550: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET Expression // case 550: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, d)); break; } // // Rule 551: ArrayBaseType ::= PrimitiveType // case 551: break; // // Rule 552: ArrayBaseType ::= ClassOrInterfaceType // case 552: break; // // Rule 553: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 553: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); 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 554: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 554: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 555: Statement ::= NowStatement // case 555: break; // // Rule 556: Statement ::= ClockedStatement // case 556: break; // // Rule 557: Statement ::= AsyncStatement // case 557: break; // // Rule 558: Statement ::= AtomicStatement // case 558: break; // // Rule 559: Statement ::= WhenStatement // case 559: break; // // Rule 560: Statement ::= ForEachStatement // case 560: break; // // Rule 561: Statement ::= AtEachStatement // case 561: break; // // Rule 562: Statement ::= FinishStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= NextStatement // case 563: break; // // Rule 564: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 564: break; // // Rule 565: StatementNoShortIf ::= NowStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ClockedStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AsyncStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= AtomicStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= WhenStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= ForEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= AtEachStatementNoShortIf // case 571: break; // // Rule 572: StatementNoShortIf ::= FinishStatementNoShortIf // case 572: break; // // Rule 573: NowStatement ::= now LPAREN Clock RPAREN Statement // case 573: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 574: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 574: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 575: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 575: { 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 576: AsyncStatement ::= async LPAREN here RPAREN Statement // case 576: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 577: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 577: { 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 578: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 578: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 579: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 579: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 580: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 580: { 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 581: ForEachStatement ::= foreach 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.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: AtEachStatement ::= ateach 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.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 583: { 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 584: FinishStatement ::= finish Statement // case 584: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 585: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 585: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 586: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 586: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 587: { 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 588: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 589: { 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 590: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 590: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 591: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 591: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 592: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 592: { 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 593: ForEachStatementNoShortIf ::= foreach 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.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 594: { 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 595: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 595: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 596: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 596: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 597: PlaceExpression ::= here // case 597: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 598: PlaceExpression ::= this // case 598: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 599: PlaceExpression ::= ExpressionName // case 599: { Expr e = (Expr) btParser.getSym(1); btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), e, "place")); break; } // // Rule 600: PlaceExpression ::= ArrayAccess // case 600: bad_rule = 600; break; // // Rule 601: NextStatement ::= next SEMICOLON // case 601: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 602: AwaitStatement ::= await Expression SEMICOLON // case 602: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 603: ClockList ::= Clock // case 603: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 604: ClockList ::= ClockList COMMA Clock // case 604: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 605: Clock ::= identifier // case 605: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 606: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 606: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 607: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 607: { 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 608: RelationalExpression ::= RelationalExpression instanceof Type // case 608: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 609: ExpressionName ::= here // case 609: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 610: Primary ::= FutureExpression // case 610: break; // // Rule 611: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 611: { 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 612: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 612: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 613: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 621: bad_rule = 621; break; // // Rule 622: PlaceTypeSpecifieropt ::= // case 622: btParser.setSym1(null); break; // // Rule 623: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 623: break; // // Rule 624: DepParametersopt ::= // case 624: btParser.setSym1(null); break; // // Rule 625: DepParametersopt ::= DepParameters // case 625: break; // // Rule 626: WhereClauseopt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: WhereClauseopt ::= WhereClause // case 627: break; // // Rule 628: ObjectKindopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: ObjectKindopt ::= ObjectKind // case 629: break; // // Rule 630: ArrayInitializeropt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: ArrayInitializeropt ::= ArrayInitializer // case 631: break; // // Rule 632: ConcreteDistributionopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ConcreteDistributionopt ::= ConcreteDistribution // case 633: break; // // Rule 634: PlaceExpressionSingleListopt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 635: break; // // Rule 636: ArgumentListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: ArgumentListopt ::= ArgumentList // case 637: break; // // Rule 638: DepParametersopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: DepParametersopt ::= DepParameters // case 639: break; default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f14971e321c6a9348df794730cae61aaf3cfbf90/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 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, ...
/* * File dFile2 = new File("GZIPOutFinish.txt"); dFile2.delete(); * File dFile3 = new File("GZIPOutClose.txt"); dFile3.delete(); File * dFile4 = new File("GZIPOutWrite.txt"); dFile4.delete(); */
File dFile2 = new File("GZIPOutFinish.txt"); dFile2.delete(); File dFile3 = new File("GZIPOutWrite.txt"); dFile3.delete(); File dFile4 = new File("GZIPOutClose2.txt"); dFile4.delete();
protected void tearDown() { try { File dFile = new File("GZIPOutCon.txt"); dFile.delete(); /* * File dFile2 = new File("GZIPOutFinish.txt"); dFile2.delete(); * File dFile3 = new File("GZIPOutClose.txt"); dFile3.delete(); File * dFile4 = new File("GZIPOutWrite.txt"); dFile4.delete(); */ } catch (SecurityException e) { fail("Cannot delete file for security reasons"); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/01efd78c8d28ae4c1e38c157428b2d13e572ed80/GZIPOutputStreamTest.java/buggy/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/GZIPOutputStreamTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 268, 2091, 4164, 1435, 288, 202, 202, 698, 288, 1082, 202, 812, 302, 812, 273, 394, 1387, 2932, 43, 13951, 1182, 442, 18, 5830, 8863, 1082, 202, 72, 812, 18, 3733, 5621, 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, 377, 4750, 918, 268, 2091, 4164, 1435, 288, 202, 202, 698, 288, 1082, 202, 812, 302, 812, 273, 394, 1387, 2932, 43, 13951, 1182, 442, 18, 5830, 8863, 1082, 202, 72, 812, 18, 3733, 5621, 1082...
String id = "com.cougaarsoftware.cougaar.ide.ui.preferences.CougaarPreferencePage";
String id = "com.cougaarsoftware.cougaar.ide.ui.preferences.CougaarPreferencePage";
private void handleAddButtonSelected() { String id = "com.cougaarsoftware.cougaar.ide.ui.preferences.CougaarPreferencePage"; CougaarPreferencePage page = new CougaarPreferencePage(); showPreferencePage(id, page); }
11868 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11868/92a354f23354594e705e58b658640ceb6a5ecffa/CougaarCapabilityConfigurationPage.java/clean/cougaaride/com.cougaarsoftware.cougaar.ide.ui/src/com/cougaarsoftware/cougaar/ide/ui/wizards/CougaarCapabilityConfigurationPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 986, 3616, 7416, 1435, 288, 1082, 514, 612, 273, 315, 832, 18, 2894, 637, 69, 5913, 4401, 2726, 18, 2894, 637, 69, 297, 18, 831, 18, 4881, 18, 23219, 18, 4249, 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, 1152, 918, 1640, 986, 3616, 7416, 1435, 288, 1082, 514, 612, 273, 315, 832, 18, 2894, 637, 69, 5913, 4401, 2726, 18, 2894, 637, 69, 297, 18, 831, 18, 4881, 18, 23219, 18, 4249, 6...
henplus.setCurrentSession(session);
_henplus.setCurrentSession(session);
public int execute(SQLSession currentSession, String cmd, String param) { SQLSession session = null; StringTokenizer st = new StringTokenizer(param); int argc = st.countTokens(); if ("sessions".equals(cmd)) { showSessions(); return SUCCESS; } else if ("connect".equals(cmd)) { if (argc < 1 || argc > 2) { return SYNTAX_ERROR; } String url = (String) st.nextElement(); String alias = (argc==2) ? st.nextToken() : null; if (alias == null) { /* * we only got one parameter. So the that single parameter * might have been an alias. let's see.. */ if (knownUrls.containsKey(url)) { String possibleAlias = url; url = (String) knownUrls.get(url); if (!possibleAlias.equals(url)) { alias = possibleAlias; } } } try { session = new SQLSession(url, null, null); knownUrls.put(url, url); if (alias != null) { knownUrls.put(alias, url); } currentSessionName = createSessionName(session, alias); _sessionManager.addSession(currentSessionName, session); _sessionManager.setCurrentSession(session); } catch (Exception e) { HenPlus.msg().println(e.toString()); return EXEC_FAILED; } } else if ("switch".equals(cmd)) { String sessionName = null; if (argc != 1 && _sessionManager.getSessionCount() != 2) { return SYNTAX_ERROR; } if (argc == 0 && _sessionManager.getSessionCount() == 2) { Iterator i = _sessionManager.getSessionNames().iterator(); while (i.hasNext()) { sessionName = (String) i.next(); if (!sessionName.equals(currentSessionName)) { break; } } } else { sessionName = (String) st.nextElement(); } session = _sessionManager.getSessionByName(sessionName); if (session == null) { HenPlus.msg().println("'" + sessionName + "': no such session"); return EXEC_FAILED; } currentSessionName = sessionName; } else if ("rename-session".equals(cmd)) { String sessionName = null; if (argc != 1) { return SYNTAX_ERROR; } sessionName = (String) st.nextElement(); if (sessionName.length() < 1) { return SYNTAX_ERROR; } /* // moved to sessionmanager.renameSession * if (_sessionManager.sessionNameExists(sessionName)) { HenPlus.err().println("A session with that name already exists"); return EXEC_FAILED; } session = _sessionManager.removeSessionWithName(currentSessionName); if (session == null) { return EXEC_FAILED; } _sessionManager.addSession(sessionName, session); */ int renamed = _sessionManager.renameSession(currentSessionName, sessionName); if (renamed == EXEC_FAILED) return EXEC_FAILED; currentSessionName = sessionName; session = _sessionManager.getCurrentSession(); } else if ("disconnect".equals(cmd)) { currentSessionName = null; if (argc != 0) { return SYNTAX_ERROR; } _sessionManager.closeCurrentSession(); HenPlus.msg().println("session closed."); if (_sessionManager.hasSessions()) { currentSessionName = _sessionManager.getFirstSessionName(); session = _sessionManager.getSessionByName(currentSessionName); } } if (currentSessionName != null) { henplus.setPrompt(currentSessionName + "> "); } else { henplus.setDefaultPrompt(); } henplus.setCurrentSession(session); return SUCCESS; }
49725 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49725/0ec49058fc4194836877344a9b99a32bcba7ef42/ConnectCommand.java/clean/src/henplus/commands/ConnectCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1836, 12, 3997, 2157, 783, 2157, 16, 514, 1797, 16, 514, 579, 13, 288, 202, 3997, 2157, 1339, 273, 446, 31, 202, 780, 10524, 384, 273, 394, 16370, 12, 891, 1769, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1836, 12, 3997, 2157, 783, 2157, 16, 514, 1797, 16, 514, 579, 13, 288, 202, 3997, 2157, 1339, 273, 446, 31, 202, 780, 10524, 384, 273, 394, 16370, 12, 891, 1769, 202, 474, ...
context.debugObject.delEntity();
context.getDebugObject().delEntity();
public void run() { while (true) { DelayedSignal s = senderObject.getNextDelayedSignal(); if (s == null) return; runtime.Object target = s.getTarget(); System.out.println(target.getObjectId() + " delivered delayed signal"); synchronized (target) { Integer signalId = s.getSignalId(); Integer targetObjectId = target.getObjectId(); if (target.isActive()) { target.addSignal(s); } else { /* * All interpreters have stopped, * signal shouldn't be deliviered. */ context.debugObject.delEntity(); } } } }
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/68a4ae40ff376d85fd54051fd1aad051e98ed568/SignalGenerator.java/buggy/trunk/src/runtime/SignalGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 29527, 11208, 272, 273, 5793, 921, 18, 588, 2134, 29527, 11208, 5621, 1082, 202, 430, 261, 87, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 29527, 11208, 272, 273, 5793, 921, 18, 588, 2134, 29527, 11208, 5621, 1082, 202, 430, 261, 87, 422, 446, ...
dumpElement ("REFERENCE ");
public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResolution (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResolution (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResolution (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/fc168340950fe24246924819019e0b004bdb5365/ObjectInputStream.java/buggy/libjava/java/io/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 7566, 14617, 315, 1769, 4657, 1046, 7566, 14617, 315, 1769, 1071, 8481, 1046, 7566, 14617, 315, 1769, 727, 8481, 1046, 7566, 14617, 315, 1769, 1033, 8481, 1046, 7566, 14617, 315, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 7566, 14617, 315, 1769, 4657, 1046, 7566, 14617, 315, 1769, 1071, 8481, 1046, 7566, 14617, 315, 1769, 727, 8481, 1046, 7566, 14617, 315, 1769, 1033, 8481, 1046, 7566, 14617, 315, 1769,...
AminoAcid oAminoAcid = new AminoAcid();
AminoAcid oAminoAcid = builder.newAminoAcid();
public void testAminoAcid() { AminoAcid oAminoAcid = new AminoAcid(); assertNotNull(oAminoAcid); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2569471249d8066c9cb1c037569a570e039ed288/AminoAcidTest.java/buggy/src/org/openscience/cdk/test/AminoAcidTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 37, 19544, 9988, 350, 1435, 288, 3639, 432, 19544, 9988, 350, 320, 37, 19544, 9988, 350, 273, 2089, 18, 2704, 37, 19544, 9988, 350, 5621, 3639, 25395, 12, 83, 37, 19544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 37, 19544, 9988, 350, 1435, 288, 3639, 432, 19544, 9988, 350, 320, 37, 19544, 9988, 350, 273, 2089, 18, 2704, 37, 19544, 9988, 350, 5621, 3639, 25395, 12, 83, 37, 19544, ...
if (containEmptyName(arrayQualifiedTypeReference.tokens)) return;
if (isRecoveredName(arrayQualifiedTypeReference.tokens)) return;
public void invalidType(ASTNode location, TypeBinding type) { int id = IProblem.UndefinedType; // default switch (type.problemId()) { case ProblemReasons.NotFound : id = IProblem.UndefinedType; break; case ProblemReasons.NotVisible : id = IProblem.NotVisibleType; break; case ProblemReasons.Ambiguous : id = IProblem.AmbiguousType; break; case ProblemReasons.InternalNameProvided : id = IProblem.InternalTypeNameProvided; break; case ProblemReasons.InheritedNameHidesEnclosingName : id = IProblem.InheritedTypeHidesEnclosingName; break; case ProblemReasons.NonStaticReferenceInStaticContext : id = IProblem.NonStaticTypeFromStaticInvocation; break; case ProblemReasons.IllegalSuperTypeVariable : id = IProblem.IllegalTypeVariableSuperReference; break; case ProblemReasons.NoError : // 0 default : needImplementation(); // want to fail to see why we were here... break; } int end = location.sourceEnd; if (location instanceof QualifiedNameReference) { QualifiedNameReference ref = (QualifiedNameReference) location; if (containEmptyName(ref.tokens)) return; if (ref.indexOfFirstFieldBinding >= 1) end = (int) ref.sourcePositions[ref.indexOfFirstFieldBinding - 1]; } else if (location instanceof ArrayQualifiedTypeReference) { ArrayQualifiedTypeReference arrayQualifiedTypeReference = (ArrayQualifiedTypeReference) location; if (containEmptyName(arrayQualifiedTypeReference.tokens)) return; long[] positions = arrayQualifiedTypeReference.sourcePositions; end = (int) positions[positions.length - 1]; } else if (location instanceof QualifiedTypeReference) { QualifiedTypeReference ref = (QualifiedTypeReference) location; if (containEmptyName(ref.tokens)) return; if (type instanceof ReferenceBinding) { char[][] name = ((ReferenceBinding) type).compoundName; end = (int) ref.sourcePositions[name.length - 1]; } } else if (location instanceof ImportReference) { ImportReference ref = (ImportReference) location; if (containEmptyName(ref.tokens)) return; if (type instanceof ReferenceBinding) { char[][] name = ((ReferenceBinding) type).compoundName; end = (int) ref.sourcePositions[name.length - 1]; } } else if (location instanceof ArrayTypeReference) { ArrayTypeReference arrayTypeReference = (ArrayTypeReference) location; if (arrayTypeReference.token != null && arrayTypeReference.token.length == 0) return; end = arrayTypeReference.originalSourceEnd; } this.handle( id, new String[] {new String(type.leafComponentType().readableName()) }, new String[] {new String(type.leafComponentType().shortReadableName())}, location.sourceStart, end);}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/b62ba1f827cf4ea86ca5f1a1ddb9504a62920662/ProblemReporter.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 2057, 559, 12, 9053, 907, 2117, 16, 1412, 5250, 618, 13, 288, 202, 474, 612, 273, 467, 13719, 18, 10317, 559, 31, 368, 805, 202, 9610, 261, 723, 18, 18968, 548, 10756, 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, 1071, 918, 2057, 559, 12, 9053, 907, 2117, 16, 1412, 5250, 618, 13, 288, 202, 474, 612, 273, 467, 13719, 18, 10317, 559, 31, 368, 805, 202, 9610, 261, 723, 18, 18968, 548, 10756, 288, 202, ...
model1.insertSlash(); model1.insertStar();
model1.insertChar('/'); model1.insertChar('*');
public void testStartDeleteGap() { model1.insertSlash(); model1.insertStar(); model1.insertGap(2); model1.insertStar(); model1.insertSlash(); model1.move(-4); model1.delete(2); assertEquals("#0.0", 2, model1.absOffset()); assertEquals("#0.1", "*/", model1.currentToken().getType()); assertEquals("#0.2", ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); model1.move(-2); assertEquals("#1.0", 0, model1.absOffset()); assertEquals("#1.1", "/*", model1.currentToken().getType()); assertEquals("#1.2", ReducedToken.FREE, model1.getStateAtCurrent()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6f064a351cf6f32ca81eb7bd4e1d9f192f6a46c6/ReducedModelDeleteTest.java/clean/drjava/src/edu/rice/cs/drjava/ReducedModelDeleteTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1685, 2613, 14001, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 14001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1685, 2613, 14001, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 14001, ...
in.unread();
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8d78476dde863807579dcd20202decfcfcc9f7f1/TokenStream.java/clean/js/rhino/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...