rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
Object message, String title, int messageType)
Object message)
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
JOptionPane pane = new JOptionPane(message, messageType);
JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE);
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
JDialog dialog = pane.createDialog(parentComponent, title);
JDialog dialog = pane.createDialog(parentComponent, null);
public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val;
RefItem(ItemFactory factory) { super(factory);
private RefItem(int kind, Register reg, VmConstString val, int offsetToFP) { super(kind, reg, offsetToFP); this.value = val; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/RefItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/RefItem.java
return createConst(getValue());
return factory.createAConst(getValue());
protected WordItem cloneConstant() { return createConst(getValue()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/RefItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/RefItem.java
firePropertyChange(BLOCK_INCREMENT_CHANGED_PROPERTY, oldInc,
firePropertyChange("blockIncrement", oldInc,
public void setBlockIncrement(int blockIncrement) { if (blockIncrement != this.blockIncrement) { int oldInc = this.blockIncrement; this.blockIncrement = blockIncrement; firePropertyChange(BLOCK_INCREMENT_CHANGED_PROPERTY, oldInc, this.blockIncrement); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
oldModel.removeChangeListener(changeListener); model.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, model);
firePropertyChange("model", oldModel, model);
public void setModel(BoundedRangeModel newModel) { if (model != newModel) { BoundedRangeModel oldModel = model; model = newModel; oldModel.removeChangeListener(changeListener); model.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, model); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
firePropertyChange(ORIENTATION_CHANGED_PROPERTY, oldOrientation,
firePropertyChange("orientation", oldOrientation,
public void setOrientation(int orientation) { if (orientation != SwingConstants.HORIZONTAL && orientation != SwingConstants.VERTICAL) throw new IllegalArgumentException("orientation must be one of HORIZONTAL or VERTICAL"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePropertyChange(ORIENTATION_CHANGED_PROPERTY, oldOrientation, this.orientation); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
firePropertyChange(UNIT_INCREMENT_CHANGED_PROPERTY, oldInc,
firePropertyChange("unitIncrement", oldInc,
public void setUnitIncrement(int unitIncrement) { if (unitIncrement != this.unitIncrement) { int oldInc = this.unitIncrement; this.unitIncrement = unitIncrement; firePropertyChange(UNIT_INCREMENT_CHANGED_PROPERTY, oldInc, this.unitIncrement); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
public static Class loadClass (String codebases, String name)
public static Class loadClass (String name)
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundException e) { // class not found in the local classpath } if (codebases.length() == 0) //=="" { loader = defaultLoader; } else { loader = getClassLoader(codebases); } if (loader == null) { //do not throw NullPointerException throw new ClassNotFoundException ("Could not find class (" + name + ") at codebase (" + codebases + ")"); } return loader.loadClass (name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6ebf1f74ce34c04205e65bfd96c25a18c5a0861/RMIClassLoader.java/clean/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { return loader.loadClass (name); } catch (ClassNotFoundException e) { } if (codebases.length() == 0) { loader = defaultLoader; } else { loader = getClassLoader(codebases); } if (loader == null) { throw new ClassNotFoundException ("Could not find class (" + name + ") at codebase (" + codebases + ")"); } return loader.loadClass (name);
return loadClass ("", name);
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundException e) { // class not found in the local classpath } if (codebases.length() == 0) //=="" { loader = defaultLoader; } else { loader = getClassLoader(codebases); } if (loader == null) { //do not throw NullPointerException throw new ClassNotFoundException ("Could not find class (" + name + ") at codebase (" + codebases + ")"); } return loader.loadClass (name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6ebf1f74ce34c04205e65bfd96c25a18c5a0861/RMIClassLoader.java/clean/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException
public URLClassLoader(URL[] urls) throws SecurityException
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/37d5fed12204d348d94cd6409a12ac3d0787ccc3/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
super(parent);
super();
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/37d5fed12204d348d94cd6409a12ac3d0787ccc3/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
public StringTokenizer(String str, String delim)
public StringTokenizer(String str)
public StringTokenizer(String str, String delim) { this(str, delim, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
this(str, delim, false);
this(str, " \t\n\r\f", false);
public StringTokenizer(String str, String delim) { this(str, delim, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
public String nextToken() throws NoSuchElementException
public String nextToken(String delim) throws NoSuchElementException
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException();
this.delim = delim; return nextToken();
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java
public ClassNotFoundException(String s)
public ClassNotFoundException()
public ClassNotFoundException(String s) { this(s, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/ClassNotFoundException.java/buggy/core/src/classpath/java/java/lang/ClassNotFoundException.java
this(s, null);
this(null);
public ClassNotFoundException(String s) { this(s, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/ClassNotFoundException.java/buggy/core/src/classpath/java/java/lang/ClassNotFoundException.java
textComponent.setBackground(defaults.getColor(prefix + ".background")); textComponent.setForeground(defaults.getColor(prefix + ".foreground"));
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighlighter()); String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); textComponent.setBackground(defaults.getColor(prefix + ".background")); textComponent.setForeground(defaults.getColor(prefix + ".foreground")); textComponent.setMargin(defaults.getInsets(prefix + ".margin")); textComponent.setBorder(defaults.getBorder(prefix + ".border")); textComponent.setFont(defaults.getFont(prefix + ".font")); caret.setBlinkRate(defaults.getInt(prefix + ".caretBlinkRate")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
background = defaults.getColor(prefix + ".background"); inactiveBackground = defaults.getColor(prefix + ".inactiveBackground"); textComponent.setForeground(defaults.getColor(prefix + ".foreground")); textComponent.setDisabledTextColor (defaults.getColor(prefix + ".inactiveForeground"));
protected void installDefaults() { Caret caret = textComponent.getCaret(); if (caret == null) { caret = createCaret(); textComponent.setCaret(caret); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) textComponent.setHighlighter(createHighlighter()); String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); textComponent.setBackground(defaults.getColor(prefix + ".background")); textComponent.setForeground(defaults.getColor(prefix + ".foreground")); textComponent.setMargin(defaults.getInsets(prefix + ".margin")); textComponent.setBorder(defaults.getBorder(prefix + ".border")); textComponent.setFont(defaults.getFont(prefix + ".font")); caret.setBlinkRate(defaults.getInt(prefix + ".caretBlinkRate")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground);
protected void paintBackground(Graphics g) { g.setColor(textComponent.getBackground()); g.fillRect(0, 0, textComponent.getWidth(), textComponent.getHeight()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
{ elt = elem; }
{ elt = elem; }
public View(Element elem) { elt = elem; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
updateChildren(ec, ev, vf);
updateChildren(ec, ev, vf);
public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
{
{
public Container getContainer() { View parent = getParent(); if (parent == null) throw new AssertionError("The parent of a View must not be null."); return parent.getContainer(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
}
}
public Container getContainer() { View parent = getParent(); if (parent == null) throw new AssertionError("The parent of a View must not be null."); return parent.getContainer(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
{
{
public View getView(int index) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
}
}
public View getView(int index) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
{
{
public int getViewCount() { return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
}
}
public int getViewCount() { return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
{
{
public ViewFactory getViewFactory() { View parent = getParent(); return parent != null ? parent.getViewFactory() : null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
{
{
public void setParent(View parent) { this.parent = parent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
}
}
public void setParent(View parent) { this.parent = parent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
public EventListenerList() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/EventListenerList.java/buggy/core/src/classpath/javax/javax/swing/event/EventListenerList.java
Ext2Debugger.debug("FSEntryIterator()",2);
log.debug("FSEntryIterator()");
public FSEntryIterator(INode iNode) { //this.iNode = iNode; lastBlockIndex = -1; blockIndex = 0; //the byte index where the directory parsing has reached index=0; //the Ext2DirectoryRecord that has been read last current = null; Ext2Debugger.debug("FSEntryIterator()",2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2Debugger.debug("FSEntryIterator.hasNext()",3);
log.debug("FSEntryIterator.hasNext()");
public boolean hasNext() { Ext2Debugger.debug("FSEntryIterator.hasNext()",3); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( index ); try{ //read a new block if needed if(blockIndex != lastBlockIndex) { blockData = iNode.getDataBlock(blockIndex); lastBlockIndex = blockIndex; } //get the next directory record Ext2DirectoryRecord dr = new Ext2DirectoryRecord(blockData, blockOffset); index+=dr.getRecLen(); //inode nr=0 means the end of the directory if(dr.getINodeNr()!=0) { current = dr; return true; } else { Ext2Debugger.debug("FSEntryIterator.hasNext(): null inode",2); current = null; noMoreEntries=true; return false; } }catch(IOException e) { return false; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2Debugger.debug("FSEntryIterator.hasNext(): null inode",2);
log.debug("FSEntryIterator.hasNext(): null inode");
public boolean hasNext() { Ext2Debugger.debug("FSEntryIterator.hasNext()",3); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false; //read the inode number of the next entry: blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( index ); try{ //read a new block if needed if(blockIndex != lastBlockIndex) { blockData = iNode.getDataBlock(blockIndex); lastBlockIndex = blockIndex; } //get the next directory record Ext2DirectoryRecord dr = new Ext2DirectoryRecord(blockData, blockOffset); index+=dr.getRecLen(); //inode nr=0 means the end of the directory if(dr.getINodeNr()!=0) { current = dr; return true; } else { Ext2Debugger.debug("FSEntryIterator.hasNext(): null inode",2); current = null; noMoreEntries=true; return false; } }catch(IOException e) { return false; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2Debugger.debug("FSEntryIterator.next()",2);
log.debug("FSEntryIterator.next()");
public Object next() { Ext2Debugger.debug("FSEntryIterator.next()",2); if(current == null) { //hasNext actually reads the next element if(!hasNext()) throw new NoSuchElementException(); } Ext2DirectoryRecord dr = current; current = null; try{ return new Ext2Entry( ((Ext2FileSystem)getFileSystem()).getINode(dr.getINodeNr()), dr.getName(), dr.getType() ); }catch(IOException e) { throw new NoSuchElementException(); }catch(FileSystemException e) { throw new NoSuchElementException(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2Debugger.debug("Ext2Directory.Iterator()",2);
log.debug("Ext2Directory.Iterator()");
public Iterator iterator() { Ext2Debugger.debug("Ext2Directory.Iterator()",2); return new FSEntryIterator(iNode); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public UnsupportedOperationException(String s) { super(s);
public UnsupportedOperationException() {
public UnsupportedOperationException(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/UnsupportedOperationException.java/buggy/core/src/classpath/java/java/lang/UnsupportedOperationException.java
public Object copyObject(Object obj, javax.rmi.ORB orb)
public Object copyObject(Object obj, ORB orb)
public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
if (obj instanceof String) return obj; else if (obj == null) return null; else if (obj instanceof String[] || obj instanceof String[][] || obj instanceof String[][][]) { return ((Object[]) obj).clone(); } else if (obj instanceof Serializable) { try { ByteArrayOutputStream a = new ByteArrayOutputStream(); ObjectOutputStream ou = new ObjectOutputStream(a); ou.writeObject(obj); ou.close(); ObjectInputStream input = new ObjectInputStream( new ByteArrayInputStream(a.toByteArray())); return input.readObject(); } catch (Exception ex) { RemoteException rex = new RemoteException("Cannot copy " + obj); throw rex; } } else return obj;
public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb)
public Object[] copyObjects(Object[] obj, ORB orb)
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
return (Object[]) copyObject(obj, orb);
public Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
if (m_ValueHandler == null) m_ValueHandler = (ValueHandler) DelegateFactory.getInstance(DelegateFactory.VALUEHANDLER); return m_ValueHandler;
public ValueHandler createValueHandler() { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
return RMIClassLoader.getClassAnnotation(clz);
public String getCodebase(Class clz) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
synchronized (m_Targets) { Tie tie; TieTargetRecord r = ((TieTargetRecord) m_Targets.get(target)); if (r == null) { if (target instanceof Stub) { tie = StubDelegateImpl.getTieFromStub(target); registerTarget(tie, target); } else { String tieClassName = getTieClassName(target.getClass().getName()); try { Class tieClass = Util.loadClass(tieClassName, null, target.getClass().getClassLoader()); tie = (Tie) tieClass.newInstance(); } catch (Exception e) { MARSHAL m = new MARSHAL("Unable to instantiate " + tieClassName); m.minor = Minor.TargetConversion; m.initCause(e); throw m; } tie.setTarget(target); registerTarget(tie, target); } } else tie = r.tie; return tie; }
public Tie getTie(Remote target) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
try { return stub._is_local(); } catch (SystemException e) { RemoteException rex = new RemoteException(); rex.initCause(e); throw rex; }
public boolean isLocal(Stub stub) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else
if (loader == null) loader = Thread.currentThread().getContextClassLoader(); String p_useCodebaseOnly = System.getProperty("java.rmi.server.useCodebaseOnly"); boolean useCodebaseOnly = p_useCodebaseOnly != null && p_useCodebaseOnly.trim().equalsIgnoreCase("true"); try { if (remoteCodebase != null && !useCodebaseOnly)
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
catch (MalformedURLException e1)
catch (Exception e)
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new ClassNotFoundException(className, e1);
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
catch(ClassNotFoundException e2)
try
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
if(loader != null) return loader.loadClass(className); else return null;
if (remoteCodebase == null || useCodebaseOnly) return RMIClassLoader.loadClass(remoteCodebase, className);
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
catch (Exception e) { } if (loader != null) return Class.forName(className, true, loader); throw new ClassNotFoundException(className + " at " + remoteCodebase);
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; case CompletionStatus._COMPLETED_YES: status = "Yes"; break; default: status = "Unexpected completion status " + ex.completed.value();
public RemoteException mapSystemException(SystemException ex) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
String name = ex.getClass().getName(); if (name.startsWith(m_StandardPackage)) name = name.substring(m_StandardPackage.length()); String message = "CORBA " + name + " 0x" + Integer.toHexString(ex.minor) + " " + status; if (ex instanceof COMM_FAILURE) rex = new MarshalException(message, ex); else if (ex instanceof INV_OBJREF) { rex = new NoSuchObjectException(message); rex.initCause(ex); } else if (ex instanceof NO_PERMISSION) rex = new AccessException(message, ex); else if (ex instanceof MARSHAL) rex = new MarshalException(message, ex); else if (ex instanceof BAD_PARAM) rex = new MarshalException(message, ex); else if (ex instanceof OBJECT_NOT_EXIST) { rex = new NoSuchObjectException(message); rex.initCause(ex); } else if (ex instanceof TRANSACTION_REQUIRED) { rex = new TransactionRequiredException(message); rex.initCause(ex); } else if (ex instanceof TRANSACTION_ROLLEDBACK) { rex = new TransactionRolledbackException(message); rex.initCause(ex); } else if (ex instanceof INVALID_TRANSACTION) { rex = new InvalidTransactionException(message); rex.initCause(ex); } else if (ex instanceof UNKNOWN) rex = wrapException(ex.getCause()); else rex = new RemoteException(message, ex); return rex; }
public RemoteException mapSystemException(SystemException ex) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public Object readAny(InputStream in)
public Object readAny(InputStream input)
public Object readAny(InputStream in) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
return input.read_any();
public Object readAny(InputStream in) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
synchronized (m_Ties) { synchronized (m_Targets) { TieTargetRecord r = (TieTargetRecord) m_Ties.get(tie); if (r == null) { r = new TieTargetRecord(tie); m_Ties.put(tie, r); } if (target != null) { r.add(target); m_Targets.put(target, r);
public void registerTarget(Tie tie, Remote target) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
} } }
public void registerTarget(Tie tie, Remote target) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
synchronized (m_Ties) { synchronized (m_Targets) { TieTargetRecord r = ((TieTargetRecord) m_Targets.get(target)); if (r != null) { if (target instanceof org.omg.CORBA.Object) r.tie.orb().disconnect((org.omg.CORBA.Object) target); if (r.unused()) { m_Targets.remove(target); m_Ties.remove(r.tie); r.tie.deactivate(); if (r.tie.orb() instanceof ORB_1_4) { ORB_1_4 orb = (ORB_1_4) r.tie.orb(); if (target instanceof org.omg.CORBA.Object) { activeObjectMap.Obj record = orb.rootPOA.findObject((org.omg.CORBA.Object) target); if (record != null && record.servant == r.tie && record.poa instanceof gnuPOA) { ((gnuPOA) record.poa).aom.remove(record.key); record.deactivated = true; record.servant = null; } } } } } } }
public void unexportObject(Remote target) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public RemoteException wrapException(Throwable orig)
public RemoteException wrapException(Throwable ex) throws RuntimeException
public RemoteException wrapException(Throwable orig) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
if (ex instanceof RuntimeException) throw (RuntimeException) ex; else if (ex instanceof Error) return new ServerError(ex.getMessage(), (Error) ex); else if (ex instanceof RemoteException) return new ServerException(ex.getMessage(), (Exception) ex); else if (ex instanceof SystemException) return wrapException(mapSystemException((SystemException) ex)); else return new UnexpectedException("Unexpected", (Exception) ex);
public RemoteException wrapException(Throwable orig) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public void writeAbstractObject(OutputStream out, Object obj)
public void writeAbstractObject(OutputStream output, Object object)
public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
((org.omg.CORBA_2_3.portable.OutputStream) output).write_abstract_interface(object);
public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public void writeAny(OutputStream out, Object obj)
public void writeAny(OutputStream output, Object object)
public void writeAny(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
Any any = output.orb().create_any(); if (object == null) { generalTypeCode t = new generalTypeCode(TCKind.tk_abstract_interface); t.setId("IDL:omg.org/CORBA/AbstractBase:1.0"); t.setName(""); any.type(t); output.write_any(any); return; } else if (object instanceof org.omg.CORBA.Object && !(object instanceof Remote)) { boolean inserted = ObjectCreator.insertWithHelper(any, object); if (inserted) { output.write_any(any); return; } } if (object instanceof org.omg.CORBA.Object) writeAnyAsRemote(output, object); else if (object instanceof Serializable) { any.insert_Value((Serializable) object); output.write_any(any); } else { MARSHAL m = new MARSHAL(object.getClass().getName() + " must be CORBA Object, Remote or Serializable"); m.minor = Minor.NonSerializable; throw m; }
public void writeAny(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public void writeRemoteObject(OutputStream out, Object obj)
public void writeRemoteObject(OutputStream an_output, Object object)
public void writeRemoteObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
throw new Error("Not implemented for UtilDelegate");
org.omg.CORBA_2_3.portable.OutputStream output = (org.omg.CORBA_2_3.portable.OutputStream) an_output; if (object == null) an_output.write_Object(null); else if (isTieRequired(object)) { Class fc = getExportedInterface(object); exportTie(output, object, fc); } else if (object instanceof org.omg.CORBA.Object) { ensureOrbRunning(output); an_output.write_Object((org.omg.CORBA.Object) object); } else if (object != null && object instanceof Serializable) writeFields(an_output, (Serializable) object);
public void writeRemoteObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException
public static Object getInstance(String type) throws InternalError
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java
Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class");
String propertyName = "javax.rmi.CORBA." + type + "Class"; String dcname = System.getProperty(propertyName);
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java
Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r;
Class dclass = ObjectCreator.forName(dcname); return dclass.newInstance();
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java
throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e);
InternalError ierr = new InternalError("Exception when trying to get " + type + "delegate instance:" + dcname); ierr.initCause(e); throw ierr;
public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader)
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader)
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Util.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Util.java
if(delegate != null)
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Util.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Util.java
else throw new ClassNotFoundException(className + ": delegate == null");
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Util.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Util.java
boolean isLocal(Stub stub) throws RemoteException;
boolean isLocal(Stub stub) throws RemoteException;
boolean isLocal(Stub stub) throws RemoteException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegate.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/UtilDelegate.java
Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException;
Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException;
Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegate.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/UtilDelegate.java
public boolean startsWith(String prefix)
public boolean startsWith(String prefix, int toffset)
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
return regionMatches(false, 0, prefix, 0, prefix.count);
return regionMatches(false, toffset, prefix, 0, prefix.count);
public boolean startsWith(String prefix) { return regionMatches(false, 0, prefix, 0, prefix.count); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
void unexportObject(Remote target);
void unexportObject(Remote target) throws NoSuchObjectException;
void unexportObject(Remote target);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegate.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/UtilDelegate.java
javax.rmi.ORB orb();
ORB orb();
javax.rmi.ORB orb();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Tie.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Tie.java
void deactivate();
void deactivate() throws NoSuchObjectException;
void deactivate();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Tie.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Tie.java
Class helperClass = Class.forName(helperClassName);
Class helperClass = forName(helperClassName);
public static boolean insertWithHelper(Any into, Object object) { try { String helperClassName = object.getClass().getName() + "Helper"; Class helperClass = Class.forName(helperClassName); Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getClass() } ); insert.invoke(null, new Object[] { into, object }); return true; } catch (Exception exc) { // Failed due some reason. return false; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java
Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getClass() } );
Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getClass() });
public static boolean insertWithHelper(Any into, Object object) { try { String helperClassName = object.getClass().getName() + "Helper"; Class helperClass = Class.forName(helperClassName); Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getClass() } ); insert.invoke(null, new Object[] { into, object }); return true; } catch (Exception exc) { // Failed due some reason. return false; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java
public abstract void insert_Value(Serializable x);
public abstract void insert_Value(Serializable x, TypeCode typecode);
public abstract void insert_Value(Serializable x);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72c2f223affb33a2850592b25490f4663c651bee/Any.java/buggy/core/src/classpath/org/org/omg/CORBA/Any.java
(Frame)me.frame);
(Frame)me.getParentView((Session)this));
private void doAttributes() { SessionAttributes sa = new SessionAttributes(propFileName, defaultProps, (Frame)me.frame); sa.addPropertyChangeListener(screen); sa.addPropertyChangeListener(this); sa.showIt(); defaultProps = sa.getProperties(); sa.removePropertyChangeListener(screen); sa.removePropertyChangeListener(this); getFocusForMe(); sa = null; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
XTFRFile xtrf = new XTFRFile(me.frame,vt);
XTFRFile xtrf = new XTFRFile(me.getParentView((Session)this),vt);
private void doMeTransfer() { XTFRFile xtrf = new XTFRFile(me.frame,vt); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage());
kc = new KeyConfigure(me.getParentView((Session)this),macrosList,vt.getCodePage());
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.frame,null,vt.getCodePage()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
kc = new KeyConfigure(me.frame,null,vt.getCodePage());
kc = new KeyConfigure(me.getParentView((Session)this),null,vt.getCodePage());
private void mapMeKeys() { KeyConfigure kc; if (macros.isMacrosExist()) { String[] macrosList = macros.getMacroList(); kc = new KeyConfigure(me.frame,macrosList,vt.getCodePage()); } else kc = new KeyConfigure(me.frame,null,vt.getCodePage()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
SendEMailDialog semd = new SendEMailDialog(me.frame,screen);
SendEMailDialog semd = new SendEMailDialog(me.getParentView((Session)this),screen);
private void sendScreenEMail() { SendEMailDialog semd = new SendEMailDialog(me.frame,screen); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
me.frame,
me.getParentView((Session)this),
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.getInstance(); CollationKey key = null; Set set = new TreeSet(); for (int x =0;x < 256; x++) { char c = vt.ebcdic2uni(x); char ac = vt.getASCIIChar(x); if (!Character.isISOControl(ac)) { sb.setLength(0); if (Integer.toHexString(ac).length() == 1){ sb.append("0x0" + Integer.toHexString(ac).toUpperCase()); } else { sb.append("0x" + Integer.toHexString(ac).toUpperCase()); } sb.append(" - " + c); key = collator.getCollationKey(sb.toString()); set.add(key); } } Iterator iterator = set.iterator(); while (iterator.hasNext()) { CollationKey keyc = (CollationKey)iterator.next(); listModel.addElement(keyc.getSourceString()); } //Create the list and put it in a scroll pane JList hm = new JList(listModel); hm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); hm.setSelectedIndex(0); JScrollPane listScrollPane = new JScrollPane(hm); listScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); listScrollPane.setSize(40,100); srp.add(listScrollPane,BorderLayout.CENTER); Object[] message = new Object[1]; message[0] = srp; String[] options = {LangTool.getString("hm.optInsert"), LangTool.getString("hm.optCancel")}; int result = 0; result = JOptionPane.showOptionDialog( me.frame, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("hm.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.INFORMATION_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons// options[0] // option that should be made into a default button ); switch(result) { case 0: // Insert character String k = ""; k += ((String)hm.getSelectedValue()).charAt(7); screen.sendKeys(k); break; case 1: // Cancel// System.out.println("Cancel"); break; default: break; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
public String toLowerCase()
public String toLowerCase(Locale loc)
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
return toLowerCase(Locale.getDefault());
boolean turkish = "tr".equals(loc.getLanguage()); int i = count; int x = offset - 1; while (--i >= 0) { char ch = value[++x]; if ((turkish && ch == '\u0049') || ch != Character.toLowerCase(ch)) break; } if (i < 0) return this; char[] newStr = (char[]) value.clone(); do { char ch = value[x]; newStr[x++] = (turkish && ch == '\u0049') ? '\u0131' : Character.toLowerCase(ch); } while (--i >= 0); return new String(newStr, offset, count, true);
public String toLowerCase() { return toLowerCase(Locale.getDefault()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
public int indexOf(String str)
public int indexOf(int ch)
public int indexOf(String str) { return indexOf(str, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
return indexOf(str, 0);
return indexOf(ch, 0);
public int indexOf(String str) { return indexOf(str, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java
public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr);
public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke);
public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/KeyMapper.java/buggy/tn5250j/src/org/tn5250j/tools/KeyMapper.java
System.out.println("getKeyStrokeText " + lastKeyMnemonic);
public final static String getKeyStrokeText(KeyEvent ke,boolean isAltGr) { if (!workStroke.equals(ke,isAltGr)) { workStroke.setAttributes(ke,isAltGr); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } return lastKeyMnemonic; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/KeyMapper.java/buggy/tn5250j/src/org/tn5250j/tools/KeyMapper.java
return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched;
if (matched == null || matched.length() == 0) { String prevMatched = match.group(group -1); if (prevMatched == null || prevMatched.length() == 0) return null; else return ""; } return matched;
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/URI.java/buggy/core/src/classpath/java/java/net/URI.java