rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET)
if (firstErrorOffset == FIRST_ERROR_UNSET){
protected void failParse() { try { if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET) firstErrorOffset = LA(1).getOffset(); } catch (EndOfFileException eof) { // do nothing } finally { parsePassed = false; } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/226defa14a6967e9fb25044745732169a2192074/ExpressionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2321, 3201, 1435, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 3645, 668, 2335, 422, 21786, 67, 3589, 67, 11271, 67, 2124, 4043, 13, 9506, 202, 3645, 668, 2335, 273, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2321, 3201, 1435, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 3645, 668, 2335, 422, 21786, 67, 3589, 67, 11271, 67, 2124, 4043, 13, 9506, 202, 3645, 668, 2335, 273, 29...
libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy);
defaultcopy1.setName("defaultTheme1"); theme1copy1.setName("theme11"); libraryHandle.getThemes().add(defaultcopy1); libraryHandle.getThemes().add(theme1copy1);
public void testCopyPasteTheme() throws Exception { openLibrary(LibC); ThemeHandle defaulttheme = libraryHandle.findTheme("defaultTheme"); ThemeHandle theme1 = libraryHandle.findTheme("theme1"); assertNotNull(defaulttheme); assertNotNull(theme1); ThemeHandle defaultcopy = ((Theme)defaulttheme.copy()).handle(libraryHandle.getModule()); ThemeHandle theme1copy = ((Theme)theme1.copy()).handle(libraryHandle.getModule()); try { libraryHandle.getThemes().add(defaultcopy); fail(); } catch(NameException e) { assertNotNull(e); } defaultcopy.setName("defaultTheme1"); theme1copy.setName("theme11"); libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy); assertEquals("defaultTheme1",libraryHandle.getThemes().get(2).getName()); assertEquals("theme11",libraryHandle.getThemes().get(3).getName()); //paste themes to another library openLibrary(LibB); libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy); assertEquals("defaultTheme1",libraryHandle.getThemes().get(2).getName()); assertEquals("theme11",libraryHandle.getThemes().get(3).getName()); }
58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/6a3426426d9e9449e97566a819e6e415c06772b2/ThemeTest.java/buggy/plugins/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/ThemeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 225, 1071, 918, 1842, 2951, 52, 14725, 8335, 1435, 1216, 1185, 3639, 288, 377, 202, 565, 1696, 9313, 12, 5664, 39, 1769, 377, 202, 565, 19745, 3259, 805, 7997, 273, 5313, 3259, 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, 1377, 202, 225, 1071, 918, 1842, 2951, 52, 14725, 8335, 1435, 1216, 1185, 3639, 288, 377, 202, 565, 1696, 9313, 12, 5664, 39, 1769, 377, 202, 565, 19745, 3259, 805, 7997, 273, 5313, 3259, 18, ...
if (page == INITIAL_PAGE) {
if (page == ADD_PAGE) {
protected Map referenceData(HttpServletRequest request, int page) throws Exception { Map model = new HashMap(); Presentation presentation = (Presentation) request.getSession().getAttribute(getCommandName()); String baseUrl = this.getServerConfigurationService().getServerUrl(); model.put("baseUrl", baseUrl); model.put("currentPage", getCurrentPageNumber(presentation, page)); model.put("totalPages", getTotalPages(presentation, page)); model.put("allowGuests", Config.getInstance().getProperties().getProperty("allowGuests")); if (page == INITIAL_PAGE) { Agent agent = getAuthManager().getAgent(); model.put("templates", getPresentationManager().findTemplatesByOwner(agent, PortalService.getCurrentSiteId())); model.put("publishedTemplates", getPresentationManager().findPublishedTemplates(PortalService.getCurrentSiteId())); return model; } if (page == PROPERTY_PAGE) { PresentationTemplate template = getPresentationManager().getPresentationTemplate(presentation.getTemplate().getId()); presentation.setTemplate(template); SchemaNode schema = loadSchema(presentation.getTemplate().getPropertyPage(), model).getChild(presentation.getTemplate().getDocumentRoot()); //make sure schema for properties is set correctly for both add, or edit if (presentation.getProperties() == null) { presentation.setProperties(new ElementBean(presentation.getTemplate().getDocumentRoot(), schema)); } else { presentation.getProperties().setCurrentSchema(schema); } } if (page == PRESETATION_FREE_FORM_PAGES) { if (presentation.getPages() == null) { presentation.setPages( getPresentationManager().getPresentationPagesByPresentation(presentation.getId())); } if (presentation.getPages().size() == 0) { presentation.setPages(new ArrayList()); } } if (page == PRESENTATION_ITEMS) { Map artifacts = new HashMap(); Map artifactCache = new HashMap(); Agent agent = getAuthManager().getAgent(); PresentationTemplate template = getPresentationManager().getPresentationTemplate(presentation.getTemplate().getId()); presentation.setTemplate(template); model.put("types", template.getSortedItems()); for (Iterator i = template.getSortedItems().iterator(); i.hasNext();) { PresentationItemDefinition itemDef = (PresentationItemDefinition) i.next(); if (artifactCache.containsKey(itemDef.getType()) && !itemDef.getHasMimeTypes()){ artifacts.put(itemDef.getId().getValue(), artifactCache.get(itemDef.getType())); } else { Collection itemArtifacts = getPresentationManager().loadArtifactsForItemDef(itemDef, agent); if (!itemDef.getHasMimeTypes()) { // cache only full list artifactCache.put(itemDef.getType(), itemArtifacts); } artifacts.put(itemDef.getId().getValue(), itemArtifacts); } } model.put("artifacts", artifacts); Collection items = new ArrayList(); for (Iterator i = presentation.getPresentationItems().iterator(); i.hasNext();) { PresentationItem item = (PresentationItem) i.next(); items.add(item.getDefinition().getId().getValue() + "." + item.getArtifactId()); } model.put("items", items); return model; } if (page == PRESENTATION_AUTHORIZATIONS) { Agent viewer = new AgentImpl(); model.put("viewer", new AgentImpl()); model.put(BindException.ERROR_KEY_PREFIX + "viewer", new BindException(viewer,"viewer")); String siteId = getWorksiteManager().getCurrentWorksiteId().getValue(); String filter = request.getParameter("filterSelect"); if (filter != null) { List members = getAgentManager().getWorksiteAgents(siteId); model.put("members", members); model.put("filterSelect", filter); } model.put("roles", getAgentManager().getWorksiteRoles(siteId)); } return model; }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/f4e38de6cef0c724edb6a06233afad94b49e1073/AddPresentationController.java/buggy/presentation/tool/src/java/org/theospi/portfolio/presentation/control/AddPresentationController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 1635, 2114, 751, 12, 2940, 18572, 590, 16, 509, 1363, 13, 1216, 1185, 288, 1377, 1635, 938, 273, 394, 4317, 5621, 1377, 25130, 367, 22525, 273, 261, 6351, 367, 13, 590, 18, 588, 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, 565, 4750, 1635, 2114, 751, 12, 2940, 18572, 590, 16, 509, 1363, 13, 1216, 1185, 288, 1377, 1635, 938, 273, 394, 4317, 5621, 1377, 25130, 367, 22525, 273, 261, 6351, 367, 13, 590, 18, 588, 2...
myPOP3ShowAsImap = aPOP3ShowAsImap; }
if (a instanceof Account_POP3) { ((Account_POP3)a).setShowAsIMAP(aPOP3ShowAsImap); } }
public void setPOP3ShowAsImap(boolean aPOP3ShowAsImap) { myPOP3ShowAsImap = aPOP3ShowAsImap; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerStructure.java/buggy/grendel/sources/grendel/prefs/base/ServerStructure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 30374, 23, 5706, 1463, 20827, 12, 6494, 279, 30374, 23, 5706, 1463, 20827, 13, 288, 565, 3399, 30374, 23, 5706, 1463, 20827, 273, 279, 30374, 23, 5706, 1463, 20827, 31, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 30374, 23, 5706, 1463, 20827, 12, 6494, 279, 30374, 23, 5706, 1463, 20827, 13, 288, 565, 3399, 30374, 23, 5706, 1463, 20827, 273, 279, 30374, 23, 5706, 1463, 20827, 31, 22...
public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate();
public quickfix.field.EventDate getEventDate() throws FieldNotFound { quickfix.field.EventDate value = new quickfix.field.EventDate();
public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 9832, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 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, 1133, 1626, 9832, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1133, 1626, 460, 273, 394, 2358, 18, 19525, 904, ...
solutionPanel = new SolutionPanel(frame, solver, this);
solutionPanel = new SolutionPanel(frame, solver, this, this);
private void createContents() { JPanel rootPanel = new JPanel(); rootPanel.setPreferredSize(new Dimension(600, 500)); frame.getContentPane().add(rootPanel); rootPanel.setLayout(new GridBagLayout()); rootPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); GridBagConstraints rc = new GridBagConstraints(); rc.gridx = 0; rc.fill = GridBagConstraints.BOTH; rc.weightx = 1.0; // Set up the info lines configInfo = new JLabel(); configInfo.setHorizontalAlignment(JLabel.CENTER); rc.weighty = 0.0; rootPanel.add(configInfo, rc); JLabel usageInfo = new JLabel("(Use File/New to reconfigure)"); usageInfo.setHorizontalAlignment(JLabel.CENTER); rootPanel.add(usageInfo, rc); // Set up the object panel JPanel objectPanel = new JPanel(); objectPanel.setLayout(new BoxLayout(objectPanel, BoxLayout.LINE_AXIS)); objectPanel.setBorder(BorderFactory.createEmptyBorder(10,0,10,0)); rc.weighty = 1.0; rootPanel.add(objectPanel, rc); // Set up the topic panel topicPanel = new ObjectPanel("Topics", new EditTopicWindow(frame), solver, this); objectPanel.add(topicPanel); objectPanel.add(Box.createRigidArea(new Dimension(10, 0))); // Set up the person panel personPanel = new ObjectPanel("Persons", new EditPersonWindow(frame), solver, this); objectPanel.add(personPanel); objectPanel.add(Box.createRigidArea(new Dimension(10, 0))); // Set up the role panel rolePanel = new ObjectPanel("Roles", new EditRoleWindow(frame), solver, this); objectPanel.add(rolePanel); // Set up the solution panel solutionPanel = new SolutionPanel(frame, solver, this); rc.weighty = 0.0; rootPanel.add(solutionPanel, rc); // Make sure that the solution panel gets informed about all name changes. NameChangeListener listener = solutionPanel.getNameChangeListener(); personPanel.addNameChangeListener(listener); topicPanel.addNameChangeListener(listener); rolePanel.addNameChangeListener(listener); }
13096 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13096/f93bba80106986868cf60850520776bb1345d36c/MainWindow.java/buggy/trunk/openSess/MainWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 6323, 1435, 225, 288, 565, 24048, 1365, 5537, 273, 394, 24048, 5621, 565, 1365, 5537, 18, 542, 16028, 1225, 12, 2704, 13037, 12, 28133, 16, 6604, 10019, 565, 2623, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 6323, 1435, 225, 288, 565, 24048, 1365, 5537, 273, 394, 24048, 5621, 565, 1365, 5537, 18, 542, 16028, 1225, 12, 2704, 13037, 12, 28133, 16, 6604, 10019, 565, 2623, 18, 588...
return true;
public void setDragData(DragSourceEvent anEvent, IStructuredSelection aSelection) { if (LocalSelectionTransfer.getInstance().isSupportedType( anEvent.dataType)) { anEvent.data = aSelection; if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set LocalSelectionTransfer"); //$NON-NLS-1$ } } else if (ResourceTransfer.getInstance().isSupportedType( anEvent.dataType)) { anEvent.data = getSelectedResources(aSelection); if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set ResourceTransfer"); //$NON-NLS-1$ } } else if (FileTransfer.getInstance().isSupportedType(anEvent.dataType)) { IResource[] resources = getSelectedResources(aSelection); // Get the path of each file and set as the drag data final int length = resources.length; int actualLength = 0; String[] fileNames = new String[length]; for (int i = 0; i < length; i++) { IPath location = resources[i].getLocation(); // location may be null. See bug 29491. if (location != null) { fileNames[actualLength++] = location.toOSString(); } } if (actualLength == 0) { return; } // was one or more of the locations null? if (actualLength < length) { String[] tempFileNames = fileNames; fileNames = new String[actualLength]; for (int i = 0; i < actualLength; i++) { fileNames[i] = tempFileNames[i]; } } anEvent.data = fileNames; if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set FileTransfer"); //$NON-NLS-1$ } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/76423e6866ed14a355f5dc7722b5b5eee2576d26/ResourceDragAdapterAssistant.java/buggy/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2463, 638, 31, 918, 2463, 638, 31, 444, 11728, 751, 12, 11728, 1830, 1133, 2463, 638, 31, 392, 1133, 16, 1082, 202, 45, 30733, 6233, 2463, 638, 31, 279, 6233, 13, 2463, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2463, 638, 31, 918, 2463, 638, 31, 444, 11728, 751, 12, 11728, 1830, 1133, 2463, 638, 31, 392, 1133, 16, 1082, 202, 45, 30733, 6233, 2463, 638, 31, 279, 6233, 13, 2463, 638, ...
stringBuffer.append(TEXT_275);
stringBuffer.append(TEXT_280);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenNode genNode = (GenNode) genElement;GenDiagram genDiagram = genNode.getDiagram();Palette palette = genDiagram.getPalette();boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode);final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];class NodeEditPartHelper { private final List myInnerLabels = new LinkedList(); private final List myAllInnerLabels = new LinkedList(); private final List myExternalLabels = new LinkedList(); private final List myPinnedCompartments = new LinkedList(); private final List myFloatingCompartments = new LinkedList(); private GenNodeLabel myPrimaryLabel; private boolean myHasChildrenInListCompartments = false; public NodeEditPartHelper(GenNode genNode){ myPrimaryLabel = null; for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel next = (GenNodeLabel) labels.next(); if (myPrimaryLabel == null){ myPrimaryLabel = next; } if (next instanceof GenExternalNodeLabel) { myExternalLabels.add(next); } else { myAllInnerLabels.add(next); if (next.getViewmap() instanceof ParentAssignedViewmap) { myInnerLabels.add(next); } } } for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){ GenCompartment next = (GenCompartment) compartments.next(); if (next.getViewmap() instanceof ParentAssignedViewmap){ myPinnedCompartments.add(next); } else { myFloatingCompartments.add(next); } myHasChildrenInListCompartments |= next.isListLayout() && !next.getChildNodes().isEmpty(); } } public boolean hasChildrenInListCompartments(){ return myHasChildrenInListCompartments; } public boolean hasInnerFixedLabels(){ return !myInnerLabels.isEmpty(); } public boolean hasPinnedCompartments(){ return !myPinnedCompartments.isEmpty(); } public boolean hasFixedChildren(){ return hasInnerFixedLabels() || hasPinnedCompartments(); } public boolean hasExternalLabels(){ return !myExternalLabels.isEmpty(); } public GenNodeLabel getPrimaryLabel(){ return myPrimaryLabel; } public Iterator getInnerFixedLabels(){ return myInnerLabels.iterator(); } public Iterator getExternalLabels(){ return myExternalLabels.iterator(); } public Iterator getPinnedCompartments(){ return myPinnedCompartments.iterator(); } public Iterator getAllInnerLabels() { return myAllInnerLabels.iterator(); }}final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); importManager.emitPackageStatement(stringBuffer); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_5); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.NodeEditPart")); stringBuffer.append(TEXT_8); {GenCommonBase genCommonBase = genNode; stringBuffer.append(TEXT_9); stringBuffer.append(TEXT_10); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_11); } stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_14); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_17); stringBuffer.append(TEXT_18); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_29); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_32); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_35); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_39); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_41); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_44); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_45); } else { stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_48); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_50); } stringBuffer.append(TEXT_51); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_54); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_55); } else { stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_58); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_60); }} stringBuffer.append(TEXT_61); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_78); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_89); if (palette != null) { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_97); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_98); } stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_101); }/*when there's palette*/ stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_104); if (palette != null) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_106); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_111); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_113); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_117); }/*when there's palette*/ stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_126); String figureQualifiedClassName = null;Viewmap viewmap = genNode.getViewmap();if (viewmap instanceof FigureViewmap) { figureQualifiedClassName = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassName == null || figureQualifiedClassName.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); stringBuffer.append(TEXT_128); if (isXYLayout) { stringBuffer.append(TEXT_129); } /* use flow layout*/ stringBuffer.append(TEXT_130); } else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_131); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_132); } else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); stringBuffer.append(TEXT_133); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_134); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_135); if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ stringBuffer.append(TEXT_136); } stringBuffer.append(TEXT_137); } stringBuffer.append(TEXT_138); if (figureQualifiedClassName != null) { stringBuffer.append(TEXT_139); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_140); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_141); } stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_144); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_154); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_156); if (!isXYLayout) { String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); stringBuffer.append(TEXT_157); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_158); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_159); } else { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_163); } stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_167); if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_169); for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); final String labelEditPart = importManager.getImportedName(genLabel.getEditPartQualifiedClassName()); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); stringBuffer.append(TEXT_170); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_171); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_172); stringBuffer.append(childSetterName); stringBuffer.append(TEXT_173); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_174); }for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_175); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_177); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_178); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_179); } // for pinned compartments stringBuffer.append(TEXT_180); //XXX: ignore labels assuming that they never may be removedfor (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_181); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_183); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_184); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_185); } // for pinned compartments stringBuffer.append(TEXT_186); } // if myHelper.hasFixedChildren() stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_188); GenNodeLabel firstEditableLabel = null; for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (!genLabel.isReadOnly()) { firstEditableLabel = genLabel; break; } } if (firstEditableLabel != null) { stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_195); } stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_207); for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (genLabel.isReadOnly()) { continue; } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_209); } stringBuffer.append(TEXT_210); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_212); for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { GenNodeLabel next = (GenNodeLabel) externalLabels.next(); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_214); } stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_219); }if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_221); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_224); } if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_225); } stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_227); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_230); } if (myHelper.hasFixedChildren()){ stringBuffer.append(TEXT_231); } stringBuffer.append(TEXT_232); } stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_254); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_255); stringBuffer.append(TEXT_256); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_260); stringBuffer.append(TEXT_261); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_265); final String primaryView = "getDiagramNode()"; stringBuffer.append(TEXT_266); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_267); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_270); stringBuffer.append(primaryView); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_279); } stringBuffer.append(TEXT_280); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_281); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_282); } stringBuffer.append(TEXT_283); stringBuffer.append(TEXT_284); stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_287); stringBuffer.append(primaryView); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_289); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_290); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_295); stringBuffer.append(primaryView); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_301); stringBuffer.append(TEXT_302); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_307); stringBuffer.append(TEXT_308); stringBuffer.append(TEXT_309); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_311); stringBuffer.append(TEXT_312); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_318); stringBuffer.append(TEXT_319); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_321); stringBuffer.append(TEXT_322); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_324); stringBuffer.append(TEXT_325); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_327); stringBuffer.append(TEXT_328); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_333); stringBuffer.append(TEXT_334); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_337); /*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ if (palette != null) { for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_338); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_341); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_344); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); if (containmentFeature == null) { stringBuffer.append(TEXT_345); } else { stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_349); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_350); { GenFeature _feature = containmentFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_351); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_352); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_353); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_354); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_355); } else { stringBuffer.append(TEXT_356); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_357); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_358); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_359); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_360); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_361); }} } GenFeature childFeature = modelFacet.getChildMetaFeature(); if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { { GenFeature _feature = childFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_362); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_363); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_364); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_365); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_366); } else { stringBuffer.append(TEXT_367); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_368); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_372); }} } }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_373); if (linkConstraints != null) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_375); stringBuffer.append(_source); stringBuffer.append(TEXT_376); stringBuffer.append(_target); stringBuffer.append(TEXT_377); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_378); } } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_381); { GenFeature _feature = metaFeature; String _ownerInstance = "domainElement"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_382); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_383); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_384); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_385); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_386); } else { stringBuffer.append(TEXT_387); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_388); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_390); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_391); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_392); }} }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_393); if (linkConstraints != null) { stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_395); stringBuffer.append(_source); stringBuffer.append(TEXT_396); stringBuffer.append(_target); stringBuffer.append(TEXT_397); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_398); } else { stringBuffer.append(TEXT_399); } stringBuffer.append(TEXT_400); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_404); } stringBuffer.append(TEXT_405); } //outgoing links for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_406); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_411); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_413); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_414); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_416); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_417); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_419); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenClass linkClass = modelFacet.getMetaClass(); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_422); stringBuffer.append(linkClass.getClassifierAccessorName()); stringBuffer.append(TEXT_423); /*XXX: Class name DomainElementInitializer should be user-customizable*/ stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); stringBuffer.append(TEXT_425); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_426); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { stringBuffer.append(TEXT_427); } stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_431); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_432); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); GenFeature childFeature = modelFacet.getChildMetaFeature(); GenFeature targetFeature = modelFacet.getTargetMetaFeature(); //source/link features seem to be pointing from link to its ends, not vice versa. //Anyway, if there is containment feature and it is not opposite to either the source/target, we should add containment, //otherwise we will have problems with saving uncontained EObjects. boolean addSource = sourceFeature != null; boolean addTarget = targetFeature != null; boolean addChild = childFeature != null && childFeature != containmentFeature && !childFeature.isDerived(); if (containmentFeature != null) { if (sourceFeature != null && sourceFeature.getEcoreFeature() instanceof EReference == true) { EReference sourceEcoreFeature = (EReference)sourceFeature.getEcoreFeature(); if (sourceEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addSource = false; } } if (targetFeature != null && targetFeature.getEcoreFeature() instanceof EReference == true) { EReference targetEcoreFeature = (EReference)targetFeature.getEcoreFeature(); if (targetEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addTarget = false; } } stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_435); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_438); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_439); } if (addChild) { stringBuffer.append(TEXT_440); stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_441); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_442); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_443); } if (addSource) { { GenFeature _feature = sourceFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_444); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_445); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_446); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_447); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_448); } else { stringBuffer.append(TEXT_449); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_450); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_451); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_452); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_453); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_454); }} } stringBuffer.append(TEXT_455); stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_456); stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_457); stringBuffer.append(sourceFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_458); } if (addTarget) { { GenFeature _feature = targetFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_459); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_460); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_461); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_462); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_463); } else { stringBuffer.append(TEXT_464); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_465); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_466); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_467); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_468); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_469); }} } stringBuffer.append(TEXT_470); stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_471); stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_472); stringBuffer.append(targetFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_473); } stringBuffer.append(TEXT_474); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_475); stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_476); stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_477); stringBuffer.append(metaFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_478); } stringBuffer.append(TEXT_479); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_480); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_481); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_482); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_483); } stringBuffer.append(TEXT_484); { String _source = "source.getElement()"; String _target = "target.getElement()"; stringBuffer.append(TEXT_485); if (linkConstraints != null) { stringBuffer.append(TEXT_486); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_487); stringBuffer.append(_source); stringBuffer.append(TEXT_488); stringBuffer.append(_target); stringBuffer.append(TEXT_489); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_490); } }/*when there's palette*/ if (genNode.getViewmap() instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); stringBuffer.append(TEXT_491); stringBuffer.append(classBody); stringBuffer.append(TEXT_492); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_493); } } stringBuffer.append(TEXT_494); importManager.emitSortedImports(); stringBuffer.append(TEXT_495); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/41ff79477b1b3c386bb3c9c99a88391ac573362c/NodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 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, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5...
dialog.run(true, true, runnable); setUserInterfaceActive(true);
dialog.run(true, true, runnable);
public void run() { try { dialog.setOpenOnRun(false); setUserInterfaceActive(false); dialog.run(true, true, runnable); setUserInterfaceActive(true); } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0] = e; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0fbd7457aaf4129371830b6144e0afab319555fb/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 6862, 202, 542, 1299, 1358, 3896, 12, 5743, 1769, 6862, 202, 12730, 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, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 698, 288, 6862, 202, 12730, 18, 542, 3678, 1398, 1997, 12, 5743, 1769, 6862, 202, 542, 1299, 1358, 3896, 12, 5743, 1769, 6862, 202, 12730, 18, ...
String commandline = createCommandline();
Commandline commandline = createCommandline();
public void bootstrap() throws CruiseControlException { String commandline = createCommandline(); LOG.debug("Executing commandline [" + commandline + "]"); executeCommandLine(commandline); }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/9a2a2265bbed9582d4204149a67417b6477ece56/P4Bootstrapper.java/clean/main/src/net/sourceforge/cruisecontrol/bootstrappers/P4Bootstrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7065, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 3498, 1369, 28305, 273, 22957, 1369, 5621, 3639, 2018, 18, 4148, 2932, 22134, 28305, 8247, 397, 28305, 397, 9870, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7065, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 3498, 1369, 28305, 273, 22957, 1369, 5621, 3639, 2018, 18, 4148, 2932, 22134, 28305, 8247, 397, 28305, 397, 9870, 1769, 36...
public org.quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { org.quickfix.field.LegCouponRate value = new org.quickfix.field.LegCouponRate();
public quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { quickfix.field.LegCouponRate value = new quickfix.field.LegCouponRate();
public org.quickfix.field.LegCouponRate getLegCouponRate() throws FieldNotFound { org.quickfix.field.LegCouponRate value = new org.quickfix.field.LegCouponRate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/clean/src/java/src/quickfix/fix44/QuoteResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 4727, 336, 8329, 22744, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 4727, 460, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 4727, 336, 8329, 22744, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 22744, 4727, 460, 273, 394...
ex.printStackTrace(); throw new InternalError();
String msg = "MalformedURLException:" + ex.getMessage() + ':' + bu; throw new IllegalArgumentException( msg );
public StyleSheet getCSSStyleSheet() { if (styleSheet == null) { if (getType().equals("text/css")) { SVGOMDocument doc = (SVGOMDocument)getOwnerDocument(); CSSEngine e = doc.getCSSEngine(); String text = ""; Node n = getFirstChild(); if (n != null) { StringBuffer sb = new StringBuffer(); while (n != null) { if (n.getNodeType() == Node.CDATA_SECTION_NODE || n.getNodeType() == Node.TEXT_NODE) sb.append(n.getNodeValue()); n = n.getNextSibling(); } text = sb.toString(); } URL burl = null; try { String bu = getBaseURI(); if (bu != null) { burl = new URL(bu); } } catch (MalformedURLException ex) { // !!! TODO ex.printStackTrace(); throw new InternalError(); } String media = getAttributeNS(null, SVG_MEDIA_ATTRIBUTE); styleSheet = e.parseStyleSheet(text, burl, media); addEventListenerNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMCharacterDataModified", domCharacterDataModifiedListener, false, null); } } return styleSheet; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/dbab799ce6fcc45bdd6cc7b702f5c01af88a7883/SVGOMStyleElement.java/clean/sources/org/apache/batik/dom/svg/SVGOMStyleElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9767, 8229, 1927, 1260, 2885, 8229, 1435, 288, 3639, 309, 261, 4060, 8229, 422, 446, 13, 288, 5411, 309, 261, 588, 559, 7675, 14963, 2932, 955, 19, 5212, 6, 3719, 288, 7734, 11281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9767, 8229, 1927, 1260, 2885, 8229, 1435, 288, 3639, 309, 261, 4060, 8229, 422, 446, 13, 288, 5411, 309, 261, 588, 559, 7675, 14963, 2932, 955, 19, 5212, 6, 3719, 288, 7734, 11281, ...
shell.setLocation(Display.getCurrent().getClientArea().width / 2 - (shell.getSize().x / 2), Display .getCurrent().getClientArea().height / 2 - (shell.getSize().y / 2));
UIHelper.centerOnScreen(shell);
public TriggerEditorDialog(EList triggers) { super(); this.triggers = triggers; vOriginalTriggers = EcoreUtil.copyAll(triggers); 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("Trigger Editor Dialog:"); shell.setSize(400, 340); 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(); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/258bad0d502f0759055374875005f9978172c4d7/TriggerEditorDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TriggerEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11321, 6946, 6353, 12, 41, 682, 11752, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 313, 8060, 273, 11752, 31, 3639, 331, 8176, 15114, 273, 512, 3644, 1304, 18, 3530, 1595, 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, 11321, 6946, 6353, 12, 41, 682, 11752, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 313, 8060, 273, 11752, 31, 3639, 331, 8176, 15114, 273, 512, 3644, 1304, 18, 3530, 1595, 12, ...
public String getLabel() { return label; }
public String getLabel() { return label; }
public String getLabel() { return label; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/PatternElement.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/bcp/PatternElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11237, 1435, 288, 327, 1433, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11237, 1435, 288, 327, 1433, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
synchronized(disconnect_mutex) { disconnect_ok_event_received=true; disconnect_mutex.notifyAll(); }
disconnect_promise.setResult(Boolean.TRUE);
public void up(Event evt) { int type=evt.getType(); Message msg; /*if the queue is not available, there is no point in *processing the message at all*/ if(mq == null) { if(log.isErrorEnabled()) log.error("message queue is null"); return; } switch(type) { case Event.MSG: msg=(Message)evt.getArg(); if(!receive_local_msgs) { // discard local messages (sent by myself to me) if(local_addr != null && msg.getSrc() != null) if(local_addr.equals(msg.getSrc())) return; } break; case Event.VIEW_CHANGE: my_view=(View)evt.getArg(); // crude solution to bug #775120: if we get our first view *before* the CONNECT_OK, // we simply set the state to connected if(connected == false) { connected=true; synchronized(connect_mutex) { // bug fix contributed by Chris Wampler (bug #943881) connect_ok_event_received=true; connect_mutex.notify(); } } // unblock queueing of messages due to previous BLOCK event: down(new Event(Event.STOP_QUEUEING)); if(!receive_views) // discard if client has not set receving views to on return; //if(connected == false) // my_view=(View)evt.getArg(); break; case Event.SUSPECT: if(!receive_suspects) return; break; case Event.GET_APPLSTATE: // return the application's state if(!receive_get_states) { // if not set to handle state transfers, send null state down(new Event(Event.GET_APPLSTATE_OK, null)); return; } break; case Event.CONFIG: HashMap config=(HashMap)evt.getArg(); if(config != null && config.containsKey("state_transfer")) state_transfer_supported=((Boolean)config.get("state_transfer")).booleanValue(); break; case Event.BLOCK: // If BLOCK is received by application, then we trust the application to not send // any more messages until a VIEW_CHANGE is received. Otherwise (BLOCKs are disabled), // we queue any messages sent until the next VIEW_CHANGE (they will be sent in the // next view) if(!receive_blocks) { // discard if client has not set 'receiving blocks' to 'on' down(new Event(Event.BLOCK_OK)); down(new Event(Event.START_QUEUEING)); return; } break; case Event.CONNECT_OK: synchronized(connect_mutex) { connect_ok_event_received=true; connect_mutex.notify(); } break; case Event.DISCONNECT_OK: synchronized(disconnect_mutex) { disconnect_ok_event_received=true; disconnect_mutex.notifyAll(); } break; case Event.GET_STATE_OK: try { mq.add(new Event(Event.STATE_RECEIVED, evt.getArg())); } catch(Exception e) { } state_promise.setResult(evt.getArg()); break; case Event.SET_LOCAL_ADDRESS: synchronized(local_addr_mutex) { local_addr=(Address)evt.getArg(); local_addr_mutex.notifyAll(); } break; case Event.EXIT: handleExit(evt); return; // no need to pass event up; already done in handleExit() case Event.BLOCK_SEND: synchronized(flow_control_mutex) { if(log.isInfoEnabled()) log.info("received BLOCK_SEND"); block_sending=true; flow_control_mutex.notifyAll(); } break; case Event.UNBLOCK_SEND: synchronized(flow_control_mutex) { if(log.isInfoEnabled()) log.info("received UNBLOCK_SEND"); block_sending=false; flow_control_mutex.notifyAll(); } break; default: break; } // If UpHandler is installed, pass all events to it and return (UpHandler is e.g. a building block) if(up_handler != null) { up_handler.up(evt); return; } if(type == Event.MSG || type == Event.VIEW_CHANGE || type == Event.SUSPECT || type == Event.GET_APPLSTATE || type == Event.BLOCK) { try { mq.add(evt); } catch(Exception e) { if(log.isErrorEnabled()) log.error("exception: " + e); } } }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/56d91cb893622dbe94db73b474ef0ae7c6a544fc/JChannel.java/clean/src/org/jgroups/JChannel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 3639, 509, 618, 33, 73, 11734, 18, 588, 559, 5621, 3639, 2350, 1234, 31, 3639, 1748, 430, 326, 2389, 353, 486, 2319, 16, 1915, 353, 1158, 1634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 731, 12, 1133, 6324, 13, 288, 3639, 509, 618, 33, 73, 11734, 18, 588, 559, 5621, 3639, 2350, 1234, 31, 3639, 1748, 430, 326, 2389, 353, 486, 2319, 16, 1915, 353, 1158, 1634, ...
String[] args = new String[sources.length + j];
List args = new ArrayList( sources.length + 5 + compilerOptions.size() * 2 );
public List compile( String[] classpathElements, String[] sourceDirectories, String destinationDirectory ) throws Exception { /* for ( int i = 0; i < classpathElements.length; i++ ) { System.out.println( "classpathElement = " + classpathElements[i] ); } */ File destinationDir = new File( destinationDirectory ); if ( !destinationDir.exists() ) { destinationDir.mkdirs(); } String[] sources = getSourceFiles( sourceDirectories ); int j = 5; String[] args = new String[sources.length + j]; args[0] = "-d"; args[1] = destinationDir.getAbsolutePath(); args[2] = "-nowarn"; args[3] = "-classpath"; args[4] = getClasspathString( classpathElements ); for ( int i = 0; i < sources.length; i++ ) { args[i + j] = sources[i]; } IsolatedClassLoader cl = new IsolatedClassLoader(); File toolsJar = new File( System.getProperty( "java.home" ), "../lib/tools.jar" ); cl.addURL( toolsJar.toURL() ); Class c = cl.loadClass( "sun.tools.javac.Main" ); Constructor cons = c.getConstructor( new Class[]{OutputStream.class, String.class} ); ByteArrayOutputStream err = new ByteArrayOutputStream(); Object compiler = cons.newInstance( new Object[]{err, "javac"} ); Method compile = c.getMethod( "compile", new Class[]{String[].class} ); Boolean ok = (Boolean) compile.invoke( compiler, new Object[]{args} ); List messages = parseModernStream( new BufferedReader( new InputStreamReader( new ByteArrayInputStream( err.toByteArray() ) ) ) ); return messages; }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/763811d0fa4fda452edf7e18caa3acd3ab71f0cb/JavacCompiler.java/clean/maven-mboot2/src/main/java/compile/JavacCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 4074, 12, 514, 8526, 10006, 3471, 16, 514, 8526, 1084, 13071, 16, 514, 2929, 2853, 262, 3639, 1216, 1185, 565, 288, 3639, 1748, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 4074, 12, 514, 8526, 10006, 3471, 16, 514, 8526, 1084, 13071, 16, 514, 2929, 2853, 262, 3639, 1216, 1185, 565, 288, 3639, 1748, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 4...
fElementDeclDefaultType[chunk][index] = defaultType;
protected void setElementDefault(int elementDeclIndex, int defaultType, String defaultValue) { int chunk = elementDeclIndex >> CHUNK_SHIFT; int index = elementDeclIndex & CHUNK_MASK; ensureElementDeclCapacity(chunk); if (elementDeclIndex > -1 ) { fElementDeclDefaultType[chunk][index] = defaultType; fElementDeclDefaultValue[chunk][index] = defaultValue; } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/01507244c7d0c6e96b87f1cb99075aa90fd5284b/SchemaGrammar.java/buggy/src/org/apache/xerces/validators/schema/SchemaGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 26692, 1868, 12, 474, 930, 3456, 1016, 16, 509, 805, 559, 16, 514, 4593, 13, 288, 3639, 509, 2441, 273, 930, 3456, 1016, 1671, 28096, 67, 23191, 31, 3639, 509, 770, 273, 930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26692, 1868, 12, 474, 930, 3456, 1016, 16, 509, 805, 559, 16, 514, 4593, 13, 288, 3639, 509, 2441, 273, 930, 3456, 1016, 1671, 28096, 67, 23191, 31, 3639, 509, 770, 273, 930,...
Collection c = element.getXReferences(referenceSource); if (c != null) { xrefs.addAll(c); }
if (manager.getIsInplace()) { Collection c = element.getXReferences(referenceSource, element.getFilterCheckedInplaceList()); if (c != null) { xrefs.addAll(c); } } else { Collection c = element.getXReferences(referenceSource, element.getFilterCheckedList()); if (c != null) { xrefs.addAll(c); } }
public Collection getXReferences() { XReferenceProviderManager manager = XReferenceProviderManager.getManager(); List providers = manager.getProvidersFor(referenceSource); List xrefs = new ArrayList(); for (Iterator iter = providers.iterator(); iter.hasNext();) { IXReferenceProvider element = (IXReferenceProvider) iter.next(); Collection c = element.getXReferences(referenceSource); if (c != null) { xrefs.addAll(c); } } return xrefs; }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/0cae01220a78535bf8e4dd5046397aade08d4bf0/XReferenceAdapter.java/buggy/org.eclipse.contribution.xref.core/src/org/eclipse/contribution/xref/core/XReferenceAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 6538, 8221, 1435, 288, 202, 202, 60, 2404, 2249, 1318, 3301, 273, 1082, 202, 60, 2404, 2249, 1318, 18, 588, 1318, 5621, 202, 202, 682, 9165, 273, 3301, 18, 588, 10672, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 6538, 8221, 1435, 288, 202, 202, 60, 2404, 2249, 1318, 3301, 273, 1082, 202, 60, 2404, 2249, 1318, 18, 588, 1318, 5621, 202, 202, 682, 9165, 273, 3301, 18, 588, 10672, 1...
return getAsMapOfRubyStrings(runtime, System.getProperties().entrySet());
try { return getAsMapOfRubyStrings(runtime, System.getProperties().entrySet()); } catch (AccessControlException accessEx) { return new HashMap(); }
public Map getSystemPropertiesMap(IRuby runtime) { return getAsMapOfRubyStrings(runtime, System.getProperties().entrySet()); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/d38821551a58969cd2593b463d93df5f32bf3c14/OSEnvironment.java/clean/src/org/jruby/environment/OSEnvironment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 12996, 2297, 863, 12, 7937, 10340, 3099, 13, 288, 3639, 775, 288, 327, 13122, 863, 951, 54, 10340, 7957, 12, 9448, 16, 2332, 18, 588, 2297, 7675, 4099, 694, 10663, 289, 1044, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1635, 12996, 2297, 863, 12, 7937, 10340, 3099, 13, 288, 3639, 775, 288, 327, 13122, 863, 951, 54, 10340, 7957, 12, 9448, 16, 2332, 18, 588, 2297, 7675, 4099, 694, 10663, 289, 1044, ...
void clearAllBreakpoints() {
public void clearAllBreakpoints() {
void clearAllBreakpoints() { Enumeration e = urlToSourceInfo.elements(); while (e.hasMoreElements()) { SourceInfo si = (SourceInfo)e.nextElement(); si.removeAllBreakpoints(); } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 29453, 7634, 4139, 1435, 565, 288, 3639, 13864, 425, 273, 880, 774, 1830, 966, 18, 6274, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 5411, 4998, 966, 7533, 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, 918, 29453, 7634, 4139, 1435, 565, 288, 3639, 13864, 425, 273, 880, 774, 1830, 966, 18, 6274, 5621, 3639, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 5411, 4998, 966, 7533, 273, 261,...
addPart(newPart, idx); }
addPart(newPart, idx); }
public void addPart(IPresentablePart newPart, Object cookie) { int idx; if (cookie instanceof Integer) { idx = ((Integer) cookie).intValue(); } else { // Select a location for newly inserted parts idx = paneFolder.getItemCount(); } addPart(newPart, idx); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 1033, 3878, 13, 288, 3639, 509, 2067, 31, 3639, 309, 261, 8417, 1276, 2144, 13, 288, 5411, 2067, 273, 14015, 4522, 13, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 1033, 3878, 13, 288, 3639, 509, 2067, 31, 3639, 309, 261, 8417, 1276, 2144, 13, 288, 5411, 2067, 273, 14015, 4522, 13, 38...
isStatic, startingOffset, nameOffset);
isStatic, startingOffset, nameOffset, constructorExpression );
public ASTField(IASTScope scope, String name, boolean isAuto, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, IASTAbstractDeclaration abstractDeclaration, boolean isMutable, boolean isExtern, boolean isRegister, boolean isStatic, int startingOffset, int nameOffset, ASTAccessVisibility visibility) { super( scope, name, isAuto, initializerClause, bitfieldExpression, abstractDeclaration, isMutable, isExtern, isRegister, isStatic, startingOffset, nameOffset); this.visibility = visibility; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/80ee3e49e725aec89fb1ca4c6f61c8f01316fdf8/ASTField.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9183, 974, 12, 45, 9053, 3876, 2146, 16, 514, 508, 16, 1250, 27079, 16, 467, 9053, 14729, 7044, 12562, 7044, 16, 467, 9053, 2300, 2831, 1518, 2300, 16, 467, 9053, 7469, 6094, 8770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9183, 974, 12, 45, 9053, 3876, 2146, 16, 514, 508, 16, 1250, 27079, 16, 467, 9053, 14729, 7044, 12562, 7044, 16, 467, 9053, 2300, 2831, 1518, 2300, 16, 467, 9053, 7469, 6094, 8770, ...
MylarTasklistPlugin.ReportOpenMode mode = MylarTasklistPlugin.getDefault().getReportMode(); if (mode == MylarTasklistPlugin.ReportOpenMode.EDITOR) {
MylarTaskListPlugin.ReportOpenMode mode = MylarTaskListPlugin.getDefault().getReportMode(); if (mode == MylarTaskListPlugin.ReportOpenMode.EDITOR) {
public void itemOpened(ITaskListElement element) { boolean offline = MylarTasklistPlugin.getPrefs().getBoolean(MylarPlugin.WORK_OFFLINE); if (element instanceof BugzillaTask) { BugzillaTask t = (BugzillaTask) element; MylarTasklistPlugin.ReportOpenMode mode = MylarTasklistPlugin.getDefault().getReportMode(); if (mode == MylarTasklistPlugin.ReportOpenMode.EDITOR) { t.openTaskInEditor(offline); } else if (mode == MylarTasklistPlugin.ReportOpenMode.INTERNAL_BROWSER) { if(offline){ MessageDialog.openInformation(null, "Unable to open bug", "Unable to open the selected bugzilla task since you are currently offline"); return; } String title = "Bug #" + BugzillaTask.getBugId(t.getHandleIdentifier()); BugzillaUITools.openUrl(title, title, t.getBugUrl()); } else { // not supported } } else if(element instanceof BugzillaCustomQuery){ BugzillaCustomQuery queryCategory = (BugzillaCustomQuery)element; BugzillaCustomQueryDialog sqd = new BugzillaCustomQueryDialog(Display.getCurrent().getActiveShell(), queryCategory.getQueryString(), queryCategory.getDescription(false), queryCategory.getMaxHits()+""); if(sqd.open() == Dialog.OK){ queryCategory.setDescription(sqd.getName()); queryCategory.setQueryString(sqd.getUrl()); int maxHits = -1; try{ maxHits = Integer.parseInt(sqd.getMaxHits()); } catch(Exception e){} queryCategory.setMaxHits(maxHits); new RefreshBugzillaAction(queryCategory).run(); } }else if (element instanceof BugzillaQueryCategory){ BugzillaQueryCategory queryCategory = (BugzillaQueryCategory)element; BugzillaQueryDialog sqd = new BugzillaQueryDialog(Display.getCurrent().getActiveShell(), queryCategory.getQueryString(), queryCategory.getDescription(false), queryCategory.getMaxHits()+""); if(sqd.open() == Dialog.OK){ queryCategory.setDescription(sqd.getName()); queryCategory.setQueryString(sqd.getUrl()); int maxHits = -1; try{ maxHits = Integer.parseInt(sqd.getMaxHits()); } catch(Exception e){} queryCategory.setMaxHits(maxHits); new RefreshBugzillaAction(queryCategory).run(); } } else if(element instanceof BugzillaHit){ BugzillaHit hit = (BugzillaHit)element; MylarTasklistPlugin.ReportOpenMode mode = MylarTasklistPlugin.getDefault().getReportMode(); if (mode == MylarTasklistPlugin.ReportOpenMode.EDITOR) { if(hit.hasCorrespondingActivatableTask()){ hit.getAssociatedTask().openTaskInEditor(offline); } else { if(offline){ MessageDialog.openInformation(null, "Unable to open bug", "Unable to open the selected bugzilla report since you are currently offline"); return; } BugzillaOpenStructure open = new BugzillaOpenStructure(((BugzillaHit)element).getServerName(), ((BugzillaHit)element).getID(),-1); List<BugzillaOpenStructure> selectedBugs = new ArrayList<BugzillaOpenStructure>(); selectedBugs.add(open); ViewBugzillaAction viewBugs = new ViewBugzillaAction("Display bugs in editor", selectedBugs); viewBugs.schedule(); } } else if (mode == MylarTasklistPlugin.ReportOpenMode.INTERNAL_BROWSER) { if(offline){ MessageDialog.openInformation(null, "Unable to open bug", "Unable to open the selected bugzilla report since you are currently offline"); return; } String title = "Bug #" + BugzillaTask.getBugId(hit.getHandleIdentifier()); BugzillaUITools.openUrl(title, title, hit.getBugUrl()); } else { // not supported } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7434c54adb9b67993df3b0ee032cca0eaf5003f3/BugzillaTaskHandler.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTaskHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 761, 23115, 12, 1285, 835, 682, 1046, 930, 13, 288, 202, 202, 6494, 13493, 273, 8005, 7901, 2174, 1098, 3773, 18, 588, 1386, 2556, 7675, 588, 5507, 12, 12062, 7901, 3773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 761, 23115, 12, 1285, 835, 682, 1046, 930, 13, 288, 202, 202, 6494, 13493, 273, 8005, 7901, 2174, 1098, 3773, 18, 588, 1386, 2556, 7675, 588, 5507, 12, 12062, 7901, 3773, ...
if (newStr.equals(getValue())) {
if (sameAs(newStr)) {
public IRubyObject tr_s_bang(IRubyObject search, IRubyObject replace) { String newStr = tr(search, replace, true); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 433, 67, 87, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 433, 67, 87, 67, 70, 539, 12, 7937, 10340, 921, 1623, 16, 15908, 10340, 921, 1453, 13, 288, 202, 202, 780, 394, 1585, 273, 433, 12, 3072, 16, 1453, 16, 63...
byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(java.sql.DatabaseMetaData.typeNoNulls).getBytes(); byte bts[] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable).getBytes();
byte b9[] = encoding.encode("9"); byte b10[] = encoding.encode("10"); byte bf[] = encoding.encode("f"); byte bnn[] = encoding.encode(Integer.toString(java.sql.DatabaseMetaData.typeNoNulls)); byte bts[] = encoding.encode(Integer.toString(java.sql.DatabaseMetaData.typeSearchable));
public java.sql.ResultSet getTypeInfo() throws SQLException { Field f[] = new Field[18]; Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, getMaxNameLength()); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT typname FROM pg_catalog.pg_type"; } else { sql = "SELECT typname FROM pg_type"; } ResultSet rs = connection.createStatement().executeQuery(sql); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(java.sql.DatabaseMetaData.typeNoNulls).getBytes(); byte bts[] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable).getBytes(); while (rs.next()) { byte[][] tuple = new byte[18][]; String typname = rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(connection.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return (ResultSet) ((BaseStatement)connection.createStatement()).createResultSet(f, v, "OK", 1, 0, false); }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/f9d3ed65c43e04c595b097a59d4d1c4542d82794/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202...
if ( iSelectedIndex > 0 )
if ( iSelectedIndex - MARKER_ROW_MAX_NUMBER >= 0 )
void handleEventCanvasMarkers( Event event ) { switch ( event.type ) { case SWT.KeyDown : { if ( event.keyCode == SWT.ARROW_RIGHT ) { if ( iSelectedIndex < getMarkers( ).size( ) - 1 ) { iSelectedIndex++; setEnabledState( ); } } else if ( event.keyCode == SWT.ARROW_LEFT ) { if ( iSelectedIndex > 0 ) { iSelectedIndex--; setEnabledState( ); } } else if ( event.keyCode == SWT.ARROW_DOWN || event.keyCode == SWT.CR || event.keyCode == SWT.KEYPAD_CR ) { currentMarkerEditor.setFocus( ); } else if ( event.keyCode == SWT.ESC ) { cnvMarkers.getShell( ).close( ); } break; } case SWT.Traverse : { switch ( event.detail ) { case SWT.TRAVERSE_RETURN : case SWT.TRAVERSE_TAB_NEXT : case SWT.TRAVERSE_TAB_PREVIOUS : case SWT.TRAVERSE_ARROW_PREVIOUS : case SWT.TRAVERSE_ARROW_NEXT : event.doit = true; cnvMarkers.redraw( ); } break; } case SWT.Paint : paintControl( new PaintEvent( event ) ); break; case SWT.MouseDown : mouseDown( new MouseEvent( event ) ); break; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/af35d40180cc2d755b708af228d96076d15e5d9a/LineSeriesMarkerSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/LineSeriesMarkerSheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1640, 1133, 12971, 21644, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 653, 4164, 294, 1082, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1640, 1133, 12971, 21644, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 653, 4164, 294, 1082, 202, 95, ...
public ResponseParser(IResponseHandler responseProcessor) {
public ResponseParser(IResponseHandler responseProcessor, String charset) {
public ResponseParser(IResponseHandler responseProcessor) { BugLog.getInstance().assertNotNull(responseProcessor); this.responseProcessor = responseProcessor; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3de0fd6612b01325d3a8e2dd29c980447948f32c/ResponseParser.java/clean/plugins/cvs2/javacvs-src/org/netbeans/lib/cvsclient/response/ResponseParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2306, 2678, 12, 45, 1064, 1503, 766, 5164, 13, 288, 202, 202, 19865, 1343, 18, 588, 1442, 7675, 11231, 5962, 12, 2740, 5164, 1769, 202, 202, 2211, 18, 2740, 5164, 273, 766, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 2306, 2678, 12, 45, 1064, 1503, 766, 5164, 13, 288, 202, 202, 19865, 1343, 18, 588, 1442, 7675, 11231, 5962, 12, 2740, 5164, 1769, 202, 202, 2211, 18, 2740, 5164, 273, 766, 51...
los.write(c); c = l_inStream.read(); p++;
bytesRemaining -= numRead; los.write(buf,0,numRead); numRead = l_inStream.read(buf,0,Math.min(buf.length,bytesRemaining));
public void setBlob(int i, Blob x) throws SQLException { InputStream l_inStream = x.getBinaryStream(); int l_length = (int) x.length(); LargeObjectManager lom = connection.getLargeObjectAPI(); int oid = lom.create(); LargeObject lob = lom.open(oid); OutputStream los = lob.getOutputStream(); try { // could be buffered, but then the OutputStream returned by LargeObject // is buffered internally anyhow, so there would be no performance // boost gained, if anything it would be worse! int c = l_inStream.read(); int p = 0; while (c > -1 && p < l_length) { los.write(c); c = l_inStream.read(); p++; } los.close(); } catch (IOException se) { throw new PSQLException("postgresql.unusual", se); } // lob is closed by the stream so don't call lob.close() setInt(i, oid); }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/2232172e447db0224c4ececd148ddf6d6e1e5c84/AbstractJdbc2Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 9405, 12, 474, 277, 16, 12741, 619, 13, 1216, 6483, 202, 95, 202, 202, 4348, 328, 67, 267, 1228, 273, 619, 18, 588, 5905, 1228, 5621, 202, 202, 474, 328, 67, 2469,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9405, 12, 474, 277, 16, 12741, 619, 13, 1216, 6483, 202, 95, 202, 202, 4348, 328, 67, 267, 1228, 273, 619, 18, 588, 5905, 1228, 5621, 202, 202, 474, 328, 67, 2469,...
this .mergefiles .append( mergefiles );
this.mergefiles .append(mergefiles);
public void setMergefiles( Path mergefiles ) { if ( this .mergefiles == null ) { this .mergefiles = mergefiles; } else { this .mergefiles .append( mergefiles ); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/JlinkTask.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 444, 6786, 2354, 12, 2666, 2691, 2354, 262, 288, 3639, 309, 261, 333, 263, 2702, 2354, 422, 446, 262, 288, 5411, 333, 263, 2702, 2354, 273, 2691, 2354, 31, 3639, 289, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 444, 6786, 2354, 12, 2666, 2691, 2354, 262, 288, 3639, 309, 261, 333, 263, 2702, 2354, 422, 446, 262, 288, 5411, 333, 263, 2702, 2354, 273, 2691, 2354, 31, 3639, 289, 36...
Collection values = reader.readRegistry(Platform.getPluginRegistry());
Collection values = reader.readRegistry(Platform.getPluginRegistry());
public static ColorDefinition[] getDefinitions() { if (definitions == null) { ColorDefinitionReader reader = new ColorDefinitionReader(); Collection values = reader.readRegistry(Platform.getPluginRegistry()); ArrayList sorted = new ArrayList(values); Collections.sort(sorted, new Comparator() { /* (non-Javadoc) * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object arg0, Object arg1) { ColorDefinition col0 = (ColorDefinition) arg0; ColorDefinition col1 = (ColorDefinition) arg1; return col0.getId().compareTo(col1.getId()); } }); definitions = new ColorDefinition[sorted.size()]; sorted.toArray(definitions); } return definitions; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8a6009f8adbf06142d31cbc55434f930136e955a/ColorDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/colors/ColorDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 5563, 1852, 8526, 336, 7130, 1435, 288, 202, 202, 430, 261, 13314, 422, 446, 13, 288, 1082, 202, 2957, 1852, 2514, 2949, 273, 394, 5563, 1852, 2514, 5621, 1082, 202, 2532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5563, 1852, 8526, 336, 7130, 1435, 288, 202, 202, 430, 261, 13314, 422, 446, 13, 288, 1082, 202, 2957, 1852, 2514, 2949, 273, 394, 5563, 1852, 2514, 5621, 1082, 202, 2532, ...
DocumentMapper documentMapper = Imcms.getServices().getDocumentMapper();
ImcmsServices services = Imcms.getServices(); DocumentMapper documentMapper = services.getDocumentMapper();
public void doPost( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { int parentMenuIndex = Integer.parseInt( request.getParameter( REQUEST_PARAMETER__MENU_INDEX ) ); int parentId = Integer.parseInt( request.getParameter( REQUEST_PARAMETER__PARENT_DOCUMENT_ID ) ); int documentTypeId = Integer.parseInt( request.getParameter( REQUEST_PARAMETER__DOCUMENT_TYPE_ID ) ); DocumentMapper documentMapper = Imcms.getServices().getDocumentMapper(); DocumentDomainObject parentDocument = documentMapper.getDocument( parentId ); UserDomainObject user = Utility.getLoggedOnUser( request ); DocumentDomainObject document = documentMapper.createDocumentOfTypeFromParent( documentTypeId, parentDocument, user ); if ( 0 == documentTypeId ) { createExistingDocPage( parentId, parentMenuIndex, request, response ); } else { HttpPageFlow httpPageFlow = null; DispatchCommand dispatchToMenuEditCommand = new DispatchToMenuEditCommand( (TextDocumentDomainObject)parentDocument, parentMenuIndex ); DocumentPageFlow.SaveDocumentCommand saveNewDocumentAndAddToMenuCommand = new SaveNewDocumentAndAddToMenuCommand( (TextDocumentDomainObject)parentDocument, parentMenuIndex ); if ( document instanceof TextDocumentDomainObject ) { httpPageFlow = new CreateTextDocumentPageFlow( (TextDocumentDomainObject)document, saveNewDocumentAndAddToMenuCommand, dispatchToMenuEditCommand ); } else if ( document instanceof UrlDocumentDomainObject ) { httpPageFlow = new CreateDocumentWithEditPageFlow( new EditUrlDocumentPageFlow( (UrlDocumentDomainObject)document, dispatchToMenuEditCommand, saveNewDocumentAndAddToMenuCommand ) ); } else if ( document instanceof HtmlDocumentDomainObject ) { httpPageFlow = new CreateDocumentWithEditPageFlow( new EditHtmlDocumentPageFlow( (HtmlDocumentDomainObject)document, dispatchToMenuEditCommand, saveNewDocumentAndAddToMenuCommand ) ); } else if ( document instanceof FileDocumentDomainObject ) { httpPageFlow = new CreateDocumentWithEditPageFlow( new EditFileDocumentPageFlow( (FileDocumentDomainObject)document, getServletContext(), dispatchToMenuEditCommand, saveNewDocumentAndAddToMenuCommand, null ) ); } else if ( document instanceof BrowserDocumentDomainObject ) { httpPageFlow = new CreateDocumentWithEditPageFlow( new EditBrowserDocumentPageFlow( (BrowserDocumentDomainObject)document, dispatchToMenuEditCommand, saveNewDocumentAndAddToMenuCommand ) ); } else if ( document instanceof FormerExternalDocumentDomainObject ) { httpPageFlow = new CreateFormerExternalDocumentPageFlow( (FormerExternalDocumentDomainObject)document, saveNewDocumentAndAddToMenuCommand, dispatchToMenuEditCommand ); } httpPageFlow.dispatch( request, response ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/0b6dff3bb607e2effc59117eadc1c453c97cffe5/AddDoc.java/buggy/server/src/com/imcode/imcms/servlet/admin/AddDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 590, 16, 12446, 766, 262, 1216, 16517, 16, 1860, 288, 3639, 509, 982, 4599, 1016, 273, 2144, 18, 2670, 1702, 12, 590, 18, 588, 1662, 12, 12492, 67, 9819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3349, 12, 9984, 590, 16, 12446, 766, 262, 1216, 16517, 16, 1860, 288, 3639, 509, 982, 4599, 1016, 273, 2144, 18, 2670, 1702, 12, 590, 18, 588, 1662, 12, 12492, 67, 9819,...
job.setInputDir(dir);
job.setInputPath(dir);
public void testFormat() throws Exception { JobConf job = new JobConf(conf); FileSystem fs = FileSystem.getNamed("local", conf); File dir = new File(System.getProperty("test.build.data",".") + "/mapred"); File file = new File(dir, "test.seq"); Reporter reporter = new Reporter() { public void setStatus(String status) throws IOException {} }; int seed = new Random().nextInt(); //LOG.info("seed = "+seed); Random random = new Random(seed); fs.delete(dir); job.setInputDir(dir); // for a variety of lengths for (int length = 0; length < MAX_LENGTH; length+= random.nextInt(MAX_LENGTH/10)+1) { //LOG.info("creating; entries = " + length); // create a file with length entries SequenceFile.Writer writer = new SequenceFile.Writer(fs, file.toString(), IntWritable.class, BytesWritable.class); try { for (int i = 0; i < length; i++) { IntWritable key = new IntWritable(i); byte[] data = new byte[random.nextInt(10)]; random.nextBytes(data); BytesWritable value = new BytesWritable(data); writer.append(key, value); } } finally { writer.close(); } // try splitting the file in a variety of sizes InputFormat format = new SequenceFileInputFormat(); IntWritable key = new IntWritable(); BytesWritable value = new BytesWritable(); for (int i = 0; i < 3; i++) { int numSplits = random.nextInt(MAX_LENGTH/(SequenceFile.SYNC_INTERVAL/20))+1; //LOG.info("splitting: requesting = " + numSplits); FileSplit[] splits = format.getSplits(fs, job, numSplits); //LOG.info("splitting: got = " + splits.length); // check each split BitSet bits = new BitSet(length); for (int j = 0; j < splits.length; j++) { RecordReader reader = format.getRecordReader(fs, splits[j], job, reporter); try { int count = 0; while (reader.next(key, value)) { // if (bits.get(key.get())) { // LOG.info("splits["+j+"]="+splits[j]+" : " + key.get()); // LOG.info("@"+reader.getPos()); // } assertFalse("Key in multiple partitions.", bits.get(key.get())); bits.set(key.get()); count++; } //LOG.info("splits["+j+"]="+splits[j]+" count=" + count); } finally { reader.close(); } } assertEquals("Some keys in no partition.", length, bits.cardinality()); } } }
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/ee01fef4b4fb82c7492a4a747793839a4d14cd39/TestSequenceFileInputFormat.java/buggy/src/test/org/apache/hadoop/mapred/TestSequenceFileInputFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1630, 1435, 1216, 1185, 288, 565, 3956, 3976, 1719, 273, 394, 3956, 3976, 12, 3923, 1769, 565, 10931, 2662, 273, 10931, 18, 588, 7604, 2932, 3729, 3113, 2195, 1769, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1630, 1435, 1216, 1185, 288, 565, 3956, 3976, 1719, 273, 394, 3956, 3976, 12, 3923, 1769, 565, 10931, 2662, 273, 10931, 18, 588, 7604, 2932, 3729, 3113, 2195, 1769, 565, ...
if (dialog.getState() != DialogState.TERMINATED) { System.out.println("BYE not received for " + this.dialog); System.out.println("State " + this.dialog.getState()); System.out.println("dialogId " + this.dialog.getDialogId()); Appdata appData = (Appdata) dialog.getApplicationData(); System.out.println("reInviteCount " + appData.reInviteCount); System.out.println("ackCount " + appData.ackCount); ((gov.nist.javax.sip.stack.SIPDialog) dialog).printDebugInfo(); System.exit(0); }
if (dialog.getState() != DialogState.TERMINATED) { System.out.println("BYE not received for " + this.dialog); System.out.println("State " + this.dialog.getState()); System.out.println("dialogId " + this.dialog.getDialogId()); Appdata appData = (Appdata) dialog.getApplicationData(); System.out.println("ackCount " + appData.ackCount); ((gov.nist.javax.sip.stack.SIPDialog) dialog).printDebugInfo(); System.exit(0); } else { this.dialog = null; }
public void run() { if (dialog.getState() != DialogState.TERMINATED) { System.out.println("BYE not received for " + this.dialog); System.out.println("State " + this.dialog.getState()); System.out.println("dialogId " + this.dialog.getDialogId()); Appdata appData = (Appdata) dialog.getApplicationData(); System.out.println("reInviteCount " + appData.reInviteCount); System.out.println("ackCount " + appData.ackCount); ((gov.nist.javax.sip.stack.SIPDialog) dialog).printDebugInfo(); System.exit(0); } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootist.java/buggy/trunk/src/test/load/concurrency/Shootist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 377, 309, 261, 12730, 18, 588, 1119, 1435, 480, 17242, 1119, 18, 29516, 6344, 13, 288, 9506, 225, 2332, 18, 659, 18, 8222, 2932, 6486, 41, 486, 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 377, 309, 261, 12730, 18, 588, 1119, 1435, 480, 17242, 1119, 18, 29516, 6344, 13, 288, 9506, 225, 2332, 18, 659, 18, 8222, 2932, 6486, 41, 486, 50...
return super.defineClass(name,classbytes,off,len,bundledomain,bundlefile);
return super.defineClass(name,classbytes,off,len,classpathEntry);
protected Class defineClass(String name, byte[] classbytes, int off, int len, ProtectionDomain bundledomain, BundleFile bundlefile) throws ClassFormatError { // Define the package if it is not the default package. int lastIndex = name.lastIndexOf('.'); if (lastIndex != -1) { String packageName = name.substring(0,lastIndex); Package pkg = getPackage(packageName); if (pkg == null) { // The package is not defined yet define it before we define the class. // TODO need to parse code manifest located in the bundlefile to find // implementation/specification information for the package here. definePackage(packageName,null,null,null,null,null,null,null); } } return super.defineClass(name,classbytes,off,len,bundledomain,bundlefile); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/ca6505cf1572b5084a2caa5f152ad5370a82fc70/EclipseClassLoader.java/clean/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1659, 4426, 797, 12, 780, 508, 16, 1160, 8526, 667, 3890, 16, 509, 3397, 16, 509, 562, 16, 1186, 9694, 3748, 324, 24467, 1530, 16, 8539, 812, 3440, 768, 13, 1216, 1659, 29874...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1659, 4426, 797, 12, 780, 508, 16, 1160, 8526, 667, 3890, 16, 509, 3397, 16, 509, 562, 16, 1186, 9694, 3748, 324, 24467, 1530, 16, 8539, 812, 3440, 768, 13, 1216, 1659, 29874...
rsret = new ResultSet(connection, f, tuples, "OK", 1); return rsret; }
return new ResultSet(connection, f, tuples, "OK", 1); }
public java.sql.ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { // Added by Ola Sundell <ola@miranda.org> // FIXME: error checking galore! java.sql.ResultSet rsret; Field f[] = new Field[14]; byte tuple[][]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("select t.tgargs " + "from pg_class as c, pg_trigger as t " + "where c.relname like '" + table + "' and c.relfilenode=t.tgrelid"); Vector tuples = new Vector(); while (rs.next()) { importLoop(tuples, rs); } rsret = new ResultSet(connection, f, tuples, "OK", 1); return rsret; }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/0b1289e67d0c0be0f1089b298113652333eb6299/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 336, 24934, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 202, 95, 202, 202, 759, 25808, 635, 531, 11821, 348, 1074, 1165, 411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 336, 24934, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 202, 95, 202, 202, 759, 25808, 635, 531, 11821, 348, 1074, 1165, 411,...
in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
in = openProcessStream(cmdAttribs);
private static long getFreeSpaceUnix(String path) throws IOException { // build and run the 'dir' command String[] cmdAttrbs = new String[3]; cmdAttrbs[0] = "cmd.exe"; cmdAttrbs[1] = "/C"; cmdAttrbs[2] = "df " + path; Process proc = Runtime.getRuntime().exec(cmdAttrbs); // read the output from the command until we come to the second line long bytes = -1; BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(proc.getInputStream())); String line1 = in.readLine(); // header line (ignore it) String line2 = in.readLine(); // the line we're interested in if (line2 == null) { // unknown problem, throw exception throw new IOException( "Command line 'df' did not return info as expected for path '" + path + "'- response on first line was '" + line1 + '"'); } line2 = line2.trim(); // Now, we tokenize the string. The fourth element is what we want. StringTokenizer tok = new StringTokenizer(line2, " "); if (tok.countTokens() < 4) { throw new IOException( "Command line 'df' did not return data as expected for path '" + path + "'- check path is valid"); } tok.nextToken(); // Ignore Filesystem tok.nextToken(); // Ignore 1K-blocks tok.nextToken(); // Ignore Used String freeSpace = tok.nextToken(); bytes = Long.parseLong(freeSpace); } finally { IOUtils.closeQuietly(in); } if (bytes == -1) { throw new IOException( "Command line 'df' did not find free space in response for path '" + path + "'- check path is valid"); } return bytes; }
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/e0171a875c18021efdbf38abffb68b1b6992be67/FileSystemUtils.java/clean/src/java/org/apache/commons/io/FileSystemUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1525, 2812, 992, 3819, 18729, 12, 780, 589, 13, 1216, 1860, 288, 3639, 368, 1361, 471, 1086, 326, 296, 1214, 11, 1296, 3639, 514, 8526, 1797, 3843, 2038, 273, 394, 514, 63, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1525, 2812, 992, 3819, 18729, 12, 780, 589, 13, 1216, 1860, 288, 3639, 368, 1361, 471, 1086, 326, 296, 1214, 11, 1296, 3639, 514, 8526, 1797, 3843, 2038, 273, 394, 514, 63, 2...
return s32;
return s30;
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 22: return s43; case 23: return s32; case EOL: case 15: return s51; default: NoViableAltException nvae = new NoViableAltException("", 4, 51, input); throw nvae; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 11201, 30, 10792, 327, 272, 8942, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 11201, 30, 10792, 327, 272, 8942, 31, 7734, ...
DataExporter exp = (DataExporter) data .get(SymphonieWizardConstants.DATA_EXPORTER); String file = ((File) data .get(SymphonieWizardConstants.DATA_FILE)).getAbsolutePath(); Object o = data.get(SymphonieWizardConstants.DATA_EXPORTABLE); DataManager dm = (DataManager) data .get(SymphonieWizardConstants.DATA_MANAGER); if (o == null) { exp.exportJuryView(file, dm); } else { if (o instanceof Course) exp.exportTeacherView(file, dm, (Course) o); else if (o instanceof Student) exp.exportStudentView(file, dm, (Student) o); else throw new IllegalStateException("Invalid export type :" + o.getClass().getName()); }
Symphonie.View view = (View) data.get(DATA_VIEW); view.exportView(exp, dm, o, file);
public void actionPerformed(ActionEvent e) { wiz.disableAllButtons(); fin.setEnabled(false); final Map<Object, Object> data = wp.getData(); final ExceptionDisplayDialog dialog = (ExceptionDisplayDialog) data .get(SymphonieWizardConstants.DATA_EX_DIALOG); prog.setValue(15); new Thread() { public void run() { try { DataExporter exp = (DataExporter) data .get(SymphonieWizardConstants.DATA_EXPORTER); String file = ((File) data .get(SymphonieWizardConstants.DATA_FILE)).getAbsolutePath(); Object o = data.get(SymphonieWizardConstants.DATA_EXPORTABLE); DataManager dm = (DataManager) data .get(SymphonieWizardConstants.DATA_MANAGER); if (o == null) { exp.exportJuryView(file, dm); } else { if (o instanceof Course) exp.exportTeacherView(file, dm, (Course) o); else if (o instanceof Student) exp.exportStudentView(file, dm, (Student) o); else throw new IllegalStateException("Invalid export type :" + o.getClass().getName()); } } catch (Throwable t) { if (dialog != null) dialog.showException(t); else t.printStackTrace(); } prog.setValue(100); wiz.setEnabledFinish(true); } }.start(); }
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/1bc787156ed79daad2f1612c3ecc7eb5d3b06938/WizardPanelFactory.java/clean/dupratcated/src/fr/umlv/symphonie/view/WizardPanelFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 341, 452, 18, 8394, 1595, 14388, 5621, 3639, 574, 18, 542, 1526, 12, 5743, 1769, 3639, 727, 1635, 32, 921, 16, 1033, 34, 501, 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, 4202, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 341, 452, 18, 8394, 1595, 14388, 5621, 3639, 574, 18, 542, 1526, 12, 5743, 1769, 3639, 727, 1635, 32, 921, 16, 1033, 34, 501, 273,...
RetargetAction action = new RetargetAction(getId(),WorkbenchMessages.Workbench_revert); action.setToolTipText(WorkbenchMessages.Workbench_revertToolTip); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.file.revert");
IWorkbenchAction action = new ResetPerspectiveAction(window); action.setId(getId());
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(),WorkbenchMessages.Workbench_revert); action.setToolTipText(WorkbenchMessages.Workbench_revertToolTip); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.file.revert"); //$NON-NLS-1$ return action; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dde25e2c5d25803300d3e725ba305dd0140f61ea/ActionFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 5411, 309, 261, 5668, 422, 446, 13, 288, 7734, 604, 394, 2754, 5621, 5411, 289, 5411, 17100, 826, 1803, 1301, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 5411, 309, 261, 5668, 422, 446, 13, 288, 7734, 604, 394, 2754, 5621, 5411, 289, 5411, 17100, 826, 1803, 1301, ...
if(!this.constraintParameter.equals( propertyValue )) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, constraintParameter }; super.rejectValue( errors, NOT_EQUAL_CONSTRAINT,args, getDefaultMessage(DEFAULT_NOT_EQUAL_MESSAGE_CODE, args)); } }
if(!this.constraintParameter.equals( propertyValue )) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, constraintParameter }; super.rejectValue( errors, NOT_EQUAL_CONSTRAINT,args, getDefaultMessage(DEFAULT_NOT_EQUAL_MESSAGE_CODE, args)); } }
protected void processValidate(Object target, Object propertyValue, Errors errors) { if(!this.constraintParameter.equals( propertyValue )) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, constraintParameter }; super.rejectValue( errors, NOT_EQUAL_CONSTRAINT,args, getDefaultMessage(DEFAULT_NOT_EQUAL_MESSAGE_CODE, args)); } }
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 1207, 4270, 12, 921, 1018, 16, 1033, 12337, 16, 9372, 1334, 13, 288, 1082, 202, 430, 12, 5, 2211, 18, 13364, 1662, 18, 14963, 12, 12337, 8623, 288, 9506, 202, 921, 8526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 918, 1207, 4270, 12, 921, 1018, 16, 1033, 12337, 16, 9372, 1334, 13, 288, 1082, 202, 430, 12, 5, 2211, 18, 13364, 1662, 18, 14963, 12, 12337, 8623, 288, 9506, 202, 921, 8526...
g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED );
private void analyseSubGraphs() { boolean foundStartGraph = false; for ( Iterator iter = _graphList.iterator(); iter.hasNext(); ) { SparseGraph g = (SparseGraph) iter.next(); Object[] vertices = g.getVertices().toArray(); for ( int i = 0; i < vertices.length; i++ ) { DirectedSparseVertex v = (DirectedSparseVertex)vertices[ i ]; // Find all vertices that are start nodes (START_NODE) if ( v.getUserDatum( LABEL_KEY ).equals( START_NODE ) ) { Object[] edges = v.getOutEdges().toArray(); if ( edges.length != 1 ) { throw new RuntimeException( "A start nod can only have one out edge, look in file: " + g.getUserDatum( FILE_KEY ) ); } DirectedSparseEdge edge = (DirectedSparseEdge)edges[ 0 ]; g.addUserDatum( LABEL_KEY, edge.getDest().getUserDatum(LABEL_KEY), UserData.SHARED ); if ( edge.containsUserDatumKey( LABEL_KEY ) ) { if ( foundStartGraph == true ) { throw new RuntimeException( "A start nod can only exist in one file, see files " + _graph.getUserDatum( FILE_KEY )+ ", and " + g.getUserDatum( FILE_KEY ) ); } foundStartGraph = true; _graph = g; } else { // Since the edge does not contain a label, this is a subgraph // Mark the destination node of the edge to a subgraph starting node edge.getDest().addUserDatum( SUBGRAPH_START_VERTEX, SUBGRAPH_START_VERTEX, UserData.SHARED ); } } } } _logger.debug( "Investigating graph: " + _graph.getUserDatum( LABEL_KEY ) ); for ( int i = 0; i < _graphList.size(); i++ ) { SparseGraph g = (SparseGraph)_graphList.elementAt( i ); _logger.debug( "With graph: " + g.getUserDatum( LABEL_KEY ) + " in file: " + g.getUserDatum( FILE_KEY ) ); if ( _graph.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { _logger.debug( " Graphs are the same, next..." ); continue; } Object[] vertices = _graph.getVertices().toArray(); for ( int j = 0; j < vertices.length; j++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)vertices[ j ]; _logger.debug( "Investigating vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) ); if ( v1.getUserDatum( LABEL_KEY ).equals( g.getUserDatum( LABEL_KEY ) ) ) { if ( v1.containsUserDatumKey( MERGE ) ) { _logger.debug( "The vertex is marked MERGE, and will not be replaced by a subgraph."); continue; } if ( v1.containsUserDatumKey( NO_MERGE ) ) { _logger.debug( "The vertex is marked NO_MERGE, and will not be replaced by a subgraph."); continue; } _logger.debug( "A subgraph'ed vertex: " + v1.getUserDatum( LABEL_KEY ) + " in graph: " + g.getUserDatum( FILE_KEY ) + ", equals a node in the graph in file: " + _graph.getUserDatum( FILE_KEY ) ); appendGraph( _graph, g ); //writeGraph("/tmp/debug_append.graphml"); copySubGraphs( _graph, v1 ); //writeGraph("/tmp/debug_merge.graphml"); vertices = _graph.getVertices().toArray(); i = -1; j = -1; } } } // Merge all nodes marked MERGE Object[] list1 = _graph.getVertices().toArray(); for ( int i = 0; i < list1.length; i++ ) { DirectedSparseVertex v1 = (DirectedSparseVertex)list1[ i ]; if ( v1.containsUserDatumKey( MERGE ) == false ) { continue; } Object[] list2 = _graph.getVertices().toArray(); for ( int j = 0; j < list2.length; j++ ) { DirectedSparseVertex v2 = (DirectedSparseVertex)list2[ j ]; if ( v1.hashCode() == v2.hashCode() ) { continue; } if ( v1.getUserDatum( LABEL_KEY ).equals( v2.getUserDatum( LABEL_KEY ) ) == false ) { continue; } _logger.debug( "Merging vertex(" + v1.hashCode() + "): " + v1.getUserDatum( LABEL_KEY ) + "with vertex(" + v2.hashCode() ); Object[] inEdges = v1.getInEdges().toArray(); for (int x = 0; x < inEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)inEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( edge.getSource(), v2 ) ); new_edge.importUserData( edge ); } Object[] outEdges = v1.getOutEdges().toArray(); for (int x = 0; x < outEdges.length; x++) { DirectedSparseEdge edge = (DirectedSparseEdge)outEdges[ x ]; DirectedSparseEdge new_edge = (DirectedSparseEdge)_graph.addEdge( new DirectedSparseEdge( v2, edge.getDest() ) ); new_edge.importUserData( edge ); } _logger.debug( "Remvoing merged vertex(" + v1.hashCode() + ")" ); } _graph.removeVertex( v1 ); } _logger.debug( "Done merging" ); }
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/4d22840dae349fccc763d621c45be8eacebe533e/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 31087, 1676, 4137, 87, 1435, 202, 95, 202, 202, 6494, 1392, 1685, 4137, 273, 629, 31, 202, 202, 1884, 261, 4498, 1400, 273, 389, 4660, 682, 18, 9838, 5621, 1400, 18, 533...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31087, 1676, 4137, 87, 1435, 202, 95, 202, 202, 6494, 1392, 1685, 4137, 273, 629, 31, 202, 202, 1884, 261, 4498, 1400, 273, 389, 4660, 682, 18, 9838, 5621, 1400, 18, 533...
return new Dimension(getIcon().getIconWidth(), getIcon().getIconHeight());
Insets insets = getInsets(); int w = defaultSize + insets.left + insets.right; int h = defaultSize + insets.top + insets.bottom; return new Dimension(w, h);
public Dimension getPreferredSize() { return new Dimension(getIcon().getIconWidth(), getIcon().getIconHeight()); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/BasicArrowButton.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 22300, 23576, 273, 7854, 4424, 5621, 509, 341, 273, 805, 1225, 397, 23576, 18, 4482, 397, 23576, 18, 4083, 31, 509, 366, 273, 805, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 22300, 23576, 273, 7854, 4424, 5621, 509, 341, 273, 805, 1225, 397, 23576, 18, 4482, 397, 23576, 18, 4083, 31, 509, 366, 273, 805, 122...
String className = UTF8.readString(in); Class declaredClass = (Class)PRIMITIVE_NAMES.get(className); if (declaredClass == null) { try { declaredClass = conf.getClassByName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("readObject can't find class", e); } } Object instance; if (declaredClass.isPrimitive()) { if (declaredClass == Boolean.TYPE) { instance = Boolean.valueOf(in.readBoolean()); } else if (declaredClass == Character.TYPE) { instance = new Character(in.readChar()); } else if (declaredClass == Byte.TYPE) { instance = new Byte(in.readByte()); } else if (declaredClass == Short.TYPE) { instance = new Short(in.readShort()); } else if (declaredClass == Integer.TYPE) { instance = new Integer(in.readInt()); } else if (declaredClass == Long.TYPE) { instance = new Long(in.readLong()); } else if (declaredClass == Float.TYPE) { instance = new Float(in.readFloat()); } else if (declaredClass == Double.TYPE) { instance = new Double(in.readDouble()); } else if (declaredClass == Void.TYPE) { instance = null; } else { throw new IllegalArgumentException("Not a primitive: "+declaredClass); } } else if (declaredClass.isArray()) { int length = in.readInt(); instance = Array.newInstance(declaredClass.getComponentType(), length); for (int i = 0; i < length; i++) { Array.set(instance, i, readObject(in, conf)); } } else if (declaredClass == String.class) { instance = UTF8.readString(in); } else { Class instanceClass = null; try { instanceClass = Class.forName(UTF8.readString(in), true, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { throw new RuntimeException("readObject can't find class", e); } Writable writable = WritableFactories.newInstance(instanceClass, conf); writable.readFields(in); instance = writable; if (instanceClass == NullInstance.class) { declaredClass = ((NullInstance)instance).declaredClass; instance = null; } } if (objectWritable != null) { objectWritable.declaredClass = declaredClass; objectWritable.instance = instance; } return instance;
return readObject(in, null, conf);
public static Object readObject(DataInput in, ObjectWritable objectWritable, Configuration conf) throws IOException { String className = UTF8.readString(in); Class declaredClass = (Class)PRIMITIVE_NAMES.get(className); if (declaredClass == null) { try { declaredClass = conf.getClassByName(className); } catch (ClassNotFoundException e) { throw new RuntimeException("readObject can't find class", e); } } Object instance; if (declaredClass.isPrimitive()) { // primitive types if (declaredClass == Boolean.TYPE) { // boolean instance = Boolean.valueOf(in.readBoolean()); } else if (declaredClass == Character.TYPE) { // char instance = new Character(in.readChar()); } else if (declaredClass == Byte.TYPE) { // byte instance = new Byte(in.readByte()); } else if (declaredClass == Short.TYPE) { // short instance = new Short(in.readShort()); } else if (declaredClass == Integer.TYPE) { // int instance = new Integer(in.readInt()); } else if (declaredClass == Long.TYPE) { // long instance = new Long(in.readLong()); } else if (declaredClass == Float.TYPE) { // float instance = new Float(in.readFloat()); } else if (declaredClass == Double.TYPE) { // double instance = new Double(in.readDouble()); } else if (declaredClass == Void.TYPE) { // void instance = null; } else { throw new IllegalArgumentException("Not a primitive: "+declaredClass); } } else if (declaredClass.isArray()) { // array int length = in.readInt(); instance = Array.newInstance(declaredClass.getComponentType(), length); for (int i = 0; i < length; i++) { Array.set(instance, i, readObject(in, conf)); } } else if (declaredClass == String.class) { // String instance = UTF8.readString(in); } else { // Writable Class instanceClass = null; try { instanceClass = Class.forName(UTF8.readString(in), true, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException e) { throw new RuntimeException("readObject can't find class", e); } Writable writable = WritableFactories.newInstance(instanceClass, conf); writable.readFields(in); instance = writable; if (instanceClass == NullInstance.class) { // null declaredClass = ((NullInstance)instance).declaredClass; instance = null; } } if (objectWritable != null) { // store values objectWritable.declaredClass = declaredClass; objectWritable.instance = instance; } return instance; }
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/52f789305f7d87ca29d0fbdec729c7657ec644fd/ObjectWritable.java/buggy/src/java/org/apache/hadoop/io/ObjectWritable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 17362, 12, 751, 1210, 316, 16, 1033, 12061, 733, 12061, 16, 4659, 2195, 13, 565, 1216, 1860, 288, 565, 514, 2658, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 1659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 17362, 12, 751, 1210, 316, 16, 1033, 12061, 733, 12061, 16, 4659, 2195, 13, 565, 1216, 1860, 288, 565, 514, 2658, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 1659,...
String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2);
String key2 = (String) en.nextElement(); Object value1 = primary.get(key2);
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(colon_list[1]) == 0 || key2.compareTo(colon_list[2]) == 0 || key2.compareTo(colon_list[3]) == 0) { String value2 = (String) h2.get(key2); h1.put(key2, (String) value1 + ":" + value2); } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/InitialContext.java/clean/core/src/classpath/javax/javax/naming/InitialContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 2691, 261, 5582, 14544, 366, 21, 16, 18559, 366, 22, 13, 225, 288, 565, 13864, 425, 22, 273, 366, 22, 18, 2452, 5621, 3639, 1323, 261, 73, 22, 18, 5332, 7417, 3471, 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, 3238, 760, 918, 2691, 261, 5582, 14544, 366, 21, 16, 18559, 366, 22, 13, 225, 288, 565, 13864, 425, 22, 273, 366, 22, 18, 2452, 5621, 3639, 1323, 261, 73, 22, 18, 5332, 7417, 3471, 10...
cmof.reflection.Object object = new cmof.UmlClassImpl(_425, extent, null, "cmof.UmlClassImpl", new String[]{"cmof.UmlClassCustom", "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("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_516,_302,_227,_612,_201,_458,_453,_651,_64,_339,_443,_456,_319,_156,_535,_403,_644,_434,_469,_653,_652,_120,_482,_71,_707,_150,_677,_414,_229,_133,_175,_323,_498,_70,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("superClass", new java.lang.Object[] {_513,_673,_444,_419});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedAttribute", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedOperation", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "Parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _74);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_227,_498,_458});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {_513,_673,_444,_419});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {_516,_302,_612,_201,_453,_651,_64,_65,_339,_443,_456,_156,_319,_535,_403,_66,_644,_273,_434,_469,_653,_652,_120,_482,_666,_654,_71,_707,_150,_677,_414,_229,_133,_175,_735,_323,_573,_753,_70,_353,_129});((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", _754);
cmof.reflection.Object object = new cmof.ParameterImpl(_170, extent, null, "cmof.ParameterImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _654);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "redefinee");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("operation", _359);((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(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("direction", cmof.ParameterDirectionKind.IN);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _359);((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("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "redefinee");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _660);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});
private static cmof.reflection.Object getObject754(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.UmlClassImpl(_425, extent, null, "cmof.UmlClassImpl", new String[]{"cmof.UmlClassCustom", "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("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_516,_302,_227,_612,_201,_458,_453,_651,_64,_339,_443,_456,_319,_156,_535,_403,_644,_434,_469,_653,_652,_120,_482,_71,_707,_150,_677,_414,_229,_133,_175,_323,_498,_70,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("superClass", new java.lang.Object[] {_513,_673,_444,_419});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedAttribute", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedOperation", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_227,_458,_498});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "Parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _74);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_227,_498,_458});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {_513,_673,_444,_419});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {_516,_302,_612,_201,_453,_651,_64,_65,_339,_443,_456,_156,_319,_535,_403,_66,_644,_273,_434,_469,_653,_652,_120,_482,_666,_654,_71,_707,_150,_677,_414,_229,_133,_175,_735,_323,_573,_753,_70,_353,_129});((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", _754); 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, 5877, 24, 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, 5877, 24, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, ...
LoggingUtils.setLoggingConfiguration(new URL(loggingURL).openStream());
LoggingUtils.setLoggingConfiguration( InputSourceUtil.getStreamForString(loggingURL) );
public static void main(String[] oargs) { String loggingURL = null; boolean help = false; boolean verbose = false; boolean commandComp = true; // check for the defaultConf file, and use it, if present. Some values may be overridden with a user specified file with -g if (new File(defaultConf).exists()) getConnProperties(defaultConf); String[] args = null; if (oargs.length > 0) { try { args = harvestArguments(oargs); } catch (Exception e1) { System.out.println(e1.getMessage()); e1.printStackTrace(); System.exit(1); } Getopt g = new Getopt("MartShell", args, COMMAND_LINE_SWITCHES); int c; while ((c = g.getopt()) != -1) { switch (c) { case 'h' : help = true; helpCommand = g.getOptarg(); break; case 'R' : mainRegistry = g.getOptarg(); break; case 'I' : mainInitScript = g.getOptarg(); break; case 'A' : commandComp = false; break; // get everything that is specified in the provided configuration file, then fill in rest with other options, if provided case 'M' : getConnProperties(g.getOptarg()); break; case 'd' : mainDefaultDataset = g.getOptarg(); break; case 'v' : verbose = true; break; case 'l' : loggingURL = g.getOptarg(); break; case 'e' : mainBatchSQL = g.getOptarg(); mainBatchMode = true; break; case 'O' : mainBatchFile = g.getOptarg(); break; case 'F' : mainBatchFormat = g.getOptarg(); break; case 'S' : mainBatchSeparator = g.getOptarg(); break; case 'E' : mainBatchScriptFile = g.getOptarg(); mainBatchMode = true; break; } } } else { args = new String[0]; } // Initialise logging system if (loggingURL != null) { try { LoggingUtils.setLoggingConfiguration(new URL(loggingURL).openStream()); } catch (SecurityException e) { System.out.println("Caught Security Exception when adding logger configuration URL"); e.printStackTrace(); } catch (MalformedURLException e) { System.out.println("User supplied URL " + loggingURL + " is not well formed"); e.printStackTrace(); } catch (IOException e) { System.out.println("Could not read input from URL " + loggingURL + "\n"); e.printStackTrace(); } } else { LoggingUtils.setVerbose(verbose); } if (confinUse != null) { mainLogger.info("Using configuration file: " + confinUse + "\n"); } else { mainLogger.info("Using commandline options only for connection configuration"); } // check for help if (help) { if (helpCommand.equals("")) System.out.println(usage()); else { MartShell ms = new MartShell(); ms.UnsetCommandCompletion(); try { System.out.println(ms.Help(helpCommand)); } catch (InvalidQueryException e) { System.out.println("Couldnt provide Help for " + helpCommand + e.getMessage()); e.printStackTrace(); } } return; } MartShell ms = new MartShell(); if (mainRegistry != null) try { ms.addMartRegistry(mainRegistry); } catch (MalformedURLException e1) { System.out.println("Could not set default Registry file " + e1.getMessage()); e1.printStackTrace(); } catch (ConfigurationException e1) { System.out.println("Could not set default Registry file " + e1.getMessage()); e1.printStackTrace(); } if (mainInitScript != null) try { ms.initializeWithScript(mainInitScript); } catch (Exception e2) { System.out.println("Could not initialize MartShell with initScript " + e2.getMessage()); e2.printStackTrace(); } if (mainDefaultDataset != null) ms.setDefaultDatasetName(mainDefaultDataset); if (mainBatchMode) { boolean validQuery = true; ms.UnsetCommandCompletion(); if (mainBatchSQL == null && mainBatchScriptFile == null) { System.out.println("Must supply either a Query command or a query script\n" + usage()); System.exit(0); } else if (mainBatchScriptFile != null) { validQuery = ms.RunBatchScript(mainBatchScriptFile); } else { if (mainBatchFile != null) { try { ms.setBatchOutputFile(mainBatchFile); } catch (Exception e) { validQuery = false; } } if (mainBatchFormat != null) ms.setBatchOutputFormat(mainBatchFormat); if (mainBatchSeparator == null) ms.setBatchOutputSeparator("\t"); //default else ms.setBatchOutputSeparator(mainBatchSeparator); validQuery = ms.RunBatch(mainBatchSQL); } if (!validQuery) { System.out.println("Invalid Batch command:" + ms.getBatchError() + "\n" + usage()); System.exit(0); } else System.exit(0); } else { if (!commandComp) ms.UnsetCommandCompletion(); ms.RunInteractive(); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/364cd4dccf149e64fd52fecaef1fb50bf7510c21/MartShell.java/buggy/src/java/org/ensembl/mart/shell/MartShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 320, 1968, 13, 288, 202, 202, 780, 2907, 1785, 273, 446, 31, 202, 202, 6494, 2809, 273, 629, 31, 202, 202, 6494, 3988, 273, 629, 31, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 320, 1968, 13, 288, 202, 202, 780, 2907, 1785, 273, 446, 31, 202, 202, 6494, 2809, 273, 629, 31, 202, 202, 6494, 3988, 273, 629, 31, 202, 202,...
gd.horizontalSpan = 2;
protected void createClient(Section section, FormToolkit toolkit) { initializeFonts(); section.setLayout(new TableWrapLayout()); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); Composite mainContainer = toolkit.createComposite(section); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.makeColumnsEqualWidth = true; layout.numColumns = 4; layout.verticalSpacing = 10; mainContainer.setLayout(layout); mainContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); /* * create new manifest part */ Composite createManifestContainer = toolkit.createComposite(mainContainer); layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.numColumns = 2; layout.makeColumnsEqualWidth= true; createManifestContainer.setLayout(layout); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 4; createManifestContainer.setLayoutData(gd); Label manifestLabel = toolkit.createLabel(createManifestContainer, "To take advantage of this feature, the plug-in must contain a manifest.mf file."); gd = new GridData(); manifestLabel.setLayoutData(gd); Hyperlink manifestLink = toolkit.createHyperlink(createManifestContainer, "Create a manifest file",SWT.NULL); manifestLink.addHyperlinkListener(new IHyperlinkListener(){ public void linkActivated(HyperlinkEvent e) { /** * TODO: hook code to create manifest.mf here */ } public void linkExited(HyperlinkEvent e) { } public void linkEntered(HyperlinkEvent e) { } }); manifestLink.setLayout(new GridLayout()); gd = new GridData(); manifestLink.setLayoutData(gd); /* * Bottom parts (Activation Rule & Exceptions) */ Composite bottomContainer = toolkit.createComposite(mainContainer); layout = new GridLayout(); layout.makeColumnsEqualWidth = true; layout.marginHeight = layout.marginWidth = 0; layout.numColumns = 4; bottomContainer.setLayout(layout); gd = new GridData(GridData.FILL_BOTH); gd.grabExcessHorizontalSpace = true; gd.horizontalSpan = 4; bottomContainer.setLayoutData(gd); /* * Activation rule part */ Composite ruleContainer = toolkit.createComposite(bottomContainer); layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.numColumns = 2; layout.makeColumnsEqualWidth = true; ruleContainer.setLayout(layout); gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); gd.grabExcessHorizontalSpace = true; ruleContainer.setLayoutData(gd); Label activateLabel = toolkit.createLabel(ruleContainer, "Activation Rule"); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan = 2; activateLabel.setLayoutData(gd); activateLabel.setFont(boldFont); autoActivateButton = toolkit .createButton( ruleContainer, "Always activate this plug-in", SWT.RADIO); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan = 2; autoActivateButton .setLayoutData(gd); autoActivateButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { /* * TODO: set auto-start header properties */ } }); /* * auto-activate should be set to true by default with empty exceptions package list */ autoActivateButton.setSelection(true); nonAutoActivateButton = toolkit .createButton( ruleContainer, "Do not activate this plug-in", SWT.RADIO); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan = 2; nonAutoActivateButton.setLayoutData(gd); nonAutoActivateButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { /* * TODO: set auto-start header properties */ } }); /* * Exceptions part */ Composite exceptionsContainer = toolkit.createComposite(bottomContainer); layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 2; layout.numColumns = 2; layout.makeColumnsEqualWidth = false; exceptionsContainer.setLayout(layout); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan=2; exceptionsContainer.setLayoutData(gd); Label exceptionLabel = toolkit.createLabel(exceptionsContainer, "Exceptions to the Rule"); gd = new GridData();//GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; exceptionLabel.setLayoutData(gd); exceptionLabel.setFont(boldFont); Label exceptionPkgLabel = toolkit.createLabel(exceptionsContainer, "Ignore the activation rule when loaded classes belong to the following subset of packages:", SWT.WRAP); gd = new GridData(GridData.FILL_BOTH); gd.grabExcessHorizontalSpace = true; gd.horizontalSpan = 2; exceptionPkgLabel.setLayoutData(gd); Composite exceptionsPkgContainer = toolkit.createComposite(exceptionsContainer); layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; layout.numColumns = 2; layout.makeColumnsEqualWidth = false; exceptionsPkgContainer.setLayout(layout); gd = new GridData(GridData.FILL_BOTH);// gd.grabExcessHorizontalSpace = false; gd.horizontalSpan = 2; exceptionsPkgContainer.setLayoutData(gd); EditableTablePart tablePart = getTablePart(); IModel model = (IModel) getPage().getModel(); tablePart.setEditable(model.isEditable()); createViewerPartControl(exceptionsPkgContainer, SWT.FULL_SELECTION, 2, toolkit); osgiTableViewer = tablePart.getTableViewer(); osgiTableViewer.setContentProvider(new TableContentProvider()); osgiTableViewer.setLabelProvider(new TableLabelProvider()); toolkit.paintBordersFor(exceptionsContainer); section.setClient(mainContainer); initialize(); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/1019ee89932bcd0ba55655c3426ee0cd7c37440c/OSGiSection.java/buggy/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/OSGiSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 30872, 12, 5285, 2442, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 202, 202, 11160, 5711, 87, 5621, 9506, 202, 3464, 18, 542, 3744, 12, 2704, 3555, 2964, 3744, 10663, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 30872, 12, 5285, 2442, 16, 2748, 6364, 8691, 5226, 8691, 13, 288, 202, 202, 11160, 5711, 87, 5621, 9506, 202, 3464, 18, 542, 3744, 12, 2704, 3555, 2964, 3744, 10663, 202, ...
Set primaryKeys = new HashSet(PrimaryKeyUtil.getPrimaryKeys(cld).values()); PrimaryKey pk = (PrimaryKey) primaryKeys.iterator().next();
PrimaryKey pk = (PrimaryKey) PrimaryKeyUtil.getPrimaryKeys(cld).get("key1");
public void testObjectPrimaryKeyIsNullNullField3() throws Exception { Department d = (Department) DynamicUtil.createObject(Collections.singleton(Department.class)); d.setName("jkhsdfg"); Company c = (Company) DynamicUtil.createObject(Collections.singleton(Company.class)); c.setAddress(null); c.setVatNumber(765213); d.setCompany(c); ClassDescriptor cld = model.getClassDescriptorByName("org.intermine.model.testmodel.Department"); Set primaryKeys = new HashSet(PrimaryKeyUtil.getPrimaryKeys(cld).values()); PrimaryKey pk = (PrimaryKey) primaryKeys.iterator().next(); assertTrue(DataLoaderHelper.objectPrimaryKeyNotNull(model, d, cld, pk, null)); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/c8d04a442195036a2bb3939122e18ff6acf88719/DataLoaderHelperTest.java/clean/intermine/integrate/test/src/org/intermine/dataloader/DataLoaderHelperTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 921, 11575, 2520, 2041, 2041, 974, 23, 1435, 1216, 1185, 288, 3639, 4019, 24144, 302, 273, 261, 30358, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 30358, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 921, 11575, 2520, 2041, 2041, 974, 23, 1435, 1216, 1185, 288, 3639, 4019, 24144, 302, 273, 261, 30358, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 30358, 18...
System.out.println("local variable: " + localVar);
printStream.println("local variable: " + localVar);
private void _dumpVariablesIntoInterpreterAndSwitch() throws DebugException, AbsentInformationException { if (printMessages) { System.out.println("dumpVariablesIntoInterpreterAndSwitch"); } try { ThreadReference suspendedThreadRef = _suspendedThreads.peek(); StackFrame frame = suspendedThreadRef.frame(0); Location l = frame.location(); ReferenceType rt = l.declaringType(); String className = rt.name(); // Name the new interpreter based on this thread String interpreterName = _getUniqueThreadName(suspendedThreadRef); _model.getInteractionsModel().addDebugInterpreter(interpreterName, className); ObjectReference debugInterpreter = _getDebugInterpreter(); if (printMessages) { System.out.println("frame = suspendedThreadRef.frame(0);"); } frame = suspendedThreadRef.frame(0); List<LocalVariable> vars = frame.visibleVariables(); // JDK 1.5 will eliminate this warning Iterator<LocalVariable> varsIterator = vars.iterator(); if (printMessages) { System.out.println("got visibleVariables"); } // Define each variable while(varsIterator.hasNext()) { LocalVariable localVar = varsIterator.next(); if (printMessages) { System.out.println("local variable: " + localVar); } // Have to update the frame each time frame = suspendedThreadRef.frame(0); Value val = frame.getValue(localVar); Type type; if (val != null) { type = val.type(); } else { try { type = localVar.type(); } catch(ClassNotLoadedException e) { List<ReferenceType> classes = _vm.classesByName(localVar.typeName()); //JDK 1.5 will eliminate this warning if (!classes.isEmpty()) { type = classes.get(0); } else { type = null; } } } _defineVariable(suspendedThreadRef, debugInterpreter, localVar.name(), val, type); } // Update the frame frame = suspendedThreadRef.frame(0); // Define "this" Value thisVal = frame.thisObject(); if (thisVal != null) { _defineVariable(suspendedThreadRef, debugInterpreter, "this", thisVal, thisVal.type()); //_setThisInInterpreter(suspendedThreadRef, debugInterpreter, thisVal); } // Set the new interpreter and prompt String prompt = _getPromptString(suspendedThreadRef); if (printMessages) { System.out.println("setting active interpreter"); } _model.getInteractionsModel().setActiveInterpreter(interpreterName, prompt); if (printMessages) { System.out.println("got active interpreter"); } } catch(InvalidTypeException exc) { throw new DebugException(exc.toString()); } catch(IncompatibleThreadStateException e2) { throw new DebugException(e2.toString()); } catch(ClassNotLoadedException e3) { throw new DebugException(e3.toString()); } catch(InvocationException e4) { throw new DebugException(e4.toString()); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/bd397d7031a3a6391c14c55c6410a49e1be43ebd/JPDADebugger.java/buggy/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 8481, 6158, 5952, 30010, 1876, 10200, 1435, 1216, 4015, 503, 16, 15084, 319, 5369, 503, 288, 565, 309, 261, 1188, 5058, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 8481,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 8481, 6158, 5952, 30010, 1876, 10200, 1435, 1216, 4015, 503, 16, 15084, 319, 5369, 503, 288, 565, 309, 261, 1188, 5058, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 8481,...
Offset offset = VM_Statics.findOrCreateFloatLiteral(ibits);
Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateFloatLiteral(ibits));
protected final VM_MachineCode genCode () { emit_prologue(); while (bcodes.hasMoreBytecodes()) { biStart = bcodes.index(); bytecodeMap[biStart] = asm.getMachineCodeIndex(); asm.resolveForwardReferences(biStart); //-#if RVM_WITH_OSR asm.patchLoadRetAddrConst(biStart); //-#endif starting_bytecode(); int code = bcodes.nextInstruction(); switch (code) { case JBC_nop: { if (shouldPrint) asm.noteBytecode(biStart, "nop"); break; } case JBC_aconst_null: { if (shouldPrint) asm.noteBytecode(biStart, "aconst_null"); emit_aconst_null(); break; } case JBC_iconst_m1: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_m1"); emit_iconst(-1); break; } case JBC_iconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_0"); emit_iconst(0); break; } case JBC_iconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_1"); emit_iconst(1); break; } case JBC_iconst_2: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_2"); emit_iconst(2); break; } case JBC_iconst_3: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_3"); emit_iconst(3); break; } case JBC_iconst_4: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_4"); emit_iconst(4); break; } case JBC_iconst_5: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_5"); emit_iconst(5); break; } case JBC_lconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "lconst_0"); // floating-point 0 is long 0 emit_lconst(0); break; } case JBC_lconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "lconst_1"); emit_lconst(1); break; } case JBC_fconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_0"); emit_fconst_0(); break; } case JBC_fconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_1"); emit_fconst_1(); break; } case JBC_fconst_2: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_2"); emit_fconst_2(); break; } case JBC_dconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "dconst_0"); emit_dconst_0(); break; } case JBC_dconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "dconst_1"); emit_dconst_1(); break; } case JBC_bipush: { int val = bcodes.getByteValue(); if (shouldPrint) asm.noteBytecode(biStart, "bipush", val); emit_iconst(val); break; } case JBC_sipush: { int val = bcodes.getShortValue(); if (shouldPrint) asm.noteBytecode(biStart, "sipush", val); emit_iconst(val); break; } case JBC_ldc: { int index = bcodes.getConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc", index); Offset offset = klass.getLiteralOffset(index); emit_ldc(offset); break; } case JBC_ldc_w: { int index = bcodes.getWideConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc_w", index); Offset offset = klass.getLiteralOffset(index); emit_ldc(offset); break; } case JBC_ldc2_w: { int index = bcodes.getWideConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc2_w", index); Offset offset = klass.getLiteralOffset(index); emit_ldc2(offset); break; } case JBC_iload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "iload" , index); emit_iload(index); break; } case JBC_lload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "lload", index); emit_lload(index); break; } case JBC_fload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "fload", index); emit_fload(index); break; } case JBC_dload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "dload", index); emit_dload(index); break; } case JBC_aload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "aload", index); emit_aload(index); break; } case JBC_iload_0: { if (shouldPrint) asm.noteBytecode(biStart, "iload_0"); emit_iload(0); break; } case JBC_iload_1: { if (shouldPrint) asm.noteBytecode(biStart, "iload_1"); emit_iload(1); break; } case JBC_iload_2: { if (shouldPrint) asm.noteBytecode(biStart, "iload_2"); emit_iload(2); break; } case JBC_iload_3: { if (shouldPrint) asm.noteBytecode(biStart, "iload_3"); emit_iload(3); break; } case JBC_lload_0: { if (shouldPrint) asm.noteBytecode(biStart, "lload_0"); emit_lload(0); break; } case JBC_lload_1: { if (shouldPrint) asm.noteBytecode(biStart, "lload_1"); emit_lload(1); break; } case JBC_lload_2: { if (shouldPrint) asm.noteBytecode(biStart, "lload_2"); emit_lload(2); break; } case JBC_lload_3: { if (shouldPrint) asm.noteBytecode(biStart, "lload_3"); emit_lload(3); break; } case JBC_fload_0: { if (shouldPrint) asm.noteBytecode(biStart, "fload_0"); emit_fload(0); break; } case JBC_fload_1: { if (shouldPrint) asm.noteBytecode(biStart, "fload_1"); emit_fload(1); break; } case JBC_fload_2: { if (shouldPrint) asm.noteBytecode(biStart, "fload_2"); emit_fload(2); break; } case JBC_fload_3: { if (shouldPrint) asm.noteBytecode(biStart, "fload_3"); emit_fload(3); break; } case JBC_dload_0: { if (shouldPrint) asm.noteBytecode(biStart, "dload_0"); emit_dload(0); break; } case JBC_dload_1: { if (shouldPrint) asm.noteBytecode(biStart, "dload_1"); emit_dload(1); break; } case JBC_dload_2: { if (shouldPrint) asm.noteBytecode(biStart, "dload_2"); emit_dload(2); break; } case JBC_dload_3: { if (shouldPrint) asm.noteBytecode(biStart, "dload_3"); emit_dload(3); break; } case JBC_aload_0: { if (shouldPrint) asm.noteBytecode(biStart, "aload_0"); emit_aload(0); break; } case JBC_aload_1: { if (shouldPrint) asm.noteBytecode(biStart, "aload_1"); emit_aload(1); break; } case JBC_aload_2: { if (shouldPrint) asm.noteBytecode(biStart, "aload_2"); emit_aload(2); break; } case JBC_aload_3: { if (shouldPrint) asm.noteBytecode(biStart, "aload_3"); emit_aload(3); break; } case JBC_iaload: { if (shouldPrint) asm.noteBytecode(biStart, "iaload"); emit_iaload(); break; } case JBC_laload: { if (shouldPrint) asm.noteBytecode(biStart, "laload"); emit_laload(); break; } case JBC_faload: { if (shouldPrint) asm.noteBytecode(biStart, "faload"); emit_faload(); break; } case JBC_daload: { if (shouldPrint) asm.noteBytecode(biStart, "daload"); emit_daload(); break; } case JBC_aaload: { if (shouldPrint) asm.noteBytecode(biStart, "aaload"); emit_aaload(); break; } case JBC_baload: { if (shouldPrint) asm.noteBytecode(biStart, "baload"); emit_baload(); break; } case JBC_caload: { if (shouldPrint) asm.noteBytecode(biStart, "caload"); emit_caload(); break; } case JBC_saload: { if (shouldPrint) asm.noteBytecode(biStart, "saload"); emit_saload(); break; } case JBC_istore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "istore", index); emit_istore(index); break; } case JBC_lstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "lstore", index); emit_lstore(index); break; } case JBC_fstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "fstore", index); emit_fstore(index); break; } case JBC_dstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "dstore", index); emit_dstore(index); break; } case JBC_astore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "astore", index); emit_astore(index); break; } case JBC_istore_0: { if (shouldPrint) asm.noteBytecode(biStart, "istore_0"); emit_istore(0); break; } case JBC_istore_1: { if (shouldPrint) asm.noteBytecode(biStart, "istore_1"); emit_istore(1); break; } case JBC_istore_2: { if (shouldPrint) asm.noteBytecode(biStart, "istore_2"); emit_istore(2); break; } case JBC_istore_3: { if (shouldPrint) asm.noteBytecode(biStart, "istore_3"); emit_istore(3); break; } case JBC_lstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_0"); emit_lstore(0); break; } case JBC_lstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_1"); emit_lstore(1); break; } case JBC_lstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_2"); emit_lstore(2); break; } case JBC_lstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_3"); emit_lstore(3); break; } case JBC_fstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_0"); emit_fstore(0); break; } case JBC_fstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_1"); emit_fstore(1); break; } case JBC_fstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_2"); emit_fstore(2); break; } case JBC_fstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_3"); emit_fstore(3); break; } case JBC_dstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_0"); emit_dstore(0); break; } case JBC_dstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_1"); emit_dstore(1); break; } case JBC_dstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_2"); emit_dstore(2); break; } case JBC_dstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_3"); emit_dstore(3); break; } case JBC_astore_0: { if (shouldPrint) asm.noteBytecode(biStart, "astore_0"); emit_astore(0); break; } case JBC_astore_1: { if (shouldPrint) asm.noteBytecode(biStart, "astore_1"); emit_astore(1); break; } case JBC_astore_2: { if (shouldPrint) asm.noteBytecode(biStart, "astore_2"); emit_astore(2); break; } case JBC_astore_3: { if (shouldPrint) asm.noteBytecode(biStart, "astore_3"); emit_astore(3); break; } case JBC_iastore: { if (shouldPrint) asm.noteBytecode(biStart, "iastore"); emit_iastore(); break; } case JBC_lastore: { if (shouldPrint) asm.noteBytecode(biStart, "lastore"); emit_lastore(); break; } case JBC_fastore: { if (shouldPrint) asm.noteBytecode(biStart, "fastore"); emit_fastore(); break; } case JBC_dastore: { if (shouldPrint) asm.noteBytecode(biStart, "dastore"); emit_dastore(); break; } case JBC_aastore: { if (shouldPrint) asm.noteBytecode(biStart, "aastore"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("aastore"); emit_aastore(); break; } case JBC_bastore: { if (shouldPrint) asm.noteBytecode(biStart, "bastore"); emit_bastore(); break; } case JBC_castore: { if (shouldPrint) asm.noteBytecode(biStart, "castore"); emit_castore(); break; } case JBC_sastore: { if (shouldPrint) asm.noteBytecode(biStart, "sastore"); emit_sastore(); break; } case JBC_pop: { if (shouldPrint) asm.noteBytecode(biStart, "pop"); emit_pop(); break; } case JBC_pop2: { if (shouldPrint) asm.noteBytecode(biStart, "pop2"); emit_pop2(); break; } case JBC_dup: { if (shouldPrint) asm.noteBytecode(biStart, "dup"); emit_dup(); break; } case JBC_dup_x1: { if (shouldPrint) asm.noteBytecode(biStart, "dup_x1"); emit_dup_x1(); break; } case JBC_dup_x2: { if (shouldPrint) asm.noteBytecode(biStart, "dup_x2"); emit_dup_x2(); break; } case JBC_dup2: { if (shouldPrint) asm.noteBytecode(biStart, "dup2"); emit_dup2(); break; } case JBC_dup2_x1: { if (shouldPrint) asm.noteBytecode(biStart, "dup2_x1"); emit_dup2_x1(); break; } case JBC_dup2_x2: { if (shouldPrint) asm.noteBytecode(biStart, "dup2_x2"); emit_dup2_x2(); break; } case JBC_swap: { if (shouldPrint) asm.noteBytecode(biStart, "swap"); emit_swap(); break; } case JBC_iadd: { if (shouldPrint) asm.noteBytecode(biStart, "iadd"); emit_iadd(); break; } case JBC_ladd: { if (shouldPrint) asm.noteBytecode(biStart, "ladd"); emit_ladd(); break; } case JBC_fadd: { if (shouldPrint) asm.noteBytecode(biStart, "fadd"); emit_fadd(); break; } case JBC_dadd: { if (shouldPrint) asm.noteBytecode(biStart, "dadd"); emit_dadd(); break; } case JBC_isub: { if (shouldPrint) asm.noteBytecode(biStart, "isub"); emit_isub(); break; } case JBC_lsub: { if (shouldPrint) asm.noteBytecode(biStart, "lsub"); emit_lsub(); break; } case JBC_fsub: { if (shouldPrint) asm.noteBytecode(biStart, "fsub"); emit_fsub(); break; } case JBC_dsub: { if (shouldPrint) asm.noteBytecode(biStart, "dsub"); emit_dsub(); break; } case JBC_imul: { if (shouldPrint) asm.noteBytecode(biStart, "imul"); emit_imul(); break; } case JBC_lmul: { if (shouldPrint) asm.noteBytecode(biStart, "lmul"); emit_lmul(); break; } case JBC_fmul: { if (shouldPrint) asm.noteBytecode(biStart, "fmul"); emit_fmul(); break; } case JBC_dmul: { if (shouldPrint) asm.noteBytecode(biStart, "dmul"); emit_dmul(); break; } case JBC_idiv: { if (shouldPrint) asm.noteBytecode(biStart, "idiv"); emit_idiv(); break; } case JBC_ldiv: { if (shouldPrint) asm.noteBytecode(biStart, "ldiv"); emit_ldiv(); break; } case JBC_fdiv: { if (shouldPrint) asm.noteBytecode(biStart, "fdiv"); emit_fdiv(); break; } case JBC_ddiv: { if (shouldPrint) asm.noteBytecode(biStart, "ddiv"); emit_ddiv(); break; } case JBC_irem: { if (shouldPrint) asm.noteBytecode(biStart, "irem"); emit_irem(); break; } case JBC_lrem: { if (shouldPrint) asm.noteBytecode(biStart, "lrem"); emit_lrem(); break; } case JBC_frem: { if (shouldPrint) asm.noteBytecode(biStart, "frem"); emit_frem(); break; } case JBC_drem: { if (shouldPrint) asm.noteBytecode(biStart, "drem"); emit_drem(); break; } case JBC_ineg: { if (shouldPrint) asm.noteBytecode(biStart, "ineg"); emit_ineg(); break; } case JBC_lneg: { if (shouldPrint) asm.noteBytecode(biStart, "lneg"); emit_lneg(); break; } case JBC_fneg: { if (shouldPrint) asm.noteBytecode(biStart, "fneg"); emit_fneg(); break; } case JBC_dneg: { if (shouldPrint) asm.noteBytecode(biStart, "dneg"); emit_dneg(); break; } case JBC_ishl: { if (shouldPrint) asm.noteBytecode(biStart, "ishl"); emit_ishl(); break; } case JBC_lshl: { if (shouldPrint) asm.noteBytecode(biStart, "lshl"); // l >> n emit_lshl(); break; } case JBC_ishr: { if (shouldPrint) asm.noteBytecode(biStart, "ishr"); emit_ishr(); break; } case JBC_lshr: { if (shouldPrint) asm.noteBytecode(biStart, "lshr"); emit_lshr(); break; } case JBC_iushr: { if (shouldPrint) asm.noteBytecode(biStart, "iushr"); emit_iushr(); break; } case JBC_lushr: { if (shouldPrint) asm.noteBytecode(biStart, "lushr"); emit_lushr(); break; } case JBC_iand: { if (shouldPrint) asm.noteBytecode(biStart, "iand"); emit_iand(); break; } case JBC_land: { if (shouldPrint) asm.noteBytecode(biStart, "land"); emit_land(); break; } case JBC_ior: { if (shouldPrint) asm.noteBytecode(biStart, "ior"); emit_ior(); break; } case JBC_lor: { if (shouldPrint) asm.noteBytecode(biStart, "lor"); emit_lor(); break; } case JBC_ixor: { if (shouldPrint) asm.noteBytecode(biStart, "ixor"); emit_ixor(); break; } case JBC_lxor: { if (shouldPrint) asm.noteBytecode(biStart, "lxor"); emit_lxor(); break; } case JBC_iinc: { int index = bcodes.getLocalNumber(); int val = bcodes.getIncrement(); if (shouldPrint) asm.noteBytecode(biStart, "iinc",index, val); emit_iinc(index, val); break; } case JBC_i2l: { if (shouldPrint) asm.noteBytecode(biStart, "i2l"); emit_i2l(); break; } case JBC_i2f: { if (shouldPrint) asm.noteBytecode(biStart, "i2f"); emit_i2f(); break; } case JBC_i2d: { if (shouldPrint) asm.noteBytecode(biStart, "i2d"); emit_i2d(); break; } case JBC_l2i: { if (shouldPrint) asm.noteBytecode(biStart, "l2i"); emit_l2i(); break; } case JBC_l2f: { if (shouldPrint) asm.noteBytecode(biStart, "l2f"); emit_l2f(); break; } case JBC_l2d: { if (shouldPrint) asm.noteBytecode(biStart, "l2d"); emit_l2d(); break; } case JBC_f2i: { if (shouldPrint) asm.noteBytecode(biStart, "f2i"); emit_f2i(); break; } case JBC_f2l: { if (shouldPrint) asm.noteBytecode(biStart, "f2l"); emit_f2l(); break; } case JBC_f2d: { if (shouldPrint) asm.noteBytecode(biStart, "f2d"); emit_f2d(); break; } case JBC_d2i: { if (shouldPrint) asm.noteBytecode(biStart, "d2i"); emit_d2i(); break; } case JBC_d2l: { if (shouldPrint) asm.noteBytecode(biStart, "d2l"); emit_d2l(); break; } case JBC_d2f: { if (shouldPrint) asm.noteBytecode(biStart, "d2f"); emit_d2f(); break; } case JBC_int2byte: { if (shouldPrint) asm.noteBytecode(biStart, "i2b"); emit_i2b(); break; } case JBC_int2char: { if (shouldPrint) asm.noteBytecode(biStart, "i2c"); emit_i2c(); break; } case JBC_int2short: { if (shouldPrint) asm.noteBytecode(biStart, "i2s"); emit_i2s(); break; } case JBC_lcmp: { if (shouldPrint) asm.noteBytecode(biStart, "lcmp"); // a ? b emit_lcmp(); break; } case JBC_fcmpl: { if (shouldPrint) asm.noteBytecode(biStart, "fcmpl"); emit_fcmpl(); break; } case JBC_fcmpg: { if (shouldPrint) asm.noteBytecode(biStart, "fcmpg"); emit_fcmpg(); break; } case JBC_dcmpl: { if (shouldPrint) asm.noteBytecode(biStart, "dcmpl"); emit_dcmpl(); break; } case JBC_dcmpg: { if (shouldPrint) asm.noteBytecode(biStart, "dcmpg"); emit_dcmpg(); break; } case JBC_ifeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifeq(bTarget); break; } case JBC_ifne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifne(bTarget); break; } case JBC_iflt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "iflt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_iflt(bTarget); break; } case JBC_ifge: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifge", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifge(bTarget); break; } case JBC_ifgt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifgt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifgt(bTarget); break; } case JBC_ifle: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifle", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifle(bTarget); break; } case JBC_if_icmpeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpeq(bTarget); break; } case JBC_if_icmpne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpne(bTarget); break; } case JBC_if_icmplt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmplt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmplt(bTarget); break; } case JBC_if_icmpge: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpge", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpge(bTarget); break; } case JBC_if_icmpgt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpgt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpgt(bTarget); break; } case JBC_if_icmple: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmple", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmple(bTarget); break; } case JBC_if_acmpeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_acmpeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_acmpeq(bTarget); break; } case JBC_if_acmpne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_acmpne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_acmpne(bTarget); break; } case JBC_goto: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; // bi has been bumped by 3 already if (shouldPrint) asm.noteBranchBytecode(biStart, "goto", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_goto(bTarget); break; } case JBC_jsr: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "jsr", offset, bTarget); emit_jsr(bTarget); break; } case JBC_ret: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "ret ", index); emit_ret(index); break; } case JBC_tableswitch: { bcodes.alignSwitch(); int defaultval = bcodes.getDefaultSwitchOffset(); int low = bcodes.getLowSwitchValue(); int high = bcodes.getHighSwitchValue(); if (shouldPrint) asm.noteTableswitchBytecode(biStart, low, high, defaultval); emit_tableswitch(defaultval, low, high); break; } case JBC_lookupswitch: { bcodes.alignSwitch(); int defaultval = bcodes.getDefaultSwitchOffset(); int npairs = bcodes.getSwitchLength(); if (shouldPrint) asm.noteLookupswitchBytecode(biStart, npairs, defaultval); emit_lookupswitch(defaultval, npairs); break; } case JBC_ireturn: { if (shouldPrint) asm.noteBytecode(biStart, "ireturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_ireturn(); break; } case JBC_lreturn: { if (shouldPrint) asm.noteBytecode(biStart, "lreturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_lreturn(); break; } case JBC_freturn: { if (shouldPrint) asm.noteBytecode(biStart, "freturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_freturn(); break; } case JBC_dreturn: { if (shouldPrint) asm.noteBytecode(biStart, "dreturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_dreturn(); break; } case JBC_areturn: { if (shouldPrint) asm.noteBytecode(biStart, "areturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_areturn(); break; } case JBC_return: { if (shouldPrint) asm.noteBytecode(biStart, "return"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_return(); break; } case JBC_getstatic: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "getstatic", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved getstatic ", fieldRef); emit_unresolved_getstatic(fieldRef); } else { emit_resolved_getstatic(fieldRef); } break; } case JBC_putstatic: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "putstatic", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved putstatic ", fieldRef); emit_unresolved_putstatic(fieldRef); } else { emit_resolved_putstatic(fieldRef); } break; } case JBC_getfield: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "getfield", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved getfield ", fieldRef); emit_unresolved_getfield(fieldRef); } else { emit_resolved_getfield(fieldRef); } break; } case JBC_putfield: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "putfield", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved putfield ", fieldRef); emit_unresolved_putfield(fieldRef); } else { emit_resolved_putfield(fieldRef); } break; } case JBC_invokevirtual: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokevirtual", methodRef); if (methodRef.getType().isMagicType()) { if (emit_Magic(methodRef)) { break; } } if (methodRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved invokevirtual ", methodRef); emit_unresolved_invokevirtual(methodRef); } else { if (VM.VerifyUnint && !isInterruptible) checkTarget(methodRef.peekResolvedMethod()); emit_resolved_invokevirtual(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokespecial: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokespecial", methodRef); VM_Method target = methodRef.resolveInvokeSpecial(); if (target != null) { if (VM.VerifyUnint && !isInterruptible) checkTarget(target); emit_resolved_invokespecial(methodRef, target); } else { emit_unresolved_invokespecial(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokestatic: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokestatic", methodRef); if (methodRef.getType().isMagicType()) { if (emit_Magic(methodRef)) { break; } } if (methodRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved invokestatic ", methodRef); emit_unresolved_invokestatic(methodRef); } else { if (VM.VerifyUnint && !isInterruptible) checkTarget(methodRef.peekResolvedMethod()); emit_resolved_invokestatic(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokeinterface: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); bcodes.alignInvokeInterface(); if (shouldPrint) asm.noteBytecode(biStart, "invokeinterface", methodRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("invokeinterface ", methodRef); emit_invokeinterface(methodRef); //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_xxxunusedxxx: { if (shouldPrint) asm.noteBytecode(biStart, "unused"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } case JBC_new: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "new", typeRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null && (type.isInitialized() || type.isInBootImage())) { emit_resolved_new(type.asClass()); } else { emit_unresolved_new(typeRef); } break; } case JBC_newarray: { int atype = bcodes.getArrayElementType(); VM_Array array = VM_Array.getPrimitiveArrayType(atype); if (VM.VerifyAssertions) VM._assert(array.isResolved()); if (shouldPrint) asm.noteBytecode(biStart, "newarray", array.getTypeRef()); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", array); emit_resolved_newarray(array); break; } case JBC_anewarray: { VM_TypeReference elementTypeRef = bcodes.getTypeReference(); VM_TypeReference arrayRef = elementTypeRef.getArrayTypeForElementType(); if (shouldPrint) asm.noteBytecode(biStart, "anewarray new", arrayRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", arrayRef); if (VM.VerifyAssertions && elementTypeRef.isWordType()) { VM._assert(false, "During compilation of " + method + " found an anewarray of "+ elementTypeRef + "\n" + "You must use the 'create' function to create an array of this type"); } // We can do early resolution of the array type if the element type // is already initialized. VM_Array array = (VM_Array)arrayRef.peekResolvedType(); if (array != null && !(array.isInitialized() || array.isInBootImage()) && VM_Type.JavaLangObjectType.isInstantiated()) { VM_Type elementType = elementTypeRef.peekResolvedType(); if (elementType != null && (elementType.isInitialized() || elementType.isInBootImage())) { array.resolve(); array.instantiate(); } if (array.isInitialized() || array.isInBootImage()) { emit_resolved_newarray(array); break; } } emit_unresolved_newarray(arrayRef); break; } case JBC_arraylength: { if (shouldPrint) asm.noteBytecode(biStart, "arraylength"); emit_arraylength(); break; } case JBC_athrow: { if (shouldPrint) asm.noteBytecode(biStart, "athrow"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("athrow"); emit_athrow(); break; } case JBC_checkcast: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "checkcast", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null) { if (type.isClassType()) { if (type.asClass().isFinal()) { emit_checkcast_final(type); break; } else if (type.isResolved() && !type.asClass().isInterface()) { emit_checkcast_resolvedClass(type); break; } // else fall through to emit_checkcast } else if (type.isArrayType()) { VM_Type elemType = type.asArray().getElementType(); if (elemType.isPrimitiveType() || (elemType.isClassType() && elemType.asClass().isFinal())) { emit_checkcast_final(type); break; } // else fall through to emit_checkcast } else { // checkcast to a primitive. Must be a word type. if (VM.VerifyAssertions) VM._assert(type.isWordType()); break; } } if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("checkcast ", typeRef); emit_checkcast(typeRef); break; } case JBC_instanceof: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "instanceof", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null) { if (type.isClassType()) { if (type.asClass().isFinal()) { emit_instanceof_final(type); break; } else if (type.isResolved() && !type.asClass().isInterface()) { emit_instanceof_resolvedClass(type); break; } } else if (type.isArrayType()) { VM_Type elemType = type.asArray().getElementType(); if (elemType.isPrimitiveType() || (elemType.isClassType() && elemType.asClass().isFinal())) { emit_instanceof_final(type); break; } } } if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("instanceof ", typeRef); emit_instanceof(typeRef); break; } case JBC_monitorenter: { if (shouldPrint) asm.noteBytecode(biStart, "monitorenter"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("monitorenter"); emit_monitorenter(); break; } case JBC_monitorexit: { if (shouldPrint) asm.noteBytecode(biStart, "monitorexit"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("monitorexit"); emit_monitorexit(); break; } case JBC_wide: { int widecode = bcodes.getWideOpcode(); int index = bcodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: { if (shouldPrint) asm.noteBytecode(biStart, "wide iload", index); emit_iload(index); break; } case JBC_lload: { if (shouldPrint) asm.noteBytecode(biStart, "wide lload", index); emit_lload(index); break; } case JBC_fload: { if (shouldPrint) asm.noteBytecode(biStart, "wide fload", index); emit_fload(index); break; } case JBC_dload: { if (shouldPrint) asm.noteBytecode(biStart, "wide dload", index); emit_dload(index); break; } case JBC_aload: { if (shouldPrint) asm.noteBytecode(biStart, "wide aload", index); emit_aload(index); break; } case JBC_istore: { if (shouldPrint) asm.noteBytecode(biStart, "wide istore", index); emit_istore(index); break; } case JBC_lstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide lstore", index); emit_lstore(index); break; } case JBC_fstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide fstore", index); emit_fstore(index); break; } case JBC_dstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide dstore", index); emit_dstore(index); break; } case JBC_astore: { if (shouldPrint) asm.noteBytecode(biStart, "wide astore", index); emit_astore(index); break; } case JBC_iinc: { int val = bcodes.getWideIncrement(); if (shouldPrint) asm.noteBytecode(biStart, "wide inc", index, val); emit_iinc(index, val); break; } case JBC_ret: { if (shouldPrint) asm.noteBytecode(biStart, "wide ret", index); emit_ret(index); break; } default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } break; } case JBC_multianewarray: { VM_TypeReference typeRef = bcodes.getTypeReference(); int dimensions = bcodes.getArrayDimension(); if (shouldPrint) asm.noteBytecode(biStart, "multianewarray", typeRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("multianewarray"); emit_multianewarray(typeRef, dimensions); break; } case JBC_ifnull: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifnull", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifnull(bTarget); break; } case JBC_ifnonnull: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifnonnull", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifnonnull(bTarget); break; } case JBC_goto_w: { int offset = bcodes.getWideBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "goto_w", offset, bTarget); if(offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_goto(bTarget); break; } case JBC_jsr_w: { int offset = bcodes.getWideBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "jsr_w", offset, bTarget); emit_jsr(bTarget); break; } //-#if RVM_WITH_OSR /* CAUTION: can not use JBC_impdep1, which is 0xfffffffe ( signed ), * this is not consistant with OPT compiler. */ case JBC_impdep1: /* --- pseudo bytecode --- */ { int pseudo_opcode = bcodes.nextPseudoInstruction(); // pseudo instruction switch (pseudo_opcode) { case PSEUDO_LoadIntConst: { int value = bcodes.readIntConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_int", value); Offset offset = VM_Statics.findOrCreateIntLiteral(value); emit_ldc(offset); break; } case PSEUDO_LoadLongConst: { long value = bcodes.readLongConst(); // fetch8BytesUnsigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_long", value); Offset offset = VM_Statics.findOrCreateLongLiteral(value); emit_ldc2(offset); break; } case PSEUDO_LoadWordConst: { //-#if RVM_FOR_32_ADDR int value = bcodes.readIntConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_word " + Integer.toHexString(value)); Offset offset = VM_Statics.findOrCreateIntLiteral(value); emit_ldc(offset); //-#endif //-#if RVM_FOR_64_ADDR long value = bcodes.readLongConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_word " + Long.toHexString(value)); Offset offset = VM_Statics.findOrCreateLongLiteral(value); emit_ldc2(offset); emit_l2i(); //dirty hack //-#endif break; } case PSEUDO_LoadFloatConst: { int ibits = bcodes.readIntConst(); // fetch4BytesSigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_float", ibits); Offset offset = VM_Statics.findOrCreateFloatLiteral(ibits); emit_ldc(offset); break; } case PSEUDO_LoadDoubleConst: { long lbits = bcodes.readLongConst(); // fetch8BytesUnsigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_double", lbits); Offset offset = VM_Statics.findOrCreateDoubleLiteral(lbits); emit_ldc2(offset); break; } case PSEUDO_LoadRetAddrConst: { int bcIndex = bcodes.readIntConst(); // fetch4BytesSigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_retaddr", bcIndex); // for bytecode to get future bytecode's address // we register it and patch it later. emit_loadretaddrconst(bcIndex); break; } case PSEUDO_InvokeStatic: { VM_Method methodRef = null; int targetidx = bcodes.readIntConst(); // fetch4BytesSigned(); switch (targetidx) { case GETREFAT: methodRef = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: methodRef = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("pseudo_invokstatic with unknown target index "+targetidx); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } if (shouldPrint) asm.noteBytecode(biStart, "pseudo_invokestatic", methodRef); emit_resolved_invokestatic(methodRef.getMemberRef().asMethodReference()); break; } /* case PSEUDO_CheckCast: { if (shouldPrint) asm.noteBytecode(biStart, "pseudo_checkcast"); // fetch 4 byte type id int tid = bcodes.readIntConst(); // fetch4BytesSigned(); // do nothing now break; } */ case PSEUDO_InvokeCompiledMethod: { int cmid = bcodes.readIntConst(); // fetch4BytesSigned(); // callee's cmid int origIdx = bcodes.readIntConst(); // fetch4BytesSigned(); // orginal bytecode index of this call (for build gc map) if (shouldPrint) asm.noteBytecode(biStart, "pseudo_invoke_cmid", cmid); this.pendingCMID = cmid; this.pendingIdx = origIdx+this.method.getOsrPrologueLength(); this.pendingRef = emit_pending_goto(this.pendingIdx); /* VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); */ break; } case PSEUDO_ParamInitEnd: { if (shouldPrint) asm.noteBytecode(biStart, "pseudo_paraminitend"); // now we can inserted stack overflow check, emit_deferred_prologue(); break; } default: if (VM.TraceOnStackReplacement) VM.sysWrite("Unexpected PSEUDO code " +VM.intAsHexString(pseudo_opcode)+"\n"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } break; } //-#endif default: VM.sysWrite("VM_Compiler: unexpected bytecode: " + VM_Services.getHexString((int)code, false) + "\n"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } ending_bytecode(); } bytecodeMap[bcodes.length()] = asm.getMachineCodeIndex(); return asm.finalizeMachineCode(bytecodeMap); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/511bde1d92a455acafb864be1f3383b0a2d5c0e0/VM_CompilerFramework.java/buggy/rvm/src/vm/compilers/baseline/VM_CompilerFramework.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 8251, 67, 6981, 1085, 3157, 1085, 1832, 288, 565, 3626, 67, 685, 1330, 344, 5621, 565, 1323, 261, 70, 7000, 18, 5332, 7417, 858, 14537, 1145, 10756, 288, 1377, 10054, 1685, 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, 4750, 727, 8251, 67, 6981, 1085, 3157, 1085, 1832, 288, 565, 3626, 67, 685, 1330, 344, 5621, 565, 1323, 261, 70, 7000, 18, 5332, 7417, 858, 14537, 1145, 10756, 288, 1377, 10054, 1685, 273...
private static double makeDate(Scriptable dateObj, Object[] args, int maxargs, boolean local, Function funObj) {
private double makeDate(Object[] args, int maxargs, boolean local) {
private static double makeDate(Scriptable dateObj, Object[] args, int maxargs, boolean local, Function funObj) { int i; double conv[] = new double[3]; double year, month, day; double lorutime; /* local or UTC version of date */ double result; NativeDate d = checkInstance(dateObj, funObj); double date = d.date; /* See arg padding comment in makeTime.*/ if (args.length == 0) args = ScriptRuntime.padArguments(args, 1); for (i = 0; i < args.length && i < maxargs; i++) { conv[i] = ScriptRuntime.toNumber(args[i]); // limit checks that happen in MakeDate in ECMA. if (conv[i] != conv[i] || Double.isInfinite(conv[i])) { d.date = ScriptRuntime.NaN; return d.date; } conv[i] = ScriptRuntime.toInteger(conv[i]); } /* return NaN if date is NaN and we're not setting the year, * If we are, use 0 as the time. */ if (date != date) { if (args.length < 3) { return ScriptRuntime.NaN; } else { lorutime = 0; } } else { if (local) lorutime = LocalTime(date); else lorutime = date; } i = 0; int stop = args.length; if (maxargs >= 3 && i < stop) year = conv[i++]; else year = YearFromTime(lorutime); if (maxargs >= 2 && i < stop) month = conv[i++]; else month = MonthFromTime(lorutime); if (maxargs >= 1 && i < stop) day = conv[i++]; else day = DateFromTime(lorutime); day = MakeDay(year, month, day); /* day within year */ result = MakeDate(day, TimeWithinDay(lorutime)); if (local) result = internalUTC(result); date = TimeClip(result); d.date = date; return date; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5af1999afa2517f3fdd455bd42c304be785b5b59/NativeDate.java/buggy/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1645, 1221, 1626, 12, 3651, 429, 1509, 2675, 16, 1033, 8526, 833, 16, 4766, 282, 509, 943, 1968, 16, 1250, 1191, 16, 4766, 282, 4284, 9831, 2675, 13, 565, 288, 3639, 509, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 1221, 1626, 12, 3651, 429, 1509, 2675, 16, 1033, 8526, 833, 16, 4766, 282, 509, 943, 1968, 16, 1250, 1191, 16, 4766, 282, 4284, 9831, 2675, 13, 565, 288, 3639, 509, 277...
world = new ReflectionWorld();
world = new ReflectionWorld(getClass().getClassLoader());
protected void setUp() throws Exception { world = new ReflectionWorld(); objectType = world.resolve("java.lang.Object"); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/9abfc4044b23629af408459a3a5c638d7978e443/ReflectionBasedReferenceTypeDelegateTest.java/clean/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 18179, 273, 394, 5685, 18071, 5621, 202, 202, 1612, 559, 273, 9117, 18, 10828, 2932, 6290, 18, 4936, 18, 921, 8863, 202, 97, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 18179, 273, 394, 5685, 18071, 5621, 202, 202, 1612, 559, 273, 9117, 18, 10828, 2932, 6290, 18, 4936, 18, 921, 8863, 202, 97, 2, -...
if (isSeparator(basePath.charAt(len - 1))) {
if (isSeparator(ch)) {
public static String concat(String basePath, String fullFilenameToAdd) { int prefix = getPrefixLength(fullFilenameToAdd); if (prefix < 0) { return null; } if (prefix > 0) { return normalize(fullFilenameToAdd); } if (basePath == null) { return null; } int len = basePath.length(); if (len == 0) { return normalize(fullFilenameToAdd); } char ch = basePath.charAt(len - 1); if (isSeparator(basePath.charAt(len - 1))) { return normalize(basePath + fullFilenameToAdd); } else { return normalize(basePath + '/' + fullFilenameToAdd); } }
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/ff101c8d2404bb1cb88aa10370d4e67b9e4f9bf8/FilenameUtils.java/buggy/src/java/org/apache/commons/io/FilenameUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3835, 12, 780, 9104, 16, 514, 1983, 5359, 13786, 13, 288, 3639, 509, 1633, 273, 16182, 1782, 12, 2854, 5359, 13786, 1769, 3639, 309, 261, 3239, 411, 374, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3835, 12, 780, 9104, 16, 514, 1983, 5359, 13786, 13, 288, 3639, 509, 1633, 273, 16182, 1782, 12, 2854, 5359, 13786, 1769, 3639, 309, 261, 3239, 411, 374, 13, 288, 5411, ...
System.out.println("Adding player:" + player);
public void addPlayer(Player player) { System.out.println("Adding player:" + player); playerList.add(player); }
10493 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10493/29882c0461db44b83c075a0f499052f5f0fd95ea/MapToolClient.java/buggy/maptool/src/net/rptools/maptool/client/MapToolClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12148, 12, 12148, 7291, 13, 288, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 13962, 7291, 2773, 397, 7291, 1769, 202, 202, 14872, 682, 18, 1289, 12, 14872, 1769, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12148, 12, 12148, 7291, 13, 288, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 13962, 7291, 2773, 397, 7291, 1769, 202, 202, 14872, 682, 18, 1289, 12, 14872, 1769, 202, 97, ...
protected String replaceString(String inpString,String escapeChars,String replaceChars) { String localString=""; int numTokens=0; StringTokenizer st=new StringTokenizer(inpString,escapeChars,true); numTokens=st.countTokens(); for(int i=0;i<numTokens;i++) { String test=st.nextToken(); test=(test.equals(escapeChars)?replaceChars:test); localString+=test;
protected String replaceString(String inpString, String escapeChars, String replaceChars) { String localString = ""; int numTokens = 0; StringTokenizer st = new StringTokenizer(inpString, escapeChars, true); numTokens = st.countTokens(); for (int i = 0; i < numTokens; i++) { String test = st.nextToken(); test = (test.equals(escapeChars) ? replaceChars : test); localString += test;
protected String replaceString(String inpString,String escapeChars,String replaceChars) { String localString=""; int numTokens=0; StringTokenizer st=new StringTokenizer(inpString,escapeChars,true); numTokens=st.countTokens(); for(int i=0;i<numTokens;i++) { String test=st.nextToken(); test=(test.equals(escapeChars)?replaceChars:test); localString+=test; } return localString; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6154080061f869b4e425d608da3bd61fad967564/WLJspc.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1453, 780, 12, 780, 12789, 780, 16, 780, 4114, 7803, 16, 780, 1453, 7803, 13, 288, 3639, 514, 1191, 780, 1546, 14432, 3639, 509, 818, 5157, 33, 20, 31, 3639, 16370, 384, 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, 377, 4750, 514, 1453, 780, 12, 780, 12789, 780, 16, 780, 4114, 7803, 16, 780, 1453, 7803, 13, 288, 3639, 514, 1191, 780, 1546, 14432, 3639, 509, 818, 5157, 33, 20, 31, 3639, 16370, 384, 33, ...
printEndNamespaceMapping();
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException { printIndent(); fOut.print("emptyElement("); printElement(element, attributes); if (augs != null) { fOut.print(','); printAugmentations(augs); } fOut.println(')'); fOut.flush(); } // emptyElement(QName,XMLAttributes)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/100fac07e170c5b80997d5d0d257cbcf67b941f7/DocumentTracer.java/clean/samples/xni/DocumentTracer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1071, 1188, 1638, 3402, 3233, 5621, 918, 1188, 1638, 3402, 3233, 5621, 1008,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1172, 1638, 3402, 3233, 5621, 1071, 1188, 1638, 3402, 3233, 5621, 918, 1188, 1638, 3402, 3233, 5621, 1008,...
public void run() { getTabContainerAvatar().syncDocument(documentId, Boolean.FALSE); }
public void run() { getTabContainerAvatar().syncContainer(containerId, remote, select); }
public void run() { getTabContainerAvatar().syncDocument(documentId, Boolean.FALSE); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/5b990f66afd44658cad405790effdd2f694f2955/Browser.java/clean/local/browser/src/main/java/com/thinkparity/browser/application/browser/Browser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 3181, 378, 2170, 23999, 7675, 8389, 2519, 12, 5457, 548, 16, 3411, 18, 21053, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 3181, 378, 2170, 23999, 7675, 8389, 2519, 12, 5457, 548, 16, 3411, 18, 21053, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (memento != null) restoreState(memento);
if (memento != null) { restoreState(memento); }
public void createPartControl(Composite parent) { clipboard = new Clipboard(parent.getDisplay()); createTable(parent); viewer = new TableViewer(table); createColumns(); sorter = new BookmarkSorter(); viewer.setContentProvider(new BookmarkContentProvider(this)); viewer.setLabelProvider(new BookmarkLabelProvider(this)); viewer.setInput(ResourcesPlugin.getWorkspace().getRoot()); viewer.setSorter(sorter); IDialogSettings workbenchSettings = getPlugin().getDialogSettings(); IDialogSettings settings = workbenchSettings .getSection("BookmarkSortState");//$NON-NLS-1$ sorter.restoreState(settings); addContributions(); initDragAndDrop(); createSortActions(); fillActionBars(); updateSortState(); updatePasteEnablement(); getSite().setSelectionProvider(viewer); if (memento != null) restoreState(memento); memento = null; PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), IBookmarkHelpContextIds.BOOKMARK_VIEW); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/BookmarkNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 3639, 20304, 273, 394, 385, 3169, 3752, 12, 2938, 18, 588, 4236, 10663, 3639, 19565, 12, 2938, 1769, 3639, 14157, 273, 394, 3555, 18415...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 3639, 20304, 273, 394, 385, 3169, 3752, 12, 2938, 18, 588, 4236, 10663, 3639, 19565, 12, 2938, 1769, 3639, 14157, 273, 394, 3555, 18415...
this("Traffic", true, true, "Clean/Passed", "Virus Detected/Blocked", "Total", "Scanned Requests/min.");
this("Traffic", true, true, "Clean/Passed", "Virus Detected/Blocked", "Total", "Scanned Requests/min.");
public SummaryGraph(){ // out, in, total this("Traffic", true, true, "Clean/Passed", "Virus Detected/Blocked", "Total", "Scanned Requests/min."); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/ad2338c4283e959effa8ec881f68d13a60ceeb7a/SummaryGraph.java/clean/tran/virus/main/com/metavize/tran/virus/reports/SummaryGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17967, 4137, 1435, 95, 1850, 368, 596, 16, 316, 16, 2078, 202, 2211, 2932, 16888, 3113, 638, 16, 638, 16, 315, 7605, 19, 22530, 3113, 315, 58, 481, 407, 8083, 828, 19, 23722, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17967, 4137, 1435, 95, 1850, 368, 596, 16, 316, 16, 2078, 202, 2211, 2932, 16888, 3113, 638, 16, 638, 16, 315, 7605, 19, 22530, 3113, 315, 58, 481, 407, 8083, 828, 19, 23722, 3113...
CDKTests.moleculeListViewer.addStructure(mv, "RandomGent Result no. " + (f + 1));
moleculeListViewer.addStructure(mv, "RandomGent Result no. " + (f + 1));
private boolean everythingOk(Vector structures) { StructureDiagramGenerator sdg = null; MoleculeViewer2D mv = null; Molecule mol = null; for (int f = 0; f < structures.size(); f++) { sdg = new StructureDiagramGenerator(); mv = new MoleculeViewer2D();// Renderer2DModel r2dm = new Renderer2DModel();// r2dm.setDrawNumbers(true);// mv.setRenderer2DModel(r2dm); mol = (Molecule)structures.elementAt(f); sdg.setMolecule(mol); try { sdg.generateCoordinates(new Vector2d(0,1)); } catch(Exception exc) { System.out.println("*** Exit due to an unexpected error during coordinate generation ***"); exc.printStackTrace(); } mv.setAtomContainer(sdg.getMolecule()); CDKTests.moleculeListViewer.addStructure(mv, "RandomGent Result no. " + (f + 1)); } return true; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/047add52eb9bac7efb1cd80d52e6bf8b3bbe2702/RandomStructureGeneratorTest.java/buggy/org/openscience/cdk/test/RandomStructureGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 7756, 8809, 12, 5018, 12597, 13, 202, 95, 202, 202, 6999, 14058, 1940, 3908, 8349, 75, 273, 446, 31, 202, 202, 29669, 18415, 22, 40, 7701, 273, 446, 31, 202, 202, 29669...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7756, 8809, 12, 5018, 12597, 13, 202, 95, 202, 202, 6999, 14058, 1940, 3908, 8349, 75, 273, 446, 31, 202, 202, 29669, 18415, 22, 40, 7701, 273, 446, 31, 202, 202, 29669...
} catch (InterruptedException e) {
} catch (InterruptedException e) {
public void onEvent(UMOEvent event) throws UMOException { if(queue!=null) { try { synchronized(queue) { queue.put(event); } } catch (InterruptedException e) { throw new MuleException(new Message(Messages.INTERRUPTED_QUEUING_EVENT_FOR_X, this.endpoint.getEndpointURI()), e); } } else { //We get message duplication here without synchronization for some reason 3/100 //need to investigate UMOMessageAdapter adapter = connector.getMessageAdapter(new MuleMessage(event.getTransformedMessage(), event.getProperties())); UMOMessage message = new MuleMessage(adapter); synchronized(lock) { routeMessage(message, event.isSynchronous()); } } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/28ad5cc0383797e69228b99706befc2cab2cb907/VMMessageReceiver.java/clean/providers/vm/src/java/org/mule/providers/vm/VMMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1133, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 309, 12, 4000, 5, 33, 2011, 13, 288, 5411, 775, 5411, 288, 7734, 3852, 12, 4000, 13, 288, 1079...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 1133, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 309, 12, 4000, 5, 33, 2011, 13, 288, 5411, 775, 5411, 288, 7734, 3852, 12, 4000, 13, 288, 1079...
return;
return new Composite(result, SWT.NULL);
private void createParticipants(Composite result) { if (!SearchParticipantsPreferencePage.hasAnyParticipants()) return; Button selectParticipants= new Button(result, SWT.PUSH); selectParticipants.setText(SearchMessages.getString("SearchPage.select_participants.label")); //$NON-NLS-1$ GridData gd= new GridData(); gd.verticalAlignment= GridData.VERTICAL_ALIGN_BEGINNING; gd.horizontalAlignment= GridData.HORIZONTAL_ALIGN_END; gd.grabExcessHorizontalSpace= false; gd.horizontalAlignment= GridData.END; gd.horizontalSpan= 2; selectParticipants.setLayoutData(gd); selectParticipants.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { PreferencePageSupport.showPreferencePage(getShell(), "org.eclipse.jdt.ui.preferences.SearchParticipantsPreferencePage", new SearchParticipantsPreferencePage()); //$NON-NLS-1$ } }); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a0c498e740c202873e7533830973c913421c71c6/JavaSearchPage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1988, 27620, 12, 9400, 563, 13, 288, 202, 202, 430, 16051, 2979, 1988, 27620, 9624, 1964, 18, 5332, 2961, 1988, 27620, 10756, 1082, 202, 2463, 31, 202, 202, 3616, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1988, 27620, 12, 9400, 563, 13, 288, 202, 202, 430, 16051, 2979, 1988, 27620, 9624, 1964, 18, 5332, 2961, 1988, 27620, 10756, 1082, 202, 2463, 31, 202, 202, 3616, 202...
if (packetSize < 512) {
if (packetSize < TdsCore.MIN_PKT_SIZE) {
protected void unpackProperties(Properties info) throws SQLException { serverName = info.getProperty(Support.getMessage("prop.servername")); try { serverPort = Integer.parseInt( info.getProperty(Support.getMessage("prop.portnumber"), "1433")); } catch (NumberFormatException e) { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.portnumber")), "08001"); } try { serverType = Integer.parseInt( info.getProperty(Support.getMessage("prop.servertype"))); } catch (NumberFormatException e) { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.servertype")), "08001"); } databaseName = info.getProperty(Support.getMessage("prop.databasename"),""); instanceName = info.getProperty(Support.getMessage("prop.instance"),""); domainName = info.getProperty(Support.getMessage("prop.domain"),""); user = info.getProperty(Support.getMessage("prop.user")); password = info.getProperty(Support.getMessage("prop.password")); macAddress = info.getProperty(Support.getMessage("prop.macaddress"), ""); appName = info.getProperty(Support.getMessage("prop.appname"), "java.exe"); libName = info.getProperty(Support.getMessage("prop.libname"), "jTDS"); serverCharset = info.getProperty(Support.getMessage("prop.charset")); language = info.getProperty(Support.getMessage("prop.language"), "us_english"); prepareSql = info.getProperty(Support.getMessage("prop.preparesql"), "true").equalsIgnoreCase("true"); lastUpdateCount = info.getProperty(Support.getMessage("prop.lastupdatecount"), "true").equalsIgnoreCase("true"); useUnicode = info.getProperty(Support.getMessage("prop.useunicode"), "true").equalsIgnoreCase("true"); namedPipe = info.getProperty(Support.getMessage("prop.namedpipe"), "false").equalsIgnoreCase("true"); charsetSpecified = (serverCharset != null && serverCharset.length() > 0); if (!charsetSpecified) { serverCharset = "iso_1"; } String tmp = info.getProperty(Support.getMessage("prop.tds"), (serverType == TdsCore.SQLSERVER)? "7.0": "5.0"); if (tmp.equals("4.2")) { tdsVersion = TdsCore.TDS42; } else if (tmp.equals("5.0")) { tdsVersion = TdsCore.TDS50; } else if (tmp.equals("7.0")) { tdsVersion = TdsCore.TDS70; } else if (tmp.equals("8.0")) { tdsVersion = TdsCore.TDS80; } else { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.tds")), "08001"); } try { packetSize = Integer.parseInt( info.getProperty(Support.getMessage("prop.packetsize"), "0")); } catch (NumberFormatException e) { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.packetsize")), "08001"); } if (packetSize < 512) { if (tdsVersion >= TdsCore.TDS70) { // Default of 0 means let the server specify packet size packetSize = (packetSize == 0) ? 0 : 4096; } else { // Sensible minimum for all other versions of TDS packetSize = 512; } } if (packetSize > 32768) { packetSize = 32768; } packetSize = (packetSize / 512) * 512; try { loginTimeout = Integer.parseInt( info.getProperty(Support.getMessage("prop.logintimeout"), "0")); } catch (NumberFormatException e) { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.logintimeout")), "08001"); } try { lobBuffer = Long.parseLong( info.getProperty(Support.getMessage("prop.lobbuffer"), "32768")); } catch (NumberFormatException e) { throw new SQLException( Support.getMessage("error.connection.badprop", Support.getMessage("prop.lobbuffer")), "08001"); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/b2dabf265ccd1c2151343e04c42c2f35aa3bc1a2/ConnectionJDBC2.java/buggy/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 6167, 2297, 12, 2297, 1123, 13, 565, 1216, 6483, 288, 3639, 10926, 273, 1123, 18, 588, 1396, 12, 6289, 18, 24906, 2932, 5986, 18, 3567, 529, 7923, 1769, 3639, 775, 288, 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, 4750, 918, 6167, 2297, 12, 2297, 1123, 13, 565, 1216, 6483, 288, 3639, 10926, 273, 1123, 18, 588, 1396, 12, 6289, 18, 24906, 2932, 5986, 18, 3567, 529, 7923, 1769, 3639, 775, 288, 5411, ...
if (event.character == SWT.DEL && event.stateMask == 0) { if (deleteAction.isEnabled()) { deleteAction.run(); } } else if (event.keyCode == SWT.F2 && event.stateMask == 0) { if (renameAction.isEnabled()) { renameAction.run(); } }
public void handleKeyPressed(KeyEvent event) { if (event.character == SWT.DEL && event.stateMask == 0) { if (deleteAction.isEnabled()) { deleteAction.run(); } } else if (event.keyCode == SWT.F2 && event.stateMask == 0) { if (renameAction.isEnabled()) { renameAction.run(); } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7283ee58d926a10b576da907ebf9901660a71fa6/RefactorActionGroup.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/RefactorActionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 653, 24624, 12, 653, 1133, 871, 13, 288, 202, 202, 430, 261, 2575, 18, 11560, 422, 348, 8588, 18, 24733, 597, 871, 18, 2019, 5796, 422, 374, 13, 288, 1082, 202, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 653, 24624, 12, 653, 1133, 871, 13, 288, 202, 202, 430, 261, 2575, 18, 11560, 422, 348, 8588, 18, 24733, 597, 871, 18, 2019, 5796, 422, 374, 13, 288, 1082, 202, 4...
url += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferencePage.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferencePage.getPassword(), "UTF-8");
urlString += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(repository.getUserName(), BugzillaPlugin.ENCODING_UTF_8) + "&Bugzilla_password=" + URLEncoder.encode(repository.getPassword(), BugzillaPlugin.ENCODING_UTF_8);
public BugzillaSearchEngine(String url) { this.urlString = url; // use the username and password if we have it to log into bugzilla if(BugzillaPreferencePage.getUserName() != null && !BugzillaPreferencePage.getUserName().equals("") && BugzillaPreferencePage.getPassword() != null && !BugzillaPreferencePage.getPassword().equals("")) { try { url += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferencePage.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferencePage.getPassword(), "UTF-8"); } catch (UnsupportedEncodingException e) { /* * Do nothing. Every implementation of the Java platform is required * to support the standard charset "UTF-8" */ } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaSearchEngine.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/search/BugzillaSearchEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 2979, 4410, 12, 780, 880, 13, 288, 202, 202, 2211, 18, 718, 780, 273, 880, 31, 202, 202, 759, 999, 326, 2718, 471, 2201, 309, 732, 1240, 518, 358, 613, 1368, 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, 225, 202, 482, 16907, 15990, 2979, 4410, 12, 780, 880, 13, 288, 202, 202, 2211, 18, 718, 780, 273, 880, 31, 202, 202, 759, 999, 326, 2718, 471, 2201, 309, 732, 1240, 518, 358, 613, 1368, 7...
result.add(SimpleTypeConstraint.createDefinesConstraint(fFactory.makeExpressionOrTypeVariable(fragment1Name, getContext()), typeVariable));
result.addAll(Arrays.asList(fTypeConstraintFactory.createDefinesConstraint(fConstraintVariableFactory.makeExpressionOrTypeVariable(fragment1Name, getContext()), typeVariable)));
private ITypeConstraint[] getConstraintsFromFragmentList(List fragments, Type type) { int size= fragments.size(); ConstraintVariable typeVariable= fFactory.makeTypeVariable(type); List result= new ArrayList((size * (size - 1))/2); for (int i= 0; i < size; i++) { VariableDeclarationFragment fragment1= (VariableDeclarationFragment) fragments.get(i); SimpleName fragment1Name= fragment1.getName(); result.add(SimpleTypeConstraint.createDefinesConstraint(fFactory.makeExpressionOrTypeVariable(fragment1Name, getContext()), typeVariable)); for (int j= i + 1; j < size; j++) { VariableDeclarationFragment fragment2= (VariableDeclarationFragment) fragments.get(j); result.add(SimpleTypeConstraint.createEqualsConstraint(fFactory.makeExpressionOrTypeVariable(fragment1Name, getContext()), fFactory.makeExpressionOrTypeVariable(fragment2.getName(), getContext()))); } } return (ITypeConstraint[]) result.toArray(new ITypeConstraint[result.size()]); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6244a6faecf95cf8d57756bedccd95feec6b1cca/FullConstraintCreator.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 467, 559, 5806, 8526, 336, 4878, 1265, 7456, 682, 12, 682, 14656, 16, 1412, 618, 13, 288, 202, 225, 509, 963, 33, 14656, 18, 1467, 5621, 202, 225, 10770, 3092, 618, 3092, 33, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 559, 5806, 8526, 336, 4878, 1265, 7456, 682, 12, 682, 14656, 16, 1412, 618, 13, 288, 202, 225, 509, 963, 33, 14656, 18, 1467, 5621, 202, 225, 10770, 3092, 618, 3092, 33, 284,...
if (o.length < 2) return false;
if (o.length < 2) { return false; }
public boolean inContext(Object[] o) { if (o.length < 2) return false; // Allow ourselves on the "Tools" menu. if ((o[0] instanceof JMenuItem) && (PluggableMenu.KEY_TOOLS.equals(o[1]))) { return true; } return false; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/fd2619ba873fcdbe38bdf6a7f345a050489658d3/ActionExecSilk.java/buggy/modules/jscheme/src/org/argouml/tools/ui/ActionExecSilk.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 316, 1042, 12, 921, 8526, 320, 13, 288, 3639, 309, 261, 83, 18, 2469, 411, 576, 13, 327, 629, 31, 202, 759, 7852, 19801, 603, 326, 315, 10348, 6, 3824, 18, 202, 430, 14015...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 316, 1042, 12, 921, 8526, 320, 13, 288, 3639, 309, 261, 83, 18, 2469, 411, 576, 13, 327, 629, 31, 202, 759, 7852, 19801, 603, 326, 315, 10348, 6, 3824, 18, 202, 430, 14015...
public BreadthFirstSearch(Graph graph, double threshold) { this.graph = (UndirectedSparseGraph) graph;
public BreadthFirstSearch() { graph = null;
public BreadthFirstSearch(Graph graph, double threshold) { this.graph = (UndirectedSparseGraph) graph; networkSize = graph.numVertices(); searchCost = 0; this.threshold = threshold; indxr = Indexer.newIndexer(graph, 0); }
45393 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45393/2ef37b1d2719406b5aed9dc1a44450fac1dbee27/BreadthFirstSearch.java/clean/trunk/plugins/analysis/edu.iu.iv.search.p2p.bfs/src/edu/iu/iv/search/p2p/bfs/BreadthFirstSearch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 25254, 3759, 2979, 12, 4137, 2667, 16, 1645, 5573, 13, 288, 202, 202, 2211, 18, 4660, 273, 261, 984, 26830, 20565, 4137, 13, 2667, 31, 202, 202, 5185, 1225, 273, 2667, 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, 225, 202, 482, 605, 25254, 3759, 2979, 12, 4137, 2667, 16, 1645, 5573, 13, 288, 202, 202, 2211, 18, 4660, 273, 261, 984, 26830, 20565, 4137, 13, 2667, 31, 202, 202, 5185, 1225, 273, 2667, 18...
Logger.notice(new QueueKeeper(), "Unable to find previous queue state file '"+file.getPath()+"'");
Logger.info(new QueueKeeper(), "Unable to find previous queue state file '"+file.getPath()+"' => Not reloaded from file.");
public static boolean loadQueue(FCPQueueManager queueManager, String fileName) { File file = new File(fileName); if(!file.exists() || !file.canRead()) { Logger.notice(new QueueKeeper(), "Unable to find previous queue state file '"+file.getPath()+"'"); return false; } Document xmlDoc = null; DocumentBuilderFactory xmlFactory = null; DocumentBuilder xmlBuilder = null; Element rootEl = null; xmlFactory = DocumentBuilderFactory.newInstance(); try { xmlBuilder = xmlFactory.newDocumentBuilder(); } catch(javax.xml.parsers.ParserConfigurationException e) { Logger.warning(new QueueKeeper(), "Unable to load queue because: "+e); return false; } try { xmlDoc = xmlBuilder.parse(file); } catch(org.xml.sax.SAXException e) { Logger.warning(new QueueKeeper(), "Unable to load queue because: "+e); return false; } catch(java.io.IOException e) { Logger.warning(new QueueKeeper(), "Unable to load queue because: "+e); return false; } rootEl = xmlDoc.getDocumentElement(); NodeList runningQueues = rootEl.getElementsByTagName("runningQueue"); for(int i = 0;i < runningQueues.getLength(); i++) { Node runningQueueNode = runningQueues.item(i); if(runningQueueNode != null && runningQueueNode.getNodeType() == Node.ELEMENT_NODE) { loadQueries(queueManager, (Element)runningQueueNode, true); } } NodeList pendingQueues = rootEl.getElementsByTagName("pendingQueue"); for(int i = 0;i < pendingQueues.getLength(); i++) { Node pendingQueueNode = pendingQueues.item(i); if(pendingQueueNode != null && pendingQueueNode.getNodeType() == Node.ELEMENT_NODE) { loadQueries(queueManager, (Element)pendingQueueNode, false); } } return true; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/6be36fb48d74915343350a02576492243ffd1144/QueueKeeper.java/buggy/src/thaw/core/QueueKeeper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1262, 3183, 12, 42, 4258, 3183, 1318, 2389, 1318, 16, 514, 3968, 13, 288, 202, 202, 812, 585, 273, 394, 1387, 12, 17812, 1769, 202, 202, 430, 12, 5, 768, 18, 1808...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1262, 3183, 12, 42, 4258, 3183, 1318, 2389, 1318, 16, 514, 3968, 13, 288, 202, 202, 812, 585, 273, 394, 1387, 12, 17812, 1769, 202, 202, 430, 12, 5, 768, 18, 1808...
return matches;
return matches.size() == mTagsets.size() ? null : matches;
Set<Long> getMatchingTagsets(long mask, long value) { Set<Long> matches = new HashSet<Long>(); for (long tagset : mTagsets) if ((tagset & mask) == value) matches.add(tagset); return matches; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/780d901786bbf15efbfb949e34027b0786cfe8b9/TagsetCache.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/TagsetCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1000, 32, 3708, 34, 336, 9517, 1805, 4424, 12, 5748, 3066, 16, 1525, 460, 13, 288, 3639, 1000, 32, 3708, 34, 1885, 273, 394, 6847, 32, 3708, 34, 5621, 3639, 364, 261, 5748, 1047, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 32, 3708, 34, 336, 9517, 1805, 4424, 12, 5748, 3066, 16, 1525, 460, 13, 288, 3639, 1000, 32, 3708, 34, 1885, 273, 394, 6847, 32, 3708, 34, 5621, 3639, 364, 261, 5748, 1047, 542, ...
return JRE_HOME_DIR + "/lib/rt.jar";
buffer.append(paths[i]);
private String getLibraryClasses() { if (Util.isMacOS()) { return JRE_HOME_DIR + "/../Classes/classes.jar"; } return JRE_HOME_DIR + "/lib/rt.jar"; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/6467f6dd1cb134689a9fdd8d844169d55dd11609/BatchCompilerTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 336, 9313, 4818, 1435, 288, 202, 202, 430, 261, 1304, 18, 291, 9990, 4618, 10756, 288, 1082, 202, 2463, 804, 862, 67, 14209, 67, 4537, 397, 2206, 6216, 4818, 19, 4701, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 336, 9313, 4818, 1435, 288, 202, 202, 430, 261, 1304, 18, 291, 9990, 4618, 10756, 288, 1082, 202, 2463, 804, 862, 67, 14209, 67, 4537, 397, 2206, 6216, 4818, 19, 4701, 1...
protected void setColLabel(int colIndex, String name) { if (colIndex < 1 || colIndex > columns.length) { throw new IllegalArgumentException("columnIndex " + colIndex + " invalid"); } columns[colIndex - 1].label = name; }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/e1aaf1483c960b1fc4b9a954ca6c08d5a9748543/JtdsResultSet.java/buggy/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 914, 2224, 12, 474, 25893, 16, 514, 508, 13, 288, 3639, 309, 261, 1293, 1016, 411, 404, 747, 25893, 405, 2168, 18, 2469, 13, 288, 5411, 604, 394, 2754, 2932, 2827, 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, 377, 4750, 918, 444, 914, 2224, 12, 474, 25893, 16, 514, 508, 13, 288, 3639, 309, 261, 1293, 1016, 411, 404, 747, 25893, 405, 2168, 18, 2469, 13, 288, 5411, 604, 394, 2754, 2932, 2827, 1016,...
public static final void main(String[] arguments) { JavaTomGenerationParameters params = buildDefaultParameters(); JavaTomGenerationParameters duplicatedParams = null; List args = new LinkedList(Arrays.asList(arguments)); if (args.size() == 0) { usage(params); return; } else if (args.contains("-h") || args.contains("--help")) { usage(params); return; } try { params.parseArguments(args); } catch (IllegalArgumentException e) { System.err.println(e.getMessage()); usage(params); return; } ADT adt = ADTReader.readADT(params); JavaTomSignatureImplementation signature = new JavaTomSignatureImplementation(params); new TomSignatureGenerator(adt, signature, params).run(); if(params.isJavaGen()) { // generate Java Stuff params.check(); apigen.gen.java.Main.generateAPI(adt, params); } }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/Main.java/clean/apigen/apigen/gen/tom/java/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 918, 2774, 12, 780, 8526, 1775, 13, 288, 202, 202, 5852, 56, 362, 13842, 2402, 859, 273, 1361, 1868, 2402, 5621, 202, 202, 5852, 56, 362, 13842, 2402, 16975, 1370, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 918, 2774, 12, 780, 8526, 1775, 13, 288, 202, 202, 5852, 56, 362, 13842, 2402, 859, 273, 1361, 1868, 2402, 5621, 202, 202, 5852, 56, 362, 13842, 2402, 16975, 1370, 2...
public Control createControl(Composite parent, int style) { if (!statusLineExist() && parent != null) { statusLine= new StatusLine(parent, style); add(new GroupMarker(BEGIN_GROUP)); add(new GroupMarker (MIDDLE_GROUP)); add(new GroupMarker(END_GROUP)); update(false); } return statusLine;
public Control createControl(Composite parent) { return createControl(parent, SWT.NONE);
public Control createControl(Composite parent, int style) { if (!statusLineExist() && parent != null) { statusLine= new StatusLine(parent, style); add(new GroupMarker(BEGIN_GROUP)); add(new GroupMarker (MIDDLE_GROUP)); add(new GroupMarker(END_GROUP)); update(false); } return statusLine;}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ace5ee79a1fea712cf0e37c39c624708c89888f/StatusLineManager.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/StatusLineManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8888, 752, 3367, 12, 9400, 982, 16, 509, 2154, 13, 288, 202, 430, 16051, 2327, 1670, 4786, 1435, 597, 982, 480, 446, 13, 288, 202, 202, 2327, 1670, 33, 394, 2685, 1670, 12, 2938, 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, 1071, 8888, 752, 3367, 12, 9400, 982, 16, 509, 2154, 13, 288, 202, 430, 16051, 2327, 1670, 4786, 1435, 597, 982, 480, 446, 13, 288, 202, 202, 2327, 1670, 33, 394, 2685, 1670, 12, 2938, 16, ...
Vector requests = (Vector) newRequests.remove(file);
Vector<FileTransferRequest> requests = newRequests.remove(file);
protected synchronized void handleNewRequests(File file) { if (!newRequests.containsKey(file)) { return; //nothing to do } if (logger.isDebugEnabled()) { logger.debug("Sending already saved data for file: " + file.getAbsolutePath() + " " + file.length() + "[bytes]"); } servingFTS.closeWrite(file); //close the buffer to generate a flush Vector requests = (Vector) newRequests.remove(file); for (int i = 0; i < requests.size(); i++) { FileTransferRequest ftr = (FileTransferRequest) requests.get(i); if (!ftr.getSrcFile().equals(file)) { ftr.setDstFuture(new OperationStatus( new ProActiveException( "Error when sending saved data. Source files do not match:" + ftr.getSrcFile().getAbsolutePath() + " != " + file.getAbsolutePath()))); addToHash(failedRequests, file, ftr); continue; } //Send the current file if (file.length() > 0) { OperationStatus opRes = servingFTS.sendFile(ftr.getDestinationFTS(), ftr.getSrcFile(), ftr.getDstFile()); ProActive.waitFor(opRes); //wait for the send to finish (possibly with errors) if (opRes.hasException()) { ftr.setDstFuture(opRes); //Update the future with the error. addToHash(failedRequests, file, ftr); continue; } else { //Open the remote buffer for further appending ftr.getDestinationFTS().canWrite(ftr.getDstFile(), true); } } addToHash(servingRequests, file, ftr); } servingFTS.getWritingBuffer(file, true); //open the writting buffer for appending }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/b610d55aa07191d667a019684e8064d067d1d477/FileForwarder.java/clean/src/org/objectweb/proactive/core/filetransfer/FileForwarder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 1640, 1908, 6421, 12, 812, 585, 13, 288, 3639, 309, 16051, 2704, 6421, 18, 12298, 653, 12, 768, 3719, 288, 5411, 327, 31, 368, 30874, 358, 741, 3639, 289, 3639, 309, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1640, 1908, 6421, 12, 812, 585, 13, 288, 3639, 309, 16051, 2704, 6421, 18, 12298, 653, 12, 768, 3719, 288, 5411, 327, 31, 368, 30874, 358, 741, 3639, 289, 3639, 309, 26...
public void verifyText( VerifyEvent e ) { e.doit = ( "0123456789".indexOf( e.text ) >= 0 ); } } );
Label lb = new Label( composite, SWT.NONE ); gdata = new GridData( GridData.FILL_HORIZONTAL ); gdata.horizontalSpan = 2; lb.setLayoutData( gdata ); chkbox = new Button( composite, SWT.CHECK ); chkbox.setText( insertTable ? MSG_REMEMBER_DIMENSIONS_FOR_NEW_TABLES : MSG_REMEMBER_DIMENSIONS_FOR_NEW_GRIDS ); gdata = new GridData( GridData.FILL_HORIZONTAL ); gdata.horizontalSpan = 2; chkbox.setLayoutData( gdata );
protected Control createDialogArea( Composite parent ) { Composite composite = (Composite) super.createDialogArea( parent ); ( (GridLayout) composite.getLayout( ) ).numColumns = 2; new Label( composite, SWT.LEFT ).setText( "Text:" ); textEditor = new Text( composite, SWT.BORDER | SWT.SINGLE ); textEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); new Label( composite, SWT.CENTER ).setText( "Row:" ); lineEditor = new Text( composite, SWT.BORDER | SWT.SINGLE ); lineEditor.setLayoutData( new GridData( ) ); lineEditor.addVerifyListener( new VerifyListener( ) { public void verifyText( VerifyEvent e ) { e.doit = ( "0123456789".indexOf( e.text ) >= 0 ); } } ); new Label( composite, SWT.RIGHT ).setText( "Column:" ); columnEditor = new Text( composite, SWT.BORDER | SWT.SINGLE ); columnEditor.setLayoutData( new GridData( ) ); columnEditor.addVerifyListener( new VerifyListener( ) { public void verifyText( VerifyEvent e ) { e.doit = ( "0123456789".indexOf( e.text ) >= 0 ); } } ); return composite; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/12e7dfeaba4c2c6b319a7b326a03139b5c5222de/TableOptionDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/TableOptionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 12, 261, 6313, 3744, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 982, 11272, 202, 202, 12, 261, 6313, 3744, 13, ...
String columnName =
String columnName =
public Collection generateTable(ObjectType type, Column keyColumn, Collection properties, Map defaultValueMap) { StringBuffer ddl = new StringBuffer(); ArrayList statements = new ArrayList(); String tableName = Utilities.getColumn(type).getTableName(); boolean tableExists = tableExists(tableName); if (!tableExists) { // create table return super.generateTable(type, keyColumn, properties, defaultValueMap); } else { // alter table ArrayList list = new ArrayList(); if (properties == null) { return list; } Iterator props = properties.iterator(); while (props.hasNext()) { Property property = (Property)props.next(); // collections are handled by mapping tables later if (!property.isCollection()) { Object defaultValue = null; Column propCol; if (property.isAttribute()) { propCol = property.getColumn(); } else { propCol = ((JoinElement)property.getJoinPath() .getPath().get(0)).getFrom(); } String columnType = getJDBCTypeString(property, propCol); String columnName = alterStringForSQL(propCol.getColumnName()); StringBuffer sb = new StringBuffer(); list.add("alter table " + tableName + " add " + columnName + " " + columnType); if (defaultValueMap != null) { Object value = defaultValueMap.get(property.getName()); if (value != null) { list.add("alter table " + tableName + " alter " + columnName + " set " + getDefaultString(value)); } } if (property.getMultiplicity() == Property.REQUIRED) { String constraintName = getConstraintName(tableName, columnName, "nn"); list.add("alter table " + tableName + " add " + "constraint " + constraintName + " " + "check (" + columnName + " notnull)"); } } } if (list.size() == 0) { return null; } return list; } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/PostgresDDLGenerator.java/buggy/archive/core-platform/src/com/arsdigita/persistence/metadata/PostgresDDLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 2103, 1388, 12, 17610, 618, 16, 4766, 565, 4753, 498, 1494, 16, 4766, 565, 2200, 1790, 16, 4766, 565, 1635, 4593, 863, 13, 288, 3639, 6674, 24183, 273, 394, 6674, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 2103, 1388, 12, 17610, 618, 16, 4766, 565, 4753, 498, 1494, 16, 4766, 565, 2200, 1790, 16, 4766, 565, 1635, 4593, 863, 13, 288, 3639, 6674, 24183, 273, 394, 6674, 5621, 3639, ...
LOG.assertTrue(document != null); getTextBlock(document).clear();
if(document != null) getTextBlock(document).clear();
public void contentsLoaded(PsiFileImpl file) { final Document document = getCachedDocument(file); LOG.assertTrue(document != null); getTextBlock(document).clear(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/28ae079a139fb07f1e64343e45c1e6b4d5aea393/PsiDocumentManagerImpl.java/clean/source/com/intellij/psi/impl/PsiDocumentManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2939, 8835, 12, 52, 7722, 812, 2828, 585, 13, 288, 565, 727, 4319, 1668, 273, 20543, 2519, 12, 768, 1769, 565, 2018, 18, 11231, 5510, 12, 5457, 480, 446, 1769, 565, 6701, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2939, 8835, 12, 52, 7722, 812, 2828, 585, 13, 288, 565, 727, 4319, 1668, 273, 20543, 2519, 12, 768, 1769, 565, 2018, 18, 11231, 5510, 12, 5457, 480, 446, 1769, 565, 6701, 176...
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice();
public quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { quickfix.field.UnderlyingDirtyPrice value = new quickfix.field.UnderlyingDirtyPrice();
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinition.java/clean/src/java/src/quickfix/fix44/SecurityDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("CategoryModel.update")); p.setString(1, category.getName()); p.setInt(2, category.isModerated() ? 1 : 0); p.setInt(3, category.getId()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("CategoryModel.update")); p.setString(1, category.getName()); p.setInt(2, category.isModerated() ? 1 : 0); p.setInt(3, category.getId()); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr update()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close(p); } }
public void update(Category category) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("CategoryModel.update")); p.setString(1, category.getName()); p.setInt(2, category.isModerated() ? 1 : 0); p.setInt(3, category.getId()); p.executeUpdate(); p.close(); }
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/GenericCategoryDAO.java/clean/src/net/jforum/dao/generic/GenericCategoryDAO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 12, 4457, 3150, 13, 1216, 1185, 225, 202, 95, 202, 202, 29325, 293, 273, 804, 1290, 379, 3210, 1042, 18, 588, 1952, 7675, 9366, 3406, 12, 3163, 19834, 18, 588, 5101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 4457, 3150, 13, 1216, 1185, 225, 202, 95, 202, 202, 29325, 293, 273, 804, 1290, 379, 3210, 1042, 18, 588, 1952, 7675, 9366, 3406, 12, 3163, 19834, 18, 588, 5101...
"\' does not appear to be valid. Its will be ignored for artifact resolution." );
"\' does not appear to be valid. Its will be ignored for artifact resolution.\n\nReason: " + e.getMessage() + "\n\n" );
public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, List remoteRepositories ) throws ArtifactMetadataRetrievalException { MavenProject project = null; Artifact pomArtifact; boolean done = false; do { // TODO: can we just modify the original? pomArtifact = artifactFactory.createProjectArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getScope() ); if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) { done = true; } else { try { project = mavenProjectBuilder.buildFromRepository( pomArtifact, remoteRepositories, localRepository, true ); } catch ( InvalidModelException e ) { getLogger().warn( "POM for: \'" + pomArtifact + "\' does not appear to be valid. Its will be ignored for artifact resolution." ); project = null; } catch ( ProjectBuildingException e ) { throw new ArtifactMetadataRetrievalException( "Unable to read the metadata file", e ); } if ( project != null ) { Relocation relocation = null; DistributionManagement distMgmt = project.getDistributionManagement(); if ( distMgmt != null ) { relocation = distMgmt.getRelocation(); } if ( relocation != null ) { if ( relocation.getGroupId() != null ) { artifact.setGroupId( relocation.getGroupId() ); } if ( relocation.getArtifactId() != null ) { artifact.setArtifactId( relocation.getArtifactId() ); } if ( relocation.getVersion() != null ) { artifact.setVersion( relocation.getVersion() ); } String message = "\n This artifact has been relocated to " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion() + ".\n"; if ( relocation.getMessage() != null ) { message += " " + relocation.getMessage() + "\n"; } getLogger().warn( message + "\n" ); } else { done = true; } } else { done = true; } } } while ( !done ); // TODO: this could come straight from the project, negating the need to set it in the project itself? artifact.setDownloadUrl( pomArtifact.getDownloadUrl() ); try { ResolutionGroup result; if ( project == null ) { // if the project is null, we encountered an invalid model (read: m1 POM) // we'll just return an empty resolution group. // or used the inherited scope (should that be passed to the buildFromRepository method above?) result = new ResolutionGroup( pomArtifact, Collections.EMPTY_SET, Collections.EMPTY_LIST ); } else { Set artifacts = Collections.EMPTY_SET; if ( !artifact.getArtifactHandler().isIncludesDependencies() ) { // TODO: we could possibly use p.getDependencyArtifacts instead of this call, but they haven't been filtered // or used the inherited scope (should that be passed to the buildFromRepository method above?) artifacts = project.createArtifacts( artifactFactory, artifact.getScope(), artifact.getDependencyFilter() ); } List repositories = aggregateRepositoryLists( remoteRepositories, project.getRemoteArtifactRepositories() ); result = new ResolutionGroup( pomArtifact, artifacts, repositories ); } return result; } catch ( InvalidVersionSpecificationException e ) { throw new ArtifactMetadataRetrievalException( "Unable to read the metadata file", e ); } catch ( ProjectBuildingException e ) { throw new ArtifactMetadataRetrievalException( "Unable to read the metadata file", e ); } }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/f685d8605d2680e70b1ff2895947d2d11787e3c9/MavenMetadataSource.java/clean/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24933, 1114, 4614, 12, 14022, 6462, 16, 14022, 3305, 1191, 3305, 16, 987, 2632, 18429, 262, 3639, 1216, 14022, 2277, 27356, 503, 565, 288, 3639, 17176, 4109, 1984, 273, 446, 31, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24933, 1114, 4614, 12, 14022, 6462, 16, 14022, 3305, 1191, 3305, 16, 987, 2632, 18429, 262, 3639, 1216, 14022, 2277, 27356, 503, 565, 288, 3639, 17176, 4109, 1984, 273, 446, 31, 3639,...
asm.emitSTW (T0, STACKFRAME_METHOD_ID_OFFSET, FP);
asm.emitSTWoffset (T0, FP, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET));
private static VM_CodeArray generateReflectiveMethodInvokerInstructions() { VM_Assembler asm = new VM_Assembler(0); // // free registers: 0, S0 // asm.emitMFLR(0); // save... asm.emitSTAddr (0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // ...return address asm.emitMTCTR(T0); // CTR := start of method code // // free registers: 0, S0, T0 // // create new frame // asm.emitMR (S0, FP); // S0 := old frame pointer asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T3); // T0 := number of spill words asm.emitADDI (T3, -BYTES_IN_ADDRESS, T3); // T3 -= 4 (predecrement, ie. T3 + 4 is &spill[0] ) int spillLoopLabel = asm.getMachineCodeIndex(); asm.emitADDICr (T0, T0, -1); // T0 -= 1 (and set CR) VM_ForwardReference fr1 = asm.emitForwardBC(LT); // if T0 < 0 then break asm.emitLAddrU (0, BYTES_IN_ADDRESS, T3); // R0 := *(T3 += 4) asm.emitSTAddrU (0, -BYTES_IN_ADDRESS, FP); // put one word of spill area asm.emitB (spillLoopLabel); // goto spillLoop: fr1.resolve(asm); asm.emitSTAddrU (S0, -STACKFRAME_HEADER_SIZE, FP); // allocate frame header and save old fp asm.emitLVAL (T0, INVISIBLE_METHOD_ID); asm.emitSTW (T0, STACKFRAME_METHOD_ID_OFFSET, FP); // set method id // // free registers: 0, S0, T0, T3 // // load up fprs // VM_ForwardReference setupFPRLoader = asm.emitForwardBL(); FPRLoader: for (int i = LAST_VOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i) asm.emitLFDU(i, BYTES_IN_DOUBLE, T2); // FPRi := fprs[i] // // free registers: 0, S0, T0, T2, T3 // // load up gprs // VM_ForwardReference setupGPRLoader = asm.emitForwardBL(); GPRLoader: for (int i = LAST_VOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) asm.emitLAddrU (i, BYTES_IN_ADDRESS, S0); // GPRi := gprs[i] // // free registers: 0, S0 // // invoke method // asm.emitBCCTRL(); // branch and link to method code // emit method epilog // asm.emitLAddr(FP, 0, FP); // restore caller's frame asm.emitLAddr (S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // pick up return address asm.emitMTLR (S0); // asm.emitBCLR(); // return to caller setupFPRLoader.resolve(asm); asm.emitMFLR (T3); // T3 := address of first fpr load instruction asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T2); // T0 := number of fprs to be loaded asm.emitADDI (T3, VOLATILE_FPRS<<LG_INSTRUCTION_WIDTH, T3); // T3 := address of first instruction following fpr loads asm.emitSLWI (T0, T0, LG_INSTRUCTION_WIDTH); // T0 := number of bytes of fpr load instructions asm.emitSUBFC (T3, T0, T3); // T3 := address of instruction for highest numbered fpr to be loaded asm.emitMTLR (T3); // LR := """ asm.emitADDI (T2, -BYTES_IN_DOUBLE, T2); // predecrement fpr index (to prepare for update instruction) asm.emitBCLR (); // branch to fpr loading instructions setupGPRLoader.resolve(asm); asm.emitMFLR (T3); // T3 := address of first gpr load instruction asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T1); // T0 := number of gprs to be loaded asm.emitADDI (T3, VOLATILE_GPRS<<LG_INSTRUCTION_WIDTH, T3); // T3 := address of first instruction following gpr loads asm.emitSLWI (T0, T0, LG_INSTRUCTION_WIDTH); // T0 := number of bytes of gpr load instructions asm.emitSUBFC (T3, T0,T3); // T3 := address of instruction for highest numbered gpr to be loaded asm.emitMTLR (T3); // LR := """ asm.emitADDI (S0, -BYTES_IN_ADDRESS, T1); // predecrement gpr index (to prepare for update instruction) asm.emitBCLR (); // branch to gpr loading instructions return asm.makeMachineCode().getInstructions(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/607ce8428a60a1e2ea6aeee16fe403ddf08d4b83/VM_OutOfLineMachineCode.java/buggy/rvm/src/vm/arch/powerPC/runtime/VM_OutOfLineMachineCode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 8251, 67, 1085, 1076, 2103, 24452, 688, 1305, 24455, 26712, 1435, 288, 565, 8251, 67, 1463, 5747, 749, 20415, 273, 394, 8251, 67, 1463, 5747, 749, 12, 20, 1769, 1850, 368, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 8251, 67, 1085, 1076, 2103, 24452, 688, 1305, 24455, 26712, 1435, 288, 565, 8251, 67, 1463, 5747, 749, 20415, 273, 394, 8251, 67, 1463, 5747, 749, 12, 20, 1769, 1850, 368, 565,...
return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000L); case 62: jjmatchedKind = 85; return jjMoveStringLiteralDfa1_0(0x0L, 0x180300020000000L);
return jjMoveStringLiteralDfa1_0(0x0L, 0xc0180010000000L);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 9: return jjStopAtPos(0, 2); case 10: return jjStopAtPos(0, 3); case 12: return jjStopAtPos(0, 5); case 13: return jjStopAtPos(0, 4); case 26: return jjStopAtPos(0, 121); case 32: return jjStopAtPos(0, 1); case 33: jjmatchedKind = 87; return jjMoveStringLiteralDfa1_0(0x0L, 0x40000000L); case 37: jjmatchedKind = 106; return jjMoveStringLiteralDfa1_0(0x0L, 0x20000000000000L); case 38: jjmatchedKind = 103; return jjMoveStringLiteralDfa1_0(0x0L, 0x4000100000000L); case 40: return jjStopAtPos(0, 75); case 41: return jjStopAtPos(0, 76); case 42: jjmatchedKind = 101; return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000000000L); case 43: jjmatchedKind = 99; return jjMoveStringLiteralDfa1_0(0x0L, 0x400200000000L); case 44: return jjStopAtPos(0, 82); case 45: jjmatchedKind = 100; return jjMoveStringLiteralDfa1_0(0x0L, 0x800400000000L); case 46: return jjStartNfaWithStates_0(0, 83, 4); case 47: jjmatchedKind = 102; return jjMoveStringLiteralDfa1_0(0x100L, 0x2000000000000L); case 58: return jjStopAtPos(0, 90); case 59: return jjStopAtPos(0, 81); case 60: jjmatchedKind = 86; return jjMoveStringLiteralDfa1_0(0x0L, 0x40080010000000L); case 61: jjmatchedKind = 84; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000L); case 62: jjmatchedKind = 85; return jjMoveStringLiteralDfa1_0(0x0L, 0x180300020000000L); case 63: return jjStopAtPos(0, 89); case 91: return jjStopAtPos(0, 79); case 93: return jjStopAtPos(0, 80); case 94: jjmatchedKind = 105; return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000000000L); case 97: return jjMoveStringLiteralDfa1_0(0x8000000000001000L, 0x0L); case 98: return jjMoveStringLiteralDfa1_0(0xe000L, 0x0L); case 99: return jjMoveStringLiteralDfa1_0(0x3f0000L, 0x0L); case 100: return jjMoveStringLiteralDfa1_0(0x1c00000L, 0x0L); case 101: return jjMoveStringLiteralDfa1_0(0x6000000L, 0x0L); case 102: return jjMoveStringLiteralDfa1_0(0xf8000000L, 0x0L); case 103: return jjMoveStringLiteralDfa1_0(0x100000000L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x7e00000000L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); case 110: return jjMoveStringLiteralDfa1_0(0x70000000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x780000000000L, 0x0L); case 114: return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x0L); case 115: return jjMoveStringLiteralDfa1_0(0x401f000000000000L, 0x0L); case 116: return jjMoveStringLiteralDfa1_0(0x7e0000000000000L, 0x0L); case 118: return jjMoveStringLiteralDfa1_0(0x1800000000000000L, 0x0L); case 119: return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); case 123: return jjStopAtPos(0, 77); case 124: jjmatchedKind = 104; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000080000000L); case 125: return jjStopAtPos(0, 78); case 126: jjmatchedKind = 88; return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000000L); default : return jjMoveNfa_0(0, 0); }}
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 2468, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 576, 1769, 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, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 2468, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 576, 1769, 13...
if (!workspace.exists()) workspace.mkdir();
if (!workspace.exists()) { workspace.mkdir(); }
private URL promptForWorkspace(Shell shell, ChooseWorkspaceData launchData, boolean force) { URL url = null; do { // don't use the parent shell to make the dialog a top-level // shell. See bug 84881. new ChooseWorkspaceDialog(null, launchData, false, true).prompt(force); String instancePath = launchData.getSelection(); if (instancePath == null) return null; // the dialog is not forced on the first iteration, but is on every // subsequent one -- if there was an error then the user needs to be // allowed to fix it force = true; // 70576: don't accept empty input if (instancePath.length() <= 0) { MessageDialog .openError( shell, IDEWorkbenchMessages.IDEApplication_workspaceEmptyTitle, IDEWorkbenchMessages.IDEApplication_workspaceEmptyMessage); continue; } // create the workspace if it does not already exist File workspace = new File(instancePath); if (!workspace.exists()) workspace.mkdir(); try { // Don't use File.toURL() since it adds a leading slash that Platform does not // handle properly. See bug 54081 for more details. String path = workspace.getAbsolutePath().replace( File.separatorChar, '/'); url = new URL("file", null, path); //$NON-NLS-1$ } catch (MalformedURLException e) { MessageDialog .openError( shell, IDEWorkbenchMessages.IDEApplication_workspaceInvalidTitle, IDEWorkbenchMessages.IDEApplication_workspaceInvalidMessage); continue; } } while (!checkValidWorkspace(shell, url)); return url; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/IDEApplication.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1976, 6866, 1290, 8241, 12, 13220, 5972, 16, 25593, 8241, 751, 8037, 751, 16, 5411, 1250, 2944, 13, 288, 3639, 1976, 880, 273, 446, 31, 3639, 741, 288, 540, 202, 759, 2727, 1404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1976, 6866, 1290, 8241, 12, 13220, 5972, 16, 25593, 8241, 751, 8037, 751, 16, 5411, 1250, 2944, 13, 288, 3639, 1976, 880, 273, 446, 31, 3639, 741, 288, 540, 202, 759, 2727, 1404, ...
for (int i = 0; i < size; i++) { _listeners.get(i).interpreterExited(status); }
for (int i = 0; i < size; i++) { _listeners.get(i).interpreterExited(status); }
public void interpreterExited(int status) { _lock.startRead(); try { int size = _listeners.size(); for (int i = 0; i < size; i++) { _listeners.get(i).interpreterExited(status); } } finally { _lock.endRead(); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/c9b6668252c82575b56cf423d4fca817498241b6/InteractionsEventNotifier.java/buggy/drjava/src/edu/rice/cs/drjava/model/repl/InteractionsEventNotifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 16048, 6767, 329, 12, 474, 1267, 13, 288, 565, 389, 739, 18, 1937, 1994, 5621, 565, 775, 288, 1377, 509, 963, 273, 389, 16072, 18, 1467, 5621, 1377, 364, 261, 474, 277, 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, 918, 16048, 6767, 329, 12, 474, 1267, 13, 288, 565, 389, 739, 18, 1937, 1994, 5621, 565, 775, 288, 1377, 509, 963, 273, 389, 16072, 18, 1467, 5621, 1377, 364, 261, 474, 277, 273, ...
if (logger.isInfoEnabled()) { logger.info("Send "+ret);
if (logger.isDebugEnabled()) { logger.debug("Send "+ret);
private void receive(WPQuery wpq) { if (logger.isInfoEnabled()) { logger.info("Receive "+wpq); } WPAnswer ret; try { ret = submit(wpq); } catch (Throwable t) { if (logger.isErrorEnabled()) { logger.error( "Unable to process client query: "+wpq, t); } return; } if (logger.isInfoEnabled()) { logger.info("Send "+ret); } messageSwitchService.sendMessage(ret); }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/4c10453b9ea9a7f21fdd670b1ff4848b2adf96dd/RootAuthority.java/buggy/core/src/org/cougaar/core/wp/server/RootAuthority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 6798, 12, 20265, 1138, 6357, 85, 13, 288, 565, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 1377, 1194, 18, 1376, 2932, 11323, 13773, 8612, 85, 1769, 565, 289, 565, 10614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 6798, 12, 20265, 1138, 6357, 85, 13, 288, 565, 309, 261, 4901, 18, 291, 966, 1526, 10756, 288, 1377, 1194, 18, 1376, 2932, 11323, 13773, 8612, 85, 1769, 565, 289, 565, 10614, ...
System.out.println("Validating :"+b); System.out.println(useMax); System.out.println(max);
public void validate(byte b) throws ValidationException { System.out.println("Validating :"+b); System.out.println(useMax); System.out.println(max); if (useFixed) { if (b != fixed) { String err = b + " is not equal to the fixed value of " + fixed; throw new ValidationException(err); } return; } if (useMin) { if (b < min) { String err = b + " is less than the minimum allowable "; err += "value of " + min; throw new ValidationException(err); } } if (useMax) { if (b > max) { String err = b + " is greater than the maximum allowable "; err += "value of " + max; throw new ValidationException(err); } } if (hasPattern()) super.validate(Byte.toString(b)); } //-- validate
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/ace540cbc8f88a45a271d8498474ba725beed7f7/ByteValidator.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/validators/ByteValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1954, 12, 7229, 324, 13, 3639, 1216, 15614, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 31496, 20514, 15, 70, 1769, 3639, 2332, 18, 659, 18, 8222, 12, 1202, 2747, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1954, 12, 7229, 324, 13, 3639, 1216, 15614, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 31496, 20514, 15, 70, 1769, 3639, 2332, 18, 659, 18, 8222, 12, 1202, 2747, 1769, 36...
writeResolveAndLoadClassToReg(classRef, classr);
writeResolveAndLoadClassToReg(classRef, classr);
public final void visit_checkcast(VmConstClass classRef) { // Pre-claim ECX L1AHelper.requestRegister(eContext, ECX); L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, ECX); L1AHelper.releaseRegister(eContext, classr); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 1893, 4155, 12, 22143, 9661, 797, 667, 1957, 13, 288, 202, 202, 759, 2962, 17, 14784, 7773, 60, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 1893, 4155, 12, 22143, 9661, 797, 667, 1957, 13, 288, 202, 202, 759, 2962, 17, 14784, 7773, 60, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042,...
Voice[] voices = super.getVoices();
javax.speech.synthesis.Voice[] voices = super.getVoices();
public Voice[] getVoices() { List voiceList = new LinkedList(); Voice[] voices = super.getVoices(); int count = 0; for (int i = 0; i < voices.length; i++) { FreeTTSVoice freettsVoice = (FreeTTSVoice) voices[i]; try { freettsVoice.validate(); voiceList.add(freettsVoice); count++; } catch (ValidationException ve) { // don't do anything here if a FreeTTSVoice is invalid } } Voice[] validVoices = new Voice[count]; voiceList.toArray(validVoices); return validVoices; }
3240 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3240/08fd0e09d026628a7c37706bd6516545c9085c5f/FreeTTSSynthesizerModeDesc.java/buggy/FreeTTS/com/sun/speech/freetts/jsapi/FreeTTSSynthesizerModeDesc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 23582, 8526, 11031, 17725, 1435, 288, 3639, 987, 15063, 682, 273, 394, 10688, 5621, 3639, 6863, 18, 87, 12510, 18, 11982, 20432, 18, 14572, 8526, 331, 17725, 273, 2240, 18, 588, 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, 23582, 8526, 11031, 17725, 1435, 288, 3639, 987, 15063, 682, 273, 394, 10688, 5621, 3639, 6863, 18, 87, 12510, 18, 11982, 20432, 18, 14572, 8526, 331, 17725, 273, 2240, 18, 588, 58, ...
ret.append("\nsender_win: " + sender_win.toString());
ret.append("\nsender_win: " + sender_win.toString());
String dumpContents() { StringBuffer ret=new StringBuffer(); ret.append("\nsent_msgs: " + sent_msgs.size()); ret.append("\nreceived_msgs: "); for(Enumeration e=received_msgs.keys(); e.hasMoreElements();) { Address key=(Address)e.nextElement(); NakReceiverWindow w=(NakReceiverWindow)received_msgs.get(key); ret.append("\n" + w.toString()); } ret.append("\nsender_win: " + sender_win.toString()); return ret.toString(); }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/75359f4186603c5a949e15ffab51fb811f04ed8e/NAKACK.java/clean/src/org/jgroups/protocols/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 4657, 6323, 1435, 288, 202, 565, 6674, 325, 33, 2704, 6674, 5621, 202, 565, 325, 18, 6923, 31458, 2387, 319, 67, 27439, 30, 315, 397, 3271, 67, 27439, 18, 1467, 10663, 202, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 4657, 6323, 1435, 288, 202, 565, 6674, 325, 33, 2704, 6674, 5621, 202, 565, 325, 18, 6923, 31458, 2387, 319, 67, 27439, 30, 315, 397, 3271, 67, 27439, 18, 1467, 10663, 202, 56...
new Integer(pixelType),
new Integer(pixelType[0]),
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); littleEndian = false; byte[] temp = new byte[4]; in.read(temp); // only support version 3 if(!isThisType(temp)) { throw new FormatException("invalid header"); } in.skipBytes(4); in.read(temp); if (DataTools.bytesToInt(temp, littleEndian) == 1) littleEndian = true; // TagGroup instance in.skipBytes(2); in.read(temp); parseTags(DataTools.bytesToInt(temp, !littleEndian), "initFile"); int datatype = ((Integer) metadata.get("DataType")).intValue(); pixelType = FormatReader.INT8; switch (datatype) { case 1: pixelType = FormatReader.INT16; break; case 2: pixelType = FormatReader.FLOAT; break; case 3: pixelType = FormatReader.FLOAT; break; // there is no case 4 case 5: pixelType = FormatReader.FLOAT; break; case 6: pixelType = FormatReader.UINT8; break; case 7: pixelType = FormatReader.INT32; break; case 8: pixelType = FormatReader.UINT32; break; case 9: pixelType = FormatReader.INT8; break; case 10: pixelType = FormatReader.UINT16; break; case 11: pixelType = FormatReader.UINT32; break; case 12: pixelType = FormatReader.FLOAT; break; case 13: pixelType = FormatReader.FLOAT; break; case 14: pixelType = FormatReader.UINT8; break; case 23: pixelType = FormatReader.INT32; break; } sizeX[0] = dims[0]; sizeY[0] = dims[1]; sizeZ[0] = 1; sizeC[0] = 1; sizeT[0] = 1; currentOrder[0] = "XYZTC"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels( new Integer(dims[0]), // SizeX new Integer(dims[1]), // SizeY new Integer(1), // SizeZ new Integer(1), // SizeC new Integer(1), // SizeT new Integer(pixelType), // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder null); // Use index 0 }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/152ea9f3f73a28d996513a7cb7b820a6ed4e6b22/GatanReader.java/buggy/loci/formats/in/GatanReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 328, 10609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 328, 10609, ...
String testName = getName(); System.out.println("Running test: " + testName); assertNotNull(testName);
_currentTestName = getName(); System.out.println("Running test: " + _currentTestName); assertNotNull(_currentTestName);
public void runBare() throws Throwable { String testName = getName(); System.out.println("Running test: " + testName); assertNotNull(testName); try { preSetUp(); setUp(); runTest(); } finally { try { tearDown(); } finally { postTearDown(); } } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/8f09cbae9055f6d7672a5b87234eaa270bde5449/BaseTestCase.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/util/BaseTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 31242, 1435, 1216, 4206, 288, 3639, 514, 1842, 461, 273, 1723, 5621, 3639, 2332, 18, 659, 18, 8222, 2932, 7051, 1842, 30, 315, 397, 1842, 461, 1769, 3639, 25395, 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, 225, 202, 482, 918, 1086, 31242, 1435, 1216, 4206, 288, 3639, 514, 1842, 461, 273, 1723, 5621, 3639, 2332, 18, 659, 18, 8222, 2932, 7051, 1842, 30, 315, 397, 1842, 461, 1769, 3639, 25395, 12, ...
public AddressPanel(DataSourceList aDataSourceList) { //super(true); setBorder (new EmptyBorder(10,10,10,10)); this.setLayout (new BorderLayout(10, 5)); add(createSearchPane(aDataSourceList), BorderLayout.NORTH); add(createTable(), BorderLayout.CENTER); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/AddressBook.java/clean/grendel/sources/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5267, 5537, 12, 8597, 682, 279, 8597, 682, 13, 288, 1377, 368, 9565, 12, 3767, 1769, 5411, 25715, 261, 2704, 8953, 8107, 12, 2163, 16, 2163, 16, 2163, 16, 2163, 10019, 1377, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5267, 5537, 12, 8597, 682, 279, 8597, 682, 13, 288, 1377, 368, 9565, 12, 3767, 1769, 5411, 25715, 261, 2704, 8953, 8107, 12, 2163, 16, 2163, 16, 2163, 16, 2163, 10019, 1377, 333, ...
rule.setFormat( handle.getFormat( ) );
String format = handle.getFormat( ); if ( "html".equalsIgnoreCase( format ) ) { format = EngineIRConstants.FORMAT_TYPE_VIEWER; } rule.setFormat( format );
protected VisibilityRuleDesign createHide( HideRuleHandle handle ) { VisibilityRuleDesign rule = new VisibilityRuleDesign( ); rule.setExpression( createExpression( handle.getExpression( ) ) ); rule.setFormat( handle.getFormat( ) ); return rule; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ce79327f10775dd2c686bd4f14b84b0bea75d2d8/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 27791, 2175, 15478, 752, 15690, 12, 25180, 2175, 3259, 1640, 262, 202, 95, 202, 202, 10135, 2175, 15478, 1720, 273, 394, 27791, 2175, 15478, 12, 11272, 202, 202, 5345, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27791, 2175, 15478, 752, 15690, 12, 25180, 2175, 3259, 1640, 262, 202, 95, 202, 202, 10135, 2175, 15478, 1720, 273, 394, 27791, 2175, 15478, 12, 11272, 202, 202, 5345, 18, 542, ...
}
}
protected static GrailsMethodExpression create(final GrailsApplication application,Class clazz, String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL), LESS_THAN_OR_EQUAL, 1, isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.le( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LESS_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN), LESS_THAN, 1, // argument count isNegation(queryParameter, LESS_THAN) ) { Criterion createCriterion() { return Expression.lt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN_OR_EQUAL), GREATER_THAN_OR_EQUAL, 1, isNegation(queryParameter, GREATER_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.ge( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN), GREATER_THAN, 1, isNegation(queryParameter, GREATER_THAN) ) { Criterion createCriterion() { return Expression.gt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LIKE )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LIKE), LIKE, 1, isNegation(queryParameter, LIKE) ) { Criterion createCriterion() { return Expression.like( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( IS_NOT_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NOT_NULL), IS_NOT_NULL, 0, isNegation(queryParameter, IS_NOT_NULL) ) { Criterion createCriterion() { return Expression.isNotNull( this.propertyName ); } }; } else if(queryParameter.endsWith( IS_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NULL), IS_NULL, 0, isNegation(queryParameter, IS_NULL) ) { Criterion createCriterion() { return Expression.isNull( this.propertyName ); } }; } else if(queryParameter.endsWith( BETWEEN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, BETWEEN), BETWEEN, 2, isNegation(queryParameter, BETWEEN) ) { Criterion createCriterion() { return Expression.between( this.propertyName,this.arguments[0], this.arguments[1] ); } }; } else if(queryParameter.endsWith( NOT_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, NOT_EQUAL), NOT_EQUAL, 1, isNegation(queryParameter, NOT_EQUAL) ) { Criterion createCriterion() { return Expression.ne( this.propertyName,this.arguments[0]); } }; } else { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, null), EQUAL, 1, isNegation(queryParameter, EQUAL) ) { Criterion createCriterion() { return Expression.eq( this.propertyName,this.arguments[0]); } }; } }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
if (RDEBUG && debuglevel > 6) System.out.println("CT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3));
if (RDEBUG && (debuglevel > 6)) System.out.println("CT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3));
blockEncrypt (byte[] in, byte[] result, int inOffset, Object sessionKey) {if (RDEBUG) trace(IN, "blockEncrypt("+in+", "+inOffset+", "+sessionKey+")"); int[][] Ke = (int[][]) ((Object[]) sessionKey)[0]; // extract encryption round keys int ROUNDS = Ke.length - 1; int[] Ker = Ke[0]; // plaintext to ints + key int t0 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[0]; int t1 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[1]; int t2 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[2]; int t3 = ((in[inOffset++] & 0xFF) << 24 | (in[inOffset++] & 0xFF) << 16 | (in[inOffset++] & 0xFF) << 8 | (in[inOffset++] & 0xFF) ) ^ Ker[3]; int a0, a1, a2, a3; for (int r = 1; r < ROUNDS; r++) { // apply round transforms Ker = Ke[r]; a0 = (T1[(t0 >>> 24) & 0xFF] ^ T2[(t1 >>> 16) & 0xFF] ^ T3[(t2 >>> 8) & 0xFF] ^ T4[ t3 & 0xFF] ) ^ Ker[0]; a1 = (T1[(t1 >>> 24) & 0xFF] ^ T2[(t2 >>> 16) & 0xFF] ^ T3[(t3 >>> 8) & 0xFF] ^ T4[ t0 & 0xFF] ) ^ Ker[1]; a2 = (T1[(t2 >>> 24) & 0xFF] ^ T2[(t3 >>> 16) & 0xFF] ^ T3[(t0 >>> 8) & 0xFF] ^ T4[ t1 & 0xFF] ) ^ Ker[2]; a3 = (T1[(t3 >>> 24) & 0xFF] ^ T2[(t0 >>> 16) & 0xFF] ^ T3[(t1 >>> 8) & 0xFF] ^ T4[ t2 & 0xFF] ) ^ Ker[3]; t0 = a0; t1 = a1; t2 = a2; t3 = a3;if (RDEBUG && debuglevel > 6) System.out.println("CT"+r+"="+intToString(t0)+intToString(t1)+intToString(t2)+intToString(t3)); } // last round is special Ker = Ke[ROUNDS]; int tt = Ker[0]; result[ 0] = (byte)(S[(t0 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 1] = (byte)(S[(t1 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 2] = (byte)(S[(t2 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 3] = (byte)(S[ t3 & 0xFF] ^ tt ); tt = Ker[1]; result[ 4] = (byte)(S[(t1 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 5] = (byte)(S[(t2 >>> 16) & 0xFF] ^ (tt >>> 16)); result[ 6] = (byte)(S[(t3 >>> 8) & 0xFF] ^ (tt >>> 8)); result[ 7] = (byte)(S[ t0 & 0xFF] ^ tt ); tt = Ker[2]; result[ 8] = (byte)(S[(t2 >>> 24) & 0xFF] ^ (tt >>> 24)); result[ 9] = (byte)(S[(t3 >>> 16) & 0xFF] ^ (tt >>> 16)); result[10] = (byte)(S[(t0 >>> 8) & 0xFF] ^ (tt >>> 8)); result[11] = (byte)(S[ t1 & 0xFF] ^ tt ); tt = Ker[3]; result[12] = (byte)(S[(t3 >>> 24) & 0xFF] ^ (tt >>> 24)); result[13] = (byte)(S[(t0 >>> 16) & 0xFF] ^ (tt >>> 16)); result[14] = (byte)(S[(t1 >>> 8) & 0xFF] ^ (tt >>> 8)); result[15] = (byte)(S[ t2 & 0xFF] ^ tt );if (RDEBUG && debuglevel > 6) {System.out.println("CT="+toString(result));System.out.println();}if (RDEBUG) trace(OUT, "blockEncrypt()"); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Rijndael_Algorithm.java/clean/src/freenet/crypt/ciphers/Rijndael_Algorithm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1203, 13129, 261, 7229, 8526, 316, 16, 1160, 8526, 563, 16, 509, 316, 2335, 16, 1033, 26864, 13, 288, 430, 261, 54, 9394, 13, 2606, 12, 706, 16, 315, 2629, 13129, 2932, 15, 267, 15, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1203, 13129, 261, 7229, 8526, 316, 16, 1160, 8526, 563, 16, 509, 316, 2335, 16, 1033, 26864, 13, 288, 430, 261, 54, 9394, 13, 2606, 12, 706, 16, 315, 2629, 13129, 2932, 15, 267, 15, 3...
if (id == null)
if (id == null) {
private void init() { id = element.getAttribute(ATT_ID); if (id == null) id = ""; //$NON-NLS-1$ IConfigurationElement[] children = element .getChildren(TAG_PARENT_EXPRESSION); if (children.length == 1) parentExpression = new CustomAndExpression(children[0]); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CommonSorterDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/sorters/CommonSorterDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 288, 202, 202, 350, 273, 930, 18, 588, 1499, 12, 789, 56, 67, 734, 1769, 202, 202, 430, 261, 350, 422, 446, 13, 1082, 202, 350, 273, 1408, 31, 4329, 3993, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1435, 288, 202, 202, 350, 273, 930, 18, 588, 1499, 12, 789, 56, 67, 734, 1769, 202, 202, 430, 261, 350, 422, 446, 13, 1082, 202, 350, 273, 1408, 31, 4329, 3993, ...
if( symbol instanceof ISpecializedSymbol ){ ISpecializedSymbol spec = (ISpecializedSymbol) symbol; instance = spec.deferredInstance( spec.getArgumentList() );
if( template instanceof ISpecializedSymbol ){ ISpecializedSymbol spec = (ISpecializedSymbol) template; instance = spec.instantiate( spec.getArgumentList() );
static protected ISymbol instantiateWithinTemplateScope( IContainerSymbol container, ITemplateSymbol symbol ) { if( symbol.getTemplatedSymbol().isType( TypeInfo.t_function ) ){ return symbol; } IDeferredTemplateInstance instance = null; IContainerSymbol containing = container.getContainingSymbol(); boolean instantiate = false; while( containing != null ){ if( containing == symbol ){ instantiate = true; break; } containing = containing.getContainingSymbol(); if( containing != null && !containing.isTemplateMember() || !containing.isType( TypeInfo.t_template ) ){ containing = null; } } if( instantiate ){ if( symbol instanceof ISpecializedSymbol ){ ISpecializedSymbol spec = (ISpecializedSymbol) symbol; instance = spec.deferredInstance( spec.getArgumentList() ); } else { ITemplateSymbol template = symbol; List params = template.getParameterList(); int size = params.size(); List args = new ArrayList( size ); for( int i = 0; i < size; i++ ){ args.add( new TypeInfo( TypeInfo.t_type, 0, (ISymbol) params.get(i) ) ); } instance = template.deferredInstance( args ); } } return ( instance != null ) ? instance : (ISymbol) symbol; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/441bdd65c80744b9d7dfe57dbaf2f5a72a4004d5/TemplateEngine.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TemplateEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 4750, 4437, 3284, 10275, 18949, 2283, 3876, 12, 467, 2170, 5335, 1478, 16, 467, 2283, 5335, 3273, 262, 202, 95, 202, 202, 430, 12, 3273, 18, 588, 26033, 690, 5335, 7675, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 4750, 4437, 3284, 10275, 18949, 2283, 3876, 12, 467, 2170, 5335, 1478, 16, 467, 2283, 5335, 3273, 262, 202, 95, 202, 202, 430, 12, 3273, 18, 588, 26033, 690, 5335, 7675, 291, ...
public MainWindow(Introspector da,String title){ super(title); debugger=da; MessageTableModel mi=new MessageTableModel(new Vector(),"MESSAGE IN"); MessageTableModel mo=new MessageTableModel(new Vector(),"MESSAGE OUT"); DefaultTreeModel r=new DefaultTreeModel(new DefaultMutableTreeNode("Behaviours")); int s=1; list=new MainBarListener(this); mainBar=new MainBar(list); messagePanel=new MessagePanel(mi,mo); statePanel=new StatePanel(list); behaviourPanel=new BehaviourPanel(r); splitPanel=new JSplitPane(); tabPanel=new JTabbedPane(); build(); }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/3da3409e70baaa4efa7073a3fbfe95f8b6816621/MainWindow.java/clean/src/jade/tools/introspector/gui/MainWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6376, 3829, 12, 1702, 26170, 517, 69, 16, 780, 2649, 15329, 9565, 12, 2649, 1769, 4148, 693, 33, 2414, 31, 1079, 1388, 1488, 9197, 33, 2704, 1079, 1388, 1488, 12, 2704, 5018, 9334, 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, 1071, 6376, 3829, 12, 1702, 26170, 517, 69, 16, 780, 2649, 15329, 9565, 12, 2649, 1769, 4148, 693, 33, 2414, 31, 1079, 1388, 1488, 9197, 33, 2704, 1079, 1388, 1488, 12, 2704, 5018, 9334, 6, ...
ci.bufferSize = 8000; ci.displaySize = 8000; ci.precision = 8000;
ci.bufferSize = MS_LONGVAR_MAX; ci.displaySize = MS_LONGVAR_MAX; ci.precision = MS_LONGVAR_MAX;
static void fillInType(ColInfo ci) throws SQLException { switch (ci.jdbcType) { case java.sql.Types.VARCHAR: ci.tdsType = SYBVARCHAR; ci.bufferSize = 8000; ci.displaySize = 8000; ci.precision = 8000; break; case java.sql.Types.INTEGER: ci.tdsType = SYBINT4; ci.bufferSize = 4; ci.displaySize = 11; ci.precision = 10; break; case java.sql.Types.SMALLINT: ci.tdsType = SYBINT2; ci.bufferSize = 2; ci.displaySize = 6; ci.precision = 5; break; case java.sql.Types.BIT: ci.tdsType = SYBBIT; ci.bufferSize = 1; ci.displaySize = 1; ci.precision = 1; break; default: throw new SQLException(Messages.get( "error.baddatatype", Integer.toString(ci.jdbcType)), "HY000"); } ci.sqlType = types[ci.tdsType].sqlType; ci.scale = 0; }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f15aaef38aa4f8b2f78ed843ab218673c282f313/TdsData.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 3636, 382, 559, 12, 914, 966, 9039, 13, 5411, 1216, 6483, 288, 3639, 1620, 261, 8450, 18, 24687, 559, 13, 288, 5411, 648, 2252, 18, 4669, 18, 2016, 18, 7716, 7305, 30, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 3636, 382, 559, 12, 914, 966, 9039, 13, 5411, 1216, 6483, 288, 3639, 1620, 261, 8450, 18, 24687, 559, 13, 288, 5411, 648, 2252, 18, 4669, 18, 2016, 18, 7716, 7305, 30, 7734, ...