rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
white = (c == ' ' || c == '\t' || c == '\n' || c == '\r');
white = (c == 0x20 || c == 0x09 || c == 0x0a || c == 0x0d);
private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == ' ' || c == '\t' || c == ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
char c = readCh();
int c = readCh();
private boolean tryRead(char delim) throws IOException, XMLStreamException { mark(1); char c = readCh(); if (delim != c) { reset(); return false; } return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r');
int c = readCh(); while (c == -1 && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == 0x20 || c == 0x09 || c == 0x0a || c == 0x0d);
private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
else if (c == '\uffff') { if (inputStack.size() > 1) popInput(); else throw new EOFException(); }
private boolean tryWhitespace() throws IOException, XMLStreamException { boolean white; boolean ret = false; do { mark(1); char c = readCh(); white = (c == ' ' || c == '\t' || c == '\n' || c == '\r'); if (white) ret = true; else if (c == '\uffff') ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
public abstract IntBuffer put (int b);
public IntBuffer put (IntBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining ()); if (src.remaining () > 0) { int[] toPut = new int [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
public abstract IntBuffer put (int b);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/IntBuffer.java/buggy/core/src/classpath/java/java/nio/IntBuffer.java
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyPairGenerator.java/buggy/core/src/classpath/java/java/security/KeyPairGenerator.java
public static KeyPairGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} } throw new NoSuchAlgorith...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/KeyPairGenerator.java/buggy/core/src/classpath/java/java/security/KeyPairGenerator.java
return super.hashCode ();
int hashCode = get(position()) + 31; int multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (get(i) + 30)*multiplier; } return hashCode;
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/IntBuffer.java/clean/core/src/classpath/java/java/nio/IntBuffer.java
final public static IntBuffer wrap (int[] array, int offset, int length)
public static final IntBuffer wrap (int[] array, int offset, int length)
final public static IntBuffer wrap (int[] array, int offset, int length) { return new IntBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/IntBuffer.java/clean/core/src/classpath/java/java/nio/IntBuffer.java
private Channels() {}
private Channels() { }
private Channels() {}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/Channels.java/clean/core/src/classpath/java/java/nio/channels/Channels.java
if (ch instanceof FileChannelImpl) return newInputStream((FileChannelImpl) ch); return new ChannelInputStream(ch);
return VMChannels.newInputStream(ch);
public static InputStream newInputStream(ReadableByteChannel ch) { if (ch instanceof FileChannelImpl) return newInputStream((FileChannelImpl) ch); return new ChannelInputStream(ch); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/Channels.java/clean/core/src/classpath/java/java/nio/channels/Channels.java
if (ch instanceof FileChannelImpl) return newOutputStream((FileChannelImpl) ch); return new ChannelOutputStream(ch);
return VMChannels.newOutputStream(ch);
public static OutputStream newOutputStream(WritableByteChannel ch) { if (ch instanceof FileChannelImpl) return newOutputStream((FileChannelImpl) ch); return new ChannelOutputStream(ch); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/Channels.java/clean/core/src/classpath/java/java/nio/channels/Channels.java
menuBar.setOpaque(true);
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuBar.setBackground(defaults.getColor("MenuBar.background")); menuBar.setBorder(defaults.getBorder("MenuBar.border")); menuBar.setFont(defaults.getFont("MenuBar.font")); menuBar.setForeground(defaults.getCol...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuBarUI.java
LookAndFeelInfo(String name,
public LookAndFeelInfo(String name,
LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java
String getClassName() { return clazz; }
public String getClassName() { return clazz; }
String getClassName() { return clazz; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java
String getName() { return name; }
public String getName() { return name; }
String getName() { return name; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java
System.out.println("UIManager.getDim"); return new Dimension(200,100);
return (Dimension) getLookAndFeel().getDefaults().get(key);
public static Dimension getDimension(Object key) { System.out.println("UIManager.getDim"); return new Dimension(200,100); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java
public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; }
public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != null) { int maxWidth; menuBarSize = menuBar.getP...
public Dimension preferredLayoutSize ( Container c ) { Dimension p = super.preferredLayoutSize(c); return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
setBackground(UIManager.getColor("control"));
JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
JRootPane() { setLayout(createRootLayout()); setBackground(UIManager.getColor("control")); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); //System.out.println("don't do that !"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
System.out.println("Created ContentPane: " + p);
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); // p.setVisible(true); System.out.println("Created ContentPane: " + p); return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
System.out.println("created the glasspane: "+p);
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); System.out.println("created the glasspane: "+p); return p; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
l.setLayout(null);
JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); return l; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
{ return "RootPaneUI"; }
{ return "RootPaneUI"; }
public String getUIClassID() { return "RootPaneUI"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
{ menuBar = m; }
{ menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
void setJMenuBar(JMenuBar m) { menuBar = m; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
public FSEntryIterator(INode iNode) { lastBlockIndex = -1; blockIndex = 0; index=0; current = null; log.debug("FSEntryIterator()");
public FSEntryIterator(INode iNode)throws IOException { Ext2File directoryFile = new Ext2File(iNode); data = new byte[(int)directoryFile.getLength()]; directoryFile.read(0, data, 0, (int)directoryFile.getLength()); index = 0;
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; log.debug("FSEntryIterator()"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
log.debug("FSEntryIterator.hasNext()"); if(noMoreEntries) return false; if(index>=iNode.getSize()) return false;
Ext2DirectoryRecord dr; do { if(index>=iNode.getSize()) return false;
public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); 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( ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
blockIndex = Ext2Directory.this.translateToBlock( index ); blockOffset= Ext2Directory.this.translateToOffset( index ); try{ if(blockIndex != lastBlockIndex) { blockData = iNode.getDataBlock(blockIndex); lastBlockIndex = blockIndex; } Ext2DirectoryRecord dr = new Ext2DirectoryRecord(blockData, blockOffset); index+=...
dr = new Ext2DirectoryRecord(data, index, index); index+=dr.getRecLen(); } while(dr.getINodeNr()==0); current = dr; return true;
public boolean hasNext() { log.debug("FSEntryIterator.hasNext()"); 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( ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
log.debug("FSEntryIterator.next()");
public Object next() { log.debug("FSEntryIterator.next()"); 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())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
dr.getName(), dr.getType() );
dr.getName(), dr.getType(), fs );
public Object next() { log.debug("FSEntryIterator.next()"); 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())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
throw new NoSuchElementException();
throw new NoSuchElementException("Root cause: "+e.getMessage());
public Object next() { log.debug("FSEntryIterator.next()"); 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())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
throw new NoSuchElementException();
throw new NoSuchElementException("Root cause: "+e.getMessage());
public Object next() { log.debug("FSEntryIterator.next()"); 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())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public Ext2Directory(INode iNode) {
public Ext2Directory(INode iNode, Ext2FileSystem fs) {
public Ext2Directory(INode iNode) { this.iNode=iNode; valid=true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
this.fs = fs; log.setLevel(Level.DEBUG); if((iNode.getFlags() & Ext2Constants.EXT2_INDEX_FL)== 1) mode = Ext2FileSystem.RO; else mode = fs.getMode(); log.debug("directory size: "+iNode.getSize());
public Ext2Directory(INode iNode) { this.iNode=iNode; valid=true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
throw new IOException("EXT2 implementation is currently readonly");
if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); INode newINode; Ext2DirectoryRecord dr; try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int)iNode.getGroup(), Ext2Cons...
public FSEntry addDirectory(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
throw new IOException("EXT2 implementation is currently readonly");
if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); INode newINode; Ext2DirectoryRecord dr; try{ int rights = 0xFFFF & (Ext2Constants.EXT2_S_IRWXU | Ext2Constants.EXT2_S_IRWXG | Ext2Constants.EXT2_S_IRWXO); newINode = fs.createINode((int)iNode.getGroup(), Ext2Cons...
public FSEntry addFile(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public FSEntry getEntry(String name) {
public FSEntry getEntry(String name) throws IOException{
public FSEntry getEntry(String name) { //parse the directory and search for the file Iterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = (FSEntry)iterator.next(); if(entry.getName().equals(name)) return entry; } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public Iterator iterator() {
public Iterator iterator() throws IOException {
public Iterator iterator() { log.debug("Ext2Directory.Iterator()"); return new FSEntryIterator(iNode); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
throw new IOException("EXT2 implementation is currently readonly");
if(getMode()==Ext2FileSystem.RO) throw new IOException("Filesystem or directory is mounted read-only!"); throw new IOException("remove not yet implemented");
public void remove(String name) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public Ext2DirectoryRecord(byte[] data, int offset) { iNodeNr = (int) Ext2Utils.get32(data, offset); recLen = Ext2Utils.get16(data, offset + 4); nameLen = Ext2Utils.get8(data, offset + 6); type = Ext2Utils.get8(data, offset + 7); name = new StringBuffer(); if (iNodeNr != 0) { for (int i = 0; i < nameLen; i++) name.ap...
public Ext2DirectoryRecord(byte[] data, int offset, int fileOffset) { this.data = data; this.offset = offset; this.fileOffset = fileOffset; /* byte[] newData = new byte[getRecLen()]; System.arraycopy(data, offset, newData, 0, getRecLen()); this.data = newData; setOffset(0); */
public Ext2DirectoryRecord(byte[] data, int offset) { iNodeNr = (int) Ext2Utils.get32(data, offset); recLen = Ext2Utils.get16(data, offset + 4); nameLen = Ext2Utils.get8(data, offset + 6); type = Ext2Utils.get8(data, offset + 7); name = new StringBuffer(); if (iNodeNr != 0) { //XXX character conversion for (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2DirectoryRecord.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2DirectoryRecord.java
return recLen;
return Ext2Utils.get16(data, offset+4);
public int getRecLen() { return recLen; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2DirectoryRecord.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2DirectoryRecord.java
return iNodeNr;
return (int)Ext2Utils.get32(data, offset);
public int getINodeNr() { return iNodeNr; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2DirectoryRecord.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2DirectoryRecord.java
StringBuffer name = new StringBuffer(); if(getINodeNr()!=0) { for(int i=0; i<getNameLen(); i++) name.append( (char)Ext2Utils.get8(data, offset+8+i) ); log.debug("Ext2DirectoryRecord(): iNode="+getINodeNr()+", name="+name); }
public String getName() { return name.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2DirectoryRecord.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2DirectoryRecord.java
public short getType() { return type;
public int getType() { return Ext2Utils.get8(data, offset+7);
public short getType() { return type; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2DirectoryRecord.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2DirectoryRecord.java
public static FontMetrics getFontMetrics ( Font font ) { return Toolkit.getDefaultToolkit().getFontMetrics(font); }
public static FontMetrics getFontMetrics(Font font) { return Toolkit.getDefaultToolkit().getFontMetrics(font); }
public static FontMetrics getFontMetrics ( Font font ) { return Toolkit.getDefaultToolkit().getFontMetrics(font); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/SwingUtilities.java/clean/core/src/classpath/javax/javax/swing/SwingUtilities.java
static void updateComponentTreeUI(JFrame comp) { }
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp instanceof JComponent) ((JComponent)comp).updateUI();...
static void updateComponentTreeUI(JFrame comp) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/SwingUtilities.java/clean/core/src/classpath/javax/javax/swing/SwingUtilities.java
return put((PrinterStateReason) reason, (Severity) severity);
return super.put((PrinterStateReason) reason, (Severity) severity);
public Object put(Object reason, Object severity) { if (reason == null) throw new NullPointerException("reason is null"); if (severity == null) throw new NullPointerException("severity is null"); return put((PrinterStateReason) reason, (Severity) severity); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/PrinterStateReasons.java/clean/core/src/classpath/javax/javax/print/attribute/standard/PrinterStateReasons.java
private void updateLFN() {
private void updateLFN() throws IOException{
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
int size = destination.size();
final int size = destination.size(); if(entries.size()<size){ if (!canChangeSize(size)) { throw new IOException("Directory is full"); } } boolean useAdd=false;
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
entries.set(i, destination.get(i));
if(!useAdd){ try{ entries.set(i, destination.get(i)); }catch(ArrayIndexOutOfBoundsException aEx){ useAdd=true; } } if(useAdd){ entries.add(i, destination.get(i)); }
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
int entireSize = entries.size();
final int entireSize = entries.size();
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
init();
public RasterGraphics(WritableRaster r, ColorModel cm) { raster = r; colorModel = cm; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/RasterGraphics.java/clean/core/src/classpath/gnu/gnu/java/awt/java2d/RasterGraphics.java
protected AccessibleContainerHandler() { }
protected AccessibleContainerHandler() { }
protected AccessibleContainerHandler() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void componentAdded(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, null, e.getChild()); }
public void componentAdded(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange (ACCESSIBLE_CHILD_PROPERTY, null, e.getChild()); }
public void componentAdded(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, null, e.getChild()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void componentRemoved(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null); }
public void componentRemoved(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange (ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null); }
public void componentRemoved(ContainerEvent e) { AccessibleAWTContainer.this.firePropertyChange(ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
protected AccessibleAWTContainer() { Container.this.addContainerListener(accessibleContainerHandler); }
protected AccessibleAWTContainer() { Container.this.addContainerListener(accessibleContainerHandler); }
protected AccessibleAWTContainer() { Container.this.addContainerListener(accessibleContainerHandler); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Accessible getAccessibleAt(Point p) { Component c = getComponentAt(p.x, p.y); return c != Container.this && c instanceof Accessible ? (Accessible) c : null; }
public Accessible getAccessibleAt(Point p) { Component c = getComponentAt(p.x, p.y); return c != Container.this && c instanceof Accessible ? (Accessible) c : null; }
public Accessible getAccessibleAt(Point p) { Component c = getComponentAt(p.x, p.y); return c != Container.this && c instanceof Accessible ? (Accessible) c : null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Accessible getAccessibleChild(int i) { synchronized (getTreeLock()) { if (component == null) return null; int index = -1; while (i >= 0 && ++index < component.length) if (component[index] instanceof Accessible) i--; if (i < 0) return (Accessible) component[index]; return null; } }
public Accessible getAccessibleChild(int i) { synchronized (getTreeLock ()) { if (component == null) return null; int index = -1; while (i >= 0 && ++index < component.length) if (component[index] instanceof Accessible) i--; if (i < 0) return (Accessible) component[index]; return null; } }
public Accessible getAccessibleChild(int i) { synchronized (getTreeLock()) { if (component == null) return null; int index = -1; while (i >= 0 && ++index < component.length) if (component[index] instanceof Accessible) i--; if (i < 0) return (Accessible) component[index]; return null;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public int getAccessibleChildrenCount() { synchronized (getTreeLock()) { int count = 0; int i = component == null ? 0 : component.length; while (--i >= 0) if (component[i] instanceof Accessible) count++; return count; } }
public int getAccessibleChildrenCount() { synchronized (getTreeLock ()) { int count = 0; int i = component == null ? 0 : component.length; while (--i >= 0) if (component[i] instanceof Accessible) count++; return count; } }
public int getAccessibleChildrenCount() { synchronized (getTreeLock()) { int count = 0; int i = component == null ? 0 : component.length; while (--i >= 0) if (component[i] instanceof Accessible) count++; return count; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void visit(Component c, Graphics gfx) { c.paintAll(gfx); }
public void visit(Component c, Graphics gfx) { c.paintAll(gfx); }
public void visit(Component c, Graphics gfx) { c.paintAll(gfx); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void visit(Component c, Graphics gfx) { c.paint(gfx); }
public void visit(Component c, Graphics gfx) { c.paint(gfx); }
public void visit(Component c, Graphics gfx) { c.paint(gfx); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void visit(Component c, Graphics gfx) { c.printAll(gfx); }
public void visit(Component c, Graphics gfx) { c.printAll(gfx); }
public void visit(Component c, Graphics gfx) { c.printAll(gfx); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void visit(Component c, Graphics gfx) { c.print(gfx); }
public void visit(Component c, Graphics gfx) { c.print(gfx); }
public void visit(Component c, Graphics gfx) { c.print(gfx); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Container() { }
public Container() { }
public Container() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Component add(Component comp) { addImpl(comp, null, -1); return comp; }
public Component add(Component comp) { addImpl(comp, null, -1); return comp; }
public Component add(Component comp) { addImpl(comp, null, -1); return comp; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); }
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); }
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException();
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException();
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (comp.parent != null) comp.parent.remove(comp); comp.parent = this; if (peer != null) { comp.addNotify();
if (comp.parent != null) comp.parent.remove(comp); comp.parent = this; if (peer != null) { comp.addNotify(); if (comp.isLightweight ()) { enableEvents (comp.eventMask); if (!isLightweight ()) enableEvents (AWTEvent.PAINT_EVENT_MASK); } }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (comp.isLightweight()) enableEvents(comp.eventMask); }
invalidate();
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
invalidate();
if (component == null) component = new Component[4];
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (component == null) component = new Component[4];
if (ncomponents >= component.length) { int nl = component.length * 2; Component[] c = new Component[nl]; System.arraycopy(component, 0, c, 0, ncomponents); component = c; } if (index == -1) component[ncomponents++] = comp; else { System.arraycopy(component, index, component, index + 1, ncomponents - index); componen...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (ncomponents >= component.length) { int nl = component.length * 2; Component[] c = new Component[nl]; System.arraycopy(component, 0, c, 0, ncomponents); component = c; }
if (layoutMgr != null) { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.addLayoutComponent(comp, constraints); } else if (constraints instanceof String) layoutMgr.addLayoutComponent((String) constraints, comp); else layoutMgr.addLayoutComponent(null, comp); }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (index == -1) component[ncomponents++] = comp; else { System.arraycopy(component, index, component, index + 1, ncomponents - index); component[index] = comp; ++ncomponents; } if (layoutMgr != null) { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.addLayoutComponent(...
ContainerEvent ce = new ContainerEvent(this, ContainerEvent.COMPONENT_ADDED, comp); getToolkit().getSystemEventQueue().postEvent(ce); } }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
public void addNotify() { super.addNotify(); addNotifyContainerChildren(); }
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } }
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { if (! this.isLightweight() && dispatcher == null) { dispatcher = new LightweightDispatcher (this); dispatcher.enableEvents (component[i]....
private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void addPropertyChangeListener(PropertyChangeListener l) { }
public void addPropertyChangeListener (PropertyChangeListener listener) { if (listener == null) return; if (changeSupport == null) changeSupport = new PropertyChangeSupport (this); changeSupport.addPropertyChangeListener (listener); }
public void addPropertyChangeListener(PropertyChangeListener l) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
public void applyComponentOrientation (ComponentOrientation orientation) { if (orientation == null) throw new NullPointerException (); }
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException();
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException ();
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
return false; }
return false; }
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); re...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public int countComponents() { return getComponentCount(); }
public int countComponents() { return ncomponents; }
public int countComponents() { return getComponentCount(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void deliverEvent(Event e) { }
public void deliverEvent(Event e) { }
public void deliverEvent(Event e) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);...
void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
public void doLayout() { layout (); }
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null;
public Component findComponentAt(int x, int y) { synchronized (getTreeLock ()) { if (! contains(x, y)) return null;
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
for (int i = 0; i < ncomponents; ++i) { if (!component[i].isVisible()) continue;
for (int i = 0; i < ncomponents; ++i) { if (!component[i].isVisible()) continue;
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i] instanceof Container) { Container k = (Container) component[i]; Component r = k.findComponentAt(x2, y2); if (r != null) return r; } else if (component[i].contains(x2, y2)) return component[i]; }
int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i] instanceof Container) { Container k = (Container) component[i]; Component r = k.findComponentAt(x2, y2); if (r != null) return r; } else if (component[i].contains(x2, y2)) return component[i]; }
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
return this; } }
return this; } }
public Component findComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; // We d...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; if (end == 0) end = ncomponents; ++start; } else { start = 0; end = ncomponents; }
Component findNextFocusComponent(Component child) { synchronized (getTreeLock ()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; if (end == 0) end = ncomponents; ++start; } else { start = 0; end = ncomponents; }
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
for (int j = start; j != end; ++j) { if (j >= ncomponents) { if (parent != null) return parent.findNextFocusComponent(this); j -= ncomponents; } if (component[j] instanceof Container) { Component c = component[j]; c = c.findNextFocusComponent(null); if (c != null) return c; } else if (component[j].isFocusTraversabl...
for (int j = start; j != end; ++j) { if (j >= ncomponents) { if (parent != null) return parent.findNextFocusComponent(this); j -= ncomponents; } if (component[j] instanceof Container) { Component c = component[j]; c = c.findNextFocusComponent(null); if (c != null) return c; } else if (component[j].isFocusTraversabl...
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
return null; } }
return null; } }
Component findNextFocusComponent(Component child) { synchronized (getTreeLock()) { int start, end; if (child != null) { for (start = 0; start < ncomponents; ++start) { if (component[start] == child) break; } end = start; // This special case lets us be sure to terminate. if (end == 0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); }
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); }
public float getAlignmentX() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentX(this); } else return super.getAlignmentX(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); }
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); }
public float getAlignmentY() { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; return lm2.getLayoutAlignmentY(this); } else return super.getAlignmentY(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component");
public Component getComponent(int n) { synchronized (getTreeLock ()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component");
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
return component[n]; } }
return component[n]; } }
public Component getComponent(int n) { synchronized (getTreeLock()) { if (n < 0 || n >= ncomponents) throw new ArrayIndexOutOfBoundsException("no such component"); return component[n]; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i].contains(x2, y2)) return component[i]; } return t...
public Component getComponentAt(int x, int y) { return locate (x, y); }
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (comp...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public int getComponentCount() { return ncomponents; }
public int getComponentCount() { return countComponents (); }
public int getComponentCount() { return ncomponents; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents];
public Component[] getComponents() { synchronized (getTreeLock ()) { Component[] result = new Component[ncomponents];
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents);
if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents);
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
return result; } }
return result; } }
public Component[] getComponents() { synchronized (getTreeLock()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Container.java/buggy/core/src/classpath/java/java/awt/Container.java