rem stringlengths 0 912 | add stringlengths 0 1.44k | context stringlengths 20 43.7k | meta stringlengths 169 231 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
} | } | protected BasicToolBarUI.DragWindow createDragWindow(JToolBar toolbar) { return new DragWindow(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
7651,
6364,
5190,
5370,
18,
11728,
3829,
752,
11728,
3829,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
327,
394,
28425,
3829,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
7651,
6364,
5190,
5370,
18,
11728,
3829,
752,
11728,
3829,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
327,
394,
28425,
3829,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction); | int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction); | int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Scrollable.java/buggy/core/src/classpath/javax/javax/swing/Scrollable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
6120,
16,
509,
9820,
16,
509,
4068,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
6120,
16,
509,
9820,
16,
509,
4068,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (editable) start(); else | if (editable) start(); else | public void update() { stop(); Caret c = caret; if (c != null) { setDelay(c.getBlinkRate()); if (editable) start(); else c.setVisible(false); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
1435,
565,
288,
5411,
2132,
5621,
1377,
385,
20731,
276,
273,
21683,
31,
1377,
309,
261,
71,
480,
446,
13,
202,
95,
202,
225,
444,
6763,
12,
71,
18,
588,
38,
1232,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
1435,
565,
288,
5411,
2132,
5621,
1377,
385,
20731,
276,
273,
21683,
31,
1377,
309,
261,
71,
480,
446,
13,
202,
95,
202,
225,
444,
6763,
12,
71,
18,
588,
38,
1232,
47... |
switch (abyte0[i]) { | switch(abyte0[i]) { | protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if (abyte0[i] == IAC) { // -1 while (i < abyte0.length && abyte0[i++] == -1) // while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == // 0x20)) switch (abyte0[i++]) { // we will not worry about what it WONT do case WONT: // -4 default: break; case DO: //-3 switch (abyte0[i]) { case TERMINAL_TYPE: // 24 baosp.write(IAC); baosp.write(WILL); baosp.write(TERMINAL_TYPE); writeByte(baosp.toByteArray()); baosp.reset(); break; case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(WILL); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // 0 baosp.write(IAC); baosp.write(WILL); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; case TIMING_MARK: // 6 rfc860 // System.out.println("Timing Mark Received and notifying " // + // "the server that we will not do it"); baosp.write(IAC); baosp.write(WONT); baosp.write(TIMING_MARK); writeByte(baosp.toByteArray()); baosp.reset(); break; case NEW_ENVIRONMENT: // 39 rfc1572 if (devName == null && user == null) { baosp.write(IAC); baosp.write(WONT); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } else { baosp.write(IAC); baosp.write(WILL); baosp.write(NEW_ENVIRONMENT); writeByte(baosp.toByteArray()); baosp.reset(); } break; default: // every thing else we will not do at this time baosp.write(IAC); baosp.write(WONT); baosp.write(abyte0[i]); // either writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case WILL: switch (abyte0[i]) { case OPT_END_OF_RECORD: // 25 baosp.write(IAC); baosp.write(DO); baosp.write(OPT_END_OF_RECORD); writeByte(baosp.toByteArray()); baosp.reset(); break; case TRANSMIT_BINARY: // '\0' baosp.write(IAC); baosp.write(DO); baosp.write(TRANSMIT_BINARY); writeByte(baosp.toByteArray()); baosp.reset(); break; } i++; break; case SB: // -6 if (abyte0[i] == NEW_ENVIRONMENT && abyte0[i + 1] == 1) { negNewEnvironment(); while (++i < abyte0.length && abyte0[i + 1] != IAC) ; } if (abyte0[i] == TERMINAL_TYPE && abyte0[i + 1] == 1) { baosp.write(IAC); baosp.write(SB); baosp.write(TERMINAL_TYPE); baosp.write(QUAL_IS); if (!support132) baosp.write("IBM-3179-2".getBytes()); else baosp.write("IBM-3477-FC".getBytes()); baosp.write(IAC); baosp.write(SE); writeByte(baosp.toByteArray()); baosp.reset(); i++; } i++; break; } return true; } else { return false; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/f8bbcf3d0c0f6b720f52a411edeba50f36e6fc11/tnvt.java/clean/tn5250j/src/org/tn5250j/tnvt.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1250,
17257,
3840,
12,
7229,
1223,
28354,
20,
63,
5717,
1216,
1860,
288,
202,
202,
474,
277,
273,
374,
31,
202,
202,
759,
628,
1438,
17257,
77,
1012,
202,
202,
430,
261,... |
public byte[] getBytes(String enc) throws UnsupportedEncodingException | public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) | public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); if(bbuf.hasArray()) return bbuf.array(); // Doubt this will happen. But just in case. byte[] bytes = new byte[bbuf.remaining()]; bbuf.get(bytes); return bytes; } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(CharacterCodingException e){ // XXX - Ignore coding exceptions? They shouldn't really happen. return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8425,
12,
474,
1705,
8149,
16,
509,
1705,
1638,
16,
1160,
3046,
63,
6487,
509,
3046,
8149,
13,
225,
288,
565,
775,
4202,
288,
202,
9652,
7204,
276,
307,
273,
12080,
18,
1884,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8425,
12,
474,
1705,
8149,
16,
509,
1705,
1638,
16,
1160,
3046,
63,
6487,
509,
3046,
8149,
13,
225,
288,
565,
775,
4202,
288,
202,
9652,
7204,
276,
307,
273,
12080,
18,
1884,... |
{ return tree.getShowsRootHandles(); } | { return tree.getShowsRootHandles(); } | protected boolean getShowsRootHandles() { return tree.getShowsRootHandles(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
7932,
543,
87,
2375,
8788,
1435,
202,
95,
202,
202,
2463,
2151,
18,
588,
24548,
2375,
8788,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
7932,
543,
87,
2375,
8788,
1435,
202,
95,
202,
202,
2463,
2151,
18,
588,
24548,
2375,
8788,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ return null; } | { return new NodeDimensionsHandler(); } | protected AbstractLayoutCache.NodeDimensions createNodeDimensions() { // FIXME: not implemented return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
3744,
1649,
18,
907,
10796,
24584,
10796,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
3744,
1649,
18,
907,
10796,
24584,
10796,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ tree.setRootVisible(newValue); } | { tree.setRootVisible(newValue); } | protected void setRootVisible(boolean newValue) { tree.setRootVisible(newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
31706,
6207,
12,
6494,
6129,
13,
202,
95,
1377,
2151,
18,
542,
2375,
6207,
12,
2704,
620,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
31706,
6207,
12,
6494,
6129,
13,
202,
95,
1377,
2151,
18,
542,
2375,
6207,
12,
2704,
620,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
{ } | { toggleExpandState(path); } | protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
12271,
3367,
6563,
12,
2471,
743,
589,
16,
509,
7644,
60,
16,
509,
7644,
61,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
12271,
3367,
6563,
12,
2471,
743,
589,
16,
509,
7644,
60,
16,
509,
7644,
61,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100... |
public Object copyObject(Object obj, javax.rmi.ORB orb) | public Object copyObject(Object obj, ORB orb) | public Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException { throw new Error("Not implemented for UtilDelegate"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
1610,
921,
12,
921,
1081,
16,
4869,
38,
16823,
13,
565,
1216,
18361,
225,
288,
565,
604,
394,
1068,
2932,
1248,
8249,
364,
3564,
9586,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
1610,
921,
12,
921,
1081,
16,
4869,
38,
16823,
13,
565,
1216,
18361,
225,
288,
565,
604,
394,
1068,
2932,
1248,
8249,
364,
3564,
9586,
8863,
225,
289,
2,
-100,
-100,
-100,
-... |
{ } | { } | public void actionPerformed(ActionEvent ae) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
14221,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
14221,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public JComboBox() | public JComboBox(ComboBoxModel model) | public JComboBox() { this(new DefaultComboBoxModel()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComboBox.java/buggy/core/src/classpath/javax/javax/swing/JComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
22199,
12,
22199,
1488,
938,
13,
225,
288,
565,
333,
12,
2704,
2989,
22199,
1488,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
22199,
12,
22199,
1488,
938,
13,
225,
288,
565,
333,
12,
2704,
2989,
22199,
1488,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ } | { } | public void mouseMoved(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
25317,
12,
9186,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
25317,
12,
9186,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Container p, Rectangle r) | Container p, int x, int y, int w, int h, boolean shouldValidate) | public void paintComponent(Graphics graphics, Component c, Container p, Rectangle r) { paintComponent(graphics, c, p, r.x, r.y, r.width, r.height); } // paintComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/CellRendererPane.java/buggy/core/src/classpath/javax/javax/swing/CellRendererPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
1841,
12,
17558,
17313,
16,
5435,
276,
16,
11794,
4039,
293,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
1250,
1410,
4270,
13,
225,
288,
565,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
1841,
12,
17558,
17313,
16,
5435,
276,
16,
11794,
4039,
293,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
1250,
1410,
4270,
13,
225,
288,
565,
125... |
if (keyListener != null) editor.removeKeyListener(keyListener); | protected void unconfigureEditor() { if (popupKeyListener != null) editor.removeKeyListener(popupKeyListener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
856,
2223,
480,
446,
13,
4858,
18,
4479,
653,
2223,
12,
856,
2223,
1769,
225,
309,
261,
856,
2223,
480,
446,
13,
4858,
18,
4479,
653,
2223,
12,
856,
2223,
1769,
225,
309,
261,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
856,
2223,
480,
446,
13,
4858,
18,
4479,
653,
2223,
12,
856,
2223,
1769,
225,
309,
261,
856,
2223,
480,
446,
13,
4858,
18,
4479,
653,
2223,
12,
856,
2223,
1769,
225,
309,
261,
85... | |
return s; | prefSize = s; | public Dimension getPreferredSize() { if (preferredSize != null) return preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) return s; } Dimension p = super.getPreferredSize(); return p; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
327,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
327,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
... |
} | tree.setScrollsOnExpand(defaults.getBoolean("Tree.scrollsOnExpand")); setExpandedIcon(defaults.getIcon("Tree.expandedIcon")); setCollapsedIcon(defaults.getIcon("Tree.collapsedIcon")); } | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); rightChildIndent = defaults.getInt("Tree.rightChildIndent"); leftChildIndent = defaults.getInt("Tree.leftChildIndent"); setRowHeight(defaults.getInt("Tree.rowHeight")); tree.requestFocusInWindow(false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
7019,
1435,
202,
95,
202,
202,
3060,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
202,
202,
3413,
18,
542,
5711,
12,
7606,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
7019,
1435,
202,
95,
202,
202,
3060,
73,
643,
87,
3467,
273,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
5621,
202,
202,
3413,
18,
542,
5711,
12,
7606,
18,
588,
... |
this.ip = img.getSource(); this.x = x; this.y = y; width = w; height = h; if (width >= 0 && height >= 0) { int_pixel_buffer = new int[width * height]; byte_pixel_buffer = new byte[width * height]; } this.forceRGB = forceRGB; | this (img.getSource(), x, y, w, h, pix, off, scansize); | public PixelGrabber(Image img, int x, int y, int w, int h, boolean forceRGB) { this.ip = img.getSource(); this.x = x; this.y = y; width = w; height = h; // If width or height is negative, postpone pixel buffer // initialization until setDimensions is called back by ip. if (width >= 0 && height >= 0) { int_pixel_buffer = new int[width * height]; byte_pixel_buffer = new byte[width * height]; } this.forceRGB = forceRGB; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f9edc08acdeb1f2f4fe82f01243818bd374a3e46/PixelGrabber.java/buggy/core/src/classpath/java/java/awt/image/PixelGrabber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26070,
14571,
23709,
12,
2040,
3774,
16,
1082,
1377,
509,
619,
16,
509,
677,
16,
1082,
1377,
509,
341,
16,
509,
366,
16,
1082,
1377,
1250,
2944,
11343,
13,
225,
288,
202,
202,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26070,
14571,
23709,
12,
2040,
3774,
16,
1082,
1377,
509,
619,
16,
509,
677,
16,
1082,
1377,
509,
341,
16,
509,
366,
16,
1082,
1377,
1250,
2944,
11343,
13,
225,
288,
202,
202,
221... |
} | } | public BasicToolBarUI() { // Do nothing here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7651,
6364,
5190,
5370,
1435,
565,
288,
565,
368,
2256,
5083,
2674,
18,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7651,
6364,
5190,
5370,
1435,
565,
288,
565,
368,
2256,
5083,
2674,
18,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return ((Integer) pane.getValue()).intValue(); | if (pane.getValue() instanceof Integer) return ((Integer) pane.getValue()).intValue(); return -1; | public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return ((Integer) pane.getValue()).intValue(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
2405,
11269,
6353,
12,
1841,
982,
1841,
16,
4766,
1377,
1033,
883,
16,
514,
2077,
16,
4766,
1377,
509,
1456,
559,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
2405,
11269,
6353,
12,
1841,
982,
1841,
16,
4766,
1377,
1033,
883,
16,
514,
2077,
16,
4766,
1377,
509,
1456,
559,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
80... |
+ service_context.context_id, 15, CompletionStatus.COMPLETED_NO); | + service_context.context_id, 15, CompletionStatus.COMPLETED_NO); | public static void add(org.omg.IOP.ServiceContext[] cx, org.omg.IOP.ServiceContext service_context, boolean replace) { int exists = -1; for (int i = 0; i < cx.length; i++) if (cx[i].context_id == service_context.context_id) exists = i; if (exists < 0) { // Add context. org.omg.IOP.ServiceContext[] n = new org.omg.IOP.ServiceContext[cx.length + 1]; for (int i = 0; i < cx.length; i++) n[i] = cx[i]; n[cx.length] = service_context; } else { // Replace context. if (!replace) throw new BAD_INV_ORDER("Repetetive setting of the context " + service_context.context_id, 15, CompletionStatus.COMPLETED_NO); else cx[exists] = service_context; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
527,
12,
3341,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
8526,
9494,
16,
565,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
1156,
67,
2472,
16,
1250,
1453,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
527,
12,
3341,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
8526,
9494,
16,
565,
2358,
18,
362,
75,
18,
45,
3665,
18,
1179,
1042,
1156,
67,
2472,
16,
1250,
1453,
13,
2... |
if (valueSpecialList.equals(valueSpecialList[i])) | if (strValueSpecial.equals(valueSpecialList[i])) | public static boolean isValidValueSpecial(String strValueSpecial) { if (strValueSpecial == null) return true; String[] valueSpecialList = Constants.VALUE_SPECIAL_LIST; int stop = valueSpecialList.length; for (int i = 0; i < stop; i++) { if (valueSpecialList.equals(valueSpecialList[i])) return true; } return false; } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/e0ca1b83a88a628b74cc5e38de05973a108e165e/Utility.java/buggy/src/gov/nasa/gsfc/adc/xdf/Utility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
4908,
620,
12193,
12,
780,
22842,
12193,
13,
288,
1377,
309,
261,
701,
620,
12193,
422,
446,
13,
327,
638,
31,
1377,
514,
8526,
460,
12193,
682,
273,
5245,
18,
4051,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
4908,
620,
12193,
12,
780,
22842,
12193,
13,
288,
1377,
309,
261,
701,
620,
12193,
422,
446,
13,
327,
638,
31,
1377,
514,
8526,
460,
12193,
682,
273,
5245,
18,
4051,
67... |
{ return new TreeModelHandler(); } | { return new TreeModelHandler(); } | protected TreeModelListener createTreeModelListener() { return new TreeModelHandler(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
1488,
2223,
752,
2471,
1488,
2223,
1435,
202,
95,
202,
202,
2463,
394,
4902,
1488,
1503,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
1488,
2223,
752,
2471,
1488,
2223,
1435,
202,
95,
202,
202,
2463,
394,
4902,
1488,
1503,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (b.getModel() == sel) sel = null; | public void remove(AbstractButton b) { b.getModel().setGroup(null); buttons.removeElement(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ButtonGroup.java/buggy/core/src/classpath/javax/javax/swing/ButtonGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
70,
18,
588,
1488,
1435,
422,
357,
13,
357,
273,
446,
31,
225,
309,
261,
70,
18,
588,
1488,
1435,
422,
357,
13,
357,
273,
446,
31,
225,
309,
261,
70,
18,
588,
1488,
1435,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
70,
18,
588,
1488,
1435,
422,
357,
13,
357,
273,
446,
31,
225,
309,
261,
70,
18,
588,
1488,
1435,
422,
357,
13,
357,
273,
446,
31,
225,
309,
261,
70,
18,
588,
1488,
1435,
422,
... | |
{ | { | public FontMetrics getFontMetrics(){ return getFontMetrics(getFont());} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Graphics.java/buggy/core/src/classpath/java/java/awt/Graphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10063,
5653,
18776,
5653,
1435,
95,
565,
327,
18776,
5653,
12,
588,
5711,
10663,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10063,
5653,
18776,
5653,
1435,
95,
565,
327,
18776,
5653,
12,
588,
5711,
10663,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return screenFields.isInField(pos,chgToField); | return isInField(lastPos,true); | public boolean isInField(int pos, boolean chgToField) { return screenFields.isInField(pos,chgToField); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0166767548ad2224376eff5004531d67a0ff55d6/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
8048,
974,
12,
474,
949,
16,
1250,
462,
75,
774,
974,
13,
288,
1377,
327,
8048,
974,
12,
2722,
1616,
16,
3767,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
8048,
974,
12,
474,
949,
16,
1250,
462,
75,
774,
974,
13,
288,
1377,
327,
8048,
974,
12,
2722,
1616,
16,
3767,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; | return indexOf(str, 0); | public synchronized int indexOf(String str, int fromIndex) { if (fromIndex < 0) fromIndex = 0; int limit = count - str.count; for ( ; fromIndex <= limit; fromIndex++) if (regionMatches(fromIndex, str)) return fromIndex; return -1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
509,
3133,
12,
780,
609,
16,
509,
15065,
13,
225,
288,
565,
309,
261,
2080,
1016,
411,
374,
13,
1377,
15065,
273,
374,
31,
565,
509,
1800,
273,
1056,
300,
609,
18,
1883,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
509,
3133,
12,
780,
609,
16,
509,
15065,
13,
225,
288,
565,
309,
261,
2080,
1016,
411,
374,
13,
1377,
15065,
273,
374,
31,
565,
509,
1800,
273,
1056,
300,
609,
18,
1883,
3... |
if (mod.getIndexOfChild(root, node) != -1) | if (treeModel.getIndexOfChild(root, node) != -1) | private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); int size = 0; if (!mod.isLeaf(root)) size = mod.getChildCount(root); for (int i = 0; i < size; i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i), node); if (n != null) return n; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1104,
907,
12,
921,
1365,
16,
1033,
756,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
509,
963,
273,
374,
31,
565,
309,
16051,
1711,
18,
291,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1104,
907,
12,
921,
1365,
16,
1033,
756,
13,
225,
288,
565,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
565,
509,
963,
273,
374,
31,
565,
309,
16051,
1711,
18,
291,
9... |
public synchronized void setContents(Transferable contents, ClipboardOwner owner) | public synchronized void setContents(Transferable contents, ClipboardOwner owner) | public synchronized void setContents(Transferable contents, ClipboardOwner owner) { if (this.owner != owner) if (this.owner != null) this.owner.lostOwnership(this, contents); this.owner = owner; this.contents = contents; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/Clipboard.java/buggy/core/src/classpath/java/java/awt/datatransfer/Clipboard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
6323,
12,
5912,
429,
2939,
16,
385,
3169,
3752,
5541,
3410,
13,
225,
288,
225,
309,
261,
2211,
18,
8443,
480,
3410,
13,
565,
309,
261,
2211,
18,
8443,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
6323,
12,
5912,
429,
2939,
16,
385,
3169,
3752,
5541,
3410,
13,
225,
288,
225,
309,
261,
2211,
18,
8443,
480,
3410,
13,
565,
309,
261,
2211,
18,
8443,
480,
446,
... |
} | } | public void setFloatingColor(Color c) { floatingColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
28344,
2957,
12,
2957,
276,
13,
565,
288,
565,
13861,
2957,
273,
276,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
28344,
2957,
12,
2957,
276,
13,
565,
288,
565,
13861,
2957,
273,
276,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ return largeModel; } | { return largeModel; } | protected boolean isLargeModel() { return largeModel; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
353,
20020,
1488,
1435,
202,
95,
202,
202,
2463,
7876,
1488,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
353,
20020,
1488,
1435,
202,
95,
202,
202,
2463,
7876,
1488,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
while (prev != null && !tree.isVisible(current)) { | while (prev != null && !tree.isVisible(current)) { | Object getPreviousVisibleNode(Object node) { Object prev = null; TreePath current = null; if (node != null) prev = getPreviousNode(node); if (prev != null) { current = new TreePath(getPathToRoot(prev, 0)); if (tree.isVisible(current)) return prev; while (prev != null && !tree.isVisible(current)) { prev = getPreviousNode(prev); if (prev != null) current = new TreePath(getPathToRoot(prev, 0)); } } return prev; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
2807,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
2807,
273,
17225,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
17225,
6207,
907,
12,
921,
756,
13,
282,
288,
565,
1033,
2807,
273,
446,
31,
1377,
4902,
743,
783,
273,
446,
31,
1377,
309,
261,
2159,
480,
446,
13,
1377,
2807,
273,
17225,
907,
... |
{ return UIManager.getLookAndFeelDefaults().getColor("Tree.hash"); } | { return UIManager.getLookAndFeelDefaults().getColor("Tree.hash"); } | protected Color getHashColor() { return UIManager.getLookAndFeelDefaults().getColor("Tree.hash"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5563,
16075,
2957,
1435,
202,
95,
202,
202,
2463,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
7675,
588,
2957,
2932,
2471,
18,
2816,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5563,
16075,
2957,
1435,
202,
95,
202,
202,
2463,
6484,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
7675,
588,
2957,
2932,
2471,
18,
2816,
8863,
202,
97,
2,
-100,
-100,
-100,
... |
{ | { | protected void setBorderToRollover(Component c) { if (c instanceof JButton) { JButton b = (JButton) c; b.setRolloverEnabled(true); b.setBorder(rolloverBorder); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
25715,
774,
4984,
21896,
12,
1841,
276,
13,
565,
288,
565,
309,
261,
71,
1276,
28804,
13,
1377,
288,
202,
46,
3616,
324,
273,
261,
46,
3616,
13,
276,
31,
202,
70,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
25715,
774,
4984,
21896,
12,
1841,
276,
13,
565,
288,
565,
309,
261,
71,
1276,
28804,
13,
1377,
288,
202,
46,
3616,
324,
273,
261,
46,
3616,
13,
276,
31,
202,
70,
18,
542,
... |
public static String valueOf(int i) | public static String valueOf(Object obj) | public static String valueOf(int i) { // See Integer to understand why we call the two-arg variant. return Integer.toString(i, 10); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
4323,
12,
921,
1081,
13,
225,
288,
565,
368,
2164,
2144,
358,
22413,
11598,
732,
745,
326,
2795,
17,
3175,
5437,
18,
565,
327,
2144,
18,
10492,
12,
77,
16,
1728,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
4323,
12,
921,
1081,
13,
225,
288,
565,
368,
2164,
2144,
358,
22413,
11598,
732,
745,
326,
2795,
17,
3175,
5437,
18,
565,
327,
2144,
18,
10492,
12,
77,
16,
1728,
1769,
... |
return 0; | return 0; | public int getSelectionStart() { return 0; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
23204,
1685,
1435,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
23204,
1685,
1435,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (tree != null) tree.addTreeSelectionListener(this); if (timer != null) timer.stop(); } | protected void setTree(JTree newTree) { tree = newTree; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
3413,
480,
446,
13,
2151,
18,
1289,
2471,
6233,
2223,
12,
2211,
1769,
225,
309,
261,
12542,
480,
446,
13,
5441,
18,
5681,
5621,
289,
225,
309,
261,
3413,
480,
446,
13,
2151,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
3413,
480,
446,
13,
2151,
18,
1289,
2471,
6233,
2223,
12,
2211,
1769,
225,
309,
261,
12542,
480,
446,
13,
5441,
18,
5681,
5621,
289,
225,
309,
261,
3413,
480,
446,
13,
2151,
18,
... | |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
1396,
3043,
12,
780,
5470,
16,
1033,
11144,
16,
4766,
565,
1033,
6129,
13,
202,
95,
1850,
309,
261,
3427,
6289,
480,
446,
13,
5411,
2549,
6289,
18,
12179,
1396,
3043,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
1396,
3043,
12,
780,
5470,
16,
1033,
11144,
16,
4766,
565,
1033,
6129,
13,
202,
95,
1850,
309,
261,
3427,
6289,
480,
446,
13,
5411,
2549,
6289,
18,
12179,
1396,
3043,
1... |
public boolean isFocusCycleRoot () | public boolean isFocusCycleRoot (Container c) | public boolean isFocusCycleRoot () { return focusCycleRoot; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0bcdc7c5655d1ed77837894a9de15b7556d346b/Container.java/buggy/core/src/classpath/java/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9233,
13279,
2375,
261,
2170,
276,
13,
225,
288,
565,
327,
7155,
13279,
2375,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9233,
13279,
2375,
261,
2170,
276,
13,
225,
288,
565,
327,
7155,
13279,
2375,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{ } | { } | public void propertyChange(PropertyChangeEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
225,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
225,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) | if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) | public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true); fireTreeExpanded(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4542,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
368,
7615,
1404,
4542,
309,
1142,
589,
1794,
353,
279,
7839,
756,
18,
202,
202,
430,
14015,
803,
422,
446,
13,
747,
261,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4542,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
368,
7615,
1404,
4542,
309,
1142,
589,
1794,
353,
279,
7839,
756,
18,
202,
202,
430,
14015,
803,
422,
446,
13,
747,
261,
3... |
try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); if(bbuf.hasArray()) return bbuf.array(); byte[] bytes = new byte[bbuf.remaining()]; bbuf.get(bytes); return bytes; } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(CharacterCodingException e){ return null; } | if (srcBegin < 0 || srcBegin > srcEnd || srcEnd > count) throw new StringIndexOutOfBoundsException(); int i = srcEnd - srcBegin; srcBegin += offset; while (--i >= 0) dst[dstBegin++] = (byte) value[srcBegin++]; | public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); if(bbuf.hasArray()) return bbuf.array(); // Doubt this will happen. But just in case. byte[] bytes = new byte[bbuf.remaining()]; bbuf.get(bytes); return bytes; } catch(IllegalCharsetNameException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(UnsupportedCharsetException e){ throw new UnsupportedEncodingException("Encoding: "+enc+ " not found."); } catch(CharacterCodingException e){ // XXX - Ignore coding exceptions? They shouldn't really happen. return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d8df9982463a273f994e73e8e16990f8349f7cc2/String.java/buggy/core/src/classpath/5.0/java/lang/String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
8425,
12,
780,
2446,
13,
1216,
15367,
225,
288,
565,
775,
4202,
288,
202,
9652,
7204,
276,
307,
273,
12080,
18,
1884,
461,
12,
1331,
2934,
2704,
7204,
5621,
202,
71,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
8425,
12,
780,
2446,
13,
1216,
15367,
225,
288,
565,
775,
4202,
288,
202,
9652,
7204,
276,
307,
273,
12080,
18,
1884,
461,
12,
1331,
2934,
2704,
7204,
5621,
202,
71,
3... |
throw new Error("Not implemented for UtilDelegate"); | RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; case CompletionStatus._COMPLETED_YES: status = "Yes"; break; default: status = "Unexpected completion status " + ex.completed.value(); | public RemoteException mapSystemException(SystemException ex) { throw new Error("Not implemented for UtilDelegate"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18361,
852,
3163,
503,
12,
3163,
503,
431,
13,
225,
288,
565,
18361,
28929,
31,
225,
514,
1267,
31,
225,
1620,
261,
338,
18,
13615,
18,
1132,
10756,
288,
648,
20735,
1482,
6315,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18361,
852,
3163,
503,
12,
3163,
503,
431,
13,
225,
288,
565,
18361,
28929,
31,
225,
514,
1267,
31,
225,
1620,
261,
338,
18,
13615,
18,
1132,
10756,
288,
648,
20735,
1482,
6315,
1... |
} | } | public void moveCaretPosition(int position) { if (doc == null) return; if (position < 0 || position > doc.getLength()) throw new IllegalArgumentException(); caret.moveDot(position); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
39,
20731,
2555,
12,
474,
1754,
13,
565,
288,
565,
309,
261,
2434,
422,
446,
13,
1377,
327,
31,
565,
309,
261,
3276,
411,
374,
747,
1754,
405,
997,
18,
588,
1782,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
39,
20731,
2555,
12,
474,
1754,
13,
565,
288,
565,
309,
261,
2434,
422,
446,
13,
1377,
327,
31,
565,
309,
261,
3276,
411,
374,
747,
1754,
405,
997,
18,
588,
1782,
107... |
{ return "JTextComponent"; } | { return super.paramString(); } | protected String paramString() { return "JTextComponent"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1435,
565,
288,
565,
327,
315,
46,
1528,
1841,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
579,
780,
1435,
565,
288,
565,
327,
315,
46,
1528,
1841,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
} | } | public Document getDocument() { return getElement().getDocument(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4319,
9956,
1435,
565,
288,
565,
327,
7426,
7675,
588,
2519,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4319,
9956,
1435,
565,
288,
565,
327,
7426,
7675,
588,
2519,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); | this.delim = delim; return nextToken(); | public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/StringTokenizer.java/buggy/core/src/classpath/java/java/util/StringTokenizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
9617,
1435,
1216,
23104,
225,
288,
565,
309,
261,
917,
411,
562,
597,
10508,
18,
31806,
12,
701,
18,
3001,
861,
12,
917,
3719,
1545,
374,
13,
1377,
288,
1082,
202,
430,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
9617,
1435,
1216,
23104,
225,
288,
565,
309,
261,
917,
411,
562,
597,
10508,
18,
31806,
12,
701,
18,
3001,
861,
12,
917,
3719,
1545,
374,
13,
1377,
288,
1082,
202,
430,
261,
... |
public static int round(float a) { if (Float.isNaN(a)) | public static int round(float a) { if (a != a) | public static int round(float a) { if (Float.isNaN(a)) return 0; return (int) floor(a + 0.5f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0bfec329053442bf284a75378b15938abd962e63/Math.java/buggy/core/src/classpath/java/java/lang/Math.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
3643,
12,
5659,
279,
13,
288,
202,
202,
430,
261,
4723,
18,
291,
21172,
12,
69,
3719,
1082,
202,
2463,
374,
31,
202,
202,
2463,
261,
474,
13,
6346,
12,
69,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
3643,
12,
5659,
279,
13,
288,
202,
202,
430,
261,
4723,
18,
291,
21172,
12,
69,
3719,
1082,
202,
2463,
374,
31,
202,
202,
2463,
261,
474,
13,
6346,
12,
69,
397,
... |
tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); | if (tree != null) { if (tree.getSelectionCount() == 1) lastPath = tree.getSelectionPath(); else lastPath = null; } | public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
460,
5033,
12,
2471,
6233,
1133,
425,
13,
225,
288,
565,
268,
743,
273,
1142,
743,
31,
565,
1142,
743,
273,
425,
18,
588,
1908,
9678,
6233,
743,
5621,
565,
1142,
1999,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
460,
5033,
12,
2471,
6233,
1133,
425,
13,
225,
288,
565,
268,
743,
273,
1142,
743,
31,
565,
1142,
743,
273,
425,
18,
588,
1908,
9678,
6233,
743,
5621,
565,
1142,
1999,
273,
... |
{ } | { if (beginRow < endRow) { int temp = endRow; endRow = beginRow; beginRow = temp; } for (int i = beginRow; i < endRow; i++) { TreePath path = getPathForRow(tree, i); if (!tree.isVisible(path)) tree.makeVisible(path); } } | protected void ensureRowsAreVisible(int beginRow, int endRow) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3387,
4300,
4704,
6207,
12,
474,
2376,
1999,
16,
509,
679,
1999,
13,
202,
95,
565,
368,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3387,
4300,
4704,
6207,
12,
474,
2376,
1999,
16,
509,
679,
1999,
13,
202,
95,
565,
368,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
--row; path = getPathForRow(tree, row); | --row; path = getPathForRow(tree, row); | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { // FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visible at this node while (row > 0 && path == null) { --row; path = getPathForRow(tree, row); } return path; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
1927,
383,
7781,
743,
1290,
2735,
12,
46,
2471,
2151,
16,
509,
619,
16,
509,
677,
13,
202,
95,
565,
368,
9852,
30,
4121,
309,
1365,
353,
5949,
35,
1410,
486,
2447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
1927,
383,
7781,
743,
1290,
2735,
12,
46,
2471,
2151,
16,
509,
619,
16,
509,
677,
13,
202,
95,
565,
368,
9852,
30,
4121,
309,
1365,
353,
5949,
35,
1410,
486,
2447... |
if(dataModel instanceof MutableComboBoxModel) { | if (dataModel instanceof MutableComboBoxModel) | public void addItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).addElement(element); } else { throw new RuntimeException("Unable to add the item because the data model it is not an instance of MutableComboBoxModel."); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComboBox.java/buggy/core/src/classpath/javax/javax/swing/JComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15009,
12,
921,
930,
13,
225,
288,
282,
202,
430,
261,
892,
1488,
1276,
10960,
22199,
1488,
13,
565,
14015,
19536,
22199,
1488,
13,
27600,
2934,
1289,
1046,
12,
2956,
1769,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15009,
12,
921,
930,
13,
225,
288,
282,
202,
430,
261,
892,
1488,
1276,
10960,
22199,
1488,
13,
565,
14015,
19536,
22199,
1488,
13,
27600,
2934,
1289,
1046,
12,
2956,
1769,
282... |
switch (getStyle ()) | switch (getStyle()) | public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[family=" + getFamily () + ",name=" + getFontName () + ",style=" + styleString + ",size=" + getSize () + "]";} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
10756,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
95,
225,
514,
2154,
780,
273,
1408,
31,
225,
1620,
261,
588,
2885,
10756,
565,
288,
565,
648,
374,
30,
1377,
2154,
780,
273,
315,
7446,
14432,
1377,
898,
31,
565,... |
public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); } | public abstract void setRect(double x, double y, double w, double h); | public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Rectangle2D.java/buggy/core/src/classpath/java/java/awt/geom/Rectangle2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6120,
12,
19463,
22,
40,
436,
13,
225,
288,
565,
444,
6120,
12,
86,
18,
588,
60,
9334,
436,
18,
588,
61,
9334,
436,
18,
588,
2384,
9334,
436,
18,
588,
2686,
10663,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6120,
12,
19463,
22,
40,
436,
13,
225,
288,
565,
444,
6120,
12,
86,
18,
588,
60,
9334,
436,
18,
588,
61,
9334,
436,
18,
588,
2384,
9334,
436,
18,
588,
2686,
10663,
2... |
Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); | return impl.getTimeToLive(); | protected synchronized int getTimeToLive() throws IOException { Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
509,
6135,
30583,
1435,
1216,
1860,
225,
288,
565,
1033,
1081,
273,
5651,
12,
2579,
67,
11409,
1769,
565,
309,
16051,
261,
2603,
1276,
2144,
3719,
1377,
604,
394,
1860,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
509,
6135,
30583,
1435,
1216,
1860,
225,
288,
565,
1033,
1081,
273,
5651,
12,
2579,
67,
11409,
1769,
565,
309,
16051,
261,
2603,
1276,
2144,
3719,
1377,
604,
394,
1860,
2932,
... |
{ return new TreeSelectionHandler(); } | { return new TreeSelectionHandler(); } | protected TreeSelectionListener createTreeSelectionListener() { return new TreeSelectionHandler(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
6233,
2223,
752,
2471,
6233,
2223,
1435,
202,
95,
202,
202,
2463,
394,
4902,
6233,
1503,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4902,
6233,
2223,
752,
2471,
6233,
2223,
1435,
202,
95,
202,
202,
2463,
394,
4902,
6233,
1503,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{ } | { } | public void keyTyped(KeyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
11985,
12,
653,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
498,
11985,
12,
653,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ObjectInputStream in = conn.getObjectInputStream(); | ObjectInputStream in = conn.startObjectInputStream(); | private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.getObjectInputStream(); ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLong();//System.out.println("ObjID: " + objid + ", method: " + method + ", hash: " + hash); // Use the objid to locate the relevant UnicastServerRef UnicastServerRef uref = (UnicastServerRef)objects.get(objid); Object returnval; int returncode = RETURN_ACK; // returnval is from Method.invoke(), so we must check the return class to see // if it's primitive type Class returncls = null; if (uref != null) { try { // Dispatch the call to it. returnval = uref.incomingMessageCall(conn, method, hash); returncls = uref.getMethodReturnType(method, hash); } catch (Exception e) { returnval = e; returncode = RETURN_NACK; } } else { returnval = new NoSuchObjectException(""); returncode = RETURN_NACK; } conn.getDataOutputStream().writeByte(MESSAGE_CALL_ACK); ObjectOutputStream out = conn.getObjectOutputStream(); out.writeByte(returncode); (new UID()).write(out); if(returnval != null && returncls != null) ((RMIObjectOutputStream)out).writeValue(returnval, returncls); else if (!(returnval instanceof RMIVoidValue)) out.writeObject(returnval); out.flush();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/UnicastServer.java/buggy/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
918,
6935,
1079,
1477,
12,
984,
12544,
1952,
1487,
13,
1216,
1860,
288,
202,
921,
4348,
316,
273,
1487,
18,
588,
921,
4348,
5621,
202,
2675,
734,
1081,
350,
273,
18760,
734,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
918,
6935,
1079,
1477,
12,
984,
12544,
1952,
1487,
13,
1216,
1860,
288,
202,
921,
4348,
316,
273,
1487,
18,
588,
921,
4348,
5621,
202,
2675,
734,
1081,
350,
273,
18760,
734,
18,
8... |
{ | { | protected void navigateFocusedComp(int direction) { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
28479,
30946,
2945,
12,
474,
4068,
13,
565,
288,
565,
368,
9852,
30,
10886,
18,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
28479,
30946,
2945,
12,
474,
4068,
13,
565,
288,
565,
368,
9852,
30,
10886,
18,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} | } | public void actionPerformed(ActionEvent e) { TreeModel mod = tree.getModel(); Object last = tree.getLeadSelectionPath().getLastPathComponent(); if (e.getActionCommand().equals("selectParent")) { TreePath path = new TreePath(getPathToRoot(last, 0)); Object p = getParent(mod.getRoot(), last); if (!mod.isLeaf(last) && tree.isExpanded(path)) tree.collapsePath(path); else if (p != null) selectPath(tree, new TreePath(getPathToRoot(p, 0))); } else if (e.getActionCommand().equals("selectChild")) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!mod.isLeaf(last) && tree.isCollapsed(path)) tree.expandPath(path); else { Object next = getNextVisibleNode(last); if (next != null) selectPath(tree, new TreePath(getPathToRoot(next, 0))); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
225,
288,
1377,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
1377,
1033,
1142,
273,
2151,
18,
588,
9678,
6233,
743,
7675,
588,
3024,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
225,
288,
1377,
4902,
1488,
681,
273,
2151,
18,
588,
1488,
5621,
1377,
1033,
1142,
273,
2151,
18,
588,
9678,
6233,
743,
7675,
588,
3024,
... |
public final static void invoke (String macro, Session session) { String keys = getMacroByName(macro); if (keys != null) session.getScreen().sendKeys(keys); else { try { if (!macro.endsWith(".py")) macro = macro + ".py"; InterpreterDriverManager.executeScriptFile((Session)session,"scripts" + File.separatorChar + macro); } catch (Exception ex) { System.err.println(ex); } } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/Macronizer.java/buggy/tn5250j/src/org/tn5250j/tools/Macronizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
727,
760,
918,
4356,
261,
780,
11522,
16,
3877,
1339,
13,
288,
780,
1311,
273,
2108,
1077,
303,
5911,
12,
26448,
1769,
430,
261,
2452,
480,
446,
13,
3184,
18,
588,
7956,
7675,
4661,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
727,
760,
918,
4356,
261,
780,
11522,
16,
3877,
1339,
13,
288,
780,
1311,
273,
2108,
1077,
303,
5911,
12,
26448,
1769,
430,
261,
2452,
480,
446,
13,
3184,
18,
588,
7956,
7675,
4661,
23... | ||
{ } | { } | public void setPreferredMinSize(Dimension newSize) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31099,
2930,
1225,
12,
8611,
21402,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31099,
2930,
1225,
12,
8611,
21402,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return 0; | return 0; | public int getSelectionEnd() { return 0; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
23204,
1638,
1435,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
23204,
1638,
1435,
565,
288,
1082,
202,
2463,
374,
31,
368,
2660,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Class helperClass = Class.forName(helperClassName); | Class helperClass = forName(helperClassName); | public static boolean insertWithHelper(Any into, Object object) { try { String helperClassName = object.getClass().getName() + "Helper"; Class helperClass = Class.forName(helperClassName); Method insert = helperClass.getMethod("insert", new Class[] { Any.class, object.getClass() } ); insert.invoke(null, new Object[] { into, object }); return true; } catch (Exception exc) { // Failed due some reason. return false; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
2243,
1190,
2276,
12,
2961,
1368,
16,
1033,
733,
13,
225,
288,
565,
775,
1377,
288,
3639,
514,
4222,
3834,
273,
733,
18,
588,
797,
7675,
17994,
1435,
397,
315,
2276,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
2243,
1190,
2276,
12,
2961,
1368,
16,
1033,
733,
13,
225,
288,
565,
775,
1377,
288,
3639,
514,
4222,
3834,
273,
733,
18,
588,
797,
7675,
17994,
1435,
397,
315,
2276,
14... |
{ | { | protected void dragTo(Point position, Point origin) { int loc = areaOfClick(origParent, SwingUtilities.convertPoint(toolBar, position, origParent)); if (loc != -1) { dragWindow.setBorderColor(dockingBorderColor); dragWindow.setBackground(dockingColor); } else { dragWindow.setBorderColor(floatingBorderColor); dragWindow.setBackground(floatingColor); } int w = 0; int h = 0; boolean tmp = ((loc == SwingConstants.NORTH) || (loc == SwingConstants.SOUTH) || (loc == -1)); if (((cachedOrientation == SwingConstants.HORIZONTAL) && tmp) || ((cachedOrientation == VERTICAL) && ! tmp)) { w = cachedBounds.width; h = cachedBounds.height; } else { w = cachedBounds.height; h = cachedBounds.width; } Point p = dragWindow.getOffset(); Insets insets = toolBar.getInsets(); dragWindow.setBounds((origin.x + position.x) - p.x - ((insets.left + insets.right) / 2), (origin.y + position.y) - p.y - ((insets.top + insets.bottom) / 2), w, h); if (! dragWindow.isVisible()) dragWindow.show(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
8823,
774,
12,
2148,
1754,
16,
4686,
4026,
13,
565,
288,
565,
509,
1515,
273,
5091,
951,
6563,
12,
4949,
3054,
16,
12900,
26145,
11864,
18,
6283,
2148,
12,
6738,
5190,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
8823,
774,
12,
2148,
1754,
16,
4686,
4026,
13,
565,
288,
565,
509,
1515,
273,
5091,
951,
6563,
12,
4949,
3054,
16,
12900,
26145,
11864,
18,
6283,
2148,
12,
6738,
5190,
16,
17... |
} | return false; } | boolean hasControlIcons() { if (UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon") == null || UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon") == null) return false; return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1250,
711,
3367,
27510,
1435,
282,
288,
565,
309,
261,
5370,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
7675,
588,
5554,
2932,
2471,
18,
17336,
5554,
7923,
422,
446,
3639,
747,
6484,
131... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1250,
711,
3367,
27510,
1435,
282,
288,
565,
309,
261,
5370,
1318,
18,
588,
9794,
1876,
2954,
292,
7019,
7675,
588,
5554,
2932,
2471,
18,
17336,
5554,
7923,
422,
446,
3639,
747,
6484,
131... |
{ } | { } | protected void completeUIUninstall() { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3912,
5370,
31103,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3912,
5370,
31103,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
int eOffset; if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Component c = getComponent(0); c.setLocation(eOffset, 0); c.setSize(bounds.width - eOffset, bounds.height); /* * @specnote the Sun sets some more narrow editing component width (it is * not documented how does it is calculated). However as our text field is * still not able to auto - scroll horizontally, replicating such strategy * would prevent adding extra characters to the text being edited. */ } | if (editingComponent != null) { editingComponent.getPreferredSize(); editingComponent.setBounds(offset, 0, getWidth() - offset, getHeight()); } } | public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Component c = getComponent(0); c.setLocation(eOffset, 0); // Span the editing component near over all window width. c.setSize(bounds.width - eOffset, bounds.height); /* * @specnote the Sun sets some more narrow editing component width (it is * not documented how does it is calculated). However as our text field is * still not able to auto - scroll horizontally, replicating such strategy * would prevent adding extra characters to the text being edited. */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTreeCellEditor.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3744,
1435,
565,
288,
1377,
368,
1021,
1384,
434,
326,
15755,
1794,
18,
1377,
509,
425,
2335,
31,
1377,
368,
9933,
326,
1794,
358,
326,
2002,
16,
15086,
7725,
364,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3744,
1435,
565,
288,
1377,
368,
1021,
1384,
434,
326,
15755,
1794,
18,
1377,
509,
425,
2335,
31,
1377,
368,
9933,
326,
1794,
358,
326,
2002,
16,
15086,
7725,
364,
326,
... |
} else { throw new RuntimeException("Unable to add the item because the data model it is not an instance of MutableComboBoxModel."); } | else throw new RuntimeException("Unable to add the item because the data " + "model it is not an instance of " + "MutableComboBoxModel."); | public void addItem(Object element) { if(dataModel instanceof MutableComboBoxModel) { ((MutableComboBoxModel) dataModel).addElement(element); } else { throw new RuntimeException("Unable to add the item because the data model it is not an instance of MutableComboBoxModel."); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComboBox.java/buggy/core/src/classpath/javax/javax/swing/JComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15009,
12,
921,
930,
13,
225,
288,
282,
202,
430,
12,
892,
1488,
1276,
10960,
22199,
1488,
13,
288,
565,
14015,
19536,
22199,
1488,
13,
27600,
2934,
1289,
1046,
12,
2956,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
15009,
12,
921,
930,
13,
225,
288,
282,
202,
430,
12,
892,
1488,
1276,
10960,
22199,
1488,
13,
288,
565,
14015,
19536,
22199,
1488,
13,
27600,
2934,
1289,
1046,
12,
2956,
1769,... |
{ treeState = createLayoutCache(); } | { treeState = createLayoutCache(); } | protected void configureLayoutCache() { treeState = createLayoutCache(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5068,
3744,
1649,
1435,
202,
95,
202,
202,
3413,
1119,
273,
752,
3744,
1649,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5068,
3744,
1649,
1435,
202,
95,
202,
202,
3413,
1119,
273,
752,
3744,
1649,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{ return new CellRendererPane(); } | { return new CellRendererPane(); } | protected CellRendererPane createCellRendererPane() { return new CellRendererPane(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8614,
6747,
8485,
752,
4020,
6747,
8485,
1435,
202,
95,
202,
202,
2463,
394,
8614,
6747,
8485,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8614,
6747,
8485,
752,
4020,
6747,
8485,
1435,
202,
95,
202,
202,
2463,
394,
8614,
6747,
8485,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
getTitle() { return(title); } | public String getTitle() { return title; } | getTitle(){ return(title);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
10786,
1435,
95,
225,
327,
12,
2649,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
10786,
1435,
95,
225,
327,
12,
2649,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ tree.setModel(model); | { tree.setModel(model); | protected void setModel(TreeModel model) { tree.setModel(model); treeModel = tree.getModel(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
19027,
12,
2471,
1488,
938,
13,
202,
95,
1377,
2151,
18,
542,
1488,
12,
2284,
1769,
565,
2151,
1488,
273,
2151,
18,
588,
1488,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
19027,
12,
2471,
1488,
938,
13,
202,
95,
1377,
2151,
18,
542,
1488,
12,
2284,
1769,
565,
2151,
1488,
273,
2151,
18,
588,
1488,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
... |
sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); | ByteBuffer buf = ByteBuffer.wrap(packet.getData(), packet.getOffset(), packet.getLength()); InetAddress remote = packet.getAddress(); int port = packet.getPort(); if (remote == null) throw new NullPointerException(); if (port <= 0) throw new SocketException("invalid port " + port); while (true) { try { channel.send(buf, new InetSocketAddress(remote, port)); break; } catch (InterruptedIOException ioe) { } } | protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1366,
12,
5139,
17049,
6667,
4414,
13,
1216,
1860,
225,
288,
565,
3852,
12,
21675,
67,
6589,
13,
1377,
288,
1377,
1366,
869,
12,
11482,
18,
588,
1887,
9334,
4414,
18,
588,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1366,
12,
5139,
17049,
6667,
4414,
13,
1216,
1860,
225,
288,
565,
3852,
12,
21675,
67,
6589,
13,
1377,
288,
1377,
1366,
869,
12,
11482,
18,
588,
1887,
9334,
4414,
18,
588,
26... |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { switch (etchType) { case RAISED: paintEtchedBorder(g, x, y, width, height, getHighlightColor(c), getShadowColor(c)); break; case LOWERED: paintEtchedBorder(g, x, y, width, height, getShadowColor(c), getHighlightColor(c)); break; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
8107,
12,
1841,
276,
16,
16830,
225,
314,
16,
12900,
509,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
1620,
261,
1593,
559,
13,
565,
288,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
8107,
12,
1841,
276,
16,
16830,
225,
314,
16,
12900,
509,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
1620,
261,
1593,
559,
13,
565,
288,
565... |
throw new Error("Not implemented for UtilDelegate"); | ((org.omg.CORBA_2_3.portable.OutputStream) output).write_abstract_interface(object); | public void writeAbstractObject(OutputStream out, Object obj) { throw new Error("Not implemented for UtilDelegate"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
7469,
921,
12,
4632,
596,
16,
1033,
1081,
13,
225,
288,
565,
14015,
3341,
18,
362,
75,
18,
9428,
12536,
67,
22,
67,
23,
18,
655,
429,
18,
4632,
13,
876,
2934,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
7469,
921,
12,
4632,
596,
16,
1033,
1081,
13,
225,
288,
565,
14015,
3341,
18,
362,
75,
18,
9428,
12536,
67,
22,
67,
23,
18,
655,
429,
18,
4632,
13,
876,
2934,
2626,
... |
tab = new Hashtable(); if (a != null) addAttributes(a); | this(null); | public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); if (a != null) addAttributes(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SimpleAttributeSet.java/buggy/core/src/classpath/javax/javax/swing/text/SimpleAttributeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
1499,
694,
12,
1499,
694,
279,
13,
225,
288,
565,
3246,
273,
394,
18559,
5621,
565,
309,
261,
69,
480,
446,
13,
565,
527,
2498,
12,
69,
1769,
225,
289,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4477,
1499,
694,
12,
1499,
694,
279,
13,
225,
288,
565,
3246,
273,
394,
18559,
5621,
565,
309,
261,
69,
480,
446,
13,
565,
527,
2498,
12,
69,
1769,
225,
289,
2,
-100,
-100,
-100... |
} | } | public Insets getMargin() { return margin; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22300,
2108,
5243,
1435,
565,
288,
565,
327,
7333,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22300,
2108,
5243,
1435,
565,
288,
565,
327,
7333,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ } | { } | public TreeToggleAction(String name) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4902,
17986,
1803,
12,
780,
508,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4902,
17986,
1803,
12,
780,
508,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; | Class dclass = ObjectCreator.forName(dcname); return dclass.newInstance(); | public static synchronized Object getInstance(String type) throws GetDelegateInstanceException { Object r = cache.get(type); if (r != null) return r; String dcname = System.getProperty("javax.rmi.CORBA." + type + "Class"); if (dcname == null) { //throw new DelegateException // ("no javax.rmi.CORBA.XXXClass property sepcified."); dcname = "gnu.javax.rmi.CORBA." + type + "DelegateImpl"; } try { Class dclass = Class.forName(dcname, true, Thread.currentThread().getContextClassLoader()); r = dclass.newInstance(); cache.put(type, r); return r; } catch(Exception e) { throw new GetDelegateInstanceException ("Exception when trying to get delegate instance:" + dcname, e); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/DelegateFactory.java/buggy/core/src/classpath/gnu/gnu/javax/rmi/CORBA/DelegateFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
1033,
3694,
12,
780,
618,
13,
565,
1216,
968,
9586,
1442,
503,
225,
288,
565,
1033,
436,
273,
1247,
18,
588,
12,
723,
1769,
565,
309,
261,
86,
480,
446,
13,
1377,
327... |
public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) | public static int showConfirmDialog(Component parentComponent, Object message) | public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType) { JOptionPane pane = new JOptionPane(message, PLAIN_MESSAGE, optionType); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return ((Integer) pane.getValue()).intValue(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
2405,
11269,
6353,
12,
1841,
982,
1841,
16,
4766,
1377,
1033,
883,
16,
514,
2077,
16,
4766,
1377,
509,
1456,
559,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
2405,
11269,
6353,
12,
1841,
982,
1841,
16,
4766,
1377,
1033,
883,
16,
514,
2077,
16,
4766,
1377,
509,
1456,
559,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
80... |
} | } | public void selectAll() { select(0, doc.getLength()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
27787,
1435,
565,
288,
565,
2027,
12,
20,
16,
997,
18,
588,
1782,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
27787,
1435,
565,
288,
565,
2027,
12,
20,
16,
997,
18,
588,
1782,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void removeUpdate(DocumentEvent value0) { // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1891,
12,
2519,
1133,
460,
20,
13,
565,
288,
1082,
202,
759,
2660,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1891,
12,
2519,
1133,
460,
20,
13,
565,
288,
1082,
202,
759,
2660,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
{ return getPreferredSize(c); } | { if (c instanceof JTree) return ((JTree) c).getPreferredSize(); return new Dimension(); } | public Dimension getMaximumSize(JComponent c) { // FIXME: not implemented return getPreferredSize(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
1377,
327,
12822,
4193,
1225,
12,
71,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
25194,
1225,
12,
46,
1841,
276,
13,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
1377,
327,
12822,
4193,
1225,
12,
71,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
protected synchronized void leave(InetAddress addr) throws IOException { throw new SocketException("Not implemented"); | protected synchronized void leave(InetAddress addr) throws IOException { impl.leave(addr); | protected synchronized void leave(InetAddress addr) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainDatagramSocketImpl.java/clean/core/src/classpath/gnu/gnu/java/net/PlainDatagramSocketImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
8851,
12,
382,
278,
1887,
3091,
13,
1216,
1860,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
5411,
604,
394,
8758,
503,
2932,
1248,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
8851,
12,
382,
278,
1887,
3091,
13,
1216,
1860,
288,
1377,
368,
632,
3489,
17,
12524,
1158,
290,
8785,
1377,
368,
6241,
2348,
1791,
5411,
604,
394,
8758,
503,
2932,
1248,... |
public RuntimeException(String s) | public RuntimeException() | public RuntimeException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/RuntimeException.java/buggy/core/src/classpath/java/java/lang/RuntimeException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3235,
1435,
225,
202,
95,
202,
202,
9565,
12,
87,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3235,
1435,
225,
202,
95,
202,
202,
9565,
12,
87,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throws NotImplementedException | public Accessible getAccessibleChild(JComponent c, int i) throws NotImplementedException { // FIXME: Need to implement return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5016,
1523,
336,
10451,
1763,
12,
46,
1841,
276,
16,
509,
277,
13,
377,
288,
565,
368,
9852,
30,
12324,
358,
2348,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5016,
1523,
336,
10451,
1763,
12,
46,
1841,
276,
16,
509,
277,
13,
377,
288,
565,
368,
9852,
30,
12324,
358,
2348,
565,
327,
446,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
... | |
{ | { | public static ComponentUI createUI(JComponent c) { return new BasicToolBarUI(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
394,
7651,
6364,
5190,
5370,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
327,
394,
7651,
6364,
5190,
5370,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ | { | public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallListeners(); uninstallComponents(); uninstallDefaults(); toolBar = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16577,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
16577,
17872,
6100,
5621,
565,
16577,
5583,
5621,
565,
16577,
7171,
5621,
565,
16577,
7019,
5621,
565,
5226,
5190,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16577,
5370,
12,
46,
1841,
276,
13,
565,
288,
565,
16577,
17872,
6100,
5621,
565,
16577,
5583,
5621,
565,
16577,
7171,
5621,
565,
16577,
7019,
5621,
565,
5226,
5190,
273,
446,
... |
void deactivate(); | void deactivate() throws NoSuchObjectException; | void deactivate(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Tie.java/buggy/core/src/classpath/javax/javax/rmi/CORBA/Tie.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
18790,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
18790,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{ } | { } | public void mouseEntered(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
10237,
329,
12,
9186,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
7644,
10237,
329,
12,
9186,
1133,
425,
13,
202,
202,
95,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else | else | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = 0; if (!mod.isLeaf(curr)) max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) { for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) if (y0 != heightOfLine && !mod.isLeaf(curr) && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } return descent; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... |
public Key(int virtuelKey) | public Key() | public Key(int virtuelKey) { this.lowerVirtuelKey = virtuelKey; this.upperVirtuelKey = virtuelKey; this.altGrVirtuelKey = virtuelKey; lowerChar = 0; upperChar = 0; altGrChar = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/Key.java/buggy/core/src/driver/org/jnode/driver/input/Key.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1929,
1435,
225,
288,
565,
333,
18,
8167,
58,
2714,
20317,
653,
273,
331,
2714,
20317,
653,
31,
565,
333,
18,
5797,
58,
2714,
20317,
653,
273,
331,
2714,
20317,
653,
31,
565,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1929,
1435,
225,
288,
565,
333,
18,
8167,
58,
2714,
20317,
653,
273,
331,
2714,
20317,
653,
31,
565,
333,
18,
5797,
58,
2714,
20317,
653,
273,
331,
2714,
20317,
653,
31,
565,
333,... |
{ } | { if (treeModel != null) updateExpandedDescendants(new TreePath(getPathToRoot(treeModel. getRoot(), 0))); } | protected void updateLayoutCacheExpandedNodes() { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1089,
3744,
1649,
17957,
3205,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1089,
3744,
1649,
17957,
3205,
1435,
202,
95,
202,
202,
759,
9852,
30,
486,
8249,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
{ | { | public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor instanceof DefaultTreeCellEditor) tree.removeTreeSelectionListener((DefaultTreeCellEditor) cellEditor); cellEditor.removeCellEditorListener(cellEditorListener); setCellEditor(null); createdCellEditor = false; } tree.requestFocusInWindow(false); editorTimer.stop(); isEditing = false; tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
15755,
23163,
12,
20930,
425,
13,
202,
202,
95,
1377,
15755,
743,
273,
446,
31,
1377,
15755,
1999,
273,
300,
21,
31,
1377,
2132,
28029,
382,
6322,
28029,
273,
629,
31,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
15755,
23163,
12,
20930,
425,
13,
202,
202,
95,
1377,
15755,
743,
273,
446,
31,
1377,
15755,
1999,
273,
300,
21,
31,
1377,
2132,
28029,
382,
6322,
28029,
273,
629,
31,
1... |
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
9678,
6233,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
261,
24429,
6233,
743,
422,
589,
13,
1377,
327,
31,
565,
4902,
743,
11144,
273,
5871,
6233,
743,
31,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
9678,
6233,
743,
12,
2471,
743,
589,
13,
225,
288,
565,
309,
261,
24429,
6233,
743,
422,
589,
13,
1377,
327,
31,
565,
4902,
743,
11144,
273,
5871,
6233,
743,
31,
565,
... | ||
attributes = StyleContext.this.addAttribute(attributes, ResolveAttribute, parent); | if (parent != null) { attributes = StyleContext.this.addAttribute (attributes, ResolveAttribute, parent); } | public void setResolveParent(AttributeSet parent) { attributes = StyleContext.this.addAttribute(attributes, ResolveAttribute, parent); fireStateChanged(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d952c1ff48838834c7dcd3b56acf7f236a00079/StyleContext.java/clean/core/src/classpath/javax/javax/swing/text/StyleContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8460,
3054,
12,
1499,
694,
982,
13,
565,
288,
1377,
309,
261,
2938,
480,
446,
13,
288,
1677,
273,
9767,
1042,
18,
2211,
18,
1289,
1499,
261,
4350,
16,
9910,
1499,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
8460,
3054,
12,
1499,
694,
982,
13,
565,
288,
1377,
309,
261,
2938,
480,
446,
13,
288,
1677,
273,
9767,
1042,
18,
2211,
18,
1289,
1499,
261,
4350,
16,
9910,
1499,
16,
... |
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
1435,
225,
288,
565,
13037,
963,
273,
2240,
18,
588,
16028,
1225,
5621,
3639,
309,
261,
5112,
480,
374,
13,
1377,
963,
18,
2819,
273,
2168,
380,
6716,
2384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
1435,
225,
288,
565,
13037,
963,
273,
2240,
18,
588,
16028,
1225,
5621,
3639,
309,
261,
5112,
480,
374,
13,
1377,
963,
18,
2819,
273,
2168,
380,
6716,
2384... | ||
public JList(ListModel listData) | public JList() | public JList(ListModel listData) { init(); setModel(listData); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
682,
1435,
225,
288,
565,
1208,
5621,
565,
19027,
12,
1098,
751,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
682,
1435,
225,
288,
565,
1208,
5621,
565,
19027,
12,
1098,
751,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return false; } | return false; } | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
202,
95,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
49... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.