rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
throws SocketException { skbuf.setTransportLayerHeader(udpHdr); udpHdr.prefixTo(skbuf); ipService.transmit(ipHdr, skbuf); stat.opackets.inc(); }
throws SocketException { skbuf.setTransportLayerHeader(udpHdr); udpHdr.prefixTo(skbuf); ipService.transmit(ipHdr, skbuf); stat.opackets.inc(); }
protected void send(IPv4Header ipHdr, UDPHeader udpHdr, SocketBuffer skbuf) throws SocketException { //Syslog.debug("UDP.send"); skbuf.setTransportLayerHeader(udpHdr); udpHdr.prefixTo(skbuf); ipService.transmit(ipHdr, skbuf); stat.opackets.inc(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4f39ad021d5f8146afc0905ccf235ac9bd5f949/UDPProtocol.java/buggy/net/src/net/org/jnode/net/ipv4/udp/UDPProtocol.java
public NamingContextExtHolder(NamingContextExt initialValue)
public NamingContextExtHolder()
public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/NamingContextExtHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextExtHolder.java
value = initialValue;
public NamingContextExtHolder(NamingContextExt initialValue) { value = initialValue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/NamingContextExtHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextExtHolder.java
w = 6; h = 18;
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB);
bi = new BufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB);
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
FontProvider fm = (FontProvider) new BDFFontProvider();
FontProvider fm = new BDFFontProvider();
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
tr = fm.getTextRenderer(font);
TextRenderer tr = fm.getTextRenderer(font);
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
*/
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
return;
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b6dafc70cf545bcd2e6298cfb44151d0b9b8feb4/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
if (version > 1) {
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
}
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/X509Certificate.java/clean/core/src/classpath/gnu/gnu/java/security/x509/X509Certificate.java
log.entering("JarVerifier", "start");
log.entering(this.getClass().getName(), "start");
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
String[] jeNameParts = jeName.split("/");
String[] jeNameParts = jeName.split("/");
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
System.out.println("jar is not signed.--no signature files found.");
System.out.println(Messages.getString("JarVerifier.2"));
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
System.out.println("jar verification failed.");
System.out.println(Messages.getString("JarVerifier.3"));
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
System.out.println("jar partially verified --" + count + " of " + limit + " signers.");
System.out.println(Messages.getFormattedString("JarVerifier.4", new Integer[] {Integer.valueOf(count), Integer.valueOf(limit)}));
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
System.out.println("jar verified --" + limit + " signer(s).");
System.out.println(Messages.getFormattedString("JarVerifier.7", Integer.valueOf(limit)));
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.exiting("JarVerifier", "start");
log.exiting(this.getClass().getName(), "start");
void start() throws Exception { log.entering("JarVerifier", "start"); String jarFileName = main.getJarFileName(); jarFile = new JarFile(jarFileName); // 1. find all signature (.SF) files List sfFiles = new ArrayList(); for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { Jar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "...");
log.entering(this.getClass().getName(), "verifySF"); log.finest("About to verify signature of " + sigFileName + "...");
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
throw new SecurityException("Signature Block missing for " + sigFileName);
throw new SecurityException(Messages.getFormattedString("JarVerifier.13", sigFileName));
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
throw new SecurityException("At least one SignerInfo element MUST be " + "present in a Signature Block (.DSA file)");
throw new SecurityException(Messages.getString("JarVerifier.14"));
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
throw new SecurityException("Missing EncryptedDigest in Signature Block " + "(.DSA file) first SignerInfo element"); log.finest("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes "));
throw new SecurityException(Messages.getString("JarVerifier.16")); log.finest("\n" + Util.dumpString(encryptedDigest, "--- signedSFBytes "));
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finest("--- verifier public key = " + verifierKey);
log.finest("--- verifier public key = " + verifierKey);
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.info("Signature block [" + sigFileName + "] is " + (result ? "" : "NOT ") + "OK");
log.finer("Signature block [" + sigFileName + "] is " + (result ? "" : "NOT ") + "OK");
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.exiting("JarVerifier", "verifySF", new Boolean(result));
log.exiting(this.getClass().getName(), "verifySF", Boolean.valueOf(result));
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering("JarVerifier", "verifySF"); log.finest("About to verify signature of " + sigFileName + "..."); // 1. find the corresponding .DSA file for this .SF file JarEntry dsaEntry =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.entering("JarVerifier", "verifySFEntries");
log.entering(this.getClass().getName(), "verifySFEntries");
private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.exiting("JarVerifier", "verifySFEntries", new Boolean(result));
log.exiting(this.getClass().getName(), "verifySFEntries", Boolean.valueOf(result));
private boolean verifySFEntries(String alias) throws IOException { log.entering("JarVerifier", "verifySFEntries"); // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); InputStream in = jarFile.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
log.finest("Is " + name + " OK? " + result);
log.finest("Is " + name + " OK? " + result);
private boolean verifySFEntry(String name, String hash) throws IOException { String expectedValue = getEntryHash(JarFile.MANIFEST_NAME); boolean result = expectedValue.equalsIgnoreCase(hash); log.finest("Is " + name + " OK? " + result); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarVerifier.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarVerifier.java
{
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
}
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
String nodeLocalName = node.getLocalName(); if (nodeLocalName != null && !equal(uri, nodeUri)) {
if (!equal(uri, nodeUri))
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
}
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
{
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
}
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
if (nodeLocalName != null) { nodeLocalName = node.getNodeName(); }
String nodeLocalName = getLocalName(node);
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NameTest.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/NameTest.java
public NotEmptyHolder(NotEmpty initialValue)
public NotEmptyHolder()
public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/NotEmptyHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/NotEmptyHolder.java
value = initialValue;
public NotEmptyHolder(NotEmpty initialValue) { value = initialValue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/NotEmptyHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/NotEmptyHolder.java
private void updateImage()
void updateImage()
private void updateImage() { switch (locked) { case HLOCKED: updateHLockImage(); break; case SLOCKED: updateSLockImage(); break; case BLOCKED: updateBLockImage(); break; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/DefaultHSBChooserPanel.java/clean/core/src/classpath/javax/javax/swing/colorchooser/DefaultHSBChooserPanel.java
private void updateSlider()
void updateSlider()
private void updateSlider() { if (slider == null) return; slider.setMinimum(0); if (locked == HLOCKED) { slider.setMaximum(359); ; slider.setValue(((Number) hSpinner.getValue()).intValue()); slider.setInverted(true); } else { slider.setMaximum(100); slider.setInverted(false); if (sRad...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/DefaultHSBChooserPanel.java/clean/core/src/classpath/javax/javax/swing/colorchooser/DefaultHSBChooserPanel.java
private void updateTrack()
void updateTrack()
private void updateTrack() { switch (locked) { case HLOCKED: updateHTrack(); break; case SLOCKED: updateSTrack(); break; case BLOCKED: updateBTrack(); break; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/DefaultHSBChooserPanel.java/clean/core/src/classpath/javax/javax/swing/colorchooser/DefaultHSBChooserPanel.java
public MemoryImageSource(int w, int h, int pix[], int off, int scan)
public MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan)
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/MemoryImageSource.java/buggy/core/src/classpath/java/java/awt/image/MemoryImageSource.java
this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null);
this(w, h, cm, pix, off, scan, null);
public MemoryImageSource(int w, int h, int pix[], int off, int scan) { this ( w, h, ColorModel.getRGBdefault(), pix, off, scan, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/MemoryImageSource.java/buggy/core/src/classpath/java/java/awt/image/MemoryImageSource.java
((VmNormalClass) cls).setObjectSize(objectSize);
((VmNormalClass<?>) cls).setObjectSize(objectSize);
private static void readFields(ByteBuffer data, VmType< ? > cls, VmCP cp, VmSharedStatics sharedStatics, VmIsolatedStatics isolatedStatics, int slotSize, int flags) { final int fcount = data.getChar(); if (fcount > 0) { final VmField[] ftable = new VmField[fcount]; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/982e1b1b1ed579528f868755d8a932bed0e03228/ClassDecoder.java/clean/core/src/core/org/jnode/vm/classmgr/ClassDecoder.java
if (model.isPressed() && b.getPressedIcon() != null)
if (model.isPressed() && b.getPressedIcon() != null && b.isEnabled())
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
else if (b.isSelected())
else if (b.isSelected() && b.isEnabled())
static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = b.getRol...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); b.setBackground(defaults.getColor(prefix + "background")); b.setMargin(defaults.getInsets(prefix + "margin")); b.setBorder(defaults.getBorder(prefix + "border")); b....
LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); focusColor = UIManager.getColor(prefix + "focus"); b.setMargin(UIManager.getInsets(prefix + "margin")); b.setIconTextGap(UIManager.getInt(prefix + "textIconGap"));
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
(InputMap) defaults.get(prefix + "focusInputMap")); b.setRolloverEnabled(defaults.getBoolean(prefix + "rollover")); b.setOpaque(true);
(InputMap) UIManager.get(prefix + "focusInputMap")); b.setRolloverEnabled(UIManager.getBoolean(prefix + "rollover"));
protected void installDefaults(AbstractButton b) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); String prefix = getPropertyPrefix(); b.setFont(defaults.getFont(prefix + "font")); focusColor = defaults.getColor(prefix + "focus"); b.setForeground(defaults.getColor(prefix + "foreground")); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
if (b.isFocusOwner())
if (b.isFocusOwner() && b.isFocusPainted())
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java
BasicListUI.this.damageLayout();
list.revalidate();
public void contentsChanged(ListDataEvent e) { BasicListUI.this.damageLayout(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
BasicListUI.this.damageLayout();
list.revalidate();
public void intervalAdded(ListDataEvent e) { BasicListUI.this.damageLayout(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
BasicListUI.this.damageLayout();
list.revalidate();
public void intervalRemoved(ListDataEvent e) { BasicListUI.this.damageLayout(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += modelChanged;
updateLayoutStateNeeded |= modelChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += selectionModelChanged;
updateLayoutStateNeeded |= selectionModelChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += fontChanged;
updateLayoutStateNeeded |= fontChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += fixedCellWidthChanged;
updateLayoutStateNeeded |= fixedCellWidthChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += fixedCellHeightChanged;
updateLayoutStateNeeded |= fixedCellHeightChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += prototypeCellValueChanged;
updateLayoutStateNeeded |= prototypeCellValueChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
updateLayoutStateNeeded += cellRendererChanged; BasicListUI.this.damageLayout();
updateLayoutStateNeeded |= cellRendererChanged;
public void propertyChange(PropertyChangeEvent e) { if (e.getSource() == BasicListUI.this.list) { if (e.getOldValue() != null && e.getOldValue() instanceof ListModel) ((ListModel) e.getOldValue()).removeListDataListener(BasicListUI.this.listDataListener); if (e.getNewValu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int index = list.getModel().getSize() - 1;;
int index = list.getModel().getSize() - 1;
protected int convertYToRow(int y0) { if (list.getModel().getSize() == 0) return -1; // When y0 < 0, then the JDK returns the maximum row index of the list. So // do we. if (y0 < 0) return list.getModel().getSize() - 1; // Update the layout if necessary. maybeUpdateLayoutState(); int i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
getRowHeight(minIndex));
getCellHeight(minIndex));
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
getRowHeight(i));
getCellHeight(i));
public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); Rectangle bounds = new Recta...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
if (size == 0) return new Dimension(0, 0);
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() - 1); Dimension retVal = bounds.getSize(); Component parent = list.getParent(); if ((visibleRows == -1) && (parent instanceof JViewport))
int h; int w; int maxCellHeight = cellHeight; if (maxCellHeight <= 0)
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
JViewport viewport = (JViewport) parent;
for (int i = 0; i < cellHeights.length; i++) maxCellHeight = Math.max(maxCellHeight, cellHeights[i]); }
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int h = viewport.getSize().height; int cellsPerCol = h / cellHeight; int w = size / cellsPerCol * cellWidth; retVal = new Dimension(w, h);
if (visibleRows > 0) { double modelSize = size; int neededColumns = (int) Math.ceil(modelSize / visibleRows); int adjustedRows = (int) Math.ceil(modelSize / neededColumns); h = maxCellHeight * adjustedRows; w = cellWidth * neededColumns; } else { int neededColumns = Math.min(1, list.getWidth() / cellWidth); h = size /...
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int w = viewport.getSize().width; int cellsPerRow = Math.max(w / cellWidth, 1); int h = size / cellsPerRow * cellHeight; retVal = new Dimension(w, h);
if (visibleRows > 0) h = visibleRows * maxCellHeight; else h = Math.max(list.getHeight(), maxCellHeight); int neededColumns = h / maxCellHeight; w = cellWidth * neededColumns;
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
Insets insets = list.getInsets(); Dimension retVal = new Dimension(w + insets.left + insets.right, h + insets.top + insets.bottom);
public Dimension getPreferredSize(JComponent c) { int size = list.getModel().getSize(); if (size == 0) return new Dimension(0, 0); int visibleRows = list.getVisibleRowCount(); int layoutOrientation = list.getLayoutOrientation(); Rectangle bounds = getCellBounds(list, 0, list.getModel().getSize() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
public Point indexToLocation(JList list, int index)
public Point indexToLocation(JList l, int index)
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int visibleRows = list.getVisibleRowCount();
int maxCellHeight = getCellHeight(0); int visibleRows = list.getHeight() / maxCellHeight;
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
if (visibleRows <= 0) { Dimension listDim = list.getSize(); numberOfCellsPerRow = Math.max(listDim.width / cellWidth, 1); } else {
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
}
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int locY = gridY * cellHeight;
int locY; locY = gridY * maxCellHeight;
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int visibleRows2 = list.getVisibleRowCount(); if (visibleRows2 <= 0) { Dimension listDim2 = list.getSize(); visibleRows2 = listDim2.height / cellHeight; }
int maxCellHeight2 = getCellHeight(0); int visibleRows2 = list.getHeight() / maxCellHeight2;
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int locY2 = gridY2 * cellHeight;
int locY2 = gridY2 * maxCellHeight2;
public Point indexToLocation(JList list, int index) { int layoutOrientation = list.getLayoutOrientation(); Point loc = null; switch (layoutOrientation) { case JList.VERTICAL: loc = new Point(0, convertRowToY(index)); break; case JList.HORIZONTAL_WRAP: // determine visible...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
componentListener = new ComponentHandler(); list.addComponentListener(componentListener);
protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
public int locationToIndex(JList list, Point location)
public int locationToIndex(JList l, Point location)
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int visibleRows = list.getVisibleRowCount();
int maxCellHeight = getCellHeight(0); int visibleRows = list.getHeight() / maxCellHeight;
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
Dimension listDim = list.getSize(); if (visibleRows <= 0) { try { cellsPerRow = listDim.width / cellWidth; } catch (ArithmeticException ex) { cellsPerRow = 1; } } else {
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
}
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int gridY = Math.min(location.y / cellHeight, cellsPerColumn);
int gridY = Math.min(location.y / maxCellHeight, cellsPerColumn);
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int visibleRows2 = list.getVisibleRowCount(); if (visibleRows2 <= 0) { Dimension listDim2 = list.getSize(); visibleRows2 = listDim2.height / cellHeight; }
int maxCellHeight2 = getCellHeight(0); int visibleRows2 = list.getHeight() / maxCellHeight2;
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int gridY2 = Math.min(location.y / cellHeight, visibleRows2);
int gridY2 = Math.min(location.y / maxCellHeight2, visibleRows2);
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
if (updateLayoutStateNeeded != 0)
if (updateLayoutStateNeeded != 0 || !list.isValid())
protected void maybeUpdateLayoutState() { if (updateLayoutStateNeeded != 0) { updateLayoutState(); updateLayoutStateNeeded = 0; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
int startIndex = list.locationToIndex(new Point(clip.x, clip.y)); int endIndex = list.locationToIndex(new Point(clip.x + clip.width,
int startIndex = locationToIndex(list, new Point(clip.x, clip.y)); int endIndex = locationToIndex(list, new Point(clip.x + clip.width,
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
protected void uninstallListeners() { list.removeFocusListener(focusListener); list.getModel().removeListDataListener(listDataListener); list.removeListSelectionListener(listSelectionListener); list.removeMouseListener(mouseInputListener); //list.removeKeyListener(keyListener); list.removeMouseMoti...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
private static Color getColor(String s)
private static Color getColor(String colorName)
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/CharacterAttributeTranslator.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/CharacterAttributeTranslator.java
String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s;
colorName = colorName.toLowerCase();
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/CharacterAttributeTranslator.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/CharacterAttributeTranslator.java
catch(NumberFormatException nfe)
} catch (Exception nex)
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/CharacterAttributeTranslator.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/CharacterAttributeTranslator.java
private static Color getColor(String s) { String s2 = (String)colorMap.get(s.toLowerCase()); if( s2 == null ) s2 = s; try { return Color.decode(s2); } catch(NumberFormatException nfe) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/CharacterAttributeTranslator.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/CharacterAttributeTranslator.java
"Table.focusCellHighlightBorder", getControlShadow(),
"Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(getControlShadow()),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java
setSelectionMode(SINGLE_TREE_SELECTION);
setSelectionMode(DISCONTIGUOUS_TREE_SELECTION);
public DefaultTreeSelectionModel() { setSelectionMode(SINGLE_TREE_SELECTION); listenerList = new EventListenerList(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
throw new BAD_PARAM("Little endian is not yet supported", FAILED, CompletionStatus.COMPLETED_NO );
{ Big_Endian = false; c.setBigEndian(false); }
public void _read(cdrInput c) throws IOException, BAD_PARAM { int endian; endian = c.read_long(); if (endian != 0) throw new BAD_PARAM("Little endian is not yet supported", FAILED, CompletionStatus.COMPLETED_NO ); _read_no_endian(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/IOR.java/buggy/core/src/classpath/gnu/gnu/CORBA/IOR.java
if (n_profiles == 0) { Id = null; Internet = null; return; }
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); for (int i = 0; i < n_profiles; i++) { int tag = c.read_long(); cdrBufInput profile = c.read_encapsulation(); if (tag == Internet_prof...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/IOR.java/buggy/core/src/classpath/gnu/gnu/CORBA/IOR.java
ULongSeqHolder h = new ULongSeqHolder(); h._read(input); return h.value;
int[] value = new int[ input.read_long() ]; input.read_ulong_array(value, 0, value.length); return value;
public static int[] read(InputStream input) { ULongSeqHolder h = new ULongSeqHolder(); h._read(input); return h.value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/ULongSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/ULongSeqHelper.java
ULongSeqHolder h = new ULongSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_ulong_array(value, 0, value.length);
public static void write(OutputStream output, int[] value) { ULongSeqHolder h = new ULongSeqHolder(value); h._write(output); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/ULongSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/ULongSeqHelper.java
Collection<String> resolvers = ResolverImpl.getDnsServers(); if( resolvers == null ) System.out.println("No DNS servers found."); else {
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); if (cmdLine.size() == 0) { Collection<String> resolvers = ResolverImpl.getDnsServers(); if( resolvers == null )...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1079d0c42c602d6651202d24c91b9f2b6c3ec7de/ResolverCommand.java/buggy/net/src/net/org/jnode/net/command/ResolverCommand.java
for (String dnsServer : resolvers) { System.out.println(dnsServer);
ResolverImpl.printDnsServers();
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); if (cmdLine.size() == 0) { Collection<String> resolvers = ResolverImpl.getDnsServers(); if( resolvers == null )...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1079d0c42c602d6651202d24c91b9f2b6c3ec7de/ResolverCommand.java/buggy/net/src/net/org/jnode/net/command/ResolverCommand.java
} }
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); if (cmdLine.size() == 0) { Collection<String> resolvers = ResolverImpl.getDnsServers(); if( resolvers == null )...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1079d0c42c602d6651202d24c91b9f2b6c3ec7de/ResolverCommand.java/buggy/net/src/net/org/jnode/net/command/ResolverCommand.java