rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) {
if (flags.isSet(FLAG_CLASSPATH_BUGFIX)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
if ((flags & FLAG_NATIVE) != 0) {
if (flags.isSet(FLAG_NATIVE)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
if ((flags & FLAG_JNODE) != 0) {
if (flags.isSet(FLAG_JNODE)) {
protected void reportFlags(PrintWriter out, int flags) { final StringBuffer b = new StringBuffer(); if ((flags & FLAG_TARGET_DIFF) != 0) { if (b.length() > 0) { b.append(", "); } b.append("different target"); } if ((flags & FLAG_VM_SPECIFIC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
protected void reportHeader(PrintWriter out) {
protected void reportHeader(PrintWriter out, String... headers) {
protected void reportHeader(PrintWriter out) { out.println("<html>"); out.println("<title>Classpath compare</title>"); out.println("<style type='text/css'>"); out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #C...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #CCCCFF; }"); out.println(".needsmerge { background-color: #FF9090; }"); out.println(".vm-specific { background-color: #119911; }"); out.println(".vm-specific-source { background-color:...
out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #CCCCFF; }"); out.println(".needsmerge { background-color: #FF9090; }"); out.println(".vm-specific { background-color: #119911; }"); out.println(".vm-specific-source ...
protected void reportHeader(PrintWriter out) { out.println("<html>"); out.println("<title>Classpath compare</title>"); out.println("<style type='text/css'>"); out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #C...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
out.println("<th align='left'>Class</th>"); out.println("<th align='left'>Target</th>"); out.println("<th align='left'>Merge status</th>");
for(String header : headers) { out.println("<th align='left'>"+header+"</th>"); }
protected void reportHeader(PrintWriter out) { out.println("<html>"); out.println("<title>Classpath compare</title>"); out.println("<style type='text/css'>"); out.println(".classpath-only { background-color: #FFFFAA; }"); out.println(".vm-only { background-color: #C...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
String existsIn, int flags) {
String existsIn, Flags flags) {
protected void reportMissing(PrintWriter out, String fname, String existsIn, int flags) { out.println("<tr class='" + existsIn + "-only'>"); out.println("<td>" + fname + "</td>"); out.println("<td>&nbsp;</td>"); out.println("<td>Exists only in " + existsIn); reportFlags...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
String target, String diffFileName, int flags) { out.println("<tr class='" + flagsToStyleClass(flags) + "'>");
String target, String diffFileName, Flags flags) { out.println("<tr class='" + flagsToStyleClass(flags.asInt()) + "'>");
protected void reportNeedsMerge(PrintWriter out, String fname, String target, String diffFileName, int flags) { out.println("<tr class='" + flagsToStyleClass(flags) + "'>"); out.println("<td>" + fname + "</td>"); if (target.equals(TargetedFileSet.DEFAULT_TARGET)) { target ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
String diffFileName, int flags) {
String diffFileName, Flags flags) {
protected void reportPackageDiff(PrintWriter out, String pkg, String diffFileName, int flags) { out.println("<tr class='needsmerge'>"); out.println("<td>" + pkg + "</td>"); out.println("<td>&nbsp;</td>"); out.println("<td><a href='" + diffFileName + "'>diff</a>"); repor...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
protected int runDiff(SourceFile vmFile, SourceFile cpFile,
protected Flags runDiff(SourceFile vmFile, SourceFile cpFile,
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
final String[] cmd = { "diff", "-b",
final String[] cmd = { "diff", "-E", "-w", "-B", "-N",
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
int flags = getFlags(diffStr);
Flags flags = getFlags(diffStr);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
flags |= FLAG_TARGET_DIFF;
flags.set(FLAG_TARGET_DIFF);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
return flags | NEEDS_MERGE;
flags.set(NEEDS_MERGE); return flags;
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
return NO_CHANGE;
return new Flags(NO_CHANGE);
protected int runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", "-b", // Ignore white space change "-au", "-I", ".*$" + "Id:.*$.*", // Avoid cvs ke...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f825332d3b466c434a13a8f53814bf3bdba72ef6/CompareTask.java/clean/builder/src/builder/org/jnode/ant/taskdefs/classpath/CompareTask.java
log.warn("In constructor: ", e);
if (log == null) System.out.println(e.getMessage()); else log.warn("In constructor: ", e);
public void init() { try { jbInit(); } catch(Exception e) { log.warn("In constructor: ", e); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b7dcba413b3c77ddf4c37cbac6e23d898b476373/My5250App.java/buggy/tn5250j/src/org/tn5250j/My5250App.java
if (isSpecified("-L")) LangTool.init(parseLocale(getParameter("-L"))); else LangTool.init();
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); log.info(" We have loaded a new one"); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) ses...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b7dcba413b3c77ddf4c37cbac6e23d898b476373/My5250App.java/buggy/tn5250j/src/org/tn5250j/My5250App.java
rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP);
rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPart = unquote(rawSchemeSpecificPart); if (!isOpaque()) {
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d952c1ff48838834c7dcd3b56acf7f236a00079/URI.java/clean/core/src/classpath/java/java/net/URI.java
rawPath = getURIGroup(matcher, PATH_GROUP);
rawPath = matcher.group(PATH_GROUP);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d952c1ff48838834c7dcd3b56acf7f236a00079/URI.java/clean/core/src/classpath/java/java/net/URI.java
schemeSpecificPart = unquote(rawSchemeSpecificPart);
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = getURIGroup(matcher, SCHEME_SPEC_PART_GROUP); rawAuthori...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d952c1ff48838834c7dcd3b56acf7f236a00079/URI.java/clean/core/src/classpath/java/java/net/URI.java
+ (getRawAuthority() == null ? "" : " + (getRawPath() == null ? "" : getRawPath()) + (getRawQuery() == null ? "" : "?" + getRawQuery())
+ getRawSchemeSpecificPart()
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + (getRawAuthority() == null ? "" : "//" + getRawAuthority()) + (getRawPath() == null ? "" : getRawPath()) + (getRawQuery() == null ? "" : "?" + getRawQuery()) + (getRawFragment() == null ? "" ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d952c1ff48838834c7dcd3b56acf7f236a00079/URI.java/clean/core/src/classpath/java/java/net/URI.java
super("JFrame");
super("");
public JFrame() { super("JFrame"); frameInit(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
return close_action;
return closeAction;
public int getDefaultCloseOperation() { return close_action; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
return "JFrame";
StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",defaultCloseOperation="); sb.append(SwingUtilities.convertWindowConstantToString( getDefaultCloseOperation())); sb.append(",rootPane="); if (rootPane != null) sb.append(rootPane); sb.append(",rootPaneCheckingEnabled=").append(rootPaneCheckingEnabled);...
protected String paramString() { return "JFrame"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
switch (close_action)
switch (closeAction)
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch (close_action) { case EXIT_ON_CLOSE: { System.exit(0); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } case...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
throw new IllegalArgumentException("defaultCloseOperation must be EXIT_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE");
throw new IllegalArgumentException("operation must be EXIT_ON_CLOSE, " + "HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE");
public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
close_action = operation;
closeAction = operation;
public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java
boolean result = false; switch (numChildren)
boolean result = true; for (int i = 0; i < numChildren; ++i)
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java
case 0: case 1: result = true;
Component c1 = getComponent(i); if (! c1.isVisible()) continue; Rectangle r1 = c1.getBounds(); if (r1.isEmpty()) continue; for (int j = i + 1; j < numChildren; ++j) { Component c2 = getComponent(j); if (! c2.isVisible()) continue; Rectangle r2 = c2.getBounds(); if (r2.isEmpty()) continue; if (r1.intersects(r2)) { resu...
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java
case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2);
} if (result == false)
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java
default: result = false;
}
public boolean isOptimizedDrawingEnabled() { int numChildren = getComponentCount(); boolean result = false; // We implement a heuristic here in order to return a quick result: // - For 0 or 1 children it is clear that they do not overlap, return true. // - For 2 children we check their bounding rectan...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java
addCompileHighOptLevel("java.lang.isolate");
protected void setupCompileHighOptLevelPackages() { addCompileHighOptLevel("java.io"); addCompileHighOptLevel("java.lang"); addCompileHighOptLevel("java.lang.ref"); addCompileHighOptLevel("java.lang.reflect"); addCompileHighOptLevel("java.net"); addCompileHighOptLevel("java...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/34018d58ddf97a144be387eabd5b8ae715c6f8a5/AbstractBootImageBuilder.java/clean/builder/src/builder/org/jnode/build/AbstractBootImageBuilder.java
alwaysEmpty = (min == 0 && max == 0);
RETokenRepeated(int subIndex, REToken token, int min, int max) { super(subIndex); this.token = token; this.min = min; this.max = max; alwaysEmpty = (min == 0 && max == 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
for (REMatch m = recurrent; m != null; m = m.next) { m.matchFlags &= ~REMatch.MF_FIND_ALL; }
private static REMatch findDoables(REToken tk, CharIndexed input, REMatch mymatch) { REMatch.REMatchList doables = new REMatch.REMatchList(); // try next repeat at all possible positions for (REMatch current = mymatch; current != null; current = current.next) { REMatch recurrent = (REMatch) current...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
REMatch newMatch = mymatch;
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result);
boolean stopMatchingIfSatisfied = (mymatch.matchFlags & REMatch.MF_FIND_ALL) == 0; REMatch newMatch = matchMinimum(input, mymatch); if (newMatch == null) return false; int[] visited = initVisited(); for (REMatch m = newMatch; m != null; m = m.next) { visited = addVisited(m.index, visited); } int max1 = decreaseMax(...
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
else {
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
} int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); if (doables == null) return false; newMatch = doables; ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true...
boolean match(CharIndexed input, REMatch mymatch) { // Possible positions for the next repeat to match at REMatch newMatch = mymatch; // {0} needs some special treatment. if (alwaysEmpty) { REMatch result = matchRest(input, newMatch); if (result != null) { mymatch.assignFrom(result); return true; } el...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/RETokenRepeated.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenRepeated.java
bad.minor = Minor.Any;
public static TaggedProfile extract(Any any) { try { return ((TaggedProfileHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("TaggedProfile expected"); bad.initCause(cex); throw bad; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/TaggedProfileHelper.java/clean/core/src/classpath/org/org/omg/IOP/TaggedProfileHelper.java
if (href !=null) writeOut(outputstream, " href = \"" + href + "\"");
if (href !=null) { writeOut(outputstream, " href = \""); writeOutAttribute(outputstream, href); writeOut(outputstream, "\""); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent, boolean dontCloseNode, String newNodeNameStri...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
if (checksum != null) writeOut(outputstream, " checksum = \"" + checksum.toString() + "\"");
if (checksum != null) { writeOut(outputstream, " checksum = \""); writeOutAttribute(outputstream, checksum.toString()); writeOut(outputstream, "\""); }
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent, boolean dontCloseNode, String newNodeNameStri...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
this.data=data;
this.data = data;
public Block(byte[] data) { this.data=data; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java
if(!dirty)
if (!dirty)
public void flush() { if(!dirty) return; //XXX... Ext2Debugger.error("BLOCK FLUSHED FROM CACHE",1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java
Ext2Debugger.error("BLOCK FLUSHED FROM CACHE",1);
log.error("BLOCK FLUSHED FROM CACHE");
public void flush() { if(!dirty) return; //XXX... Ext2Debugger.error("BLOCK FLUSHED FROM CACHE",1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java
dirty=true;
dirty = true;
public void setData(byte[] data) { this.data = data; dirty=true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95169e195210009513efbf3cd307b4f1185f9ce5/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java
return target.getAlignmentX();
return 0.0F;
public float getLayoutAlignmentX(Container target) { return target.getAlignmentX(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
return target.getAlignmentY();
return 0.0F;
public float getLayoutAlignmentY(Container target) { return target.getAlignmentY(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
synchronized (this) { glassPaneBounds = null; layeredPaneBounds = null; contentPaneBounds = null; menuBarBounds = null; prefSize = null; }
public void invalidateLayout(Container target) { // Nothing to do here. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension contentPaneSize = contentPane.getPreferredSize();
if (glassPaneBounds == null || layeredPaneBounds == null || contentPaneBounds == null || menuBarBounds == null) { Insets i = getInsets(); int containerWidth = c.getBounds().width - i.left - i.right; int containerHeight = c.getBounds().height - i.top - i.bottom;
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
/* if size of top-level window wasn't set then just set contentPane and menuBar to its preferred sizes. Otherwise, if the size of top-level window was specified then set menuBar to its preferred size and make content pane to fit into the remaining space
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
+-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | ...
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); menuBar.setBounds(0, 0, maxWidth, menuBarSize.height); glassPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); contentPane.setBounds(0, menuBarSize.height, maxWidth, contentPa...
Dimension menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerHeight) menuBarSize.height = containerHeight; menuBarBounds = new Rectangle(0, 0, containerWidth, menuBarSize.height); contentPaneBounds = new Rectangle(0, menuBarSize.height, containerWidth, containerHeight - menuBarSize.height);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
{ glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); }
contentPaneBounds = new Rectangle(0, 0, containerWidth, containerHeight); glassPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight); layeredPaneBounds = new Rectangle(i.left, i.top, containerWidth, containerHeight);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
else { if (menuBar != null) { menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.height > containerHeight) menuBarSize.height = containerHeight; menuBar.setBounds(0, 0, containerWidth, menuBarSize.height); glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, menuBarSize.height, co...
glassPane.setBounds(glassPaneBounds); layeredPane.setBounds(layeredPaneBounds); if (menuBar != null) menuBar.setBounds(menuBarBounds); contentPane.setBounds(contentPaneBounds);
public void layoutContainer(Container c) { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0)
synchronized (this)
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 != nu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height);
Dimension menuBarSize = menuBar.getPreferredSize(); if (menuBarSize.width > contentPrefSize.width) prefSize.width += menuBarSize.width - contentPrefSize.width; prefSize.height += menuBarSize.height;
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 != nu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
else prefSize = contentPaneSize;
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 != nu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
else prefSize = c.getSize(); return prefSize;
return new Dimension(prefSize); }
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 != nu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
Runtime getRunTimeCodeBase();
RunTime getRunTimeCodeBase();
Runtime getRunTimeCodeBase();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ValueHandler.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/ValueHandler.java
String repositoryID, Runtime sender);
String repositoryID, RunTime sender);
Serializable readValue(InputStream in, int offset, Class clz, String repositoryID, Runtime sender);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ValueHandler.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/ValueHandler.java
firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, renderer);
firePropertyChange("cellRenderer", old, renderer);
public void setCellRenderer(ListCellRenderer renderer) { if (cellRenderer == renderer) return; ListCellRenderer old = cellRenderer; cellRenderer = renderer; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, renderer); revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(FIXED_CELL_WIDTH_PROPERTY_CHANGED, old, h);
firePropertyChange("fixedCellWidth", old, h);
public void setFixedCellHeight(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_WIDTH_PROPERTY_CHANGED, old, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
public void setFixedCellWidth(int h)
public void setFixedCellWidth(int w)
public void setFixedCellWidth(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h);
if (fixedCellWidth == w) return; int old = fixedCellWidth; fixedCellWidth = w; firePropertyChange("fixedCellWidth", old, w);
public void setFixedCellWidth(int h) { int old = fixedCellHeight; fixedCellHeight = h; firePropertyChange(FIXED_CELL_HEIGHT_PROPERTY_CHANGED, old, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(MODEL_PROPERTY_CHANGED, old, model);
firePropertyChange("model", old, model);
public void setModel(ListModel model) { if (this.model == model) return; if (this.model != null) this.model.removeListDataListener(listListener); ListModel old = this.model; this.model = model; if (this.model != null) this.model.addListDataListener(listListener); fire...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(PROTOTYPE_CELL_VALUE_PROPERTY_CHANGED, old, obj);
firePropertyChange("prototypeCellValue", old, obj);
public void setPrototypeCellValue(Object obj) { Object old = prototypeCellValue; Component comp = getCellRenderer() .getListCellRendererComponent(this, obj, 0, false, false); Dimension d = comp.getPreferredSize(); fixedCellWidth = d.width; fixedCellHeight = d.height; prototypeCellValue = obj;...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(SELECTION_BACKGROUND_PROPERTY_CHANGED, old, c);
firePropertyChange("selectionBackground", old, c);
public void setSelectionBackground(Color c) { Color old = selectionBackground; selectionBackground = c; firePropertyChange(SELECTION_BACKGROUND_PROPERTY_CHANGED, old, c); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(SELECTION_FOREGROUND_PROPERTY_CHANGED, old, c);
firePropertyChange("selectionForeground", old, c);
public void setSelectionForeground(Color c) { Color old = selectionForeground; selectionForeground = c; firePropertyChange(SELECTION_FOREGROUND_PROPERTY_CHANGED, old, c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
firePropertyChange(SELECTION_MODEL_PROPERTY_CHANGED, old, model);
firePropertyChange("selectionModel", old, model);
public void setSelectionModel(ListSelectionModel model) { if (selectionModel == model) return; if (selectionModel != null) selectionModel.removeListSelectionListener(listListener); ListSelectionModel old = selectionModel; selectionModel = model; if (selectionModel != null) s...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java
public PhiAssignQuad(IRBasicBlock dfb, int lhsIndex) { this(dfb.getStartPC(), dfb, lhsIndex);
public PhiAssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block, lhsIndex); phi = new PhiOperand();
public PhiAssignQuad(IRBasicBlock dfb, int lhsIndex) { this(dfb.getStartPC(), dfb, lhsIndex); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/PhiAssignQuad.java/buggy/core/src/core/org/jnode/vm/compiler/ir/quad/PhiAssignQuad.java
System.out.println("session found and closing down " + index);
log.info("session found and closing down " + index);
public void removeSessionView(Session targetSession) { if (hideTabBar && sessionPane.getTabCount() == 0) { for (int x=0; x < getContentPane().getComponentCount(); x++) { if (getContentPane().getComponent(x) instanceof Session) { getContentPane().remove(x); } }...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
public MenuBarUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/MenuBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/MenuBarUI.java
item.processMouseEvent(e, path, manager);
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) { // TODO: What should be done here? }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicCheckBoxMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java
bad.minor = Minor.Any;
public static NameValuePair[] extract(Any any) { try { return ((NameValuePairSeqHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("NameValuePairSeq expected"); bad.initCause(cex); throw bad; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NameValuePairSeqHelper.java/clean/core/src/classpath/org/org/omg/DynamicAny/NameValuePairSeqHelper.java
desktopFrame.dispose(); desktopFrame = null;
if(desktopFrame != null) { desktopFrame.dispose(); desktopFrame = null; }
protected void onClose() { log.debug("onClose"); // Stop the repaint manager if (repaintManager != null) { repaintManager.shutdown(); repaintManager = null; } // Close the desktop desktopFrame.dispose(); desktopFrame = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d53872abbf2d3347988e453b47668ffdc087bb6b/SwingToolkit.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingToolkit.java
public void addImpl(Component comp, Object constraints, int index)
protected void addImpl(Component comp, Object constraints, int index)
public void addImpl(Component comp, Object constraints, int index) { if (getComponentCount() > 0) remove(getComponents()[0]); super.addImpl(comp, constraints, index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JViewport.java/buggy/core/src/classpath/javax/javax/swing/JViewport.java
public void addAccessibleSelection(int i) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
public void clearAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
public void removeAccessibleSelection(int i) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
public void selectAllAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
public void stateChanged(ChangeEvent e) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
protected ModelListener() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
assert(mark <= gapStart || mark > gapEnd);
assert mark <= gapStart || mark > gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd;
public int getOffset() { // Check precondition. assert(mark <= gapStart || mark > gapEnd); if (mark <= gapStart) return mark; else return mark - (gapEnd - gapStart); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{
{
public GapContent() { this(DEFAULT_BUFSIZE); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
}
}
public GapContent() { this(DEFAULT_BUFSIZE); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{
{
protected Object allocateArray(int size) { return new char[size]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
}
}
protected Object getArray() { return buffer; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{
{
protected int getArrayLength() { return buffer.length; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
}
}
protected int getArrayLength() { return buffer.length; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
throws BadLocationException {
throws BadLocationException {
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
+ " than the content length", where);
+ " than the content length", where);
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{ char[] copy = new char[len]; int lenFirst = gapStart - where; System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; }
{ char[] copy = new char[len]; int lenFirst = gapStart - where; System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; }
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{ txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; }
{ txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; }
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
{
{
public String getString(int where, int len) throws BadLocationException { Segment seg = new Segment(); try { getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); } catch (StringIndexOutOfBoundsException ex) { int invalid = 0; if (seg.offset < 0...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); }
getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); }
public String getString(int where, int len) throws BadLocationException { Segment seg = new Segment(); try { getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); } catch (StringIndexOutOfBoundsException ex) { int invalid = 0; if (seg.offset < 0...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
throws BadLocationException {
throws BadLocationException {
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
+ " than the content length", where);
+ " than the content length", where);
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
return null; }
return null; }
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java