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) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
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) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
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) != 0) { if (b.length() > 0) { b.append(", "); } b.append("vm-specific"); } if ((flags & FLAG_CLASSPATH_BUGFIX) != 0) { if (b.length() > 0) { b.append(", "); } b.append("cp-bugfix"); } if ((flags & FLAG_NATIVE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("native"); } if ((flags & FLAG_JNODE) != 0) { if (b.length() > 0) { b.append(", "); } b.append("jnode"); } if (b.length() > 0) { out.println(" <i>("); out.println(b.toString()); out.println(")</i>"); } }
|
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: #CCCCFF; }"); out.println(".needsmerge { background-color: #FF9090; }"); out.println(".vm-specific { background-color: #119911; }"); out.println(".vm-specific-source { background-color: #22FF22; }"); out.println(".classpath-bugfix { background-color: #CCFFCC; }"); out.println("</style>"); out.println("<body>"); out.println("<h1>Classpath compare results</h1>"); out.println("Created at " + new Date()); out.println("<table border='1' width='100%' style='border: solid 1'>"); out.println("<tr>"); out.println("<th align='left'>Class</th>"); out.println("<th align='left'>Target</th>"); out.println("<th align='left'>Merge status</th>"); out.println("</tr>"); out.flush(); }
|
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: #22FF22; }"); out.println(".classpath-bugfix { background-color: #CCFFCC; }");
|
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: #22FF22; }"); out.println(".classpath-bugfix { background-color: #CCFFCC; }");
|
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: #CCCCFF; }"); out.println(".needsmerge { background-color: #FF9090; }"); out.println(".vm-specific { background-color: #119911; }"); out.println(".vm-specific-source { background-color: #22FF22; }"); out.println(".classpath-bugfix { background-color: #CCFFCC; }"); out.println("</style>"); out.println("<body>"); out.println("<h1>Classpath compare results</h1>"); out.println("Created at " + new Date()); out.println("<table border='1' width='100%' style='border: solid 1'>"); out.println("<tr>"); out.println("<th align='left'>Class</th>"); out.println("<th align='left'>Target</th>"); out.println("<th align='left'>Merge status</th>"); out.println("</tr>"); out.flush(); }
|
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: #CCCCFF; }"); out.println(".needsmerge { background-color: #FF9090; }"); out.println(".vm-specific { background-color: #119911; }"); out.println(".vm-specific-source { background-color: #22FF22; }"); out.println(".classpath-bugfix { background-color: #CCFFCC; }"); out.println("</style>"); out.println("<body>"); out.println("<h1>Classpath compare results</h1>"); out.println("Created at " + new Date()); out.println("<table border='1' width='100%' style='border: solid 1'>"); out.println("<tr>"); out.println("<th align='left'>Class</th>"); out.println("<th align='left'>Target</th>"); out.println("<th align='left'>Merge status</th>"); out.println("</tr>"); out.flush(); }
|
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> </td>"); out.println("<td>Exists only in " + existsIn); reportFlags(out, flags); out.println("</td>"); out.println("</tr>"); out.flush(); }
|
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 = " "; } out.println("<td>" + target + "</td>"); out.println("<td><a href='" + diffFileName + "'>Diff</a>"); reportFlags(out, flags); out.println("</td>"); out.println("</tr>"); out.flush(); }
|
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> </td>"); out.println("<td><a href='" + diffFileName + "'>diff</a>"); reportFlags(out, flags); out.println("</td>"); out.println("</tr>"); out.flush(); }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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 keyword // expansion in this string vmFile.getFileName(), cpFile.getFile().getAbsolutePath() }; final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ByteArrayOutputStream err = new ByteArrayOutputStream(); final PumpStreamHandler streamHandler = new PumpStreamHandler(out, err); final Execute exe = new Execute(streamHandler); exe.setCommandline(cmd); exe.setWorkingDirectory(vmFile.getBaseDir()); final int rc = exe.execute(); if (rc != 0) { File diffFile = new File(destDir, diffFileName); FileOutputStream os = new FileOutputStream(diffFile); try { final byte[] diff = out.toByteArray(); os.write(diff); os.flush(); final String diffStr = new String(diff); final String pkg = vmFile.getPackageName(); String pkgDiff; if (packageDiffs.containsKey(pkg)) { pkgDiff = packageDiffs.get(pkg); pkgDiff = pkgDiff + "diff\n" + diffStr; } else { pkgDiff = diffStr; } packageDiffs.put(pkg, pkgDiff); int flags = getFlags(diffStr); if (!vmFile.getTarget().equals(cpFile.getTarget())) { flags |= FLAG_TARGET_DIFF; } return flags | NEEDS_MERGE; } finally { os.close(); } } else { return NO_CHANGE; } }
|
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")) sesProps.put(SESSION_TN_ENHANCED,"1"); if (isSpecified("-p")) { sesProps.put(SESSION_HOST_PORT,getParameter("-p")); }// if (isSpecified("-f",args))// propFileName = getParm("-f",args); if (isSpecified("-cp")) sesProps.put(SESSION_CODE_PAGE ,getParameter("-cp")); if (isSpecified("-gui")) sesProps.put(SESSION_USE_GUI,"1"); if (isSpecified("-132")) sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR); else sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR); // socks proxy host argument if (isSpecified("-sph")) { sesProps.put(SESSION_PROXY_HOST ,getParameter("-sph")); } // socks proxy port argument if (isSpecified("-spp")) sesProps.put(SESSION_PROXY_PORT ,getParameter("-spp")); // check if device name is specified if (isSpecified("-dn")) sesProps.put(SESSION_DEVICE_NAME ,getParameter("-dn")); if (isSpecified("-L")) LangTool.init(parseLocale(getParameter("-L"))); else LangTool.init(); loadSystemProperty("SESSION_CONNECT_USER"); loadSystemProperty("SESSION_CONNECT_PASSWORD"); loadSystemProperty("SESSION_CONNECT_PROGRAM"); loadSystemProperty("SESSION_CONNECT_LIBRARY"); loadSystemProperty("SESSION_CONNECT_MENU"); manager = new SessionManager(); final Session s = manager.openSession(sesProps,"","Test Applet"); this.getContentPane().add(s); s.connect(); SwingUtilities.invokeLater(new Runnable() { public void run() { s.grabFocus(); } }); }
|
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); rawAuthority = getURIGroup(matcher, AUTHORITY_GROUP); rawPath = getURIGroup(matcher, PATH_GROUP); rawQuery = getURIGroup(matcher, QUERY_GROUP); rawFragment = getURIGroup(matcher, FRAGMENT_GROUP); } else throw new URISyntaxException(str, "doesn't match URI regular expression"); if (rawAuthority != null) { pattern = Pattern.compile(AUTHORITY_REGEXP); matcher = pattern.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_HOST_GROUP); String portStr = getURIGroup(matcher, AUTHORITY_PORT_GROUP); if (portStr != null) try { port = Integer.parseInt(portStr); } catch (NumberFormatException e) { URISyntaxException use = new URISyntaxException (str, "doesn't match URI regular expression"); use.initCause(e); throw use; } } else throw new URISyntaxException(str, "doesn't match URI regular expression"); } // We must eagerly unquote the parts, because this is the only time // we may throw an exception. schemeSpecificPart = unquote(rawSchemeSpecificPart); authority = unquote(rawAuthority); userInfo = unquote(rawUserInfo); host = unquote(rawHost); path = unquote(rawPath); query = unquote(rawQuery); fragment = unquote(rawFragment); }
|
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); rawAuthority = getURIGroup(matcher, AUTHORITY_GROUP); rawPath = getURIGroup(matcher, PATH_GROUP); rawQuery = getURIGroup(matcher, QUERY_GROUP); rawFragment = getURIGroup(matcher, FRAGMENT_GROUP); } else throw new URISyntaxException(str, "doesn't match URI regular expression"); if (rawAuthority != null) { pattern = Pattern.compile(AUTHORITY_REGEXP); matcher = pattern.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_HOST_GROUP); String portStr = getURIGroup(matcher, AUTHORITY_PORT_GROUP); if (portStr != null) try { port = Integer.parseInt(portStr); } catch (NumberFormatException e) { URISyntaxException use = new URISyntaxException (str, "doesn't match URI regular expression"); use.initCause(e); throw use; } } else throw new URISyntaxException(str, "doesn't match URI regular expression"); } // We must eagerly unquote the parts, because this is the only time // we may throw an exception. schemeSpecificPart = unquote(rawSchemeSpecificPart); authority = unquote(rawAuthority); userInfo = unquote(rawUserInfo); host = unquote(rawHost); path = unquote(rawPath); query = unquote(rawQuery); fragment = unquote(rawFragment); }
|
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); rawAuthority = getURIGroup(matcher, AUTHORITY_GROUP); rawPath = getURIGroup(matcher, PATH_GROUP); rawQuery = getURIGroup(matcher, QUERY_GROUP); rawFragment = getURIGroup(matcher, FRAGMENT_GROUP); } else throw new URISyntaxException(str, "doesn't match URI regular expression"); if (rawAuthority != null) { pattern = Pattern.compile(AUTHORITY_REGEXP); matcher = pattern.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_HOST_GROUP); String portStr = getURIGroup(matcher, AUTHORITY_PORT_GROUP); if (portStr != null) try { port = Integer.parseInt(portStr); } catch (NumberFormatException e) { URISyntaxException use = new URISyntaxException (str, "doesn't match URI regular expression"); use.initCause(e); throw use; } } else throw new URISyntaxException(str, "doesn't match URI regular expression"); } // We must eagerly unquote the parts, because this is the only time // we may throw an exception. schemeSpecificPart = unquote(rawSchemeSpecificPart); authority = unquote(rawAuthority); userInfo = unquote(rawUserInfo); host = unquote(rawHost); path = unquote(rawPath); query = unquote(rawQuery); fragment = unquote(rawFragment); }
|
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 ? "" : "#" + getRawFragment()); }
|
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); return sb.toString();
|
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 HIDE_ON_CLOSE: { setVisible(false); break; } case DO_NOTHING_ON_CLOSE: break; } break; } case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } }
|
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) throw new IllegalArgumentException("defaultCloseOperation must be EXIT_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE"); close_action = operation; }
|
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) throw new IllegalArgumentException("defaultCloseOperation must be EXIT_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or DO_NOTHING_ON_CLOSE"); close_action = operation; }
|
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 rectangles and if they don't // interect, return true. // - For more than 2 children we return false. Comparing all the bounding // rectangles costs too much time and in most cases this will return // false anyway, since JLayeredPane are mostly used in JRootPane and then // have at least one child (the contentPane) that takes up the whole // area of the JLayeredPane. switch (numChildren) { case 0: case 1: result = true; break; case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2); break; default: result = false; } return result; }
|
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)) { 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 rectangles and if they don't // interect, return true. // - For more than 2 children we return false. Comparing all the bounding // rectangles costs too much time and in most cases this will return // false anyway, since JLayeredPane are mostly used in JRootPane and then // have at least one child (the contentPane) that takes up the whole // area of the JLayeredPane. switch (numChildren) { case 0: case 1: result = true; break; case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2); break; default: result = false; } return result; }
|
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 rectangles and if they don't // interect, return true. // - For more than 2 children we return false. Comparing all the bounding // rectangles costs too much time and in most cases this will return // false anyway, since JLayeredPane are mostly used in JRootPane and then // have at least one child (the contentPane) that takes up the whole // area of the JLayeredPane. switch (numChildren) { case 0: case 1: result = true; break; case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2); break; default: result = false; } return result; }
|
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 rectangles and if they don't // interect, return true. // - For more than 2 children we return false. Comparing all the bounding // rectangles costs too much time and in most cases this will return // false anyway, since JLayeredPane are mostly used in JRootPane and then // have at least one child (the contentPane) that takes up the whole // area of the JLayeredPane. switch (numChildren) { case 0: case 1: result = true; break; case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2); break; default: result = false; } return result; }
|
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.nio"); addCompileHighOptLevel("java.security"); addCompileHighOptLevel("java.util"); addCompileHighOptLevel("java.util.jar"); addCompileHighOptLevel("java.util.zip"); addCompileHighOptLevel("javax.naming"); addCompileHighOptLevel("gnu.classpath"); addCompileHighOptLevel("gnu.java.io"); addCompileHighOptLevel("gnu.java.io.decode"); addCompileHighOptLevel("gnu.java.io.encode"); addCompileHighOptLevel("gnu.java.lang"); addCompileHighOptLevel("gnu.java.lang.reflect"); addCompileHighOptLevel("org.jnode.assembler"); addCompileHighOptLevel("org.jnode.boot"); addCompileHighOptLevel("org.jnode.naming"); addCompileHighOptLevel("org.jnode.plugin"); addCompileHighOptLevel("org.jnode.plugin.manager"); addCompileHighOptLevel("org.jnode.plugin.model"); addCompileHighOptLevel("org.jnode.protocol.plugin"); addCompileHighOptLevel("org.jnode.protocol.system"); addCompileHighOptLevel("org.jnode.security"); addCompileHighOptLevel("org.jnode.system"); addCompileHighOptLevel("org.jnode.system.event"); addCompileHighOptLevel("org.jnode.system.util"); addCompileHighOptLevel("org.jnode.util"); addCompileHighOptLevel("org.jnode.vm"); addCompileHighOptLevel("org.jnode.vm.bytecode"); addCompileHighOptLevel("org.jnode.vm.classmgr"); addCompileHighOptLevel("org.jnode.vm.compiler"); addCompileHighOptLevel("org.jnode.vm.compiler.ir"); addCompileHighOptLevel("org.jnode.vm.compiler.ir.quad"); addCompileHighOptLevel("org.jnode.vm.memmgr"); addCompileHighOptLevel("org.jnode.vm.memmgr.def"); addCompileHighOptLevel("org.jnode.vm.memmgr.mmtk"); addCompileHighOptLevel("org.jnode.vm.memmgr.mmtk.genrc"); addCompileHighOptLevel("org.jnode.vm.memmgr.mmtk.nogc"); addCompileHighOptLevel("org.jnode.vm.memmgr.mmtk.ms"); addCompileHighOptLevel("org.mmtk.plan"); addCompileHighOptLevel("org.mmtk.policy"); addCompileHighOptLevel("org.mmtk.utility"); addCompileHighOptLevel("org.mmtk.utility.alloc"); addCompileHighOptLevel("org.mmtk.utility.deque"); addCompileHighOptLevel("org.mmtk.utility.gcspy"); addCompileHighOptLevel("org.mmtk.utility.gcspy.drivers"); addCompileHighOptLevel("org.mmtk.utility.heap"); addCompileHighOptLevel("org.mmtk.utility.options"); addCompileHighOptLevel("org.mmtk.utility.scan"); addCompileHighOptLevel("org.mmtk.utility.statistics"); addCompileHighOptLevel("org.mmtk.vm"); addCompileHighOptLevel("org.mmtk.vm.gcspy"); if (false) { addCompileHighOptLevel("java.awt"); addCompileHighOptLevel("java.awt.event"); addCompileHighOptLevel("java.awt.peer"); addCompileHighOptLevel("java.awt.font"); addCompileHighOptLevel("java.awt.geom"); addPreloadPackage("javax.swing"); addPreloadPackage("javax.swing.border"); addPreloadPackage("javax.swing.event"); addPreloadPackage("javax.swing.plaf"); addPreloadPackage("javax.swing.plaf.basic"); addPreloadPackage("javax.swing.plaf.metal"); } }
|
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.clone(); int origin = recurrent.index; tk = (REToken) tk.clone(); tk.next = tk.uncle = null; if (tk.match(input, recurrent)) { if (recurrent.index == origin) recurrent.empty = true; // add all items in current to doables array doables.addTail(recurrent); } } return doables.head; }
|
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; } else { return false; } } // number of times we've matched so far int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); // if none of the possibilities worked out, // it means that minimum number of repeats could not be found. if (doables == null) return false; // reassign where the next repeat can match newMatch = doables; // increment how many repeats we've successfully found ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true; break; } lastIndex = newMatch.index; } Vector positions = new Vector(); while (numRepeats <= max) { // We want to check something like // if (stingy) // and neglect the further matching. But experience tells // such neglection may cause incomplete matching. // For example, if we neglect the seemingly unnecessay // matching, /^(b+?|a){1,2}?c/ cannot match "bbc". // On the other hand, if we do not stop the unnecessary // matching, /(([a-c])b*?\2)*/ matches "ababbbcbc" // entirely when we wan to find only "ababb". // In order to make regression tests pass, we do as we did. if (stopMatchingIfSatisfied && stingy) { REMatch results = matchRest(input, newMatch); if (results != null) { mymatch.assignFrom(results); return true; } } positions.add(newMatch); if (emptyMatchFound) break; doables = findDoables(token, input, newMatch); if (doables == null) break; // doables.index == lastIndex occurs either // (1) when an empty string was the longest // that matched this token. // or // (2) when the same string matches this token many times. // For example, "acbab" itself matches "a.*b" and // its substrings "acb" and "ab" also match. // In this case, we do not have to go further until // numRepeats == max because the more numRepeats grows, // the shorter the substring matching this token becomes. // So the previous succesful match must have bee the best // match. But this is not necessarily the case if stingy. if (doables.index == lastIndex) { if (doables.empty) { emptyMatchFound = true; } else { if (!stingy) break; } } numRepeats++; newMatch = doables; lastIndex = newMatch.index; } // We're greedy, but ease off until a true match is found. // At this point we've either got too many or just the right amount. // See if this numRepeats works with the rest of the regexp. REMatch.REMatchList allResults = new REMatch.REMatchList(); int posCount = positions.size(); int posIndex = (stingy ? 0 : posCount - 1); while (posCount-- > 0) { REMatch m = (REMatch) positions.elementAt(posIndex); if (stingy) posIndex++; else posIndex--; REMatch results = matchRest(input, m); if (results != null) { // Order these from longest to shortest // Start by assuming longest (more repeats) // If stingy the order is shortest to longest. allResults.addTail(results); } else { if (possessive) break; } } if (allResults.head != null) { mymatch.assignFrom(allResults.head); // does this get all? return true; } // If we fall out, no matches. return false; }
|
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(max, min); newMatch = _match(input, newMatch, max1, stopMatchingIfSatisfied, visited); if (newMatch != null) { mymatch.assignFrom(newMatch);
|
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; } else { return false; } } // number of times we've matched so far int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); // if none of the possibilities worked out, // it means that minimum number of repeats could not be found. if (doables == null) return false; // reassign where the next repeat can match newMatch = doables; // increment how many repeats we've successfully found ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true; break; } lastIndex = newMatch.index; } Vector positions = new Vector(); while (numRepeats <= max) { // We want to check something like // if (stingy) // and neglect the further matching. But experience tells // such neglection may cause incomplete matching. // For example, if we neglect the seemingly unnecessay // matching, /^(b+?|a){1,2}?c/ cannot match "bbc". // On the other hand, if we do not stop the unnecessary // matching, /(([a-c])b*?\2)*/ matches "ababbbcbc" // entirely when we wan to find only "ababb". // In order to make regression tests pass, we do as we did. if (stopMatchingIfSatisfied && stingy) { REMatch results = matchRest(input, newMatch); if (results != null) { mymatch.assignFrom(results); return true; } } positions.add(newMatch); if (emptyMatchFound) break; doables = findDoables(token, input, newMatch); if (doables == null) break; // doables.index == lastIndex occurs either // (1) when an empty string was the longest // that matched this token. // or // (2) when the same string matches this token many times. // For example, "acbab" itself matches "a.*b" and // its substrings "acb" and "ab" also match. // In this case, we do not have to go further until // numRepeats == max because the more numRepeats grows, // the shorter the substring matching this token becomes. // So the previous succesful match must have bee the best // match. But this is not necessarily the case if stingy. if (doables.index == lastIndex) { if (doables.empty) { emptyMatchFound = true; } else { if (!stingy) break; } } numRepeats++; newMatch = doables; lastIndex = newMatch.index; } // We're greedy, but ease off until a true match is found. // At this point we've either got too many or just the right amount. // See if this numRepeats works with the rest of the regexp. REMatch.REMatchList allResults = new REMatch.REMatchList(); int posCount = positions.size(); int posIndex = (stingy ? 0 : posCount - 1); while (posCount-- > 0) { REMatch m = (REMatch) positions.elementAt(posIndex); if (stingy) posIndex++; else posIndex--; REMatch results = matchRest(input, m); if (results != null) { // Order these from longest to shortest // Start by assuming longest (more repeats) // If stingy the order is shortest to longest. allResults.addTail(results); } else { if (possessive) break; } } if (allResults.head != null) { mymatch.assignFrom(allResults.head); // does this get all? return true; } // If we fall out, no matches. return false; }
|
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; } else { return false; } } // number of times we've matched so far int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); // if none of the possibilities worked out, // it means that minimum number of repeats could not be found. if (doables == null) return false; // reassign where the next repeat can match newMatch = doables; // increment how many repeats we've successfully found ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true; break; } lastIndex = newMatch.index; } Vector positions = new Vector(); while (numRepeats <= max) { // We want to check something like // if (stingy) // and neglect the further matching. But experience tells // such neglection may cause incomplete matching. // For example, if we neglect the seemingly unnecessay // matching, /^(b+?|a){1,2}?c/ cannot match "bbc". // On the other hand, if we do not stop the unnecessary // matching, /(([a-c])b*?\2)*/ matches "ababbbcbc" // entirely when we wan to find only "ababb". // In order to make regression tests pass, we do as we did. if (stopMatchingIfSatisfied && stingy) { REMatch results = matchRest(input, newMatch); if (results != null) { mymatch.assignFrom(results); return true; } } positions.add(newMatch); if (emptyMatchFound) break; doables = findDoables(token, input, newMatch); if (doables == null) break; // doables.index == lastIndex occurs either // (1) when an empty string was the longest // that matched this token. // or // (2) when the same string matches this token many times. // For example, "acbab" itself matches "a.*b" and // its substrings "acb" and "ab" also match. // In this case, we do not have to go further until // numRepeats == max because the more numRepeats grows, // the shorter the substring matching this token becomes. // So the previous succesful match must have bee the best // match. But this is not necessarily the case if stingy. if (doables.index == lastIndex) { if (doables.empty) { emptyMatchFound = true; } else { if (!stingy) break; } } numRepeats++; newMatch = doables; lastIndex = newMatch.index; } // We're greedy, but ease off until a true match is found. // At this point we've either got too many or just the right amount. // See if this numRepeats works with the rest of the regexp. REMatch.REMatchList allResults = new REMatch.REMatchList(); int posCount = positions.size(); int posIndex = (stingy ? 0 : posCount - 1); while (posCount-- > 0) { REMatch m = (REMatch) positions.elementAt(posIndex); if (stingy) posIndex++; else posIndex--; REMatch results = matchRest(input, m); if (results != null) { // Order these from longest to shortest // Start by assuming longest (more repeats) // If stingy the order is shortest to longest. allResults.addTail(results); } else { if (possessive) break; } } if (allResults.head != null) { mymatch.assignFrom(allResults.head); // does this get all? return true; } // If we fall out, no matches. return false; }
|
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; break; } lastIndex = newMatch.index; } Vector positions = new Vector(); while (numRepeats <= max) { if (stopMatchingIfSatisfied && stingy) { REMatch results = matchRest(input, newMatch); if (results != null) { mymatch.assignFrom(results); return true; } } positions.add(newMatch); if (emptyMatchFound) break; doables = findDoables(token, input, newMatch); if (doables == null) break; if (doables.index == lastIndex) { if (doables.empty) { emptyMatchFound = true; } else { if (!stingy) break; } } numRepeats++; newMatch = doables; lastIndex = newMatch.index; } REMatch.REMatchList allResults = new REMatch.REMatchList(); int posCount = positions.size(); int posIndex = (stingy ? 0 : posCount - 1); while (posCount-- > 0) { REMatch m = (REMatch) positions.elementAt(posIndex); if (stingy) posIndex++; else posIndex--; REMatch results = matchRest(input, m); if (results != null) { allResults.addTail(results); } else { if (possessive) break; } } if (allResults.head != null) { mymatch.assignFrom(allResults.head); return true; } return false; }
|
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; } else { return false; } } // number of times we've matched so far int numRepeats = 0; REMatch doables; int lastIndex = mymatch.index; boolean emptyMatchFound = false; while (numRepeats < min) { doables = findDoables(token, input, newMatch); // if none of the possibilities worked out, // it means that minimum number of repeats could not be found. if (doables == null) return false; // reassign where the next repeat can match newMatch = doables; // increment how many repeats we've successfully found ++numRepeats; if (newMatch.empty) { numRepeats = min; emptyMatchFound = true; break; } lastIndex = newMatch.index; } Vector positions = new Vector(); while (numRepeats <= max) { // We want to check something like // if (stingy) // and neglect the further matching. But experience tells // such neglection may cause incomplete matching. // For example, if we neglect the seemingly unnecessay // matching, /^(b+?|a){1,2}?c/ cannot match "bbc". // On the other hand, if we do not stop the unnecessary // matching, /(([a-c])b*?\2)*/ matches "ababbbcbc" // entirely when we wan to find only "ababb". // In order to make regression tests pass, we do as we did. if (stopMatchingIfSatisfied && stingy) { REMatch results = matchRest(input, newMatch); if (results != null) { mymatch.assignFrom(results); return true; } } positions.add(newMatch); if (emptyMatchFound) break; doables = findDoables(token, input, newMatch); if (doables == null) break; // doables.index == lastIndex occurs either // (1) when an empty string was the longest // that matched this token. // or // (2) when the same string matches this token many times. // For example, "acbab" itself matches "a.*b" and // its substrings "acb" and "ab" also match. // In this case, we do not have to go further until // numRepeats == max because the more numRepeats grows, // the shorter the substring matching this token becomes. // So the previous succesful match must have bee the best // match. But this is not necessarily the case if stingy. if (doables.index == lastIndex) { if (doables.empty) { emptyMatchFound = true; } else { if (!stingy) break; } } numRepeats++; newMatch = doables; lastIndex = newMatch.index; } // We're greedy, but ease off until a true match is found. // At this point we've either got too many or just the right amount. // See if this numRepeats works with the rest of the regexp. REMatch.REMatchList allResults = new REMatch.REMatchList(); int posCount = positions.size(); int posIndex = (stingy ? 0 : posCount - 1); while (posCount-- > 0) { REMatch m = (REMatch) positions.elementAt(posIndex); if (stingy) posIndex++; else posIndex--; REMatch results = matchRest(input, m); if (results != null) { // Order these from longest to shortest // Start by assuming longest (more repeats) // If stingy the order is shortest to longest. allResults.addTail(results); } else { if (possessive) break; } } if (allResults.head != null) { mymatch.assignFrom(allResults.head); // does this get all? return true; } // If we fall out, no matches. return false; }
|
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 newNodeNameString, String noChildObjectNodeName ) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) writeOut(outputstream, indent); writeOut(outputstream, "<" + nodeName ); String href = getHref(); if (href !=null) writeOut(outputstream, " href = \"" + href + "\""); String checksum = getChecksum(); if (checksum != null) writeOut(outputstream, " checksum = \"" + checksum.toString() + "\""); writeOut(outputstream, ">"); //end of opening code //write out just the data XMLDataIOStyle readObj = parentArray.getXMLDataIOStyle(); OutputStream dataOutputStream; if (href !=null) { //write out to another file, try { dataOutputStream = new FileOutputStream(getHref()); } catch (IOException e) { //oops, sth. is wrong, writ out to the passed in OutputStream dataOutputStream = outputstream; } } else { // no *href* attribute specified, write out to the passed in OutputStream dataOutputStream = outputstream; } Locator currentLocator = parentArray.createLocator(); AxisInterface fastestAxis = (AxisInterface) parentArray.getAxisList().get(0); //stores the NoDataValues for the parentArray, //used in writing out when NoDataException is caught String NoDataValues[] = new String[fastestAxis.getLength()]; if (parentArray.hasFieldAxis()) { DataFormat[] dataFormatList = parentArray.getDataFormatList(); for (int i = 0; i < NoDataValues.length; i++) { DataFormat d = dataFormatList[i]; if (d != null && d.getNoDataValue() != null) NoDataValues[i]=d.getNoDataValue().toString(); } } else { DataFormat d = parentArray.getDataFormat(); for (int i = 0; i < NoDataValues.length; i++) { if (d!=null && d.getNoDataValue() != null) NoDataValues[i] = d.getNoDataValue().toString(); } } if (readObj instanceof TaggedXMLDataIOStyle) { String[] tagOrder = ((TaggedXMLDataIOStyle)readObj).getAxisTags(); int stop = tagOrder.length; String[] tags = new String[stop]; for (int i = stop-1; i >= 0 ; i--) { tags[stop-i-1] = tagOrder[i]; // System.out.println(tagOrder.get(i)); } int[] axes = getMaxDataIndex(); stop =axes.length; int[] axisLength = new int[stop]; for (int i = 0; i < stop; i++) { axisLength[i] =axes[stop - 1 - i]; } writeTaggedData(dataOutputStream, currentLocator, indent, axisLength, tags, 0, fastestAxis, NoDataValues); } //done dealing with with TaggedXMLDataIOSytle else { if (readObj instanceof DelimitedXMLDataIOStyle) { writeDelimitedData( dataOutputStream, currentLocator, (DelimitedXMLDataIOStyle) readObj, fastestAxis, NoDataValues ); } else { writeFormattedData(dataOutputStream, currentLocator, (FormattedXMLDataIOStyle) readObj, fastestAxis, NoDataValues ); } } //close the data section appropriately if (niceOutput) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "</" + nodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
|
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 newNodeNameString, String noChildObjectNodeName ) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String indent = ""; indent = indent + strIndent; String nodeName = getClassXDFNodeName(); //open node if (niceOutput) writeOut(outputstream, indent); writeOut(outputstream, "<" + nodeName ); String href = getHref(); if (href !=null) writeOut(outputstream, " href = \"" + href + "\""); String checksum = getChecksum(); if (checksum != null) writeOut(outputstream, " checksum = \"" + checksum.toString() + "\""); writeOut(outputstream, ">"); //end of opening code //write out just the data XMLDataIOStyle readObj = parentArray.getXMLDataIOStyle(); OutputStream dataOutputStream; if (href !=null) { //write out to another file, try { dataOutputStream = new FileOutputStream(getHref()); } catch (IOException e) { //oops, sth. is wrong, writ out to the passed in OutputStream dataOutputStream = outputstream; } } else { // no *href* attribute specified, write out to the passed in OutputStream dataOutputStream = outputstream; } Locator currentLocator = parentArray.createLocator(); AxisInterface fastestAxis = (AxisInterface) parentArray.getAxisList().get(0); //stores the NoDataValues for the parentArray, //used in writing out when NoDataException is caught String NoDataValues[] = new String[fastestAxis.getLength()]; if (parentArray.hasFieldAxis()) { DataFormat[] dataFormatList = parentArray.getDataFormatList(); for (int i = 0; i < NoDataValues.length; i++) { DataFormat d = dataFormatList[i]; if (d != null && d.getNoDataValue() != null) NoDataValues[i]=d.getNoDataValue().toString(); } } else { DataFormat d = parentArray.getDataFormat(); for (int i = 0; i < NoDataValues.length; i++) { if (d!=null && d.getNoDataValue() != null) NoDataValues[i] = d.getNoDataValue().toString(); } } if (readObj instanceof TaggedXMLDataIOStyle) { String[] tagOrder = ((TaggedXMLDataIOStyle)readObj).getAxisTags(); int stop = tagOrder.length; String[] tags = new String[stop]; for (int i = stop-1; i >= 0 ; i--) { tags[stop-i-1] = tagOrder[i]; // System.out.println(tagOrder.get(i)); } int[] axes = getMaxDataIndex(); stop =axes.length; int[] axisLength = new int[stop]; for (int i = 0; i < stop; i++) { axisLength[i] =axes[stop - 1 - i]; } writeTaggedData(dataOutputStream, currentLocator, indent, axisLength, tags, 0, fastestAxis, NoDataValues); } //done dealing with with TaggedXMLDataIOSytle else { if (readObj instanceof DelimitedXMLDataIOStyle) { writeDelimitedData( dataOutputStream, currentLocator, (DelimitedXMLDataIOStyle) readObj, fastestAxis, NoDataValues ); } else { writeFormattedData(dataOutputStream, currentLocator, (FormattedXMLDataIOStyle) readObj, fastestAxis, NoDataValues ); } } //close the data section appropriately if (niceOutput) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } writeOut(outputstream, "</" + nodeName + ">"); if (niceOutput) writeOut(outputstream, Constants.NEW_LINE); }
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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 | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) {
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height);
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); }
|
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 contentPaneSize = contentPane.getPreferredSize(); // 1. the glassPane fills entire viewable region (bounds - insets). // 2. the layeredPane filles entire viewable region. // 3. the menuBar is positioned at the upper edge of layeredPane. // 4. the contentPane fills viewable region minus menuBar, if present. /* 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 +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | | | | +--------------------------+ | +-------------------------------+ */ if (containerWidth == 0 && containerHeight == 0) { if (menuBar != null) { 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, contentPaneSize.height); layeredPane.setBounds(0, 0, maxWidth, menuBarSize.height + contentPaneSize.height); } else { glassPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); contentPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); layeredPane.setBounds(0, 0, contentPaneSize.width, contentPaneSize.height); } } 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, containerWidth, (containerHeight - menuBarSize.height)); } else { glassPane.setBounds(0, 0, containerWidth, containerHeight); contentPane.setBounds(0, 0, containerWidth, containerHeight); } layeredPane.setBounds(0, 0, containerWidth, containerHeight); } }
|
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 != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height); } else prefSize = contentPaneSize; } else prefSize = c.getSize(); return prefSize; }
|
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 != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height); } else prefSize = contentPaneSize; } else prefSize = c.getSize(); return prefSize; }
|
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 != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height); } else prefSize = contentPaneSize; } else prefSize = c.getSize(); return prefSize; }
|
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 != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height); } else prefSize = contentPaneSize; } else prefSize = c.getSize(); return prefSize; }
|
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); firePropertyChange(MODEL_PROPERTY_CHANGED, old, model); 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(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; firePropertyChange(PROTOTYPE_CELL_VALUE_PROPERTY_CHANGED, old, 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) selectionModel.addListSelectionListener(listListener); firePropertyChange(SELECTION_MODEL_PROPERTY_CHANGED, old, model); 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
|
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); } } } else { int index = sessionPane.indexOfComponent(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); int tabs = sessionPane.getTabCount(); sessionPane.remove(index); tabs--; if (index < tabs) { sessionPane.setSelectedIndex(index); sessionPane.setForegroundAt(index,Color.blue); sessionPane.setIconAt(index,focused); ((Session)sessionPane.getComponentAt(index)).requestFocus(); } else { if (tabs > 0) { sessionPane.setSelectedIndex(0); sessionPane.setForegroundAt(0,Color.blue); sessionPane.setIconAt(0,focused); ((Session)sessionPane.getComponentAt(0)).requestFocus(); } } } }
|
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 is then calculated in the GapContentPosition. int mark = offset; if (offset > gapStart) mark += gapEnd - gapStart; GapContentPosition pos = new GapContentPosition(mark); // Add this into our list in a sorted fashion. int index = Collections.binarySearch(positions, pos); if (index < 0) index = -(index + 1); positions.add(index, pos); return pos; }
|
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 ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); // check if requested segment is contiguous if ((where < gapStart) && ((gapStart - where) < len)) { // requested segment is not contiguous -> copy the pieces together char[] copy = new char[len]; int lenFirst = gapStart - where; // the length of the first segment System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; } else { // requested segment is contiguous -> we can simply return the // actual content txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } }
|
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 ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); // check if requested segment is contiguous if ((where < gapStart) && ((gapStart - where) < len)) { // requested segment is not contiguous -> copy the pieces together char[] copy = new char[len]; int lenFirst = gapStart - where; // the length of the first segment System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; } else { // requested segment is contiguous -> we can simply return the // actual content txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } }
|
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 ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); // check if requested segment is contiguous if ((where < gapStart) && ((gapStart - where) < len)) { // requested segment is not contiguous -> copy the pieces together char[] copy = new char[len]; int lenFirst = gapStart - where; // the length of the first segment System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; } else { // requested segment is contiguous -> we can simply return the // actual content txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } }
|
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 ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); // check if requested segment is contiguous if ((where < gapStart) && ((gapStart - where) < len)) { // requested segment is not contiguous -> copy the pieces together char[] copy = new char[len]; int lenFirst = gapStart - where; // the length of the first segment System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; } else { // requested segment is contiguous -> we can simply return the // actual content txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } }
|
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 ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); // check if requested segment is contiguous if ((where < gapStart) && ((gapStart - where) < len)) { // requested segment is not contiguous -> copy the pieces together char[] copy = new char[len]; int lenFirst = gapStart - where; // the length of the first segment System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; txt.offset = 0; txt.count = len; } else { // requested segment is contiguous -> we can simply return the // actual content txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } }
|
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 || seg.offset >= seg.array.length) invalid = seg.offset; else invalid = seg.offset + seg.count; throw new BadLocationException("Illegal location: array.length = " + seg.array.length + ", offset = " + seg.offset + ", count = " + seg.count, invalid); } }
|
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 || seg.offset >= seg.array.length) invalid = seg.offset; else invalid = seg.offset + seg.count; throw new BadLocationException("Illegal location: array.length = " + seg.array.length + ", offset = " + seg.offset + ", count = " + seg.count, invalid); } }
|
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 content length", where); replace(where, 0, str.toCharArray(), str.length()); return null; }
|
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 content length", where); replace(where, 0, str.toCharArray(), str.length()); return null; }
|
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 content length", where); replace(where, 0, str.toCharArray(), str.length()); return null; }
|
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.