rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
catch (BadLocationException e) { } }
public void setText(String text) { getDocument().remove(0,doc.getLength()); getDocument().insertString(0, text, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java
return ((Element) node).getAttribute("xml:lang");
String lang = ((Element) node).getAttribute("xml:lang"); if (lang != null) return lang; } node = node.getParentNode();
String getLang(Node node) { if (node.getNodeType() == Node.ELEMENT_NODE) { return ((Element) node).getAttribute("xml:lang"); } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/LangFunction.java/clean/core/src/classpath/gnu/gnu/xml/xpath/LangFunction.java
case QUOT :
case QUOT:
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
case AP :
case AP:
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
case NUMTOKEN :
case NUMTOKEN:
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
error("The value without opening quote is closed with '" + next.getImage() + "'" );
error("The value without opening quote is closed with '" + next.getImage() + "'");
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
default :
case SLASH: value = next; optional(WS); next = getTokenAhead(); if (bQUOTING.get(next.kind)) { hTag = next; error("The value without opening quote is closed with '" + next.getImage() + "'"); attrValue = value.getImage(); } else if (next.kind == NUMTOKEN || next.kind == SLASH) { StringBuffer image = new StringBuffe...
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
else
else
protected void readAttributes(String element) { Token name; Token value; Token next; String attrValue; attributes = new htmlAttributeSet(); optional(WS); attributeReading: while (getTokenAhead().kind == NUMTOKEN) { name = getNextToken(); optional(WS); next = getToke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/Parser.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/support/Parser.java
public void closeTag(TagElement tElement)
public boolean closeTag(TagElement tElement)
public void closeTag(TagElement tElement) { HTML.Tag tag = tElement.getHTMLTag(); hTag x; hTag close; if (!stack.isEmpty()) { ListIterator iter = stack.listIterator(stack.size()); while (iter.hasPrevious()) { x = (hTag) iter.previous(); if (tag.equals(x.t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/501b9c31ce3d5d6bd8ae27261150659112efa475/htmlValidator.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlValidator.java
return;
return true;
public void closeTag(TagElement tElement) { HTML.Tag tag = tElement.getHTMLTag(); hTag x; hTag close; if (!stack.isEmpty()) { ListIterator iter = stack.listIterator(stack.size()); while (iter.hasPrevious()) { x = (hTag) iter.previous(); if (tag.equals(x.t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/501b9c31ce3d5d6bd8ae27261150659112efa475/htmlValidator.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlValidator.java
return false;
public void closeTag(TagElement tElement) { HTML.Tag tag = tElement.getHTMLTag(); hTag x; hTag close; if (!stack.isEmpty()) { ListIterator iter = stack.listIterator(stack.size()); while (iter.hasPrevious()) { x = (hTag) iter.previous(); if (tag.equals(x.t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/501b9c31ce3d5d6bd8ae27261150659112efa475/htmlValidator.java/buggy/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlValidator.java
Element line = getDocument().getDefaultRootElement().getElement(lineIndex);
Element line = getElement().getElement(lineIndex);
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getDocument().getDefaultRootElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset()); //drawSelected...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/PlainView.java/buggy/core/src/classpath/javax/javax/swing/text/PlainView.java
firePropertyChange(key, old, value); }
public void putValue(String key, Object value) { store.put(key, value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); }
public void setEnabled(boolean enabled) { this.enabled = enabled; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
public abstract void disable();
void disable();
public abstract void disable();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuItemPeer.java/clean/core/src/classpath/java/java/awt/peer/MenuItemPeer.java
public abstract void enable();
void enable();
public abstract void enable();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/MenuItemPeer.java/clean/core/src/classpath/java/java/awt/peer/MenuItemPeer.java
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.PRINTCERT_CMD, true); result.setHeader(Messages.getString("PrintCertCmd.5")); //$NON-NLS-1$ result.setFooter(Messages.getString("PrintCertCmd.6")); //$NON-NLS-1$ Option...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/PrintCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java
if (Configuration.DEBUG)
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.PRINTCERT_CMD, true); result.setHeader(Messages.getString("PrintCertCmd.5")); //$NON-NLS-1$ result.setFooter(Messages.getString("PrintCertCmd.6")); //$NON-NLS-1$ Option...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/PrintCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java
log.finer("-printcert handler will use the following options:"); log.finer(" -file=" + _certFileName); log.finer(" -v=" + verbose);
if (Configuration.DEBUG) { log.fine("-printcert handler will use the following options:"); log.fine(" -file=" + _certFileName); log.fine(" -v=" + verbose); }
void setup() throws Exception { setInputStreamParam(_certFileName); log.finer("-printcert handler will use the following options:"); //$NON-NLS-1$ log.finer(" -file=" + _certFileName); //$NON-NLS-1$ log.finer(" -v=" + verbose); //$NON-NLS-1$ }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/PrintCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java
void start() throws CertificateException { log.entering(getClass().getName(), "start"); //$NON-NLS-1$ CertificateFactory x509Factory = CertificateFactory.getInstance(Main.X_509); Certificate certificate = x509Factory.generateCertificate(inStream); PrintWriter writer = new PrintWriter(System.out, true); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/PrintCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java
if (Configuration.DEBUG)
void start() throws CertificateException { log.entering(getClass().getName(), "start"); //$NON-NLS-1$ CertificateFactory x509Factory = CertificateFactory.getInstance(Main.X_509); Certificate certificate = x509Factory.generateCertificate(inStream); PrintWriter writer = new PrintWriter(System.out, true); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/PrintCertCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java
parent = p; attr = s;
element_parent = p; attributes = s;
public AbstractElement(Element p, AttributeSet s) { parent = p; attr = s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return kids.elements();
return Collections.enumeration(tree_children);
public Enumeration children() { return kids.elements(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return attr;
return attributes;
public AttributeSet getAttributes() { return attr; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return (TreeNode) kids.elementAt(index);
return (TreeNode) tree_children.get(index);
public TreeNode getChildAt(int index) { return (TreeNode) kids.elementAt(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return kids.size();
return tree_children.size();
public int getChildCount() { return kids.size(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return (Element) elts.elementAt(index);
return (Element) element_children.get(index);
public Element getElement(int index) { return (Element) elts.elementAt(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return kids.indexOf(node);
return tree_children.indexOf(node);
public int getIndex(TreeNode node) { return kids.indexOf(node); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return name;
return (String) getAttribute(NameAttribute);
public String getName() { return name; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return parent;
return element_parent;
public Element getParentElement() { return parent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public BranchElement(Element parent, AttributeSet attributes, int start, int end)
public BranchElement(Element parent, AttributeSet attributes)
public BranchElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
this.start = start; this.end = end;
public BranchElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (index < 0 || index >= children.size()) return null;
public Element getElement(int index) { return (Element) children.get(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return children.indexOf(positionToElement(offset));
if (children.size() == 0) return 0; Element element = positionToElement(offset); if (element == null) return 0; return children.indexOf(element);
public int getElementIndex(int offset) { return children.indexOf(positionToElement(offset)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return end;
return ((Element) children.lastElement()).getEndOffset();
public int getEndOffset() { return end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return start;
return ((Element) children.firstElement()).getStartOffset();
public int getStartOffset() { return start; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return len;
return length;
public int getLength() { return len; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return off;
return offset;
public int getOffset() { return off; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return null;
return type;
public DocumentEvent.EventType getType() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
this(doc, null);
this(doc, StyleContext.getDefaultStyleContext());
protected AbstractDocument(Content doc) { this(doc, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
protected Element createBranchElement(Element parent, AttributeSet a)
protected Element createBranchElement(Element parent, AttributeSet attributes)
protected Element createBranchElement(Element parent, AttributeSet a) { return new BranchElement(parent, a, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return new BranchElement(parent, a, 0, 0);
return new BranchElement(parent, attributes);
protected Element createBranchElement(Element parent, AttributeSet a) { return new BranchElement(parent, a, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1)
protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end)
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { return new LeafElement(parent, a, p0, p1 - p0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return new LeafElement(parent, a, p0, p1 - p0);
return new LeafElement(parent, attributes, start, end);
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { return new LeafElement(parent, a, p0, p1 - p0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return null;
return context;
protected AttributeContext getAttributeContext() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return null;
return new Position() { public int getOffset() { return getLength(); } };
public Position getEndPosition() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return null;
Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements;
public Element[] getRootElements() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return null;
return new Position() { public int getOffset() { return 0; } };
public Position getStartPosition() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public void insertString(int offs, String str, AttributeSet a)
public void insertString(int offset, String text, AttributeSet attributes)
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { content.insertString(offs, str); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
content.insertString(offs, str);
if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event);
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { content.insertString(offs, str); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
}
DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
public void remove(int offset, int length) throws BadLocationException { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public NameAlreadyBoundException (String msg)
public NameAlreadyBoundException ()
public NameAlreadyBoundException (String msg) { super (msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3811d0973c874051ada1ea74cbff990230291f5f/NameAlreadyBoundException.java/clean/core/src/classpath/javax/javax/naming/NameAlreadyBoundException.java
super (msg);
super ();
public NameAlreadyBoundException (String msg) { super (msg); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3811d0973c874051ada1ea74cbff990230291f5f/NameAlreadyBoundException.java/clean/core/src/classpath/javax/javax/naming/NameAlreadyBoundException.java
if (keys == null) keys = new ArrayList(); keys.add(this);
StyleConstants(String k) { keyname = k; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StyleConstants.java/clean/core/src/classpath/javax/javax/swing/text/StyleConstants.java
public int getHeight(){
public int getHeight() {
public int getHeight(){ return biHeight; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/buggy/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
public int getWidth(){
public int getWidth() {
public int getWidth(){ return biWidth; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/buggy/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
public BMPInfoHeader(ImageInputStream in) throws IOException, BMPException {
public BMPInfoHeader(ImageInputStream in) throws IOException, BMPException {
public BMPInfoHeader(ImageInputStream in) throws IOException, BMPException { byte[] data = new byte[SIZE]; if (in.read(data) != SIZE) throw new IOException("Couldn't read header."); ByteBuffer buf = ByteBuffer.wrap(data); buf.order(ByteOrder.LITTLE_ENDIAN); int n; if((n=buf.getInt()) != SIZE) th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/buggy/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
if((n=buf.getInt()) != SIZE) throw new BMPException("Invalid BITMAPINFOHEADER size: "+n);
if ((n = buf.getInt()) != SIZE) throw new BMPException("Invalid BITMAPINFOHEADER size: " + n);
public BMPInfoHeader(ImageInputStream in) throws IOException, BMPException { byte[] data = new byte[SIZE]; if (in.read(data) != SIZE) throw new IOException("Couldn't read header."); ByteBuffer buf = ByteBuffer.wrap(data); buf.order(ByteOrder.LITTLE_ENDIAN); int n; if((n=buf.getInt()) != SIZE) th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/buggy/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
throws NotImplementedException
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Uninstall keyboard actions here. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicTextUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
SwingUtilities.replaceUIInputMap(textComponent, JComponent.WHEN_FOCUSED, null); SwingUtilities.replaceUIActionMap(textComponent, null);
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Uninstall keyboard actions here. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicTextUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
t.repaint();
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos < t.getDocument().getEndPosition().getOffset()) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e637e0e30ba94f0ced0046631656001119747a/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
t.repaint();
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos > t.getDocument().getStartPosition().getOffset()) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e637e0e30ba94f0ced0046631656001119747a/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
t.repaint();
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { t.getDocument().insertString(t.getCaret().getDot(), event.getActionCommand(), null); t.getCaret().setDot(Math.min(t.getCaret().getDot(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e637e0e30ba94f0ced0046631656001119747a/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
throws IOException
throws IOException, NotImplementedException
public void flushBefore(long position) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/MemoryCacheImageInputStream.java/buggy/core/src/classpath/javax/javax/imageio/stream/MemoryCacheImageInputStream.java
public IllegalAccessError(String s)
public IllegalAccessError()
public IllegalAccessError(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/IllegalAccessError.java/buggy/core/src/classpath/java/java/lang/IllegalAccessError.java
super(s);
public IllegalAccessError(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/IllegalAccessError.java/buggy/core/src/classpath/java/java/lang/IllegalAccessError.java
public void addBeanContextMembershipListener(BeanContextMembershipListener listener);
void addBeanContextMembershipListener(BeanContextMembershipListener listener);
public void addBeanContextMembershipListener(BeanContextMembershipListener listener);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContext.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContext.java
public URL getResource(String resourceName, BeanContextChild requestor);
URL getResource(String resourceName, BeanContextChild requestor);
public URL getResource(String resourceName, BeanContextChild requestor);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContext.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContext.java
public InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
public InputStream getResourceAsStream(String resourceName, BeanContextChild requestor);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContext.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContext.java
public Object instantiateChild(String beanName)
Object instantiateChild(String beanName)
public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContext.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContext.java
public void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
public void removeBeanContextMembershipListener(BeanContextMembershipListener listener);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContext.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContext.java
public Window getWindowAncestor(Component comp)
public static Window getWindowAncestor(Component comp)
public Window getWindowAncestor(Component comp) { return (Window) getAncestorOfClass(Window.class, comp); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/SwingUtilities.java/buggy/core/src/classpath/javax/javax/swing/SwingUtilities.java
while(child.getParent() != null && !(child.getParent() instanceof ActionMapUIResource)) child = child.getParent();
ActionMap parent = child.getParent(); while(parent != null) { child = parent; parent = child.getParent(); }
public static void replaceUIActionMap(JComponent component, ActionMap uiActionMap) { ActionMap child = component.getActionMap(); if (child == null) component.setActionMap(uiActionMap); else { while(child.getParent() != null && !(child.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/389a8c811e91dbf626693fbb413506535b9ebd2e/SwingUtilities.java/buggy/core/src/classpath/javax/javax/swing/SwingUtilities.java
public synchronized void setData(byte[] buf, int offset, int length)
public void setData(byte[] buf)
public synchronized void setData(byte[] buf, int offset, int length) { // This form of setData must be used if offset is to be changed. if (buf == null) throw new NullPointerException("Null buffer"); if (offset < 0) throw new IllegalArgumentException("Invalid offset: " + offset); buffer = buf; this.offset =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java
if (buf == null) throw new NullPointerException("Null buffer"); if (offset < 0) throw new IllegalArgumentException("Invalid offset: " + offset); buffer = buf; this.offset = offset; setLength(length);
setData(buf, 0, buf.length);
public synchronized void setData(byte[] buf, int offset, int length) { // This form of setData must be used if offset is to be changed. if (buf == null) throw new NullPointerException("Null buffer"); if (offset < 0) throw new IllegalArgumentException("Invalid offset: " + offset); buffer = buf; this.offset =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java
public SocketBuffer(byte[] data, int offset, int length) { this.data = data; this.start = offset; this.size = length; testBuffer();
public SocketBuffer() {
public SocketBuffer(byte[] data, int offset, int length) { this.data = data; this.start = offset; this.size = length; testBuffer(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
if (instance == null)
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalScrollBarUI instance; if (o == null) {
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollBarUI(); return instance; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e60a457237548cb2220b3d83b95ea32b1605264/MetalScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java
instances.put(component, instance); } else instance = (MetalScrollBarUI) o;
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollBarUI(); return instance; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e60a457237548cb2220b3d83b95ea32b1605264/MetalScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java
public DirectByteBufferImpl (RawData address, long len)
DirectByteBufferImpl(int capacity)
public DirectByteBufferImpl (RawData address, long len) { this (null, address, (int) len, (int) len, 0, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
this (null, address, (int) len, (int) len, 0, false);
super(capacity, capacity, 0, -1); this.owner = this; this.address = VMDirectByteBuffer.allocate(capacity);
public DirectByteBufferImpl (RawData address, long len) { this (null, address, (int) len, (int) len, 0, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public CharBuffer asCharBuffer ()
public CharBuffer asCharBuffer()
public CharBuffer asCharBuffer () { return new CharViewBufferImpl (this, remaining() >> 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new CharViewBufferImpl (this, remaining() >> 1);
return new CharViewBufferImpl(this, remaining() >> 1);
public CharBuffer asCharBuffer () { return new CharViewBufferImpl (this, remaining() >> 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public DoubleBuffer asDoubleBuffer ()
public DoubleBuffer asDoubleBuffer()
public DoubleBuffer asDoubleBuffer () { return new DoubleViewBufferImpl (this, remaining() >> 3); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new DoubleViewBufferImpl (this, remaining() >> 3);
return new DoubleViewBufferImpl(this, remaining() >> 3);
public DoubleBuffer asDoubleBuffer () { return new DoubleViewBufferImpl (this, remaining() >> 3); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public FloatBuffer asFloatBuffer ()
public FloatBuffer asFloatBuffer()
public FloatBuffer asFloatBuffer () { return new FloatViewBufferImpl (this, remaining() >> 2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new FloatViewBufferImpl (this, remaining() >> 2);
return new FloatViewBufferImpl(this, remaining() >> 2);
public FloatBuffer asFloatBuffer () { return new FloatViewBufferImpl (this, remaining() >> 2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public IntBuffer asIntBuffer ()
public IntBuffer asIntBuffer()
public IntBuffer asIntBuffer () { return new IntViewBufferImpl (this, remaining() >> 2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new IntViewBufferImpl (this, remaining() >> 2);
return new IntViewBufferImpl(this, remaining() >> 2);
public IntBuffer asIntBuffer () { return new IntViewBufferImpl (this, remaining() >> 2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public LongBuffer asLongBuffer ()
public LongBuffer asLongBuffer()
public LongBuffer asLongBuffer () { return new LongViewBufferImpl (this, remaining() >> 3); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new LongViewBufferImpl (this, remaining() >> 3);
return new LongViewBufferImpl(this, remaining() >> 3);
public LongBuffer asLongBuffer () { return new LongViewBufferImpl (this, remaining() >> 3); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public ByteBuffer asReadOnlyBuffer ()
public ByteBuffer asReadOnlyBuffer()
public ByteBuffer asReadOnlyBuffer () { return duplicate(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public ShortBuffer asShortBuffer ()
public ShortBuffer asShortBuffer()
public ShortBuffer asShortBuffer () { return new ShortViewBufferImpl (this, remaining() >> 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
return new ShortViewBufferImpl (this, remaining() >> 1);
return new ShortViewBufferImpl(this, remaining() >> 1);
public ShortBuffer asShortBuffer () { return new ShortViewBufferImpl (this, remaining() >> 1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public ByteBuffer compact ()
public ByteBuffer compact()
public ByteBuffer compact () { int pos = position(); if (pos > 0) { int count = remaining(); shiftDown(address, 0, pos, count); position(count); limit(capacity()); } return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
shiftDown(address, 0, pos, count);
VMDirectByteBuffer.shiftDown(address, 0, pos, count);
public ByteBuffer compact () { int pos = position(); if (pos > 0) { int count = remaining(); shiftDown(address, 0, pos, count); position(count); limit(capacity()); } return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
private ByteBuffer duplicate (boolean readOnly)
private ByteBuffer duplicate(boolean readOnly)
private ByteBuffer duplicate (boolean readOnly) { int pos = position(); reset(); int mark = position(); position(pos); DirectByteBufferImpl result = new DirectByteBufferImpl (owner, address, capacity (), limit (), pos, readOnly); if (mark != pos) { result.position(mark); result.mark(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
DirectByteBufferImpl result = new DirectByteBufferImpl (owner, address, capacity (), limit (), pos, readOnly);
DirectByteBufferImpl result; if (readOnly) result = new DirectByteBufferImpl.ReadOnly(owner, address, capacity(), limit(), pos); else result = new DirectByteBufferImpl.ReadWrite(owner, address, capacity(), limit(), pos);
private ByteBuffer duplicate (boolean readOnly) { int pos = position(); reset(); int mark = position(); position(pos); DirectByteBufferImpl result = new DirectByteBufferImpl (owner, address, capacity (), limit (), pos, readOnly); if (mark != pos) { result.position(mark); result.mark(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
protected void finalize () throws Throwable
protected void finalize() throws Throwable
protected void finalize () throws Throwable { freeImpl (address); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
freeImpl (address);
if (owner == this) VMDirectByteBuffer.free(address);
protected void finalize () throws Throwable { freeImpl (address); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java
public byte get ()
public byte get()
public byte get () { checkForUnderflow(); int pos = position(); byte result = getImpl (address, pos); position (pos + 1); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DirectByteBufferImpl.java/clean/core/src/classpath/java/java/nio/DirectByteBufferImpl.java