rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
addNonNull(h);
addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR);
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old != null) { BoundedRang...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java
{
{
public void setHorizontalScrollBarPolicy(int h) { if (horizontalScrollBarPolicy == h) return; if (h != HORIZONTAL_SCROLLBAR_AS_NEEDED && h != HORIZONTAL_SCROLLBAR_NEVER && h != HORIZONTAL_SCROLLBAR_ALWAYS) throw new IllegalArgumentException("unknown horizontal scrollbar policy")...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java
addNonNull(v);
addNonNull(v, JScrollPane.ROW_HEADER);
public void setRowHeader(JViewport v) { if (rowHeader == v) return; JViewport old = rowHeader; removeNonNull(old); rowHeader = v; addNonNull(v); firePropertyChange("rowHeader", old, v); sync(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java
addNonNull(v);
addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR);
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null) { BoundedRangeModel...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java
addNonNull(v);
addNonNull(v, JScrollPane.VIEWPORT);
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v); revalidate(); repai...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java
* (has to be instanciated via XDF::Array ONLY)
* (has to be instanciated via Array ONLY)
public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via XDF::Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (i...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/Locator.java/clean/src/gov/nasa/gsfc/adc/xdf/Locator.java
writeChar(sb.toString());
writeBuffer(sb.toString());
private void cvtToPDF() { try { openOutputFile(); // Create the printparameters to be used in the transform of the // input stream PrintParameterList printParms = new PrintParameterList(); printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToPDF() { try { openOutputFile(); // Create the printparameters to be used in the transform of the // input stream PrintParameterList printParms = new PrintParameterList(); printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
dw = new java.io.PrintStream(fw);
if (ifs.isSelected()) dw = new java.io.PrintStream(ifsfw); else dw = new java.io.PrintStream(fw);
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
System.out.println("Starting Output");
updateStatus("Starting Output");
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
cvtToText();
cvtToPDF();
public void run() { cvtToText(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
ifsSave.setEnabled(true);
private void doItemStateChanged(ItemEvent e) { pcPathInfo.setEnabled(false); ifsPathInfo.setEnabled(false); pcSave.setEnabled(false); if (e.getStateChange() == ItemEvent.SELECTED) { if (pc.isSelected()) { pcPathInfo.setEnabled(true); pcSave.setEnabled(true); ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
WizardPage page;
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
page = new WizardPage(WizardPage.PREVIOUS |
pagePDF = new WizardPage(WizardPage.PREVIOUS |
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
page.setName(LangTool.getString("spool.titlePage2"));
pagePDF.setName(LangTool.getString("spool.titlePage2PDF"));
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
page.getContentPane().add(pageTwo(), BorderLayout.CENTER); wizard.add(page);
pagePDF.getContentPane().add(pageTwoPDF(), BorderLayout.CENTER); wizard.add(pagePDF); pageText = new WizardPage(WizardPage.PREVIOUS | WizardPage.FINISH | WizardPage.CANCEL | WizardPage.HELP); pageText.setName(LangTool.getString("spool.titlePage2Txt")); pageText.getContentPane().add(pageTwoText(), BorderLayout.CENTER)...
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
two.add(statusBar,BorderLayout.SOUTH);
if (((String)cvtType.getSelectedItem()).equals( LangTool.getString("spool.toText"))) { twoText.add(statusBar,BorderLayout.SOUTH); e.setNewPage(pageText); } else { twoPDF.add(statusBar,BorderLayout.SOUTH); e.setNewPage(pagePDF); }
public void nextBegin(WizardEvent e) {// System.out.println(e.getCurrentPage().getName() + " Next Begin"); two.add(statusBar,BorderLayout.SOUTH); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
String fileName = pcPathInfo.getText().trim();
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
File f = File.createTempFile(number.getText().trim(),suffix,dir);
String tempFile = spooledFile.getText().trim() + '_' + jobName.getText().trim() + '_' + user.getText().trim() + '_' + spooledFileNumber.getText().trim() + '_' + number.getText().trim(); File f = File.createTempFile(tempFile,suffix,dir);
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
fw = new FileOutputStream(fileName);
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
bos = PdfWriter.getInstance(document,fw);
if (ifs.isSelected()) { bos = PdfWriter.getInstance(document,ifsfw); } else { bos = PdfWriter.getInstance(document,fw); }
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
System.out.println("Cannot open");
System.out.println("Cannot open 1 " + _ex.getMessage());
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
catch(Exception _ex) { System.out.println("Cannot open");
catch(Exception _ex2) { System.out.println("Cannot open 2 " + _ex2.getMessage());
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
contentPane.add(statusBar, BorderLayout.SOUTH); contentPane.add(spoolPanel, BorderLayout.CENTER);
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
spoolPanel.add(spoolData, BorderLayout.CENTER);
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
cvtType.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(ItemEvent e) { if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool.toText"))) nextButton.setEnabled(false); else nextButton.setEnabled(true); } });
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
spoolInfo.add(new JLabel(""));
spoolInfo.add(ifsSave);
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
e.setNewPage(page);
public void previousBegin(WizardEvent e){// System.out.println(e.getCurrentPage().getName() + " Prev Begin"); contentPane.add(statusBar,BorderLayout.SOUTH); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
statusBar.setText(stat);
cvtToText();
public void run() { statusBar.setText(stat); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9d37884a41d03e0f09109f25894f74c9df2e594b/SpoolExportWizard.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExportWizard.java
if (sessionArgs == null || sess.getCount() > 0) {
if (sessionArgs == null || sess.getCount() > 0 || sessions.containsKey("emul.showConnectDialog")) {
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
return (Toolkit.getDefaultToolkit(). createImage(new FilteredImageSource(src.getSource(), new GrayFilter(true, 0))));
return (Toolkit.getDefaultToolkit().createImage(new FilteredImageSource( src.getSource(), new GrayFilter(true, 0))));
public static Image createDisabledImage(Image src) { return (Toolkit.getDefaultToolkit(). createImage(new FilteredImageSource(src.getSource(), new GrayFilter(true, 0)))); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GrayFilter.java/buggy/core/src/classpath/javax/javax/swing/GrayFilter.java
out = conn.getObjectOutputStream();
out = conn.startObjectOutputStream();
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
in = conn.getObjectInputStream();
in = conn.startObjectInputStream();
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
if(cls == Void.TYPE){
if (returncode == RETURN_NACK) { returnval = in.readObject(); } else if(cls == Void.TYPE) {
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
in.readObject(); }else returnval = ((RMIObjectInputStream)in).readValue(cls);
} else { returnval = ((RMIObjectInputStream)in).readValue(cls);
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
catch (IOException e3) {
} catch (IOException e3) {
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
throw (Exception)returnval;
if (returncode == RETURN_NACK) throw (Exception)returnval; else throw new RemoteException("unexpected returncode: " + returncode);
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastRef.java
if (!( type().kind().value() == TCKind._tk_alias && has._type().kind().value() == kind ) )
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) throw new BAD_OPERATION("Extracting " + typeNamer.nameIt(kind) + " when stored " + type...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
public void insert_Value(Serializable x, TypeCode typecode)
public void insert_Value(Serializable x, TypeCode c_typecode) { if (typecode != null && typecode.kind() == TCKind.tk_value_box) { has = new gnuValueHolder(x, typecode); } else
public void insert_Value(Serializable x, TypeCode typecode) { type(typecode); insert_Value(x); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
}
public void insert_Value(Serializable x, TypeCode typecode) { type(typecode); insert_Value(x); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
has._read(input);
if (!(has instanceof universalHolder) && (kind == TCKind._tk_value_box)) { Field vField = has.getClass().getField("value"); BoxedValueHelper helper; try { Class helperClass = Class.forName(ObjectCreator.toHelperName(a_type.id())); helper = (BoxedValueHelper) helperClass.newInstance();
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
catch (BadKind ex)
catch (Exception ex)
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
throw new MARSHAL("Bad kind: " + ex.getMessage());
helper = null; } Object content = Vio.read(input, helper); vField.set(has, content); } else has._read(input);
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
catch (IOException ex)
catch (Exception ex)
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
throw new MARSHAL("IO exception: " + ex.getMessage());
MARSHAL m = new MARSHAL(); m.initCause(ex); throw m;
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
else if (xKind == TCKind._tk_null || xKind == TCKind._tk_objref || xKind == TCKind._tk_value || xKind == TCKind._tk_value_box ) output.write_long(0);
public void write_value(org.omg.CORBA.portable.OutputStream output) { if (has != null) has._write(output); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java
return new QuadSegment(P1.getX(), P1.getY(), cp.getX(), cp.getY(), P2.getX(), P2.getY());
QuadSegment segment = null; try { segment = (QuadSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); segment.cp = (Point2D) cp.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment;
public Object clone() { return new QuadSegment(P1.getX(), P1.getY(), cp.getX(), cp.getY(), P2.getX(), P2.getY()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/QuadSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/QuadSegment.java
conPath2 = new File(GlobalConfigure.instance().getProperty(
conPath2 = new File(GlobalConfigure.getInstance().getProperty(
public static void loadMacros(Session session, Macronizer macros, JMenu menu) { final Session ses = session; Vector mv = new Vector(); Action action; menu.addSeparator(); String[] macrosList = Macronizer.getMacroList(); for (int x = 0; x < macrosList.length; x++) { mv.add(macros...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d176b045eb10d934c5b8bbe4ce787a7bbc5a271e/LoadMacroMenu.java/clean/tn5250j/src/org/tn5250j/tools/LoadMacroMenu.java
scriptDir(GlobalConfigure.instance().getProperty(
scriptDir(GlobalConfigure.getInstance().getProperty(
public static void loadMacros(Session session, Macronizer macros, JMenu menu) { final Session ses = session; Vector mv = new Vector(); Action action; menu.addSeparator(); String[] macrosList = Macronizer.getMacroList(); for (int x = 0; x < macrosList.length; x++) { mv.add(macros...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d176b045eb10d934c5b8bbe4ce787a7bbc5a271e/LoadMacroMenu.java/clean/tn5250j/src/org/tn5250j/tools/LoadMacroMenu.java
public CheckboxMenuItem(String label, boolean state) { super(label); this.state = state; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
CheckboxMenuItem() { this("", false); }
public CheckboxMenuItem(String label, boolean state) { super(label); this.state = state; if (GraphicsEnvironment.isHeadless()) throw new HeadlessException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
public synchronized void addItemListener(ItemListener listener) {
addItemListener(ItemListener listener) {
public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); enableEvents(AWTEvent.ITEM_EVENT_MASK); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
}
}
public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); enableEvents(AWTEvent.ITEM_EVENT_MASK); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
public synchronized void setState(boolean state) {
setState(boolean state) {
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
if (peer != null) {
if (peer != null) {
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
cp.setState(state); }
cp.setState (state);
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
}
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxMenuItemPeer cp = (CheckboxMenuItemPeer) peer; cp.setState(state); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/buggy/core/src/classpath/java/java/awt/CheckboxMenuItem.java
public final void add(VmMethod method, int pc, int offset) { addressTable.add(method, pc, offset);
public final void add(VmMethod method, int pc, int offset, int inlineDepth) { addressTable.add(method, pc, offset, inlineDepth);
public final void add(VmMethod method, int pc, int offset) { addressTable.add(method, pc, offset); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f674dc620388d2013aaf9ed54e97f8ee02b418d/CompiledMethod.java/clean/core/src/core/org/jnode/vm/compiler/CompiledMethod.java
public Screen5250(Gui5250 gui, Properties props) { this.gui = gui; loadProps(props); try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
private void displayError (int ec) { saveHomePos = homePos; homePos = lastPos + numCols + 1; pendingInsert = true; gui.sendNegResponse2(ec); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff();
if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) {
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
text = bufferedKeys + text;
if (text != null) { text = bufferedKeys + text; }
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
bufferedKeys = "";
bufferedKeys = null;
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
while (strokenizer.hasMoreKeyStrokes() && !done) {
while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked && !isStatusErrorCode() && !done) {
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
if (s != null)
if (s != null) {
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
System.out.println(" mnemonic " + s);
System.out.println(" send keys mnemonic " + s);
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; setKBIndicatorOff(); simulateMnemonic(getMnemonicValue(text)); } ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public void setKeyboardLocked (boolean k) {// System.out.println(" lock it " + k); keyboardLocked = k; if (!keyboardLocked) { if (keysBuffered) { sendKeys(""); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public void setKeyboardLocked (boolean k) {// System.out.println(" lock it " + k); keyboardLocked = k; if (!keyboardLocked) { if (keysBuffered) { sendKeys(""); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public void setKeyboardLocked (boolean k) {// System.out.println(" lock it " + k); keyboardLocked = k; if (!keyboardLocked) { if (keysBuffered) { sendKeys(""); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
statusErrorCode = true; setKeyboardLocked(true);
setPrehelpState(true);
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
statusErrorCode = false; setKeyboardLocked(false);
setPrehelpState(false);
public void setStatus(byte attr,byte value,String s) { statusString = s; // draw the status information bi.setStatus(attr,value,s, fmWidth, fmHeight, lm, font, colorBg, ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null);
return false;
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); } boolean updateField = false; boolean numericError = false; boolean updatePos = fals...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/164fea1bcfa92d225150e31fe0e5d58d3d38cb23/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
return (flags & SYNTETIC) != 0; }
return (flags & SYNTHETIC) != 0; }
boolean isSyntetic() { return (flags & SYNTETIC) != 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/HTML.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTML.java
{
{
private static void unexpected(Exception ex) throws Error { throw new Error("This should never happen, report a bug", ex); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/HTML.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTML.java
{
{
public static Tag getTag(String tagName) { if (tagMap == null) { // Create the mao on demand. tagMap = new TreeMap(); Tag[] tags = getAllTags(); for (int i = 0; i < tags.length; i++) { tagMap.put(tags [ i ].toString(), tags [ i ]); } } return (Tag) tagMap....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/HTML.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTML.java
}
}
public static Tag getTag(String tagName) { if (tagMap == null) { // Create the mao on demand. tagMap = new TreeMap(); Tag[] tags = getAllTags(); for (int i = 0; i < tags.length; i++) { tagMap.put(tags [ i ].toString(), tags [ i ]); } } return (Tag) tagMap....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/HTML.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTML.java
if (stopMatchingIfSatisfied) break;
private boolean matchP(CharIndexed input, REMatch mymatch, boolean tryOnly) { REMatch.REMatchList newMatch = new REMatch.REMatchList(); REToken tk; for (int i=0; i < options.size(); i++) { // In order that the backtracking can work, // each option must be chained to the next token. // But the chain method ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
Thread printerThread = new PrinterThread(planes.screen, font, numCols,
Thread printerThread = new PrinterThread(this, font, numCols,
public final void printMe() { Thread printerThread = new PrinterThread(planes.screen, font, numCols, numRows, colorBg, defaultPrinter, (Session) gui); printerThread.start(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
sb.append(vt.getASCIIChar(abyte0[163 + f] & 0xff));
sb.append(vt.ebcdic2uni(abyte0[163 + f] & 0xff));
private boolean getMbrSize(String member) { boolean flag = true; if(ftpOutputStream == null) { printFTPInfo("Not connected to any server!"); return false; } if(!loggedIn) { printFTPInfo("Login was not successful! Aborting!"); return false; } Socket socket...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/FTP5250Prot.java/clean/tn5250j/src/org/tn5250j/tools/FTP5250Prot.java
public XDF getOwner (XDF obj) {
public XDF getOwner () {
public XDF getOwner (XDF obj) { return owner; }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a62fc9d60384d194d1d42f1e4cec7b45f8f90452/DocumentType.java/buggy/src/gov/nasa/gsfc/adc/xdf/DocumentType.java
if (c != null)
if (c != null)
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
focus = c.hasFocus();
focus = c.hasFocus();
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 8); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 10, y + 2, x + 10, y + 2);
g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 8); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 10, y + 2, x + 10, y + 2); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 8, y + 4, x + 8, y + 4);
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 8, y + 4, x + 8, y + 4); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 10, y + 6, x + 10, y + 6);
g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 10, y + 6, x + 10, y + 6);
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color);
Color savedColor = g.getColor(); AbstractButton b = (AbstractButton) c; if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getPrimaryControl()); g.fillRect(x + 2, y + 6, 7, 7); if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getBlack());...
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 2, y + 6, x + 6, y + 6); g.drawLine(x + 2, y + 6, x + 2, y + 11);
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
if (!b.getModel().isPressed()) { g.drawLine(x + 2, y + 6, x + 6, y + 6); g.drawLine(x + 2, y + 6, x + 2, y + 11); } g.setColor(savedColor);
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow());
Color savedColor = g.getColor(); AbstractButton b = (AbstractButton) c; if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getPrimaryControl()); g.fillRect(x + 2, y + 2, 10, 10); if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getBlack(...
public void paintIcon(Component c, Graphics g, int x, int y) { // draw the gray areas first g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 12); g.drawLine(x + 1, y + 13, x + 13, y + 13); g.dra...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.fillRect(x + 4, y + 9, 2, 2); g.fillRect(x + 9, y + 4, 2, 2); g.fillRect(x + 9, y + 9, 2, 2); g.fillRect(x + 5, y + 5, 5, 5);
g.fillRect(x + 5, y + 5, 4, 4); g.drawLine(x + 9, y + 4, x + 10, y + 4); g.drawLine(x + 9, y + 4, x + 9, y + 5); g.drawLine(x + 4, y + 9, x + 4, y + 10); g.drawLine(x + 4, y + 9, x + 5, y + 9); g.drawLine(x + 9, y + 8, x + 9, y + 10); g.drawLine(x + 8, y + 9, x + 10, y + 9);
public void paintIcon(Component c, Graphics g, int x, int y) { // draw the gray areas first g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 12); g.drawLine(x + 1, y + 13, x + 13, y + 13); g.dra...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 5, y + 10, x + 5, y + 10); g.drawLine(x + 6, y + 9, x + 7, y + 9); g.drawLine(x + 10, y + 5, x + 10, y + 5); g.drawLine(x + 9, y + 6, x + 9, y + 7); g.drawLine(x + 10, y + 10, x + 11, y + 10); g.drawLine(x + 10, y + 11, x + 10, y + 11);
if (!b.getModel().isPressed()) { g.drawLine(x + 5, y + 10, x + 5, y + 10); g.drawLine(x + 6, y + 9, x + 7, y + 9); g.drawLine(x + 10, y + 5, x + 10, y + 5); g.drawLine(x + 9, y + 6, x + 9, y + 7); g.drawLine(x + 10, y + 10, x + 11, y + 10); g.drawLine(x + 10, y + 11, x + 10, y + 11); } g.setColor(savedColor);
public void paintIcon(Component c, Graphics g, int x, int y) { // draw the gray areas first g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(x + 1, y + 1, x + 13, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 12); g.drawLine(x + 1, y + 13, x + 13, y + 13); g.dra...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java