rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
((SmartTreeStructure)getTreeStructure()).rebuildTree(); myUpdater.addSubtreeToUpdate(myRootNode);
addRootToUpdate();
public void run() { ((SmartTreeStructure)getTreeStructure()).rebuildTree(); myUpdater.addSubtreeToUpdate(myRootNode); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b0df7f589560c3f3c210cbe77b3d51c608ee6211/StructureTreeBuilder.java/clean/source/com/intellij/ide/structureView/newStructureView/StructureTreeBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 14015, 23824, 2471, 6999, 13, 588, 2471, 6999, 1435, 2934, 266, 3510, 2471, 5621, 1850, 3399, 15305, 18, 1289, 18615, 21267, 12, 4811, 29658, 1769, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 1071, 918, 1086, 1435, 288, 1850, 14015, 23824, 2471, 6999, 13, 588, 2471, 6999, 1435, 2934, 266, 3510, 2471, 5621, 1850, 3399, 15305, 18, 1289, 18615, 21267, 12, 4811, 29658, 1769, 3639, 289, 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, -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, -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, -100 ]
int len = dst.capacity() - dst.position();
int len = dst.remaining();
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && available == 0) return 0; if (dst.hasArray()) { offset = dst.arrayOffset() + dst.position(); data = dst.array(); } else { data = new byte [len]; } int readBytes = 0; boolean completed = false; try { begin(); socket.getPlainSocketImpl().setInChannelOperation(true); readBytes = input.read (data, offset, len); completed = true; } finally { end (completed); socket.getPlainSocketImpl().setInChannelOperation(false); } if (readBytes > 0) if (dst.hasArray()) { dst.position (dst.position() + readBytes); } else { dst.put (data, offset, readBytes); } return readBytes; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SocketChannelImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/SocketChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 12, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 309, 16051, 291, 8932, 10756, 1377, 604, 394, 2288, 61, 278, 8932, 503, 5621, 202, 565, 1160, 8526, 501, 31, 565, 509, 1384, 273, 374, 31, 565, 5037, 810, 273, 2987, 18, 588, 4348, 5621, 565, 509, 2319, 273, 810, 18, 5699, 5621, 565, 509, 562, 273, 3046, 18, 17956, 5621, 565, 309, 14015, 5, 353, 8728, 10756, 597, 2319, 422, 374, 13, 1377, 327, 374, 31, 3639, 309, 261, 11057, 18, 5332, 1076, 10756, 202, 565, 288, 3639, 1384, 273, 3046, 18, 1126, 2335, 1435, 397, 3046, 18, 3276, 5621, 3639, 501, 273, 3046, 18, 1126, 5621, 202, 565, 289, 565, 469, 1377, 288, 3639, 501, 273, 394, 1160, 306, 1897, 15533, 225, 289, 3639, 509, 25825, 273, 374, 31, 565, 1250, 5951, 273, 629, 31, 565, 775, 225, 288, 3639, 2376, 5621, 3639, 2987, 18, 588, 13360, 4534, 2828, 7675, 542, 382, 2909, 2988, 12, 3767, 1769, 3639, 25825, 273, 810, 18, 896, 261, 892, 16, 1384, 16, 562, 1769, 3639, 5951, 273, 638, 31, 1377, 289, 565, 3095, 1377, 288, 3639, 679, 261, 13615, 1769, 3639, 2987, 18, 588, 13360, 4534, 2828, 7675, 542, 382, 2909, 2988, 12, 5743, 1769, 1377, 289, 565, 309, 261, 896, 2160, 405, 374, 13, 1377, 309, 261, 11057, 18, 5332, 1076, 10756, 202, 565, 288, 202, 225, 3046, 18, 3276, 261, 11057, 18, 3276, 1435, 397, 25825, 1769, 202, 565, 289, 1377, 469, 3639, 288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 855, 12, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 309, 16051, 291, 8932, 10756, 1377, 604, 394, 2288, 61, 278, 8932, 503, 5621, 202, 565, 1160, 8526, 501, 31, 565, 509, 1384, 273, 374, 31, 565, 5037, 810, 273, 2987, 18, 588, 4348, 5621, 565, 509, 2319, 273, 810, 18, 5699, 5621, 565, 509, 562, 273, 3046, 18, 17956, 5621, 565, 309, 14015, 5, 353, 8728, 10756, 597, 2319, 422, 374, 13, 1377, 327, 374, 31, 3639, 309, 261, 11057, 18, 5332, 1076, 10756, 202, 565, 288, 3639, 1384, 273, 3046, 18, 1126, 2335, 1435, 397, 3046, 18, 3276, 5621, 3639, 501, 273, 3046, 18, 1126, 5621, 202, 565, 289, 565, 469, 1377, 288, 3639, 2 ]
} else {
else
public void addRevealListener( final RevealListener revealListener ) { MyRunnable myRunnable = new MyRunnable(); PlatformUI.getWorkbench().getDisplay().syncExec( myRunnable); if ( myRunnable.isVisible ) { revealListener.revealed( (Composite)getControl() ); } else { revealListeners.add(revealListener); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4f8af83862baa249a48b54500eb903b5dceac1eb/NonThreadedGraphicalViewer.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/gefx/NonThreadedGraphicalViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 426, 24293, 2223, 12, 727, 868, 24293, 2223, 283, 24293, 2223, 262, 288, 9506, 202, 12062, 20013, 3399, 20013, 273, 394, 8005, 20013, 5621, 202, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 8389, 1905, 12, 3399, 20013, 1769, 9506, 202, 430, 261, 3399, 20013, 18, 291, 6207, 262, 288, 1082, 202, 266, 24293, 2223, 18, 266, 537, 18931, 12, 261, 9400, 13, 588, 3367, 1435, 11272, 202, 202, 97, 469, 288, 1082, 202, 266, 24293, 5583, 18, 1289, 12, 266, 24293, 2223, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 426, 24293, 2223, 12, 727, 868, 24293, 2223, 283, 24293, 2223, 262, 288, 9506, 202, 12062, 20013, 3399, 20013, 273, 394, 8005, 20013, 5621, 202, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 8389, 1905, 12, 3399, 20013, 1769, 9506, 202, 430, 261, 3399, 20013, 18, 291, 6207, 262, 288, 1082, 202, 266, 24293, 2223, 18, 266, 537, 18931, 12, 261, 9400, 13, 588, 3367, 1435, 11272, 202, 202, 97, 469, 288, 1082, 202, 266, 24293, 5583, 18, 1289, 12, 266, 24293, 2223, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
compare = sorter.compare(this, data, element);
compare = comparator.compare(this, data, element);
protected int indexForElement(Object element) { ViewerSorter sorter = getSorter(); if (sorter == null) { return table.getItemCount(); } int count = table.getItemCount(); int min = 0, max = count - 1; while (min <= max) { int mid = (min + max) / 2; Object data = table.getItem(mid).getData(); int compare = sorter.compare(this, data, element); if (compare == 0) { // find first item > element while (compare == 0) { ++mid; if (mid >= count) { break; } data = table.getItem(mid).getData(); compare = sorter.compare(this, data, element); } return mid; } if (compare < 0) { min = mid + 1; } else { max = mid - 1; } } return min; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d65c8bc5c0d3aafead5b1e576e57c11cb279f2ca/TableViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 770, 1290, 1046, 12, 921, 930, 13, 288, 202, 202, 18415, 24952, 19867, 273, 1322, 4975, 5621, 202, 202, 430, 261, 2467, 387, 422, 446, 13, 288, 1082, 202, 2463, 1014, 18, 588, 30687, 5621, 202, 202, 97, 202, 202, 474, 1056, 273, 1014, 18, 588, 30687, 5621, 202, 202, 474, 1131, 273, 374, 16, 943, 273, 1056, 300, 404, 31, 202, 202, 17523, 261, 1154, 1648, 943, 13, 288, 1082, 202, 474, 7501, 273, 261, 1154, 397, 943, 13, 342, 576, 31, 1082, 202, 921, 501, 273, 1014, 18, 588, 1180, 12, 13138, 2934, 588, 751, 5621, 1082, 202, 474, 3400, 273, 19867, 18, 9877, 12, 2211, 16, 501, 16, 930, 1769, 1082, 202, 430, 261, 9877, 422, 374, 13, 288, 9506, 202, 759, 1104, 1122, 761, 405, 930, 9506, 202, 17523, 261, 9877, 422, 374, 13, 288, 6862, 202, 9904, 13138, 31, 6862, 202, 430, 261, 13138, 1545, 1056, 13, 288, 25083, 202, 8820, 31, 6862, 202, 97, 6862, 202, 892, 273, 1014, 18, 588, 1180, 12, 13138, 2934, 588, 751, 5621, 6862, 202, 9877, 273, 19867, 18, 9877, 12, 2211, 16, 501, 16, 930, 1769, 9506, 202, 97, 9506, 202, 2463, 7501, 31, 1082, 202, 97, 1082, 202, 430, 261, 9877, 411, 374, 13, 288, 9506, 202, 1154, 273, 7501, 397, 404, 31, 1082, 202, 97, 469, 288, 9506, 202, 1896, 273, 7501, 300, 404, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 1131, 31, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 509, 770, 1290, 1046, 12, 921, 930, 13, 288, 202, 202, 18415, 24952, 19867, 273, 1322, 4975, 5621, 202, 202, 430, 261, 2467, 387, 422, 446, 13, 288, 1082, 202, 2463, 1014, 18, 588, 30687, 5621, 202, 202, 97, 202, 202, 474, 1056, 273, 1014, 18, 588, 30687, 5621, 202, 202, 474, 1131, 273, 374, 16, 943, 273, 1056, 300, 404, 31, 202, 202, 17523, 261, 1154, 1648, 943, 13, 288, 1082, 202, 474, 7501, 273, 261, 1154, 397, 943, 13, 342, 576, 31, 1082, 202, 921, 501, 273, 1014, 18, 588, 1180, 12, 13138, 2934, 588, 751, 5621, 1082, 202, 474, 3400, 273, 19867, 18, 9877, 12, 2211, 16, 501, 16, 930, 1769, 1082, 202, 2 ]
else utilMembers.add(mf);
else { if (mf.getModuleRelativePath().isEmpty()) members.add(mf); else { if (moduleParent == null) moduleParent = ensureParentExists(mf.getModuleRelativePath(), (IContainer)vc.getRootFolder().getUnderlyingResource()); addMembersToModuleFolder((ModuleFolder)moduleParent, new IModuleResource[] {mf}); } }
protected List getUtilMembers(IVirtualComponent vc) { List utilMembers = new ArrayList(); IVirtualReference[] components = vc.getReferences(); for (int i = 0; i < components.length; i++) { IVirtualReference reference = components[i]; IVirtualComponent virtualComp = reference.getReferencedComponent(); if (virtualComp != null && virtualComp.isBinary()) { IPath archivePath = ((VirtualArchiveComponent)virtualComp).getWorkspaceRelativePath(); ModuleFile mf = null; if (archivePath != null) { //In Workspace IFile utilFile = ResourcesPlugin.getWorkspace().getRoot().getFile(archivePath); mf = new ModuleFile(utilFile, utilFile.getName(), reference.getRuntimePath().makeRelative()); } else { File extFile = ((VirtualArchiveComponent)virtualComp).getUnderlyingDiskFile(); mf = new ModuleFile(extFile, extFile.getName(), reference.getRuntimePath().makeRelative()); } if (mf == null) continue; IModuleResource moduleParent = getExistingModuleResource(members, mf.getModuleRelativePath()); if (moduleParent != null && moduleParent instanceof ModuleFolder) addMembersToModuleFolder((ModuleFolder)moduleParent, new IModuleResource[]{mf}); else utilMembers.add(mf); } } return utilMembers; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/3be3b4bf82cb27eb5bc8948270c3db98388ef041/ComponentDeployable.java/clean/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/web/internal/deployables/ComponentDeployable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 336, 1304, 6918, 12, 45, 6466, 1841, 12802, 13, 288, 202, 202, 682, 1709, 6918, 273, 394, 2407, 5621, 202, 202, 45, 6466, 2404, 8526, 4085, 273, 12802, 18, 588, 8221, 5621, 377, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4085, 18, 2469, 31, 277, 27245, 288, 1082, 202, 45, 6466, 2404, 2114, 273, 4085, 63, 77, 15533, 1082, 202, 45, 6466, 1841, 5024, 2945, 273, 2114, 18, 588, 22344, 1841, 5621, 1082, 202, 430, 261, 12384, 2945, 480, 446, 597, 5024, 2945, 18, 291, 5905, 10756, 288, 9506, 202, 45, 743, 5052, 743, 273, 14015, 6466, 7465, 1841, 13, 12384, 2945, 2934, 588, 8241, 16519, 5621, 9506, 202, 3120, 812, 14749, 273, 446, 31, 9506, 202, 430, 261, 10686, 743, 480, 446, 13, 288, 368, 382, 14396, 6862, 202, 45, 812, 1709, 812, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 7675, 29925, 12, 10686, 743, 1769, 6862, 202, 16126, 273, 394, 5924, 812, 12, 1367, 812, 16, 1709, 812, 18, 17994, 9334, 2114, 18, 588, 5576, 743, 7675, 6540, 8574, 10663, 9506, 202, 97, 9506, 202, 12107, 288, 6862, 202, 812, 1110, 812, 273, 14015, 6466, 7465, 1841, 13, 12384, 2945, 2934, 588, 14655, 6291, 6247, 812, 5621, 6862, 202, 16126, 273, 394, 5924, 812, 12, 408, 812, 16, 1110, 812, 18, 17994, 9334, 2114, 18, 588, 5576, 743, 7675, 6540, 8574, 10663, 9506, 202, 97, 9506, 202, 430, 261, 16126, 422, 446, 13, 6862, 202, 17143, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 1304, 6918, 12, 45, 6466, 1841, 12802, 13, 288, 202, 202, 682, 1709, 6918, 273, 394, 2407, 5621, 202, 202, 45, 6466, 2404, 8526, 4085, 273, 12802, 18, 588, 8221, 5621, 377, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4085, 18, 2469, 31, 277, 27245, 288, 1082, 202, 45, 6466, 2404, 2114, 273, 4085, 63, 77, 15533, 1082, 202, 45, 6466, 1841, 5024, 2945, 273, 2114, 18, 588, 22344, 1841, 5621, 1082, 202, 430, 261, 12384, 2945, 480, 446, 597, 5024, 2945, 18, 291, 5905, 10756, 288, 9506, 202, 45, 743, 5052, 743, 273, 14015, 6466, 7465, 1841, 13, 12384, 2945, 2934, 588, 8241, 16519, 5621, 9506, 202, 3120, 812, 14749, 2 ]
return "Class conflicts with 'instanceof'";
return "Cast conflicts with 'instanceof'";
public String getDisplayName(){ return "Class conflicts with 'instanceof'"; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/30e97fb1cee1dd5ddbbdc59bd2d5c20b51917bb8/CastConflictsWithInstanceofInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/CastConflictsWithInstanceofInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22055, 1435, 95, 3639, 327, 315, 9735, 14450, 598, 296, 1336, 792, 4970, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 22055, 1435, 95, 3639, 327, 315, 9735, 14450, 598, 296, 1336, 792, 4970, 31, 565, 289, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String url = URLUtil.getSoapURL(server, false);
String url = URLUtil.getAdminURL(server, "/service/admin/soap");
private SoapTransport getTransport() throws ServiceException { if (mTransport != null) { return mTransport; } Server server = Provisioning.getInstance().getServerByName(mServer); String url = URLUtil.getSoapURL(server, false); SoapTransport toRet = new SoapHttpTransport(url); toRet.setAuthToken(mAuthToken); return toRet; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ea0b2d1afb99357f1263e78449aadfd5f0b3038e/ProxiedQueryResults.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/ProxiedQueryResults.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 21789, 6568, 29801, 1435, 1216, 16489, 288, 3639, 309, 261, 81, 6568, 480, 446, 13, 288, 5411, 327, 312, 6568, 31, 3639, 289, 3639, 3224, 1438, 273, 26423, 18, 588, 1442, 7675, 588, 2081, 5911, 12, 81, 2081, 1769, 3639, 514, 880, 273, 1976, 1304, 18, 588, 4446, 1785, 12, 3567, 16, 2206, 3278, 19, 3666, 19, 19215, 8863, 3639, 21789, 6568, 358, 7055, 273, 394, 21789, 2940, 6568, 12, 718, 1769, 3639, 358, 7055, 18, 542, 28967, 12, 81, 28967, 1769, 3639, 327, 358, 7055, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 21789, 6568, 29801, 1435, 1216, 16489, 288, 3639, 309, 261, 81, 6568, 480, 446, 13, 288, 5411, 327, 312, 6568, 31, 3639, 289, 3639, 3224, 1438, 273, 26423, 18, 588, 1442, 7675, 588, 2081, 5911, 12, 81, 2081, 1769, 3639, 514, 880, 273, 1976, 1304, 18, 588, 4446, 1785, 12, 3567, 16, 2206, 3278, 19, 3666, 19, 19215, 8863, 3639, 21789, 6568, 358, 7055, 273, 394, 21789, 2940, 6568, 12, 718, 1769, 3639, 358, 7055, 18, 542, 28967, 12, 81, 28967, 1769, 3639, 327, 358, 7055, 31, 565, 289, 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 ]
i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF);
i = getShort(iCode, pc + 1);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 261, 4293, 1162, 3651, 18, 3175, 1557, 422, 446, 13, 11794, 692, 374, 294, 2295, 1162, 3651, 18, 3175, 1557, 18, 2469, 31, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 540, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 67, 2664, 4464, 397, 943, 5555, 31, 540, 727, 509, 4235, 61, 67, 19444, 67, 2664, 4464, 273, 15234, 67, 2664, 4464, 397, 943, 1333, 1031, 31, 759, 2110, 63, 20, 1648, 277, 411, 8350, 67, 2664, 4464, 14542, 2110, 501, 759, 2110, 63, 7716, 67, 2664, 4464, 1648, 277, 411, 15234, 67, 2664, 4464, 14542, 3152, 759, 2110, 63, 14922, 67, 2664, 4464, 1648, 277, 411, 4235, 61, 67, 19444, 67, 2664, 4464, 14542, 1399, 364, 394, 5814, 19, 407, 278, 30752, 759, 2110, 63, 17805, 67, 19444, 67, 2664, 4464, 1648, 277, 14542, 775, 8124, 759, 1347, 374, 1648, 277, 411, 15234, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 261, 4293, 1162, 3651, 18, 3175, 1557, 422, 446, 13, 11794, 692, 374, 294, 2295, 1162, 3651, 18, 3175, 1557, 18, 2469, 31, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2 ]
+ "," + charset);
+ ',' + charset);
public Bucket readFilter(Bucket bucket, BucketFactory bf, String charset, HashMap otherParams, FilterCallback cb) throws DataFilterException, IOException { if (Logger.shouldLog(Logger.DEBUG, this)) Logger.debug( this, "running " + this + " on " + bucket + "," + charset); InputStream strm = bucket.getInputStream(); Bucket temp = bf.makeBucket(bucket.size()); OutputStream os = temp.getOutputStream(); Reader r; Writer w; try { r = new BufferedReader(new InputStreamReader(strm, charset), 32768); w = new BufferedWriter(new OutputStreamWriter(os, charset), 32768); } catch (UnsupportedEncodingException e) { os.close(); strm.close(); HTMLNode explanation = new HTMLNode("p"); explanation.addChild("b", "Unknown character set!"); explanation.addChild("#", " The page you are about to display has an unknown character set. This means that we are not able to filter the page, and it may compromize your anonymity."); throw new DataFilterException("Warning: Unknown character set ("+charset+")", "Warning: Unknown character set ("+HTMLEncoder.encode(charset)+")", "<p><b>Unknown character set</b> The page you are about to display has an unknown character set. "+ "This means that we are not able to filter the page, and it may compromize your anonymity.", explanation); } CSSParser parser = new CSSParser(r, w, false, cb); parser.parse(); r.close(); w.close(); return temp; }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/62fd59041864b4ed1f43adc676de6bfb5ea977f3/CSSReadFilter.java/clean/src/freenet/clients/http/filter/CSSReadFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7408, 855, 1586, 12, 4103, 2783, 16, 7408, 1733, 16222, 16, 514, 4856, 16, 1082, 202, 8658, 1308, 1370, 16, 4008, 2428, 2875, 13, 1216, 1910, 1586, 503, 16, 1082, 202, 14106, 288, 202, 202, 430, 261, 3328, 18, 13139, 1343, 12, 3328, 18, 9394, 16, 333, 3719, 1082, 202, 3328, 18, 4148, 12, 9506, 202, 2211, 16, 9506, 202, 6, 8704, 315, 6862, 202, 15, 333, 6862, 202, 15, 315, 603, 315, 6862, 202, 15, 2783, 6862, 202, 15, 5753, 6862, 202, 15, 4856, 1769, 202, 202, 4348, 609, 81, 273, 2783, 18, 588, 4348, 5621, 202, 202, 4103, 1906, 273, 16222, 18, 6540, 4103, 12, 7242, 18, 1467, 10663, 202, 202, 4632, 1140, 273, 1906, 18, 588, 4632, 5621, 202, 202, 2514, 436, 31, 202, 202, 2289, 341, 31, 202, 202, 698, 288, 1082, 202, 86, 273, 394, 10633, 12, 2704, 15322, 12, 701, 81, 16, 4856, 3631, 29317, 28, 1769, 1082, 202, 91, 273, 394, 22490, 12, 2704, 24248, 12, 538, 16, 4856, 3631, 29317, 28, 1769, 202, 202, 97, 1044, 261, 8544, 13836, 425, 13, 288, 1082, 202, 538, 18, 4412, 5621, 1082, 202, 701, 81, 18, 4412, 5621, 1082, 202, 4870, 907, 21285, 273, 394, 3982, 907, 2932, 84, 8863, 1082, 202, 338, 15854, 18, 1289, 1763, 2932, 70, 3113, 315, 4874, 3351, 444, 4442, 1769, 1082, 202, 338, 15854, 18, 1289, 1763, 2932, 7, 3113, 315, 1021, 1363, 1846, 854, 2973, 358, 2562, 711, 392, 5917, 3351, 444, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7408, 855, 1586, 12, 4103, 2783, 16, 7408, 1733, 16222, 16, 514, 4856, 16, 1082, 202, 8658, 1308, 1370, 16, 4008, 2428, 2875, 13, 1216, 1910, 1586, 503, 16, 1082, 202, 14106, 288, 202, 202, 430, 261, 3328, 18, 13139, 1343, 12, 3328, 18, 9394, 16, 333, 3719, 1082, 202, 3328, 18, 4148, 12, 9506, 202, 2211, 16, 9506, 202, 6, 8704, 315, 6862, 202, 15, 333, 6862, 202, 15, 315, 603, 315, 6862, 202, 15, 2783, 6862, 202, 15, 5753, 6862, 202, 15, 4856, 1769, 202, 202, 4348, 609, 81, 273, 2783, 18, 588, 4348, 5621, 202, 202, 4103, 1906, 273, 16222, 18, 6540, 4103, 12, 7242, 18, 1467, 10663, 202, 202, 4632, 1140, 273, 2 ]
public void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput, boolean cache) throws XMLStreamException {
public void serialize(OMOutputImpl omOutput, boolean cache) throws XMLStreamException {
public void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput, boolean cache) throws XMLStreamException { // select the builder short builderType = PULL_TYPE_BUILDER; // default is pull type if (builder != null) { builderType = this.builder.getBuilderType(); } if ((builderType == PUSH_TYPE_BUILDER) && (builder.getRegisteredContentHandler() == null)) { builder.registerExternalContentHandler( new StreamWriterToContentHandlerConverter(omOutput)); } XMLStreamWriter writer = omOutput.getXmlStreamWriter(); if (this.getNamespace() != null) { String prefix = this.getNamespace().getPrefix(); String nameSpaceName = this.getNamespace().getName(); writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, nameSpaceName); } else { writer.writeStartElement( SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME); } OMSerializerUtil.serializeAttributes(this, omOutput); OMSerializerUtil.serializeNamespaces(this, omOutput); String text = this.getText(); writer.writeCharacters(text); if (firstChild != null) { firstChild.serializeAndConsume(omOutput); } writer.writeEndElement(); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46a014bae8b3bdea6efef1d984a295027545ce0c/SOAP11FaultDetailImpl.java/buggy/modules/doom/src/org/apache/axis2/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4472, 12, 1872, 1447, 2828, 8068, 1447, 16, 1250, 1247, 13, 1216, 21526, 288, 3639, 368, 2027, 326, 2089, 3639, 3025, 2089, 559, 273, 453, 2705, 67, 2399, 67, 3000, 2627, 4179, 31, 565, 368, 805, 353, 6892, 618, 3639, 309, 261, 9574, 480, 446, 13, 288, 5411, 2089, 559, 273, 333, 18, 9574, 18, 588, 1263, 559, 5621, 3639, 289, 3639, 309, 14015, 9574, 559, 422, 28591, 67, 2399, 67, 3000, 2627, 4179, 13, 7734, 597, 261, 9574, 18, 588, 10868, 1350, 1503, 1435, 422, 446, 3719, 288, 5411, 2089, 18, 4861, 6841, 1350, 1503, 12, 10792, 394, 3961, 2289, 774, 1350, 1503, 5072, 12, 362, 1447, 10019, 3639, 289, 3639, 15595, 2289, 2633, 273, 8068, 1447, 18, 588, 4432, 29421, 5621, 3639, 309, 261, 2211, 18, 588, 3402, 1435, 480, 446, 13, 288, 5411, 514, 1633, 273, 333, 18, 588, 3402, 7675, 588, 2244, 5621, 5411, 514, 508, 3819, 461, 273, 333, 18, 588, 3402, 7675, 17994, 5621, 5411, 2633, 18, 2626, 1685, 1046, 12, 3239, 16, 16434, 2499, 2918, 18, 27952, 67, 2636, 67, 40, 19810, 67, 14922, 67, 1985, 16, 10792, 508, 3819, 461, 1769, 3639, 289, 469, 288, 5411, 2633, 18, 2626, 1685, 1046, 12, 10792, 16434, 2499, 2918, 18, 27952, 67, 2636, 67, 40, 19810, 67, 14922, 67, 1985, 1769, 3639, 289, 3639, 28839, 6306, 1304, 18, 6288, 2498, 12, 2211, 16, 8068, 1447, 1769, 3639, 28839, 6306, 1304, 18, 6288, 13180, 12, 2211, 16, 8068, 1447, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4472, 12, 1872, 1447, 2828, 8068, 1447, 16, 1250, 1247, 13, 1216, 21526, 288, 3639, 368, 2027, 326, 2089, 3639, 3025, 2089, 559, 273, 453, 2705, 67, 2399, 67, 3000, 2627, 4179, 31, 565, 368, 805, 353, 6892, 618, 3639, 309, 261, 9574, 480, 446, 13, 288, 5411, 2089, 559, 273, 333, 18, 9574, 18, 588, 1263, 559, 5621, 3639, 289, 3639, 309, 14015, 9574, 559, 422, 28591, 67, 2399, 67, 3000, 2627, 4179, 13, 7734, 597, 261, 9574, 18, 588, 10868, 1350, 1503, 1435, 422, 446, 3719, 288, 5411, 2089, 18, 4861, 6841, 1350, 1503, 12, 10792, 394, 3961, 2289, 774, 1350, 1503, 5072, 12, 362, 1447, 10019, 3639, 289, 3639, 15595, 2289, 2633, 273, 2 ]
private void traverseIncludedSchema(Element root) throws Exception { // General Attribute Checking int scope = GeneralAttrCheck.ELE_CONTEXT_GLOBAL; Hashtable attrValues = fGeneralAttrCheck.checkAttributes(root, scope); //extract all top-level attribute, attributeGroup, and group Decls and put them in the 3 hasn table in the SchemaGrammar. extractTopLevel3Components(root); // handle <redefine>, <include> and <import> elements. Element child = XUtil.getFirstChildElement(root); for (; child != null; child = XUtil.getNextSiblingElement(child)) { String name = child.getLocalName(); if (name.equals(SchemaSymbols.ELT_ANNOTATION) ) { traverseAnnotationDecl(child); } else if (name.equals(SchemaSymbols.ELT_INCLUDE)) { fNamespacesScope.increaseDepth(); traverseInclude(child); fNamespacesScope.decreaseDepth(); } else if (name.equals(SchemaSymbols.ELT_IMPORT)) { traverseImport(child); } else if (name.equals(SchemaSymbols.ELT_REDEFINE)) { fRedefineSucceeded = true; // presume worked until proven failed. traverseRedefine(child); } else break; } // handle the rest of the schema elements. // BEWARE! this method gets called both from traverseRedefine and // traverseInclude; the preconditions (especially with respect to // groups and attributeGroups) are different! for (; child != null; child = XUtil.getNextSiblingElement(child)) { String name = child.getLocalName(); if (name.equals(SchemaSymbols.ELT_ANNOTATION) ) { traverseAnnotationDecl(child); } else if (name.equals(SchemaSymbols.ELT_SIMPLETYPE )) { traverseSimpleTypeDecl(child); } else if (name.equals(SchemaSymbols.ELT_COMPLEXTYPE )) { traverseComplexTypeDecl(child); } else if (name.equals(SchemaSymbols.ELT_ELEMENT )) { traverseElementDecl(child); } else if (name.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { if(fRedefineAttributeGroupMap != null) { String dName = child.getAttribute(SchemaSymbols.ATT_NAME); String bName = (String)fRedefineAttributeGroupMap.get(dName); if(bName != null) { child.setAttribute(SchemaSymbols.ATT_NAME, bName); // and make sure we wipe this out of the grammar! fSchemaGrammar.topLevelAttrGrpDecls.remove(dName); // Now we reuse this location in the array to store info we'll need for validation... ComplexTypeInfo typeInfo = new ComplexTypeInfo(); int templateElementNameIndex = fStringPool.addSymbol("$"+bName); int typeNameIndex = fStringPool.addSymbol("%"+bName); typeInfo.scopeDefined = -2; typeInfo.contentSpecHandle = -1; typeInfo.contentType = XMLElementDecl.TYPE_SIMPLE; typeInfo.datatypeValidator = null; typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl( new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==StringPool.EMPTY_STRING) ? StringPool.EMPTY_STRING : -2, typeInfo.scopeDefined, typeInfo.contentType, typeInfo.contentSpecHandle, -1, typeInfo.datatypeValidator); Vector anyAttDecls = new Vector(); // need to determine how to initialize these babies; then // on the <redefine> traversing end, try // and cast the hash value into the right form; // failure indicates nothing to redefine; success // means we can feed checkAttribute... what it needs... traverseAttributeGroupDecl(child, typeInfo, anyAttDecls); typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex( typeInfo.templateElementIndex); fRedefineAttributeGroupMap.put(dName, new Object []{typeInfo, fSchemaGrammar, anyAttDecls}); continue; } } traverseAttributeGroupDecl(child, null, null);// fSchemaGrammar.topLevelAttrGrpDecls.remove(child.getAttribute("name")); } else if (name.equals( SchemaSymbols.ELT_ATTRIBUTE ) ) { traverseAttributeDecl( child, null , false); } else if (name.equals(SchemaSymbols.ELT_GROUP)) { String dName = child.getAttribute(SchemaSymbols.ATT_NAME); if(fGroupNameRegistry.get(fTargetNSURIString + ","+dName) == null) { // we've been renamed already traverseGroupDecl(child); continue; } // if we're here: must have been a restriction. // we have yet to be renamed. try { GroupInfo gi = (GroupInfo)fGroupNameRegistry.get(fTargetNSURIString + ","+dName); // if that succeeded then we're done; were ref'd here in // an include most likely. continue; } catch (ClassCastException c) { String s = (String)fGroupNameRegistry.get(fTargetNSURIString + ","+dName); if (s == null) continue; // must have seen this already--somehow... }; String bName = (String)fGroupNameRegistry.get(fTargetNSURIString +"," + dName); if(bName != null) { child.setAttribute(SchemaSymbols.ATT_NAME, bName); // Now we reuse this location in the array to store info we'll need for validation... // note that traverseGroupDecl will happily do that for us! } traverseGroupDecl(child); } else if (name.equals(SchemaSymbols.ELT_NOTATION)) { traverseNotationDecl(child); } else { // REVISIT: Localize reportGenericSchemaError("error in content of included <schema> element information item"); } } // for each child node }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1664a02c3fe7c8e52fb2e4c9a47e62ebc7a1dbc0/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 2033, 2476, 19323, 3078, 12, 1046, 3085, 13, 15069, 503, 95, 759, 12580, 1499, 14294, 474, 4887, 33, 12580, 3843, 1564, 18, 41, 900, 67, 13181, 67, 20402, 31, 5582, 14544, 1747, 1972, 33, 74, 12580, 3843, 1564, 18, 1893, 2498, 12, 3085, 16, 4887, 1769, 759, 8004, 454, 3669, 17, 2815, 4589, 16, 4589, 1114, 16, 464, 1655, 1799, 3251, 464, 458, 451, 351, 267, 5787, 23, 5332, 496, 429, 267, 5787, 3078, 18576, 18, 8004, 27046, 23, 7171, 12, 3085, 1769, 759, 4110, 32, 266, 11255, 20401, 32, 6702, 34, 464, 32, 5666, 34, 6274, 18, 1046, 3624, 33, 60, 1304, 18, 588, 3759, 1763, 1046, 12, 3085, 1769, 1884, 12, 31, 3624, 5, 33, 2011, 31, 3624, 33, 60, 1304, 18, 588, 2134, 10291, 1046, 12, 3624, 3719, 95, 780, 529, 33, 3624, 18, 588, 29583, 5621, 430, 12, 529, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 24922, 3719, 95, 2033, 2476, 3257, 3456, 12, 3624, 1769, 97, 12107, 430, 12, 529, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 26003, 3719, 95, 74, 13180, 3876, 18, 267, 11908, 6148, 5621, 2033, 2476, 8752, 12, 3624, 1769, 74, 13180, 3876, 18, 323, 11908, 6148, 5621, 97, 12107, 430, 12, 529, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 20445, 3719, 95, 2033, 2476, 5010, 12, 3624, 1769, 97, 12107, 430, 12, 529, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 862, 12904, 3740, 3719, 95, 74, 426, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 2033, 2476, 19323, 3078, 12, 1046, 3085, 13, 15069, 503, 95, 759, 12580, 1499, 14294, 474, 4887, 33, 12580, 3843, 1564, 18, 41, 900, 67, 13181, 67, 20402, 31, 5582, 14544, 1747, 1972, 33, 74, 12580, 3843, 1564, 18, 1893, 2498, 12, 3085, 16, 4887, 1769, 759, 8004, 454, 3669, 17, 2815, 4589, 16, 4589, 1114, 16, 464, 1655, 1799, 3251, 464, 458, 451, 351, 267, 5787, 23, 5332, 496, 429, 267, 5787, 3078, 18576, 18, 8004, 27046, 23, 7171, 12, 3085, 1769, 759, 4110, 32, 266, 11255, 20401, 32, 6702, 34, 464, 32, 5666, 34, 6274, 18, 1046, 3624, 33, 60, 1304, 18, 588, 3759, 1763, 1046, 12, 3085, 1769, 1884, 12, 31, 3624, 5, 33, 2 ]
if (ordering.indexOf(readerOrder.substring(j, j+1)) == -1) {
if (ordering.indexOf(readerOrder.substring(j, j+1)) < 0) {
private void setDimensions(String id, int[][] dims) throws FormatException, IOException { // first set X and Y // this is relatively easy - we can just take the maximum value int maxX = 0; int maxY = 0; for (int i=0; i<dims.length; i++) { if (dims[i][0] > maxX) { maxX = dims[i][0]; } if (dims[i][1] > maxY) { maxY = dims[i][1]; } } for (int i=0; i<dimensions.length; i++) { if (dimensions[i] == 0) dimensions[i]++; } // now the tricky part - setting Z, C and T // first we'll get a list of the prefix blocks String[] prefixes = fp.getPrefixes(); int[] counts = fp.getCount(); int zSize = 1; int cSize = 1; int tSize = 1; String ordering = ""; for (int j=0; j<counts.length; j++) { // which dimension is this? int zndx = -1; int cndx = -1; int tndx = -1; String p = prefixes[j]; for (int k=0; k<Z.length; k++) { if (p.indexOf(Z[k]) != -1) { zndx = k; } } if (counts[j] <= 4) { for (int k=0; k<C.length; k++) { if (p.indexOf(C[k]) != -1) { cndx = k; } } } for (int k=0; k<T.length; k++) { if (p.indexOf(T[k]) != -1) { tndx = k; } } if (zndx != -1 || cndx != -1 || tndx != -1) { // the largest of these three is the dimension we will choose int zpos = zndx == -1 ? -1 : p.indexOf(Z[zndx]); int cpos = cndx == -1 ? -1 : p.indexOf(C[cndx]); int tpos = tndx == -1 ? -1 : p.indexOf(T[tndx]); int max = zpos; if (cpos > max) max = cpos; if (tpos > max) max = tpos; if (max == zpos) { ordering += "Z"; zSize = counts[j]; } else if (max == cpos) { if (cSize == 1 && !isRGB(id)) { ordering += "C"; cSize = counts[j]; } else { if (zSize == 1) { ordering += "Z"; zSize = counts[j]; } else if (tSize == 1) { ordering += "T"; tSize = counts[j]; } else cSize *= counts[j]; } } else { ordering += "T"; tSize = counts[j]; } } else { // our simple check failed, so let's try some more complex stuff // if the count is 2 or 3, it's probably a C size if (counts[j] == 2 || counts[j] == 3) { if (!varyZ && !varyC && !varyT) { if (counts[j] != 1) { // we already set this dimension if (zSize == 1) { zSize = cSize; ordering += "Z"; } else if (tSize == 1) { tSize = cSize; ordering += "T"; } } if (ordering.indexOf("C") == -1) ordering += "C"; cSize = counts[j]; } } else { // the most likely choice is whichever dimension is currently set to 1 if (dimensions[2] == 1) { ordering += "Z"; zSize = counts[j]; } else if (dimensions[4] == 1) { ordering += "T"; tSize = counts[j]; } } } } // reset the dimensions, preserving internal sizes dimensions[3] *= cSize; if (zSize > 1 && dimensions[2] > 1) { if (dimensions[4] == 1) { dimensions[4] = dimensions[2]; dimensions[2] = zSize; } else dimensions[2] *= zSize; } else dimensions[2] *= zSize; if (tSize > 1 && dimensions[4] > 1) { if (dimensions[2] == 1) { dimensions[2] = dimensions[4]; dimensions[4] = tSize; } else dimensions[4] *= tSize; } else dimensions[4] *= tSize; // make sure ordering is right String begin = ""; String readerOrder = reader.getDimensionOrder(id); for (int j=0; j<readerOrder.length(); j++) { if (ordering.indexOf(readerOrder.substring(j, j+1)) == -1) { begin += readerOrder.substring(j, j+1); } } ordering = begin + ordering; order = ordering.substring(0, 5); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/e95f764538fc1a0c1d54610adefd8325bbb9ce8b/FileStitcher.java/clean/loci/formats/FileStitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 444, 10796, 12, 780, 612, 16, 509, 63, 6362, 65, 9914, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 368, 1122, 444, 1139, 471, 1624, 565, 368, 333, 353, 1279, 17526, 12779, 300, 732, 848, 2537, 4862, 326, 4207, 460, 565, 509, 21482, 273, 374, 31, 565, 509, 21509, 273, 374, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8550, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 8550, 63, 77, 6362, 20, 65, 405, 21482, 13, 288, 3639, 21482, 273, 9914, 63, 77, 6362, 20, 15533, 1377, 289, 1377, 309, 261, 8550, 63, 77, 6362, 21, 65, 405, 21509, 13, 288, 3639, 21509, 273, 9914, 63, 77, 6362, 21, 15533, 1377, 289, 565, 289, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 14797, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 14797, 63, 77, 65, 422, 374, 13, 5769, 63, 77, 3737, 15, 31, 565, 289, 565, 368, 2037, 326, 433, 13055, 1087, 300, 3637, 2285, 16, 385, 471, 399, 565, 368, 1122, 732, 5614, 336, 279, 666, 434, 326, 1633, 4398, 565, 514, 8526, 9419, 273, 4253, 18, 588, 11700, 5621, 565, 509, 8526, 6880, 273, 4253, 18, 588, 1380, 5621, 565, 509, 998, 1225, 273, 404, 31, 565, 509, 276, 1225, 273, 404, 31, 565, 509, 268, 1225, 273, 404, 31, 565, 514, 9543, 273, 1408, 31, 565, 364, 261, 474, 525, 33, 20, 31, 525, 32, 8008, 18, 2469, 31, 525, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 444, 10796, 12, 780, 612, 16, 509, 63, 6362, 65, 9914, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 368, 1122, 444, 1139, 471, 1624, 565, 368, 333, 353, 1279, 17526, 12779, 300, 732, 848, 2537, 4862, 326, 4207, 460, 565, 509, 21482, 273, 374, 31, 565, 509, 21509, 273, 374, 31, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 8550, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 8550, 63, 77, 6362, 20, 65, 405, 21482, 13, 288, 3639, 21482, 273, 9914, 63, 77, 6362, 20, 15533, 1377, 289, 1377, 309, 261, 8550, 63, 77, 6362, 21, 65, 405, 21509, 13, 288, 3639, 21509, 273, 9914, 63, 77, 6362, 21, 2 ]
false, true, false));
Field.Store.NO, Field.Index.UN_TOKENIZED, Field.TermVector.NO));
protected void addLongValue(Document doc, String fieldName, Object internalValue) { long longVal = ((Long) internalValue).longValue(); doc.add(new Field(FieldNames.PROPERTIES, FieldNames.createNamedValue(fieldName, LongField.longToString(longVal)), false, true, false)); }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/d36b3903c108af966ef5e4c100ebab452f94c852/NodeIndexer.java/clean/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 3708, 620, 12, 2519, 997, 16, 514, 4289, 16, 1033, 2713, 620, 13, 288, 3639, 1525, 1525, 3053, 273, 14015, 3708, 13, 2713, 620, 2934, 5748, 620, 5621, 3639, 997, 18, 1289, 12, 2704, 2286, 12, 20393, 18, 17421, 16, 7734, 2286, 1557, 18, 2640, 7604, 620, 12, 16163, 16, 3407, 974, 18, 5748, 5808, 12, 5748, 3053, 13, 3631, 7734, 629, 16, 7734, 638, 16, 7734, 629, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 3708, 620, 12, 2519, 997, 16, 514, 4289, 16, 1033, 2713, 620, 13, 288, 3639, 1525, 1525, 3053, 273, 14015, 3708, 13, 2713, 620, 2934, 5748, 620, 5621, 3639, 997, 18, 1289, 12, 2704, 2286, 12, 20393, 18, 17421, 16, 7734, 2286, 1557, 18, 2640, 7604, 620, 12, 16163, 16, 3407, 974, 18, 5748, 5808, 12, 5748, 3053, 13, 3631, 7734, 629, 16, 7734, 638, 16, 7734, 629, 10019, 565, 289, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), this, pageContext)) != null) setTabindex(string);
private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setMultiple((String) evalAttr("multiple", getMultipleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELSelectTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSelectTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 15034, 12443, 12, 5507, 13, 5302, 3843, 2932, 19626, 3113, 8088, 329, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 15604, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8438, 12443, 780, 13, 5302, 3843, 2932, 9622, 3113, 30226, 2444, 4742, 9334, 4766, 1850, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 2 ]
} catch(NumberFormatException e) { return; } getProperty().set(container, new Integer(value));
} catch (NumberFormatException e) { return; } getProperty().set(container, value);
public void apply(AbstractProperty.AbstractPropertyContainer container) { int value; try { value = Integer.parseInt(getComponent().getText()); } catch(NumberFormatException e) { return; } // TODO[dyoma] report error getProperty().set(container, new Integer(value)); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3ab4b24381bd6f33991f875143f64df653cbe69f/UIPropertyBinding.java/clean/plugins/ant/src/com/intellij/lang/ant/config/impl/configuration/UIPropertyBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2230, 12, 7469, 1396, 18, 7469, 1396, 2170, 1478, 13, 288, 1377, 509, 460, 31, 1377, 775, 288, 3639, 460, 273, 2144, 18, 2670, 1702, 12, 588, 1841, 7675, 588, 1528, 10663, 1377, 289, 1044, 12, 1854, 9291, 425, 13, 288, 327, 31, 289, 368, 2660, 63, 15680, 362, 69, 65, 2605, 555, 1377, 3911, 7675, 542, 12, 3782, 16, 394, 2144, 12, 1132, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2230, 12, 7469, 1396, 18, 7469, 1396, 2170, 1478, 13, 288, 1377, 509, 460, 31, 1377, 775, 288, 3639, 460, 273, 2144, 18, 2670, 1702, 12, 588, 1841, 7675, 588, 1528, 10663, 1377, 289, 1044, 12, 1854, 9291, 425, 13, 288, 327, 31, 289, 368, 2660, 63, 15680, 362, 69, 65, 2605, 555, 1377, 3911, 7675, 542, 12, 3782, 16, 394, 2144, 12, 1132, 10019, 565, 289, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( iv.getType( ) == IntersectionValue.MAX )
if ( ( isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !isRightToLeft( ) && iv.getType( ) == IntersectionValue.MAX ) )
private final void updateOverlayScales( AllAxes aax, double dAxisStart, double dAxisEnd, double dBlockStart, double dBlockLength ) throws ChartException, IllegalArgumentException { final Axis[] axa = ( (ChartWithAxesImpl) cwa ).getPrimaryBaseAxes( ); final Axis axPrimaryBase = axa[0]; final Axis[] axaOrthogonal = ( (ChartWithAxesImpl) cwa ).getOrthogonalAxes( axPrimaryBase, false ); IntersectionValue iv; AutoScale sc = null; OneAxis oaxOverlay = null; int iTickStyle, iAxisType, j, iTitleLocation; int iOverlayCount = aax.getOverlayCount( ); int iOrientation = aax.getOrientation( ); double dStart, dEnd, dAxisLabelsThickness; Label laAxisTitle; Scale scModel; for ( int i = 0; i < iOverlayCount; i++ ) // ITERATE THROUGH EACH // OVERLAY ORTHOGONAL AXIS { j = iOverlayCount - i - 1; // GO BACKWARDS TO ENSURE CORRECT // RENDERING ORDER oaxOverlay = aax.getOverlay( j ); // UPDATE A PREVIOUSLY DEFINED // OVERLAY AXIS AUTO COMPUTE SCALE iTickStyle = oaxOverlay.getCombinedTickStyle( ); iTitleLocation = oaxOverlay.getTitlePosition( ); laAxisTitle = oaxOverlay.getTitle( ); iAxisType = getAxisType( axaOrthogonal[j] ); scModel = axaOrthogonal[j].getScale( ); sc = AutoScale.computeScale( ids, oaxOverlay, new DataSetIterator( getMinMax( axaOrthogonal[j], iAxisType ), iAxisType ), iAxisType, dAxisStart, dAxisEnd, scModel.getMin( ), scModel.getMax( ), scModel.isSetStep( ) ? new Double( scModel.getStep( ) ) : null, axaOrthogonal[j].getFormatSpecifier( ), rtc, false ); oaxOverlay.set( sc ); iv = oaxOverlay.getIntersectionValue( ); // UPDATE AXIS ENDPOINTS DUE TO ITS AXIS LABEL SHIFTS dStart = sc.getStart( ); dEnd = sc.getEnd( ); sc.computeTicks( ids, oaxOverlay.getLabel( ), oaxOverlay.getLabelPosition( ), iOrientation, dStart, dEnd, true, null ); if ( !sc.isStepFixed( ) ) { final Object[] oaMinMax = sc.getMinMax( ); while ( !sc.checkFit( ids, oaxOverlay.getLabel( ), oaxOverlay.getLabelPosition( ) ) ) { if ( !sc.zoomOut( ) ) { break; } sc.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); sc.computeTicks( ids, oaxOverlay.getLabel( ), oaxOverlay.getLabelPosition( ), iOrientation, dStart, dEnd, true, null ); } } dAxisLabelsThickness = sc.computeAxisLabelThickness( ids, oaxOverlay.getLabel( ), iOrientation ); double dAxisTitleThickness = 0; sc.resetShifts( ); if ( iOrientation == VERTICAL ) { // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS // AND AXIS-PLOT SPACING double dX = 0, dX1 = 0, dX2 = 0; // Y-AXIS BAND VERTICAL // CO-ORDINATES final boolean bTicksLeft = ( iTickStyle & TICK_LEFT ) == TICK_LEFT; final boolean bTicksRight = ( iTickStyle & TICK_RIGHT ) == TICK_RIGHT; final double dAppliedYAxisPlotSpacing = dYAxisPlotSpacing; if ( laAxisTitle.isVisible( ) ) { final String sPreviousValue = laAxisTitle.getCaption( ) .getValue( ); laAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); dAxisTitleThickness = computeBox( ids, iTitleLocation, laAxisTitle, 0, 0 ).getWidth( ); laAxisTitle.getCaption( ).setValue( sPreviousValue ); } // COMPUTE VALUES FOR x1, x, x2 // x = HORIZONTAL LOCATION OF Y-AXIS ALONG PLOT // x1 = LEFT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TICKS, // SPACING) // x2 = RIGHT EDGE OF Y-AXIS BAND (DUE TO AXIS LABELS, TICKS, // SPACING) if ( iv.getType( ) == IntersectionValue.MIN ) // LEFT OF PLOT { // NOTE: ENSURE CODE SYMMETRY WITH 'iaLabelPositions[i] == // RIGHT' dX = dBlockStart; dX -= dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksLeft ) { dX1 -= TICK_SIZE; } if ( oaxOverlay.getLabelPosition( ) == LEFT ) { dX1 -= dAxisLabelsThickness; dX2 += Math.max( bTicksRight ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( oaxOverlay.getLabelPosition( ) == RIGHT ) { dX2 += Math.max( ( bTicksRight ? TICK_SIZE : 0 ) + dAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iTitleLocation == LEFT ) { dX1 -= dAxisTitleThickness; } else if ( iTitleLocation == RIGHT ) { dX2 += dAxisTitleThickness; } // ENSURE THAT WE DON'T GO BEHIND THE LEFT PLOT BLOCK EDGE if ( dX1 < dBlockStart ) { final double dDelta = ( dBlockStart - dX1 ); dX1 = dBlockStart; dX += dDelta; dX2 += dDelta; } dBlockStart += ( dX2 - dX1 ); // SHIFT LEFT EDGE >> } else if ( iv.getType( ) == IntersectionValue.MAX ) // RIGHT { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MIN' dX = dBlockStart + dBlockLength; dX += dAppliedYAxisPlotSpacing; dX1 = dX; dX2 = dX; if ( bTicksRight ) { dX2 += TICK_SIZE; } if ( oaxOverlay.getLabelPosition( ) == RIGHT ) { dX2 += dAxisLabelsThickness; dX1 -= Math.max( bTicksLeft ? TICK_SIZE : 0, dAppliedYAxisPlotSpacing ); } else if ( oaxOverlay.getLabelPosition( ) == LEFT ) { dX1 -= Math.max( ( bTicksLeft ? TICK_SIZE : 0 ) + dAxisLabelsThickness, dAppliedYAxisPlotSpacing ); } if ( iTitleLocation == LEFT ) { dX1 -= dAxisTitleThickness; } else if ( iTitleLocation == RIGHT ) { dX2 += dAxisTitleThickness; } // ENSURE THAT WE DON'T GO AHEAD OF THE RIGHT PLOT BLOCK // EDGE if ( dX2 > dBlockStart + dBlockLength ) { final double dDelta = dX2 - ( dBlockStart + dBlockLength ); dX2 = dBlockStart + dBlockLength; dX -= dDelta; dX1 -= dDelta; } dAxisLabelsThickness = dX2 - dX1; // REUSE VARIABLE } dBlockLength -= dAxisLabelsThickness; // SHIFT RIGHT EDGE << double dDelta = 0; if ( iv.getType( ) == IntersectionValue.MIN ) { dDelta = -insCA.getLeft( ); } else if ( iv.getType( ) == IntersectionValue.MAX ) { dDelta = insCA.getRight( ); } oaxOverlay.setAxisCoordinate( dX + dDelta ); oaxOverlay.setTitleCoordinate( ( iTitleLocation == LEFT ) ? dX1 + dDelta - 1 : dX2 + 1 - dAxisTitleThickness + dDelta // dX1<=>dX<=>dX2 // INCORPORATES // TITLE ); } else if ( iOrientation == HORIZONTAL ) { // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS // AND AXIS-PLOT SPACING double dY = 0, dY1 = dY, dY2 = dY; // X-AXIS // BAND // VERTICAL // CO-ORDINATES final boolean bTicksAbove = ( iTickStyle & TICK_ABOVE ) == TICK_ABOVE; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final boolean bTicksBelow = ( iTickStyle & TICK_BELOW ) == TICK_BELOW; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final double dAppliedXAxisPlotSpacing = dXAxisPlotSpacing; if ( laAxisTitle.isVisible( ) ) { final String sPreviousValue = laAxisTitle.getCaption( ) .getValue( ); laAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); dAxisTitleThickness = computeBox( ids, iTitleLocation, laAxisTitle, 0, 0 ).getHeight( ); laAxisTitle.getCaption( ).setValue( sPreviousValue ); } // COMPUTE VALUES FOR y1, y, y2 // y = VERTICAL LOCATION OF X-AXIS ALONG PLOT // y1 = UPPER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, // SPACING) // y2 = LOWER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, // SPACING) if ( iv.getType( ) == IntersectionValue.MAX ) // ABOVE THE // PLOT { dY = dBlockStart; dY -= dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksAbove ) { dY1 -= TICK_SIZE; } if ( oaxOverlay.getLabelPosition( ) == ABOVE ) { dY1 -= dAxisLabelsThickness; dY2 += Math.max( bTicksBelow ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } else if ( oaxOverlay.getLabelPosition( ) == BELOW ) { dY2 += Math.max( ( bTicksBelow ? TICK_SIZE : 0 ) + dAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } if ( iTitleLocation == ABOVE ) { dY1 -= dAxisTitleThickness; } else if ( iTitleLocation == BELOW ) { dY2 += dAxisTitleThickness; } // ENSURE THAT WE DON'T GO BEHIND THE LEFT PLOT BLOCK EDGE if ( dY1 < dBlockStart ) { final double dDelta = ( dBlockStart - dY1 ); dY1 = dBlockStart; dY += dDelta; dY2 += dDelta; } dBlockStart += ( dY2 - dY1 ); // SHIFT TOP EDGE >> } else if ( iv.getType( ) == IntersectionValue.MIN ) // BELOW THE // PLOT { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MIN' dY = dBlockStart + dBlockLength; dY += dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksBelow ) { dY2 += TICK_SIZE; } if ( oaxOverlay.getLabelPosition( ) == BELOW ) { dY2 += dAxisLabelsThickness; dY1 -= Math.max( bTicksAbove ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } else if ( oaxOverlay.getLabelPosition( ) == ABOVE ) { dY1 -= Math.max( ( bTicksAbove ? TICK_SIZE : 0 ) + dAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } if ( iTitleLocation == ABOVE ) { dY1 -= dAxisTitleThickness; } else if ( iTitleLocation == BELOW ) { dY2 += dAxisTitleThickness; } // ENSURE THAT WE DON'T GO AHEAD OF THE RIGHT PLOT BLOCK // EDGE if ( dY2 > dBlockStart + dBlockLength ) { final double dDelta = dY2 - ( dBlockStart + dBlockLength ); dY2 = dBlockStart + dBlockLength; dY -= dDelta; dY1 -= dDelta; } } double dDelta = 0; if ( iv.getType( ) == IntersectionValue.MAX ) { dDelta = -insCA.getTop( ); } else if ( iv.getType( ) == IntersectionValue.MIN ) { dDelta = insCA.getBottom( ); } oaxOverlay.setAxisCoordinate( dY + dDelta ); oaxOverlay.setTitleCoordinate( ( iTitleLocation == ABOVE ) ? dY1 + dDelta - 1 : dY2 + 1 - dAxisTitleThickness + dDelta // dY1<=>dX<=>dY2 // INCORPORATES // TITLE ); dBlockLength -= ( dY2 - dY1 ); // SHIFT BOTTOM EDGE << } } aax.setBlockCordinates( dBlockStart, dBlockLength ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/536b54a46b25aa99e427a2fbd8217e09108c905a/PlotWith2DAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1089, 11627, 55, 21177, 12, 4826, 26494, 279, 651, 16, 1645, 302, 6558, 1685, 16, 1082, 202, 9056, 302, 6558, 1638, 16, 1645, 302, 1768, 1685, 16, 1645, 302, 1768, 1782, 262, 1082, 202, 15069, 14804, 503, 16, 2754, 202, 95, 202, 202, 6385, 15509, 8526, 1740, 69, 273, 261, 261, 7984, 1190, 26494, 2828, 13, 14098, 69, 262, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6385, 15509, 1740, 6793, 2171, 273, 1740, 69, 63, 20, 15533, 202, 202, 6385, 15509, 8526, 1740, 69, 1162, 451, 28396, 273, 261, 261, 7984, 1190, 26494, 2828, 13, 14098, 69, 262, 18, 588, 1162, 451, 28396, 26494, 12, 1740, 6793, 2171, 16, 9506, 202, 5743, 11272, 202, 202, 23634, 620, 4674, 31, 202, 202, 4965, 5587, 888, 273, 446, 31, 202, 202, 3335, 6558, 320, 651, 11627, 273, 446, 31, 202, 202, 474, 277, 6264, 2885, 16, 277, 6558, 559, 16, 525, 16, 277, 4247, 2735, 31, 202, 202, 474, 277, 11627, 1380, 273, 279, 651, 18, 588, 11627, 1380, 12, 11272, 202, 202, 474, 277, 14097, 273, 279, 651, 18, 588, 14097, 12, 11272, 202, 202, 9056, 302, 1685, 16, 302, 1638, 16, 302, 6558, 5888, 1315, 19517, 31, 202, 202, 2224, 7125, 6558, 4247, 31, 202, 202, 5587, 888, 1488, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 277, 11627, 1380, 31, 277, 9904, 262, 368, 467, 2560, 1777, 7662, 1457, 57, 16715, 512, 18133, 202, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 727, 918, 1089, 11627, 55, 21177, 12, 4826, 26494, 279, 651, 16, 1645, 302, 6558, 1685, 16, 1082, 202, 9056, 302, 6558, 1638, 16, 1645, 302, 1768, 1685, 16, 1645, 302, 1768, 1782, 262, 1082, 202, 15069, 14804, 503, 16, 2754, 202, 95, 202, 202, 6385, 15509, 8526, 1740, 69, 273, 261, 261, 7984, 1190, 26494, 2828, 13, 14098, 69, 262, 18, 588, 6793, 2171, 26494, 12, 11272, 202, 202, 6385, 15509, 1740, 6793, 2171, 273, 1740, 69, 63, 20, 15533, 202, 202, 6385, 15509, 8526, 1740, 69, 1162, 451, 28396, 273, 261, 261, 7984, 1190, 26494, 2828, 13, 14098, 69, 262, 18, 588, 1162, 451, 28396, 26494, 12, 1740, 6793, 2171, 16, 9506, 202, 5743, 2 ]
if (content.toLowerCase().indexOf("<?xml") == -1) { return content;
if (content.toLowerCase().indexOf("<?xml") == -1) { return content;
private String setEncoding(String content, String encoding) { if (content.toLowerCase().indexOf("<?xml") == -1) { return content; } // XML information present, replace encoding else { // set the encoding only if it does not exist String xmlTag = content.substring(0,content.indexOf(">")+1); if(xmlTag.toLowerCase().indexOf("encoding") == -1){ content = content.substring(content.indexOf(">")+1); content = "<?xml version=\"1.0\" encoding=\""+encoding+"\"?>" + content; } } return content; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f18005a4cbd8db6bd62da8693efef61642588e25/CmsImport.java/clean/src/com/opencms/file/CmsImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 444, 4705, 12, 780, 913, 16, 514, 2688, 13, 288, 3639, 309, 261, 1745, 18, 869, 5630, 7675, 31806, 2932, 12880, 2902, 7923, 422, 300, 21, 13, 288, 10792, 327, 913, 31, 7734, 289, 3639, 368, 3167, 1779, 3430, 16, 1453, 2688, 3639, 469, 288, 540, 202, 759, 444, 326, 2688, 1338, 309, 518, 1552, 486, 1005, 540, 202, 780, 2025, 1805, 273, 913, 18, 28023, 12, 20, 16, 1745, 18, 31806, 2932, 2984, 27921, 21, 1769, 540, 202, 430, 12, 2902, 1805, 18, 869, 5630, 7675, 31806, 2932, 5999, 7923, 422, 300, 21, 15329, 2398, 202, 1745, 273, 913, 18, 28023, 12, 1745, 18, 31806, 2932, 2984, 27921, 21, 1769, 2398, 202, 1745, 273, 20410, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 13186, 15, 5999, 9078, 2412, 35, 2984, 397, 913, 31, 1850, 202, 97, 3639, 289, 5411, 327, 913, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 514, 444, 4705, 12, 780, 913, 16, 514, 2688, 13, 288, 3639, 309, 261, 1745, 18, 869, 5630, 7675, 31806, 2932, 12880, 2902, 7923, 422, 300, 21, 13, 288, 10792, 327, 913, 31, 7734, 289, 3639, 368, 3167, 1779, 3430, 16, 1453, 2688, 3639, 469, 288, 540, 202, 759, 444, 326, 2688, 1338, 309, 518, 1552, 486, 1005, 540, 202, 780, 2025, 1805, 273, 913, 18, 28023, 12, 20, 16, 1745, 18, 31806, 2932, 2984, 27921, 21, 1769, 540, 202, 430, 12, 2902, 1805, 18, 869, 5630, 7675, 31806, 2932, 5999, 7923, 422, 300, 21, 15329, 2398, 202, 1745, 273, 913, 18, 28023, 12, 1745, 18, 31806, 2932, 2984, 27921, 21, 1769, 2398, 202, 1745, 273, 20410, 2 ]
public void doDispatch(UMOEvent event) throws Exception
protected void doDispatch(UMOEvent event) throws Exception
public void doDispatch(UMOEvent event) throws Exception { HttpMethod httpMethod = getMethod(event); execute(event, httpMethod, true); if (httpMethod.getStatusCode() >= 400) { logger.error(httpMethod.getResponseBodyAsString()); throw new DispatchException(event.getMessage(), event.getEndpoint(), new Exception( "Http call returned a status of: " + httpMethod.getStatusCode() + " " + httpMethod.getStatusText())); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/589f59b15144184ea22999b384d5ea92ddec8bb9/HttpClientMessageDispatcher.java/buggy/providers/http/src/java/org/mule/providers/http/HttpClientMessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 5325, 12, 2799, 51, 1133, 871, 13, 1216, 1185, 565, 288, 3639, 17069, 17425, 273, 6272, 12, 2575, 1769, 3639, 1836, 12, 2575, 16, 17425, 16, 638, 1769, 3639, 309, 261, 2505, 1305, 18, 588, 14041, 1435, 1545, 7409, 13, 288, 5411, 1194, 18, 1636, 12, 2505, 1305, 18, 588, 23269, 8092, 10663, 5411, 604, 394, 11552, 503, 12, 2575, 18, 24906, 9334, 871, 18, 588, 3293, 9334, 394, 1185, 12, 10792, 315, 2940, 745, 2106, 279, 1267, 434, 30, 315, 397, 17425, 18, 588, 14041, 1435, 397, 315, 315, 18701, 397, 17425, 18, 588, 1482, 1528, 1435, 10019, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 741, 5325, 12, 2799, 51, 1133, 871, 13, 1216, 1185, 565, 288, 3639, 17069, 17425, 273, 6272, 12, 2575, 1769, 3639, 1836, 12, 2575, 16, 17425, 16, 638, 1769, 3639, 309, 261, 2505, 1305, 18, 588, 14041, 1435, 1545, 7409, 13, 288, 5411, 1194, 18, 1636, 12, 2505, 1305, 18, 588, 23269, 8092, 10663, 5411, 604, 394, 11552, 503, 12, 2575, 18, 24906, 9334, 871, 18, 588, 3293, 9334, 394, 1185, 12, 10792, 315, 2940, 745, 2106, 279, 1267, 434, 30, 315, 397, 17425, 18, 588, 14041, 1435, 397, 315, 315, 18701, 397, 17425, 18, 588, 1482, 1528, 1435, 10019, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buffer.append((char)stream.readByte()); bytesRead++;
buffer.append((char)readByte(stream));
private String readString(DataInputStream stream, int length) throws IOException { StringBuffer buffer = new StringBuffer(); for (int i = 0; i < length; i++) { buffer.append((char)stream.readByte()); bytesRead++; } return buffer.toString(); }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/2e0820f00b1872c5d07b9db5cb6f5c5a1925a177/LargeTrigramModel.java/buggy/edu/cmu/sphinx/knowledge/language/large/LargeTrigramModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 18646, 12, 751, 4348, 1407, 16, 509, 769, 13, 3639, 1216, 1860, 288, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 5411, 1613, 18, 6923, 12443, 3001, 13, 3256, 18, 896, 3216, 10663, 5411, 17244, 9904, 31, 202, 97, 3639, 327, 1613, 18, 10492, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 514, 18646, 12, 751, 4348, 1407, 16, 509, 769, 13, 3639, 1216, 1860, 288, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 277, 27245, 288, 5411, 1613, 18, 6923, 12443, 3001, 13, 3256, 18, 896, 3216, 10663, 5411, 17244, 9904, 31, 202, 97, 3639, 327, 1613, 18, 10492, 5621, 565, 289, 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, -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 ]
protected void openProposalPopup() {
private void openProposalPopup(boolean autoActivated) {
protected void openProposalPopup() { if (isValid()) { if (popup == null) { recordCursorPosition(); popup = new ContentProposalPopup(null); popup.open(); popup.getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { popup = null; } }); } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/19894e08ac37485fa5e4a0cb73479f40928aae6b/ContentProposalAdapter.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1696, 14592, 13770, 1435, 288, 202, 202, 430, 261, 26810, 10756, 288, 1082, 202, 430, 261, 16086, 422, 446, 13, 288, 9506, 202, 3366, 6688, 2555, 5621, 9506, 202, 16086, 273, 394, 3697, 14592, 13770, 12, 2011, 1769, 9506, 202, 16086, 18, 3190, 5621, 9506, 202, 16086, 18, 588, 13220, 7675, 1289, 1669, 4150, 2223, 12, 2704, 3035, 4150, 2223, 1435, 288, 6862, 202, 482, 918, 3604, 1669, 7423, 12, 1669, 4150, 1133, 871, 13, 288, 25083, 202, 16086, 273, 446, 31, 6862, 202, 97, 9506, 202, 22938, 1082, 202, 97, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1696, 14592, 13770, 1435, 288, 202, 202, 430, 261, 26810, 10756, 288, 1082, 202, 430, 261, 16086, 422, 446, 13, 288, 9506, 202, 3366, 6688, 2555, 5621, 9506, 202, 16086, 273, 394, 3697, 14592, 13770, 12, 2011, 1769, 9506, 202, 16086, 18, 3190, 5621, 9506, 202, 16086, 18, 588, 13220, 7675, 1289, 1669, 4150, 2223, 12, 2704, 3035, 4150, 2223, 1435, 288, 6862, 202, 482, 918, 3604, 1669, 7423, 12, 1669, 4150, 1133, 871, 13, 288, 25083, 202, 16086, 273, 446, 31, 6862, 202, 97, 9506, 202, 22938, 1082, 202, 97, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( quietErrors ) sb.append( " -quiet" ); if ( reportLevel != null ) sb.append( " -" + reportLevel.trim().toLowerCase() ); if ( projectFile != null ) sb.append( " -project " + projectFile ); if ( excludeFile != null) sb.append( " -exclude " + excludeFile ); if ( includeFile != null) sb.append( " -include " + includeFile ); if ( visitors != null) sb.append( " -visitors " + visitors ); if ( omitVisitors != null ) sb.append( " -omitvisitors " + omitVisitors ); if ( auxClasspath != null ) sb.append( " -auxclasspath " + auxClasspath ); if ( sourcePath != null) sb.append( " -sourcepath " + sourcePath ); sb.append( " -exitcode" );
if ( quietErrors ) addArg("-quiet"); if ( reportLevel != null ) addArg("-" + reportLevel.trim().toLowerCase()); if ( projectFile != null ) { addArg("-project"); addArg(projectFile.getPath()); } if ( excludeFile != null ) { addArg("-exclude"); addArg(excludeFile.getPath()); } if ( includeFile != null) { addArg("-include"); addArg(includeFile.getPath()); } if ( visitors != null) { addArg("-visitors"); addArg(visitors); } if ( omitVisitors != null ) { addArg("-omitVisitors"); addArg(omitVisitors); } if ( auxClasspath != null ) { addArg("-auxclasspath"); addArg(auxClasspath.toString()); } if ( sourcePath != null) { addArg("-sourcepath"); addArg(sourcePath.toString()); } if ( outputFileName != null ) { addArg("-outputFile"); addArg(outputFileName); } addArg("-exitcode");
private void execFindbugs() throws BuildException { Java findbugsEngine = (Java) project.createTask("java"); findbugsEngine.setTaskName( getTaskName() ); findbugsEngine.setFork( true ); findbugsEngine.setDir( new File(homeDir + File.separator + "lib")); findbugsEngine.setJar( new File( homeDir + File.separator + "lib" + File.separator + FINDBUGS_JAR ) ); findbugsEngine.setTimeout( new Long( TIMEOUT ) ); if ( debug ) jvmargs = jvmargs + " -Dfindbugs.debug=true"; findbugsEngine.createJvmarg().setLine( jvmargs ); if ( outputFileName != null) { findbugsEngine.setOutput(new File(outputFileName)); } StringBuffer sb = new StringBuffer( 1024 ); sb.append( "-home " + homeDir ); if ( sorted ) sb.append( " -sortByClass"); if ( outputFormat != null && outputFormat.trim().equalsIgnoreCase("xml") ) { sb.append( " -xml"); } if ( quietErrors ) sb.append( " -quiet" ); if ( reportLevel != null ) sb.append( " -" + reportLevel.trim().toLowerCase() ); if ( projectFile != null ) sb.append( " -project " + projectFile ); if ( excludeFile != null) sb.append( " -exclude " + excludeFile ); if ( includeFile != null) sb.append( " -include " + includeFile ); if ( visitors != null) sb.append( " -visitors " + visitors ); if ( omitVisitors != null ) sb.append( " -omitvisitors " + omitVisitors ); if ( auxClasspath != null ) sb.append( " -auxclasspath " + auxClasspath ); if ( sourcePath != null) sb.append( " -sourcepath " + sourcePath ); sb.append( " -exitcode" ); Iterator itr = classLocations.iterator(); while ( itr.hasNext() ) { sb.append( " " + itr.next().toString() ); } findbugsEngine.createArg().setLine( sb.toString() ); log("Running FindBugs..."); int rc = findbugsEngine.executeJava(); if ((rc & ExitCodes.ERROR_FLAG) != 0) { throw new BuildException("Execution of findbugs failed."); } if ((rc & ExitCodes.BUGS_FOUND_FLAG) != 0) { log("Bugs were found"); } else { log("No bugs were found"); } if ((rc & ExitCodes.MISSING_CLASS_FLAG) != 0) { log("Classes needed for analysis were missing"); } if (outputFileName != null) { log("Output saved to " + outputFileName); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/ff82451965ea44983108ec9575423e3314de3afb/FindBugsTask.java/clean/findbugs/src/antTask/edu/umd/cs/findbugs/anttask/FindBugsTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1196, 3125, 19381, 1435, 1216, 18463, 288, 202, 202, 5852, 1104, 19381, 4410, 273, 261, 5852, 13, 1984, 18, 2640, 2174, 2932, 6290, 8863, 202, 202, 4720, 19381, 4410, 18, 542, 2174, 461, 12, 11478, 461, 1435, 11272, 202, 202, 4720, 19381, 4410, 18, 542, 22662, 12, 638, 11272, 202, 202, 4720, 19381, 4410, 18, 542, 1621, 12, 394, 1387, 12, 8712, 1621, 397, 1387, 18, 11287, 397, 315, 2941, 7923, 1769, 202, 202, 4720, 19381, 4410, 18, 542, 10813, 12, 394, 1387, 12, 6382, 1621, 397, 1387, 18, 11287, 397, 315, 2941, 6, 397, 4766, 1850, 1387, 18, 11287, 397, 17563, 2290, 57, 16113, 67, 46, 985, 262, 11272, 202, 202, 4720, 19381, 4410, 18, 542, 2694, 12, 394, 3407, 12, 24374, 262, 11272, 202, 202, 430, 261, 1198, 262, 1082, 202, 78, 3489, 1968, 273, 13555, 1968, 397, 315, 300, 40, 4720, 19381, 18, 4148, 33, 3767, 14432, 202, 202, 4720, 19381, 4410, 18, 2640, 6071, 3175, 7675, 542, 1670, 12, 13555, 1968, 11272, 3196, 202, 430, 261, 876, 4771, 480, 446, 13, 288, 1082, 202, 4720, 19381, 4410, 18, 542, 1447, 12, 2704, 1387, 12, 2844, 4771, 10019, 202, 202, 97, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6250, 11272, 202, 202, 18366, 18, 6923, 12, 3701, 8712, 315, 397, 6382, 1621, 11272, 202, 202, 430, 261, 3115, 262, 2393, 18, 6923, 12, 315, 300, 3804, 30032, 8863, 202, 202, 430, 261, 27205, 480, 446, 597, 4697, 27205, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 918, 1196, 3125, 19381, 1435, 1216, 18463, 288, 202, 202, 5852, 1104, 19381, 4410, 273, 261, 5852, 13, 1984, 18, 2640, 2174, 2932, 6290, 8863, 202, 202, 4720, 19381, 4410, 18, 542, 2174, 461, 12, 11478, 461, 1435, 11272, 202, 202, 4720, 19381, 4410, 18, 542, 22662, 12, 638, 11272, 202, 202, 4720, 19381, 4410, 18, 542, 1621, 12, 394, 1387, 12, 8712, 1621, 397, 1387, 18, 11287, 397, 315, 2941, 7923, 1769, 202, 202, 4720, 19381, 4410, 18, 542, 10813, 12, 394, 1387, 12, 6382, 1621, 397, 1387, 18, 11287, 397, 315, 2941, 6, 397, 4766, 1850, 1387, 18, 11287, 397, 17563, 2290, 57, 16113, 67, 46, 985, 262, 11272, 202, 202, 4720, 19381, 4410, 2 ]
assertServiceAndClusterView(ch1_repl, 2, 2);
public void testStateTransferWithReconnect() throws Exception { ch1=factory.createMultiplexerChannel(STACK_NAME, "c1"); assertTrue(ch1.isOpen()); assertFalse(ch1.isConnected()); ch1.connect("bla"); assertTrue(ch1.isOpen()); assertTrue(ch1.isConnected()); assertServiceAndClusterView(ch1, 1, 1); c1=new Cache(ch1, "cache-1"); assertEquals("cache has to be empty initially", 0, c1.size()); ch1_repl=factory2.createMultiplexerChannel(STACK_NAME, "c1"); assertTrue(ch1_repl.isOpen()); assertFalse(ch1_repl.isConnected()); c1.put("name", "Bela"); c1.put("id", new Long(322649)); c1.put("hobbies", "biking"); c1.put("bike", "Centurion"); ch1_repl.connect("bla"); assertTrue(ch1_repl.isOpen()); assertTrue(ch1_repl.isConnected()); assertServiceAndClusterView(ch1, 2, 2); assertServiceAndClusterView(ch1_repl, 2, 2); c1_repl=new Cache(ch1_repl, "cache-1-repl"); boolean rc=ch1_repl.getState(null, 5000); System.out.println("state transfer: " + rc); Util.sleep(500); System.out.println("c1_repl: " + c1_repl); assertEquals("initial state should have been transferred", 4, c1_repl.size()); assertEquals(new Long(322649), c1.get("id")); assertEquals(new Long(322649), c1_repl.get("id")); assertEquals("biking", c1.get("hobbies")); assertEquals("biking", c1_repl.get("hobbies")); assertEquals("Centurion", c1.get("bike")); assertEquals("Centurion", c1_repl.get("bike")); ch1_repl.disconnect(); assertTrue(ch1_repl.isOpen()); assertFalse(ch1_repl.isConnected()); assertServiceAndClusterView(ch1, 1, 1); assertServiceAndClusterView(ch1_repl, 1, 1); c1_repl.clear(); ch1_repl.connect("bla"); assertTrue(ch1_repl.isOpen()); assertTrue(ch1_repl.isConnected()); assertServiceAndClusterView(ch1, 2, 2); assertServiceAndClusterView(ch1_repl, 2, 2); assertEquals("cache has to be empty initially", 0, c1_repl.size()); rc=ch1_repl.getState(null, 5000); System.out.println("state transfer: " + rc); Util.sleep(500); System.out.println("c1_repl: " + c1_repl); assertEquals("initial state should have been transferred", 4, c1_repl.size()); assertEquals(new Long(322649), c1.get("id")); assertEquals(new Long(322649), c1_repl.get("id")); assertEquals("biking", c1.get("hobbies")); assertEquals("biking", c1_repl.get("hobbies")); assertEquals("Centurion", c1.get("bike")); assertEquals("Centurion", c1_repl.get("bike")); // Now see what happens if we reconnect the first channel // But first, add another MuxChannel on that JChannel // just so it remains coordinator (test that it doesn't // ask for state from itself) ch2=factory.createMultiplexerChannel(STACK_NAME, "c2"); assertTrue(ch2.isOpen()); assertFalse(ch2.isConnected()); assertServiceAndClusterView(ch1, 2, 2); assertServiceAndClusterView(ch1_repl, 2, 2); ch1.disconnect(); assertTrue(ch1.isOpen()); assertFalse(ch1.isConnected()); assertServiceAndClusterView(ch1_repl, 1, 1); assertTrue(ch2.isOpen()); assertFalse(ch2.isConnected()); c1.clear(); ch1.connect("bla"); assertTrue(ch1.isOpen()); assertTrue(ch1.isConnected()); assertServiceAndClusterView(ch1, 2, 2); assertServiceAndClusterView(ch1_repl, 2, 2); assertTrue(ch2.isOpen()); assertFalse(ch2.isConnected()); assertEquals("cache has to be empty initially", 0, c1.size()); rc=ch1.getState(null, 5000); System.out.println("state transfer: " + rc); Util.sleep(500); System.out.println("c1: " + c1); assertEquals("initial state should have been transferred", 4, c1.size()); assertEquals(new Long(322649), c1.get("id")); assertEquals(new Long(322649), c1_repl.get("id")); assertEquals("biking", c1.get("hobbies")); assertEquals("biking", c1_repl.get("hobbies")); assertEquals("Centurion", c1.get("bike")); assertEquals("Centurion", c1_repl.get("bike")); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/dad2ac010a32118d16135dccb63d5b6825727e97/MultiplexerTest.java/buggy/tests/junit/org/jgroups/tests/MultiplexerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1119, 5912, 1190, 20427, 1435, 1216, 1185, 288, 3639, 462, 21, 33, 6848, 18, 2640, 8438, 92, 264, 2909, 12, 21971, 67, 1985, 16, 315, 71, 21, 8863, 3639, 1815, 5510, 12, 343, 21, 18, 291, 3678, 10663, 3639, 1815, 8381, 12, 343, 21, 18, 291, 8932, 10663, 3639, 462, 21, 18, 3612, 2932, 3083, 69, 8863, 3639, 1815, 5510, 12, 343, 21, 18, 291, 3678, 10663, 3639, 1815, 5510, 12, 343, 21, 18, 291, 8932, 10663, 3639, 1815, 1179, 1876, 3629, 1767, 12, 343, 21, 16, 404, 16, 404, 1769, 3639, 276, 21, 33, 2704, 4379, 12, 343, 21, 16, 315, 2493, 17, 21, 8863, 3639, 1815, 8867, 2932, 2493, 711, 358, 506, 1008, 22458, 3113, 374, 16, 276, 21, 18, 1467, 10663, 3639, 462, 21, 67, 26745, 33, 6848, 22, 18, 2640, 8438, 92, 264, 2909, 12, 21971, 67, 1985, 16, 315, 71, 21, 8863, 3639, 1815, 5510, 12, 343, 21, 67, 26745, 18, 291, 3678, 10663, 3639, 1815, 8381, 12, 343, 21, 67, 26745, 18, 291, 8932, 10663, 3639, 276, 21, 18, 458, 2932, 529, 3113, 315, 18097, 69, 8863, 3639, 276, 21, 18, 458, 2932, 350, 3113, 394, 3407, 12, 1578, 23728, 29, 10019, 3639, 276, 21, 18, 458, 2932, 76, 947, 70, 606, 3113, 315, 70, 1766, 310, 8863, 3639, 276, 21, 18, 458, 2932, 70, 2547, 3113, 315, 15897, 295, 285, 8863, 3639, 462, 21, 67, 26745, 18, 3612, 2932, 3083, 69, 8863, 3639, 1815, 5510, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 1119, 5912, 1190, 20427, 1435, 1216, 1185, 288, 3639, 462, 21, 33, 6848, 18, 2640, 8438, 92, 264, 2909, 12, 21971, 67, 1985, 16, 315, 71, 21, 8863, 3639, 1815, 5510, 12, 343, 21, 18, 291, 3678, 10663, 3639, 1815, 8381, 12, 343, 21, 18, 291, 8932, 10663, 3639, 462, 21, 18, 3612, 2932, 3083, 69, 8863, 3639, 1815, 5510, 12, 343, 21, 18, 291, 3678, 10663, 3639, 1815, 5510, 12, 343, 21, 18, 291, 8932, 10663, 3639, 1815, 1179, 1876, 3629, 1767, 12, 343, 21, 16, 404, 16, 404, 1769, 3639, 276, 21, 33, 2704, 4379, 12, 343, 21, 16, 315, 2493, 17, 21, 8863, 3639, 1815, 8867, 2932, 2493, 711, 358, 506, 1008, 2 ]
catch(KettleException ke)
catch(Exception ke)
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.MIN | SWT.MAX | SWT.RESIZE); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; changed = input.hasChanged(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("FilesToResultDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("FilesToResultDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); // The rest... // FilenameField line wlFilenameField=new Label(shell, SWT.RIGHT); wlFilenameField.setText(Messages.getString("FilesToResultDialog.FilenameField.Label")); //$NON-NLS-1$ props.setLook(wlFilenameField); fdlFilenameField=new FormData(); fdlFilenameField.left = new FormAttachment(0, 0); fdlFilenameField.top = new FormAttachment(wStepname, margin); fdlFilenameField.right= new FormAttachment(middle, -margin); wlFilenameField.setLayoutData(fdlFilenameField); wFilenameField=new CCombo(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wFilenameField.setToolTipText(Messages.getString("FilesToResultDialog.FilenameField.Tooltip")); //$NON-NLS-1$ props.setLook(wFilenameField); wFilenameField.addModifyListener(lsMod); fdFilenameField=new FormData(); fdFilenameField.left = new FormAttachment(middle, 0); fdFilenameField.top = new FormAttachment(wStepname, margin); fdFilenameField.right= new FormAttachment(100, 0); wFilenameField.setLayoutData(fdFilenameField); /* * Get the field names from the previous steps, in the background though */ Runnable runnable = new Runnable() { public void run() { try { Row inputfields = transMeta.getPrevStepFields(stepname); for (int i=0;i<inputfields.size();i++) { wFilenameField.add( inputfields.getValue(i).getName() ); } } catch(KettleException ke) { new ErrorDialog(shell, props, Messages.getString("FilesToResultDialog.FailedToGetFields.DialogTitle"), Messages.getString("FilesToResultDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$ } } }; display.asyncExec(runnable); // Some buttons wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("System.Button.OK")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCancel }, margin, null); // Include Files? wlTypes=new Label(shell, SWT.RIGHT); wlTypes.setText(Messages.getString("FilesToResultDialog.TypeOfFile.Label")); props.setLook(wlTypes); fdlTypes=new FormData(); fdlTypes.left = new FormAttachment(0, 0); fdlTypes.top = new FormAttachment(wFilenameField, margin); fdlTypes.right= new FormAttachment(middle, -margin); wlTypes.setLayoutData(fdlTypes); wTypes=new List(shell, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); wTypes.setToolTipText(Messages.getString("FilesToResultDialog.TypeOfFile.Tooltip")); props.setLook(wTypes); fdTypes=new FormData(); fdTypes.left = new FormAttachment(middle, 0); fdTypes.top = new FormAttachment(wFilenameField, margin); fdTypes.bottom = new FormAttachment(wOK, -margin*3); fdTypes.right = new FormAttachment(100, 0); wTypes.setLayoutData(fdTypes); for (int i=0;i<ResultFile.getAllTypeDesc().length;i++) { wTypes.add(ResultFile.getAllTypeDesc()[i]); } // Add listeners lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; wCancel.addListener(SWT.Selection, lsCancel); wOK.addListener (SWT.Selection, lsOK ); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(changed); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dfc45f8478032cba0497ee2b72b7913b4b94e6c6/FilesToResultDialog.java/clean/src/be/ibridge/kettle/trans/step/filestoresult/FilesToResultDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 6236, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 862, 4574, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 11047, 2223, 7180, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 6703, 273, 810, 18, 5332, 5033, 5621, 202, 202, 1204, 3744, 646, 3744, 273, 394, 2748, 3744, 261, 1769, 202, 202, 687, 3744, 18, 10107, 2384, 225, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 687, 3744, 18, 10107, 2686, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 10304, 18, 542, 3744, 12, 687, 3744, 1769, 202, 202, 10304, 18, 542, 1528, 12, 5058, 18, 588, 780, 2932, 2697, 774, 1253, 6353, 18, 13220, 18, 4247, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 474, 7689, 273, 3458, 18, 588, 21924, 52, 299, 5621, 202, 202, 474, 7333, 273, 9333, 18, 19772, 7702, 31, 202, 202, 759, 8693, 529, 980, 202, 202, 21504, 4160, 529, 33, 2704, 5287, 12, 10304, 16, 348, 8588, 18, 11847, 1769, 202, 202, 21504, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 6236, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 862, 4574, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 11047, 2223, 7180, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 6703, 273, 810, 18, 5332, 5033, 5621, 202, 2 ]
ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";");
ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";");
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if(info.getProperty("compatible")==null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } firstWarning = null; // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5466, 8863, 565, 333, 67, 7407, 273, 302, 31, 565, 333, 67, 718, 273, 880, 31, 565, 22116, 67, 22366, 273, 2063, 31, 565, 22116, 67, 13784, 273, 1123, 18, 588, 1396, 2932, 3664, 8863, 565, 22116, 67, 4714, 273, 1123, 18, 588, 1396, 2932, 1355, 8863, 565, 22116, 67, 6354, 273, 1756, 31, 565, 22116, 67, 8908, 273, 1479, 31, 565, 22116, 67, 8608, 273, 20695, 67, 16234, 31, 565, 309, 12, 1376, 18, 588, 1396, 2932, 10943, 7923, 631, 2011, 13, 288, 1377, 7318, 273, 302, 18, 588, 17581, 1444, 1435, 397, 4585, 397, 302, 18, 588, 19549, 1444, 5621, 565, 289, 469, 288, 1377, 7318, 273, 1123, 18, 588, 1396, 2932, 10943, 8863, 565, 289, 565, 368, 4494, 1221, 326, 2172, 1459, 565, 775, 1377, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 2201, 1790, 854, 3315, 565, 368, 1220, 9145, 345, 285, 1230, 9938, 1347, 326, 1004, 4692, 326, 1790, 1177, 565, 368, 434, 6742, 9334, 471, 353, 279, 2975, 5073, 603, 326, 2699, 6035, 565, 309, 12, 1376, 18, 588, 1396, 2932, 1355, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 1355, 8863, 565, 309, 12, 1376, 18, 588, 1396, 2932, 3664, 7923, 631, 2011, 13, 1377, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 2 ]
CmsFile file = getCms().readFile(getCms().getSitePath(res)); uri = new String(file.getContents());
uri = new String(CmsFile.upgrade(res, getCms()).getContents());
public String applyButton() { if (MODE_VIEW.equals(getParamDialogMode())) { // in view mode, generate disabled button return button(null, null, "apply_in.png", "button.paste", 0); } else { String uri = getParamResourcePath(); if (CmsStringUtil.isEmpty(getParamDialogMode())) { // in editor mode, create a valid link from resource path uri = getJsp().link(uri); } else if (MODE_WIDGET.equals(getParamDialogMode())) { // get real link target in widget mode from file content try { CmsResource res = getCms().readResource(getParamResourcePath()); CmsFile file = getCms().readFile(getCms().getSitePath(res)); uri = new String(file.getContents()); } catch (CmsException e) { // this should never happen LOG.error(e); } } return button( "javascript:link('" + uri + "',document.form.title.value, document.form.title.value);", null, "apply.png", "button.paste", 0); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/47af503bf7828b7c08f9a264b53dec4ab039220b/CmsLinkGallery.java/buggy/src/org/opencms/workplace/galleries/CmsLinkGallery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2230, 3616, 1435, 288, 3639, 309, 261, 7038, 67, 12145, 18, 14963, 12, 588, 786, 6353, 2309, 1435, 3719, 288, 5411, 368, 316, 1476, 1965, 16, 2103, 5673, 3568, 5411, 327, 3568, 12, 2011, 16, 446, 16, 315, 9010, 67, 267, 18, 6446, 3113, 315, 5391, 18, 29795, 3113, 374, 1769, 3639, 289, 469, 288, 5411, 514, 2003, 273, 9027, 29906, 5621, 5411, 309, 261, 4747, 13565, 18, 291, 1921, 12, 588, 786, 6353, 2309, 1435, 3719, 288, 7734, 368, 316, 4858, 1965, 16, 752, 279, 923, 1692, 628, 1058, 589, 7734, 2003, 273, 31162, 7675, 1232, 12, 1650, 1769, 5411, 289, 469, 309, 261, 7038, 67, 59, 734, 3264, 18, 14963, 12, 588, 786, 6353, 2309, 1435, 3719, 288, 7734, 368, 336, 2863, 1692, 1018, 316, 3604, 1965, 628, 585, 913, 7734, 775, 288, 10792, 7630, 400, 273, 14413, 7675, 896, 1420, 12, 588, 786, 29906, 10663, 10792, 28118, 585, 273, 14413, 7675, 896, 812, 12, 588, 4747, 7675, 588, 4956, 743, 12, 455, 10019, 10792, 2003, 273, 394, 514, 12, 768, 18, 588, 6323, 10663, 7734, 289, 1044, 261, 4747, 503, 425, 13, 288, 10792, 368, 333, 1410, 5903, 5865, 10792, 2018, 18, 1636, 12, 73, 1769, 7734, 289, 5411, 289, 5411, 327, 3568, 12, 7734, 315, 11242, 30, 1232, 22076, 397, 2003, 397, 14912, 5457, 18, 687, 18, 2649, 18, 1132, 16, 1668, 18, 687, 18, 2649, 18, 1132, 1769, 3113, 7734, 446, 16, 7734, 315, 9010, 18, 6446, 3113, 7734, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2230, 3616, 1435, 288, 3639, 309, 261, 7038, 67, 12145, 18, 14963, 12, 588, 786, 6353, 2309, 1435, 3719, 288, 5411, 368, 316, 1476, 1965, 16, 2103, 5673, 3568, 5411, 327, 3568, 12, 2011, 16, 446, 16, 315, 9010, 67, 267, 18, 6446, 3113, 315, 5391, 18, 29795, 3113, 374, 1769, 3639, 289, 469, 288, 5411, 514, 2003, 273, 9027, 29906, 5621, 5411, 309, 261, 4747, 13565, 18, 291, 1921, 12, 588, 786, 6353, 2309, 1435, 3719, 288, 7734, 368, 316, 4858, 1965, 16, 752, 279, 923, 1692, 628, 1058, 589, 7734, 2003, 273, 31162, 7675, 1232, 12, 1650, 1769, 5411, 289, 469, 309, 261, 7038, 67, 59, 734, 3264, 18, 14963, 12, 588, 786, 6353, 2 ]
this.db = db;
this.debugGui = debugGui;
LoadFile(Main db, Scriptable scope, String fileName) { this.scope = scope; this.fileName = fileName; this.db = db; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4444, 812, 12, 6376, 1319, 16, 22780, 2146, 16, 514, 3968, 13, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 17812, 273, 3968, 31, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4444, 812, 12, 6376, 1319, 16, 22780, 2146, 16, 514, 3968, 13, 288, 3639, 333, 18, 4887, 273, 2146, 31, 3639, 333, 18, 17812, 273, 3968, 31, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 565, 289, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
unicodeAsBackSlash = false; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) {
this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) {
public final void jumpOverMethodBody() { this.wasAcr = false; int found = 1; try { while (true) { //loop for jumping over comments // ---------Consume white space and handles startPosition--------- boolean isWhiteSpace; do { startPosition = currentPosition; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { isWhiteSpace = jumpOverUnicodeWhiteSpace(); } else { if (recordLineSeparator && ((currentCharacter == '\r') || (currentCharacter == '\n'))) pushLineSeparator(); isWhiteSpace = CharOperation.isWhitespace(currentCharacter); } } while (isWhiteSpace); // -------consume token until } is found--------- switch (currentCharacter) { case '{' : found++; break; case '}' : found--; if (found == 0) return; break; case '\'' : { boolean test; test = getNextChar('\\'); if (test) { try { scanEscapeCharacter(); } catch (InvalidInputException ex) { // ignore } } else { try { // consume next character unicodeAsBackSlash = false; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (withoutUnicodePtr != 0) { withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; } } } catch (InvalidInputException ex) { // ignore } } getNextChar('\''); break; } case '"' : try { try { // consume next character unicodeAsBackSlash = false; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (withoutUnicodePtr != 0) { withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; } } } catch (InvalidInputException ex) { // ignore } while (currentCharacter != '"') { if (currentCharacter == '\r'){ if (source[currentPosition] == '\n') currentPosition++; break; // the string cannot go further that the line } if (currentCharacter == '\n'){ break; // the string cannot go further that the line } if (currentCharacter == '\\') { try { scanEscapeCharacter(); } catch (InvalidInputException ex) { // ignore } } try { // consume next character unicodeAsBackSlash = false; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (withoutUnicodePtr != 0) { withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; } } } catch (InvalidInputException ex) { // ignore } } } catch (IndexOutOfBoundsException e) { return; } break; case '/' : { int test; boolean isUnicode; if ((test = getNextChar('/', '*')) == 0) { //line comment try { //get the next char if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { //-------------unicode traitement ------------ isUnicode = true; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; currentPosition++; while (source[currentPosition] == 'u') { currentPosition++; } if ((c1 = Character.getNumericValue(source[currentPosition++])) > 15 || c1 < 0 || (c2 = Character.getNumericValue(source[currentPosition++])) > 15 || c2 < 0 || (c3 = Character.getNumericValue(source[currentPosition++])) > 15 || c3 < 0 || (c4 = Character.getNumericValue(source[currentPosition++])) > 15 || c4 < 0) { //error don't care of the value currentCharacter = 'A'; } //something different from \n and \r else { currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } else { isUnicode = false; } while (currentCharacter != '\r' && currentCharacter != '\n') { //get the next char if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { //-------------unicode traitement ------------ int c1 = 0, c2 = 0, c3 = 0, c4 = 0; currentPosition++; isUnicode = true; while (source[currentPosition] == 'u') { currentPosition++; } if ((c1 = Character.getNumericValue(source[currentPosition++])) > 15 || c1 < 0 || (c2 = Character.getNumericValue(source[currentPosition++])) > 15 || c2 < 0 || (c3 = Character.getNumericValue(source[currentPosition++])) > 15 || c3 < 0 || (c4 = Character.getNumericValue(source[currentPosition++])) > 15 || c4 < 0) { //error don't care of the value currentCharacter = 'A'; } //something different from \n and \r else { currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } else { isUnicode = false; } } if (recordLineSeparator && ((currentCharacter == '\r') || (currentCharacter == '\n'))) { if (!isUnicode) { pushLineSeparator(); } } } catch (IndexOutOfBoundsException e) { //an eof will then be generated } break; } if (test > 0) { //traditional and javadoc comment isUnicode = false; boolean star = false; try { // consume next character unicodeAsBackSlash = false; if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; if (withoutUnicodePtr != 0) { withoutUnicodeBuffer[++withoutUnicodePtr] = currentCharacter; } } } catch (InvalidInputException ex) { // ignore } if (currentCharacter == '*') { star = true; } if (recordLineSeparator && ((currentCharacter == '\r') || (currentCharacter == '\n'))) { if (!isUnicode) { pushLineSeparator(); } } try { //get the next char if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { //-------------unicode traitement ------------ isUnicode = true; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; currentPosition++; while (source[currentPosition] == 'u') { currentPosition++; } if ((c1 = Character.getNumericValue(source[currentPosition++])) > 15 || c1 < 0 || (c2 = Character.getNumericValue(source[currentPosition++])) > 15 || c2 < 0 || (c3 = Character.getNumericValue(source[currentPosition++])) > 15 || c3 < 0 || (c4 = Character.getNumericValue(source[currentPosition++])) > 15 || c4 < 0) { //error don't care of the value currentCharacter = 'A'; } //something different from * and / else { currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } else { isUnicode = false; } //loop until end of comment */ while ((currentCharacter != '/') || (!star)) { if (recordLineSeparator && ((currentCharacter == '\r') || (currentCharacter == '\n'))) { if (!isUnicode) { pushLineSeparator(); } } star = currentCharacter == '*'; //get next char if (((currentCharacter = source[currentPosition++]) == '\\') && (source[currentPosition] == 'u')) { //-------------unicode traitement ------------ isUnicode = true; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; currentPosition++; while (source[currentPosition] == 'u') { currentPosition++; } if ((c1 = Character.getNumericValue(source[currentPosition++])) > 15 || c1 < 0 || (c2 = Character.getNumericValue(source[currentPosition++])) > 15 || c2 < 0 || (c3 = Character.getNumericValue(source[currentPosition++])) > 15 || c3 < 0 || (c4 = Character.getNumericValue(source[currentPosition++])) > 15 || c4 < 0) { //error don't care of the value currentCharacter = 'A'; } //something different from * and / else { currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } else { isUnicode = false; } } } catch (IndexOutOfBoundsException e) { return; } break; } break; } default : if (Character.isJavaIdentifierStart(currentCharacter)) { scanIdentifierOrKeyword(); break; } if (Character.isDigit(currentCharacter)) { try { scanNumber(false); } catch (InvalidInputException ex) { // ignore } break; } } } //-----------------end switch while try-------------------- } catch (IndexOutOfBoundsException e) { // ignore } catch (InvalidInputException e) { // ignore } return;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/bd0b42da240c9e3160dab0f23f741fededbd0813/Scanner.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 727, 918, 11833, 4851, 1305, 2250, 1435, 288, 202, 2211, 18, 17416, 37, 3353, 273, 629, 31, 202, 474, 1392, 273, 404, 31, 202, 698, 288, 202, 202, 17523, 261, 3767, 13, 288, 368, 6498, 364, 525, 379, 1382, 1879, 5678, 1082, 202, 759, 300, 788, 19253, 9578, 3476, 471, 7372, 23549, 8567, 1082, 202, 6494, 353, 23108, 31, 1082, 202, 2896, 288, 9506, 202, 1937, 2555, 273, 22356, 31, 9506, 202, 430, 261, 12443, 2972, 7069, 273, 1084, 63, 2972, 2555, 9904, 5717, 422, 5282, 13, 6862, 202, 10, 10, 261, 3168, 63, 2972, 2555, 65, 422, 296, 89, 26112, 288, 6862, 202, 291, 23108, 273, 11833, 4851, 16532, 23108, 5621, 9506, 202, 97, 469, 288, 6862, 202, 430, 261, 3366, 1670, 6581, 25083, 202, 10, 10, 14015, 2972, 7069, 422, 2337, 86, 6134, 747, 261, 2972, 7069, 422, 2337, 82, 11, 20349, 25083, 202, 6206, 1670, 6581, 5621, 6862, 202, 291, 23108, 273, 3703, 2988, 18, 291, 9431, 12, 2972, 7069, 1769, 9506, 202, 97, 1082, 202, 97, 1323, 261, 291, 23108, 1769, 1082, 202, 759, 18365, 21224, 1147, 3180, 289, 353, 1392, 8567, 1082, 202, 9610, 261, 2972, 7069, 13, 288, 9506, 202, 3593, 9790, 294, 6862, 202, 7015, 9904, 31, 6862, 202, 8820, 31, 9506, 202, 3593, 9571, 294, 6862, 202, 7015, 413, 31, 6862, 202, 430, 261, 7015, 422, 374, 13, 25083, 202, 2463, 31, 6862, 202, 8820, 31, 9506, 202, 3593, 15053, 294, 6862, 202, 95, 25083, 202, 6494, 1842, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 11833, 4851, 1305, 2250, 1435, 288, 202, 2211, 18, 17416, 37, 3353, 273, 629, 31, 202, 474, 1392, 273, 404, 31, 202, 698, 288, 202, 202, 17523, 261, 3767, 13, 288, 368, 6498, 364, 525, 379, 1382, 1879, 5678, 1082, 202, 759, 300, 788, 19253, 9578, 3476, 471, 7372, 23549, 8567, 1082, 202, 6494, 353, 23108, 31, 1082, 202, 2896, 288, 9506, 202, 1937, 2555, 273, 22356, 31, 9506, 202, 430, 261, 12443, 2972, 7069, 273, 1084, 63, 2972, 2555, 9904, 5717, 422, 5282, 13, 6862, 202, 10, 10, 261, 3168, 63, 2972, 2555, 65, 422, 296, 89, 26112, 288, 6862, 202, 291, 23108, 273, 11833, 4851, 16532, 23108, 5621, 9506, 202, 97, 469, 288, 6862, 2 ]
public org.quickfix.field.AllocIntermedReqType getAllocIntermedReqType() throws FieldNotFound { org.quickfix.field.AllocIntermedReqType value = new org.quickfix.field.AllocIntermedReqType();
public quickfix.field.AllocIntermedReqType getAllocIntermedReqType() throws FieldNotFound { quickfix.field.AllocIntermedReqType value = new quickfix.field.AllocIntermedReqType();
public org.quickfix.field.AllocIntermedReqType getAllocIntermedReqType() throws FieldNotFound { org.quickfix.field.AllocIntermedReqType value = new org.quickfix.field.AllocIntermedReqType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReportAck.java/buggy/src/java/src/quickfix/fix44/AllocationReportAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 336, 8763, 2465, 2937, 6113, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 336, 8763, 2465, 2937, 6113, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 2465, 2937, 6113, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 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, -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 ]
panHandler = new BoundedDragPanHandler(null);
panHandler = new BoundedEdgePanHandler();
private void init() { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); layoutMap = new HashMap(); footprint = new Rectangle2D.Double(0,0,0,0); // here we disable zoom/pan (TODO: save for later, reinstate on mode) removeInputEventListener(getZoomEventHandler()); removeInputEventListener(getPanEventHandler()); panHandler = new BoundedDragPanHandler(null); addInputEventListener(panHandler); }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/b927571573c6b14fb6e5653fcb9385cd15bd16be/BrowserView.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/BrowserView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 1435, 565, 288, 3639, 1550, 273, 15408, 5494, 18, 588, 1442, 5621, 3639, 31217, 12, 2704, 5563, 12, 15561, 16, 15561, 16, 15561, 10019, 3639, 3511, 863, 273, 394, 4317, 5621, 3639, 27556, 273, 394, 13264, 22, 40, 18, 5265, 12, 20, 16, 20, 16, 20, 16, 20, 1769, 7734, 368, 2674, 732, 4056, 7182, 19, 7355, 261, 6241, 30, 1923, 364, 5137, 16, 283, 267, 2019, 603, 1965, 13, 3639, 1206, 1210, 7375, 12, 588, 11497, 16402, 10663, 3639, 1206, 1210, 7375, 12, 588, 4069, 16402, 10663, 7734, 2800, 1503, 273, 394, 605, 12002, 6098, 4069, 1503, 5621, 3639, 527, 1210, 7375, 12, 7355, 1503, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 1208, 1435, 565, 288, 3639, 1550, 273, 15408, 5494, 18, 588, 1442, 5621, 3639, 31217, 12, 2704, 5563, 12, 15561, 16, 15561, 16, 15561, 10019, 3639, 3511, 863, 273, 394, 4317, 5621, 3639, 27556, 273, 394, 13264, 22, 40, 18, 5265, 12, 20, 16, 20, 16, 20, 16, 20, 1769, 7734, 368, 2674, 732, 4056, 7182, 19, 7355, 261, 6241, 30, 1923, 364, 5137, 16, 283, 267, 2019, 603, 1965, 13, 3639, 1206, 1210, 7375, 12, 588, 11497, 16402, 10663, 3639, 1206, 1210, 7375, 12, 588, 4069, 16402, 10663, 7734, 2800, 1503, 273, 394, 605, 12002, 6098, 4069, 1503, 5621, 3639, 527, 1210, 7375, 12, 7355, 1503, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100 ]
try { BugInstance bugInstance = (BugInstance) getUserObject(); StringBuffer result = new StringBuffer();
try { BugInstance bugInstance = (BugInstance) getUserObject(); StringBuffer result = new StringBuffer();
public String toString() { try { BugInstance bugInstance = (BugInstance) getUserObject(); StringBuffer result = new StringBuffer(); if (count >= 0) { result.append(count); result.append(": "); } if (bugInstance.isExperimental()) result.append("EXP: "); result.append(fullDescriptionsItem.isSelected() ? bugInstance.getMessage() : bugInstance.toString()); return result.toString(); } catch (Exception e) { return "Error formatting message for bug: " + e.toString(); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 202, 565, 775, 288, 7734, 16907, 1442, 7934, 1442, 273, 261, 19865, 1442, 13, 4735, 921, 5621, 7734, 6674, 563, 273, 394, 6674, 5621, 202, 202, 430, 261, 1883, 1545, 374, 13, 288, 1082, 565, 563, 18, 6923, 12, 1883, 1769, 1082, 565, 563, 18, 6923, 2932, 30, 315, 1769, 202, 202, 97, 202, 202, 430, 261, 925, 1442, 18, 291, 22338, 287, 10756, 1082, 565, 563, 18, 6923, 2932, 16109, 30, 315, 1769, 202, 202, 2088, 18, 6923, 12, 2854, 16844, 1180, 18, 291, 7416, 1435, 692, 7934, 1442, 18, 24906, 1435, 294, 7934, 1442, 18, 10492, 10663, 202, 202, 2463, 563, 18, 10492, 5621, 202, 565, 289, 1044, 261, 503, 425, 13, 288, 202, 202, 2463, 315, 668, 10407, 883, 364, 7934, 30, 315, 397, 425, 18, 10492, 5621, 202, 565, 289, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 1071, 514, 1762, 1435, 288, 202, 565, 775, 288, 7734, 16907, 1442, 7934, 1442, 273, 261, 19865, 1442, 13, 4735, 921, 5621, 7734, 6674, 563, 273, 394, 6674, 5621, 202, 202, 430, 261, 1883, 1545, 374, 13, 288, 1082, 565, 563, 18, 6923, 12, 1883, 1769, 1082, 565, 563, 18, 6923, 2932, 30, 315, 1769, 202, 202, 97, 202, 202, 430, 261, 925, 1442, 18, 291, 22338, 287, 10756, 1082, 565, 563, 18, 6923, 2932, 16109, 30, 315, 1769, 202, 202, 2088, 18, 6923, 12, 2854, 16844, 1180, 18, 291, 7416, 1435, 692, 7934, 1442, 18, 24906, 1435, 294, 7934, 1442, 18, 10492, 10663, 202, 202, 2463, 563, 18, 10492, 5621, 202, 565, 289, 1044, 261, 503, 425, 2 ]
return RubyFixnum.newFixnum(getRuby(), begin[(int) index.getValue()]);
return RubyFixnum.newFixnum(getRuby(), begin[(int) index.getLongValue()]);
public RubyObject begin(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), begin[(int) index.getValue()]); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyMatchData.java/buggy/org/jruby/RubyMatchData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 2376, 12, 54, 10340, 8585, 2107, 770, 13, 288, 3639, 309, 261, 659, 951, 5694, 12, 1615, 3719, 288, 5411, 327, 4170, 10340, 7675, 588, 12616, 5621, 3639, 289, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 588, 54, 10340, 9334, 2376, 63, 12, 474, 13, 770, 18, 588, 3708, 620, 1435, 19226, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 921, 2376, 12, 54, 10340, 8585, 2107, 770, 13, 288, 3639, 309, 261, 659, 951, 5694, 12, 1615, 3719, 288, 5411, 327, 4170, 10340, 7675, 588, 12616, 5621, 3639, 289, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 588, 54, 10340, 9334, 2376, 63, 12, 474, 13, 770, 18, 588, 3708, 620, 1435, 19226, 565, 289, 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, -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, -100, -100 ]
public IHandlerActivation activateHandler(String commandId, IHandler handler, Expression expression);
public IHandlerActivation activateHandler(IHandlerActivation activation);
public IHandlerActivation activateHandler(String commandId, IHandler handler, Expression expression);
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4f35e45be58e9c973cb34c71b638a6a7c93fce81/IHandlerService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/handlers/IHandlerService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1503, 14857, 10235, 1503, 12, 780, 1296, 548, 16, 1082, 202, 45, 1503, 1838, 16, 5371, 2652, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 1503, 14857, 10235, 1503, 12, 780, 1296, 548, 16, 1082, 202, 45, 1503, 1838, 16, 5371, 2652, 1769, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (text != null && ! text.equals(""))
if (text != null && !text.equals(""))
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); String text = layoutCL(b, fm, b.getText(), icon, vr, ir, tr); if (icon != null) icon.paintIcon(b, g, ir.x, ir.y); if (text != null && ! text.equals("")) { if (b.isEnabled()) paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent()); else paintDisabledText(b, g, text, tr.x, tr.y + fm.getAscent()); } g.setFont(saved_font); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicLabelUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 21403, 324, 273, 261, 46, 2224, 13, 276, 31, 565, 10063, 5198, 67, 5776, 273, 314, 18, 588, 5711, 5621, 565, 13264, 433, 273, 394, 13264, 5621, 565, 13264, 9482, 273, 394, 13264, 5621, 565, 13264, 16612, 273, 394, 13264, 5621, 565, 10063, 284, 273, 276, 18, 588, 5711, 5621, 565, 314, 18, 542, 5711, 12, 74, 1769, 565, 10063, 5653, 10940, 273, 314, 18, 588, 5711, 5653, 12, 74, 1769, 565, 16612, 273, 26145, 11864, 18, 11162, 2857, 5484, 12, 71, 16, 16612, 1769, 565, 309, 261, 18090, 18, 2819, 411, 374, 13, 1377, 16612, 18, 2819, 273, 374, 31, 565, 309, 261, 18090, 18, 4210, 411, 374, 13, 1377, 16612, 18, 4210, 273, 374, 31, 565, 16011, 4126, 273, 261, 70, 18, 291, 1526, 10756, 692, 324, 18, 588, 5554, 1435, 294, 324, 18, 588, 8853, 5554, 5621, 565, 514, 977, 273, 3511, 5017, 12, 70, 16, 10940, 16, 324, 18, 588, 1528, 9334, 4126, 16, 16612, 16, 9482, 16, 433, 1769, 3639, 309, 261, 3950, 480, 446, 13, 1377, 4126, 18, 84, 1598, 5554, 12, 70, 16, 314, 16, 9482, 18, 92, 16, 9482, 18, 93, 1769, 565, 309, 261, 955, 480, 446, 597, 401, 955, 18, 14963, 2932, 6, 3719, 565, 288, 565, 309, 261, 70, 18, 291, 1526, 10756, 1377, 12574, 1526, 1528, 12, 70, 16, 314, 16, 977, 16, 433, 18, 92, 16, 433, 18, 93, 397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 21403, 324, 273, 261, 46, 2224, 13, 276, 31, 565, 10063, 5198, 67, 5776, 273, 314, 18, 588, 5711, 5621, 565, 13264, 433, 273, 394, 13264, 5621, 565, 13264, 9482, 273, 394, 13264, 5621, 565, 13264, 16612, 273, 394, 13264, 5621, 565, 10063, 284, 273, 276, 18, 588, 5711, 5621, 565, 314, 18, 542, 5711, 12, 74, 1769, 565, 10063, 5653, 10940, 273, 314, 18, 588, 5711, 5653, 12, 74, 1769, 565, 16612, 273, 26145, 11864, 18, 11162, 2857, 5484, 12, 71, 16, 16612, 1769, 565, 309, 261, 18090, 18, 2819, 411, 374, 13, 1377, 16612, 18, 2819, 273, 374, 31, 565, 309, 261, 18090, 2 ]
double prob = 1.0;
public double [] distributionForInstance(Instance inst) throws Exception { if (m_Classifiers.length == 1) { return ((DistributionClassifier)m_Classifiers[0]) .distributionForInstance(inst); } double [] probs = new double[inst.numClasses()]; double [][] distributions = new double[m_ClassFilters.length][0]; for(int i = 0; i < m_ClassFilters.length; i++) { m_ClassFilters[i].input(inst); m_ClassFilters[i].batchFinished(); distributions[i] = ((DistributionClassifier)m_Classifiers[i]) .distributionForInstance(m_ClassFilters[i].output()); } int z = 0; for (int i = 0; i < inst.numClasses(); i++) { double prob = 1.0; if (i == 0) { prob *= distributions[0][0]; } else if (i == inst.numClasses() - 1) { prob *= distributions[z][1]; } else { prob *= distributions[z][1]; prob *= distributions[z+1][0]; z++; } probs[i] = prob; } // calculate the probability of each vector /*boolean [] bs = new boolean[distributions.length]; int z = 0; for (int i = 0; i < inst.numClasses(); i++) { double prob = 1.0; for (int j = 0; j < distributions.length; j++) { prob *= distributions[j][(bs[j] == true) ? 1 : 0]; } if (z < distributions.length) { bs[z] = true; } probs[z++] = prob; }*/ if (Utils.gr(Utils.sum(probs), 0)) { Utils.normalize(probs); return probs; } else { return m_ZeroR.distributionForInstance(inst); } }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/4a859497568491a49044b08f953d7223117183d5/OrdinalClassClassifier.java/buggy/weka/classifiers/OrdinalClassClassifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1645, 5378, 7006, 1290, 1442, 12, 1442, 1804, 13, 1216, 1185, 288, 3639, 309, 261, 81, 67, 10469, 18, 2469, 422, 404, 13, 288, 1377, 327, 14015, 9003, 13860, 13, 81, 67, 10469, 63, 20, 5717, 3639, 263, 16279, 1290, 1442, 12, 8591, 1769, 565, 289, 565, 1645, 5378, 18989, 273, 394, 1645, 63, 8591, 18, 2107, 4818, 1435, 15533, 3639, 1645, 5378, 8526, 23296, 273, 394, 1645, 63, 81, 67, 797, 5422, 18, 2469, 6362, 20, 15533, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 312, 67, 797, 5422, 18, 2469, 31, 277, 27245, 288, 1377, 312, 67, 797, 5422, 63, 77, 8009, 2630, 12, 8591, 1769, 1377, 312, 67, 797, 5422, 63, 77, 8009, 5303, 10577, 5621, 5411, 23296, 63, 77, 65, 273, 14015, 9003, 13860, 13, 81, 67, 10469, 63, 77, 5717, 202, 18, 16279, 1290, 1442, 12, 81, 67, 797, 5422, 63, 77, 8009, 2844, 10663, 1850, 289, 565, 509, 998, 273, 374, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1804, 18, 2107, 4818, 5621, 277, 27245, 288, 6647, 309, 261, 77, 422, 374, 13, 288, 202, 7748, 6413, 23296, 63, 20, 6362, 20, 15533, 1377, 289, 469, 309, 261, 77, 422, 1804, 18, 2107, 4818, 1435, 300, 404, 13, 288, 202, 7748, 6413, 23296, 63, 94, 6362, 21, 15533, 1377, 289, 469, 288, 202, 7748, 6413, 23296, 63, 94, 6362, 21, 15533, 202, 7748, 6413, 23296, 63, 94, 15, 21, 6362, 20, 15533, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 5378, 7006, 1290, 1442, 12, 1442, 1804, 13, 1216, 1185, 288, 3639, 309, 261, 81, 67, 10469, 18, 2469, 422, 404, 13, 288, 1377, 327, 14015, 9003, 13860, 13, 81, 67, 10469, 63, 20, 5717, 3639, 263, 16279, 1290, 1442, 12, 8591, 1769, 565, 289, 565, 1645, 5378, 18989, 273, 394, 1645, 63, 8591, 18, 2107, 4818, 1435, 15533, 3639, 1645, 5378, 8526, 23296, 273, 394, 1645, 63, 81, 67, 797, 5422, 18, 2469, 6362, 20, 15533, 565, 364, 12, 474, 277, 273, 374, 31, 277, 411, 312, 67, 797, 5422, 18, 2469, 31, 277, 27245, 288, 1377, 312, 67, 797, 5422, 63, 77, 8009, 2630, 12, 8591, 1769, 1377, 312, 67, 797, 5422, 63, 77, 2 ]
/*
private int processNode(SimpleNode sn) { int anticipatedLength = 0; ASTPrimaryPrefix xn = (ASTPrimaryPrefix) sn.getFirstChildOfType(ASTPrimaryPrefix.class); if (xn.jjtGetNumChildren() != 0 && xn.jjtGetChild(0).getClass().equals(ASTLiteral.class)) { String str = ((SimpleNode) xn.jjtGetChild(0)).getImage(); int i = (regexp.match("/^[\"']/", str)) ? 2 : 0; anticipatedLength += str.length() - i; } return anticipatedLength; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/d76a0455b99bdf5189507d9ea0bb2385b1afafab/InsufficientStringBufferDeclaration.java/buggy/pmd/src/net/sourceforge/pmd/rules/strings/InsufficientStringBufferDeclaration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1748, 1748, 1748, 3238, 20308, 509, 20308, 1207, 907, 12, 5784, 907, 20308, 4556, 13176, 14, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 509, 20308, 17841, 24629, 690, 1782, 20308, 273, 20308, 374, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 9183, 6793, 2244, 20308, 619, 82, 20308, 273, 20308, 261, 9053, 6793, 2244, 13176, 14, 4556, 18, 588, 3759, 1763, 18859, 12, 9053, 6793, 2244, 18, 1106, 1769, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 309, 20308, 261, 22695, 18, 78, 78, 88, 967, 2578, 4212, 1435, 20308, 480, 20308, 374, 20308, 597, 20308, 619, 82, 18, 78, 78, 88, 967, 1763, 12, 20, 2934, 588, 797, 7675, 14963, 12, 9053, 6177, 18, 1106, 3719, 20308, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 514, 20308, 609, 20308, 273, 20308, 14015, 5784, 907, 13176, 14, 619, 82, 18, 78, 78, 88, 967, 1763, 12, 20, 13, 2934, 588, 2040, 5621, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 509, 20308, 277, 20308, 273, 20308, 261, 17745, 18, 1916, 2932, 19, 66, 63, 2412, 3546, 19, 3113, 20308, 609, 3719, 20308, 692, 20308, 576, 20308, 294, 20308, 374, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 17841, 24629, 690, 1782, 20308, 1011, 20308, 609, 18, 2469, 1435, 20308, 300, 20308, 277, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 289, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1748, 1748, 1748, 1748, 3238, 20308, 509, 20308, 1207, 907, 12, 5784, 907, 20308, 4556, 13176, 14, 288, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 509, 20308, 17841, 24629, 690, 1782, 20308, 273, 20308, 374, 31, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 9183, 6793, 2244, 20308, 619, 82, 20308, 273, 20308, 261, 9053, 6793, 2244, 13176, 14, 4556, 18, 588, 3759, 1763, 18859, 12, 9053, 6793, 2244, 18, 1106, 1769, 20308, 1748, 1748, 1748, 1748, 1748, 1748, 1748, 309, 20308, 261, 22695, 18, 78, 78, 88, 967, 2578, 4212, 1435, 20308, 480, 20308, 374, 20308, 597, 20308, 619, 82, 18, 78, 78, 88, 967, 1763, 12, 20, 2934, 588, 797, 7675, 14963, 12, 9053, 6177, 18, 2 ]
"Table.background", new ColorUIResource(Color.white), "Table.focusCellBackground", new ColorUIResource(Color.white), "Table.focusCellForeground", new ColorUIResource(Color.black), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white),
"Table.background", new ColorUIResource(light), "Table.focusCellBackground", new ColorUIResource(light), "Table.focusCellForeground", new ColorUIResource(darkShadow), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x66, 0x66, 0x99); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.lightGray), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.darkGray), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "Button.focus", midPurple, "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.black), "Button.highlight", new ColorUIResource(Color.white), "Button.light", new ColorUIResource(Color.lightGray.brighter()), "Button.margin", new InsetsUIResource(2, 2, 2, 2), "Button.shadow", new ColorUIResource(Color.gray), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(Color.lightGray), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.darkShadow", new ColorUIResource(Color.darkGray), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(Color.black), "CheckBox.highlight", new ColorUIResource(Color.white), "CheckBox.icon", BasicIconFactory.getCheckBoxIcon(), "CheckBox.light", new ColorUIResource(Color.lightGray.brighter()), "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.shadow", new ColorUIResource(Color.gray), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", BasicIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(Color.black), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(lightPurple), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.black), "ColorChooser.background", new ColorUIResource(Color.lightGray), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(Color.black), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(lightPurple), "ComboBox.selectionForeground", new ColorUIResource(Color.black), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "Desktop.background", new ColorUIResource(175, 163, 236), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", new BasicBorders.MarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.red), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.lightGray), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", // XXX Don't use gif "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")), "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", // XXX Don't use gif "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")), // XXX Don't use gif "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")), "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", // XXX Don't use gif "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")), "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", // XXX Don't use gif "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")), "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", // XXX Don't use gif "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")), // XXX Don't use gif "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")), // XXX Don't use gif "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")), // XXX Don't use gif "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")), // XXX Don't use gif "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")), "FocusManagerClassName", "TODO", "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(162, 167, 241), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.black), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), // XXX Don't use gif "InternalFrame.icon", new IconUIResource(new ImageIcon("icons/JavaCup.gif")), "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.lightGray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.black), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(Color.lightGray), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(Color.gray), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(Color.black), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "ctrl \\", "clearSelection", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN","scrollDownExtendSelection", "END", "selectLastRow", "HOME", "selectFirstRow", "shift END", "selectLastRowExtendSelection", "shift HOME", "selectFirstRowExtendSelection", "UP", "selectPreviousRow", "ctrl /", "selectAll", "ctrl A", "selectAll", "DOWN", "selectNextRow", "shift UP", "selectPreviousRowExtendSelection", "ctrl SPACE", "selectNextRowExtendSelection", "shift DOWN", "selectNextRowExtendSelection", "KP_UP", "selectPreviousRow", "shift PAGE_UP","scrollUpExtendSelection", "KP_DOWN", "selectNextRow" }), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0xCC, 0xCC, 0xFF), "List.selectionForeground", new ColorUIResource(Color.black), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(Color.black), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(Color.lightGray), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(Color.black), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(lightPurple), "Menu.selectionForeground", new ColorUIResource(Color.black), "MenuBar.background", new ColorUIResource(Color.lightGray), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(Color.black), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(Color.black), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(Color.lightGray), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(Color.black), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(lightPurple), "MenuItem.selectionForeground", new ColorUIResource(Color.black), "OptionPane.background", new ColorUIResource(Color.lightGray), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", // XXX Don't use gif "OptionPane.errorIcon", new IconUIResource(new ImageIcon("icons/Error.gif")), "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(Color.black), // XXX Don't use gif "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(Color.black), "OptionPane.minimumSize", new DimensionUIResource(262, 90), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", // XXX Don't use gif "OptionPane.questionIcon", new IconUIResource(new ImageIcon("icons/Question.gif")), // XXX Don't use gif "OptionPane.warningIcon", new IconUIResource(new ImageIcon("icons/Warn.gif")), "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(Color.lightGray), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(Color.white), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")}, "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(lightPurple), "PasswordField.selectionForeground", new ColorUIResource(Color.black), "PopupMenu.background", new ColorUIResource(Color.lightGray), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(Color.black), "ProgressBar.background", new ColorUIResource(Color.lightGray), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(midPurple), "ProgressBar.selectionBackground", new ColorUIResource(lightPurple), "ProgressBar.selectionForeground", new ColorUIResource(Color.lightGray), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), "RadioButton.background", new ColorUIResource(Color.lightGray), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(Color.darkGray), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(Color.black), "RadioButton.highlight", new ColorUIResource(Color.white), "RadioButton.icon", BasicIconFactory.getRadioButtonIcon(), "RadioButton.light", new ColorUIResource(Color.lightGray.brighter()), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(Color.gray), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(Color.lightGray), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(Color.black), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(lightPurple), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.black), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(Color.lightGray), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(Color.lightGray), "ScrollBar.thumbDarkShadow", new ColorUIResource(Color.black), "ScrollBar.thumbHighlight", new ColorUIResource(Color.white), "ScrollBar.thumbLightShadow", new ColorUIResource(Color.gray), "ScrollBar.track", new ColorUIResource(224, 224, 224), "ScrollBar.trackHighlight", new ColorUIResource(Color.black), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(Color.lightGray), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(Color.black), "Separator.background", new ColorUIResource(Color.white), "Separator.foreground", new ColorUIResource(Color.gray), "Separator.highlight", new ColorUIResource(Color.white), "Separator.shadow", new ColorUIResource(Color.gray), "Slider.background", new ColorUIResource(Color.lightGray), "Slider.focus", new ColorUIResource(Color.black), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "positiveBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(Color.lightGray), "Slider.highlight", new ColorUIResource(Color.white), "Slider.shadow", new ColorUIResource(Color.gray), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(10), "Slider.tickHeight", new Integer(12), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(Color.lightGray), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(Color.white), "SplitPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(Color.LIGHT_GRAY), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(Color.darkGray), "TabbedPane.focus", new ColorUIResource(Color.black), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(Color.black), "TabbedPane.highlight", new ColorUIResource(Color.lightGray), "TabbedPane.lightHighlight", new ColorUIResource(Color.white), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollRightExtendSelection", "shift KP_RIGHT", " selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection" }), "Table.background", new ColorUIResource(Color.white), "Table.focusCellBackground", new ColorUIResource(Color.white), "Table.focusCellForeground", new ColorUIResource(Color.black), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(Color.black), "Table.gridColor", new ColorUIResource(Color.gray), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(lightPurple), "Table.selectionForeground", new ColorUIResource(Color.black), "TableHeader.background", new ColorUIResource(Color.lightGray), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(Color.black), "TextArea.background", new ColorUIResource(Color.white), "TextArea.border", new BasicBorders.MarginBorder(), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(lightPurple), "TextArea.selectionForeground", new ColorUIResource(Color.black), "TextField.background", new ColorUIResource(Color.white), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.inactiveForeground", new ColorUIResource(Color.gray), "TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_DOWN_MASK), "selection-forward"), }, "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(lightPurple), "TextField.selectionForeground", new ColorUIResource(Color.black), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", new BasicBorders.MarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.lightGray), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(Color.black), "ToggleButton.background", new ColorUIResource(Color.lightGray), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(Color.black), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(Color.lightGray), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.dockingBackground", new ColorUIResource(Color.lightGray), "ToolBar.dockingForeground", new ColorUIResource(11, 30, 143), "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray), "ToolBar.floatingForeground", new ColorUIResource(113, 171, 212), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(Color.black), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolTip.background", new ColorUIResource(122, 178, 241), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(Color.black), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(Color.white), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.png")), "Tree.collapsedIcon", new IconUIResource(new ImageIcon("icons/TreeCollapsed.png")), "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl /", "selectAll", "LEFT", "selectParent", "shift HOME", "selectFirstExtendSelection", "UP", "selectPrevious", "ctrl KP_DOWN", "selectNextChangeLead", "RIGHT", "selectChild", "ctrl HOME", "selectFirstChangeLead", "DOWN", "selectNext", "ctrl KP_LEFT", "scrollLeft", "shift UP", "selectPreviousExtendSelection", "F2", "startEditing", "ctrl LEFT", "scrollLeft", "ctrl KP_RIGHT","scrollRight", "ctrl UP", "selectPreviousChangeLead", "shift DOWN", "selectNextExtendSelection", "ENTER", "toggle", "KP_UP", "selectPrevious", "KP_DOWN", "selectNext", "ctrl RIGHT", "scrollRight", "KP_LEFT", "selectParent", "KP_RIGHT", "selectChild", "ctrl DOWN", "selectNextChangeLead", "ctrl A", "selectAll", "shift KP_UP", "selectPreviousExtendSelection", "shift KP_DOWN","selectNextExtendSelection", "ctrl SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl \\", "clearSelection", "shift SPACE", "extendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP","scrollUpExtendSelection", "SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.expandedIcon", new IconUIResource(new ImageIcon("icons/TreeExpanded.png")), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(Color.gray), "Tree.leafIcon", new IconUIResource(new ImageIcon("icons/TreeLeaf.png")), "Tree.leftChildIndent", new Integer(7), "Tree.openIcon", new IconUIResource(new ImageIcon("icons/TreeOpen.png")), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(lightPurple), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(Color.black), "Tree.textBackground", new ColorUIResource(Color.lightGray), "Tree.textForeground", new ColorUIResource(Color.black), "Viewport.background", new ColorUIResource(Color.lightGray), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12), }; defaults.putDefaults(uiDefaults); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/e33e5337028d8ae3f4321ecfa438dff78278d9af/BasicLookAndFeel.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicLookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, 1802, 699, 16601, 565, 368, 1110, 773, 4492, 18, 565, 5563, 9052, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6743, 16, 374, 92, 6743, 16, 374, 6356, 1769, 565, 5563, 7501, 10262, 1802, 273, 394, 5563, 12, 20, 92, 2733, 16, 374, 92, 2733, 16, 374, 92, 6743, 1769, 565, 5563, 23433, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6028, 16, 374, 92, 6028, 16, 374, 92, 2733, 1769, 565, 5915, 7019, 273, 394, 1033, 8526, 288, 1377, 315, 7469, 31224, 429, 4666, 18, 31226, 1528, 3113, 315, 31224, 3113, 1377, 315, 7469, 31224, 429, 4666, 18, 1118, 83, 1528, 3113, 315, 3715, 83, 3113, 1377, 315, 3616, 18, 9342, 3113, 394, 5563, 5370, 1420, 12, 2957, 18, 5099, 23521, 3631, 1377, 315, 3616, 18, 8815, 3113, 1377, 394, 10034, 73, 643, 87, 18, 14443, 620, 1435, 4202, 288, 3639, 1071, 1033, 752, 620, 12, 3060, 73, 643, 87, 1014, 13, 3639, 288, 1850, 327, 7651, 21621, 18, 588, 3616, 8107, 5621, 3639, 289, 1377, 19879, 1377, 315, 3616, 18, 25045, 12957, 3113, 394, 5563, 5370, 1420, 12, 2957, 18, 25045, 23521, 3631, 1377, 315, 3616, 18, 13923, 1210, 863, 3113, 394, 10034, 73, 643, 87, 18, 14443, 1210, 863, 12, 2704, 1033, 8526, 288, 3639, 315, 6616, 3113, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, 1802, 699, 16601, 565, 368, 1110, 773, 4492, 18, 565, 5563, 9052, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6743, 16, 374, 92, 6743, 16, 374, 6356, 1769, 565, 5563, 7501, 10262, 1802, 273, 394, 5563, 12, 20, 92, 2733, 16, 374, 92, 2733, 16, 374, 92, 6743, 1769, 565, 5563, 23433, 10262, 1802, 273, 394, 5563, 12, 20, 92, 6028, 16, 374, 92, 6028, 16, 374, 92, 2733, 1769, 565, 5915, 7019, 273, 394, 1033, 8526, 288, 1377, 315, 7469, 31224, 429, 2 ]
}
for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); } graphics.setColor(color); graphics.drawChars(data, offset, length, x, y); }
public void drawChars(char[] data, int offset, int value2, int x, int y) { // TODO } // drawChars()
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/a4a992c67fd99df6d351413d6d41128bb0f006a5/DebugGraphics.java/buggy/libraries/javalib/javax/swing/DebugGraphics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3724, 7803, 12, 3001, 8526, 501, 16, 509, 1384, 16, 509, 460, 22, 16, 509, 619, 16, 509, 677, 13, 225, 288, 565, 368, 2660, 364, 261, 474, 770, 273, 374, 31, 770, 411, 261, 4148, 11353, 1380, 300, 404, 1769, 965, 1615, 13, 288, 17313, 18, 542, 2957, 12, 3266, 1769, 17313, 18, 9446, 7803, 12, 892, 16, 1384, 16, 769, 16, 619, 16, 677, 1769, 5329, 12, 4148, 11353, 950, 1769, 225, 17313, 18, 542, 2957, 12, 4148, 11353, 2957, 1769, 17313, 18, 9446, 7803, 12, 892, 16, 1384, 16, 769, 16, 619, 16, 677, 1769, 5329, 12, 4148, 11353, 950, 1769, 289, 225, 17313, 18, 542, 2957, 12, 3266, 1769, 17313, 18, 9446, 7803, 12, 892, 16, 1384, 16, 769, 16, 619, 16, 677, 1769, 289, 368, 3724, 7803, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3724, 7803, 12, 3001, 8526, 501, 16, 509, 1384, 16, 509, 460, 22, 16, 509, 619, 16, 509, 677, 13, 225, 288, 565, 368, 2660, 364, 261, 474, 770, 273, 374, 31, 770, 411, 261, 4148, 11353, 1380, 300, 404, 1769, 965, 1615, 13, 288, 17313, 18, 542, 2957, 12, 3266, 1769, 17313, 18, 9446, 7803, 12, 892, 16, 1384, 16, 769, 16, 619, 16, 677, 1769, 5329, 12, 4148, 11353, 950, 1769, 225, 17313, 18, 542, 2957, 12, 4148, 11353, 2957, 1769, 17313, 18, 9446, 7803, 12, 892, 16, 1384, 16, 769, 16, 619, 16, 677, 1769, 5329, 12, 4148, 11353, 950, 1769, 289, 225, 17313, 18, 542, 2957, 12, 3266, 1769, 17313, 18, 9446, 2 ]
user = Base64.decode(user).readLine().trim();
user = Base64.decodeAsString(user);
private void doAUTH(String command,String argument,String argument1) throws Exception { if (state.containsKey(AUTH)) { out.println("503 User has previously authenticated." + " Further authentication is not required!"); return; } else if (argument == null) { out.println("501 Usage: AUTH (authentication type) <challenge>"); return; } else if (argument.equalsIgnoreCase("PLAIN")) { String userpass, user, pass; StringTokenizer authTokenizer; if (argument1 == null) { out.println("334 OK. Continue authentication"); userpass = in.readLine().trim(); } else userpass = argument1.trim(); authTokenizer = new StringTokenizer( Base64.decode(userpass).readLine().trim(), "\0"); user = authTokenizer.nextToken(); pass = authTokenizer.nextToken(); // Authenticate user if (users.test(user, pass)) { state.put(AUTH, user); out.println("235 Authentication Successful"); getLogger().info("AUTH method PLAIN succeeded"); } else { out.println("535 Authentication Failed"); getLogger().error("AUTH method PLAIN failed"); } return; } else if (argument.equalsIgnoreCase("LOGIN")) { String user, pass; if (argument1 == null) { out.println("334 VXNlcm5hbWU6"); // base64 encoded "Username:" user = in.readLine().trim(); } else user = argument1.trim(); user = Base64.decode(user).readLine().trim(); out.println("334 UGFzc3dvcmQ6"); // base64 encoded "Password:" pass = Base64.decode(in.readLine().trim()).readLine().trim(); //Authenticate user if (users.test(user, pass)) { state.put(AUTH, user); out.println("235 Authentication Successful"); getLogger().info("AUTH method LOGIN succeeded"); } else { out.println("535 Authentication Failed"); getLogger().error("AUTH method LOGIN failed"); } return; } else { out.println("504 Unrecognized Authentication Type"); getLogger().error("AUTH method " + argument + " is an unrecognized authentication type"); return; } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/474da932fc96cf02895705ef7fd149a2283a14c4/SMTPHandler.java/clean/src/java/org/apache/james/smtpserver/SMTPHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7131, 12, 780, 1296, 16, 780, 1237, 16, 780, 1237, 21, 13, 5411, 1216, 1185, 288, 3639, 309, 261, 2019, 18, 12298, 653, 12, 7131, 3719, 288, 5411, 596, 18, 8222, 2932, 3361, 23, 2177, 711, 7243, 9370, 1199, 7682, 397, 315, 478, 8753, 5107, 353, 486, 1931, 4442, 1769, 5411, 327, 31, 7734, 289, 469, 309, 261, 3446, 422, 446, 13, 288, 5411, 596, 18, 8222, 2932, 9172, 10858, 30, 12790, 261, 12293, 618, 13, 411, 25092, 2984, 1769, 5411, 327, 31, 7734, 289, 469, 309, 261, 3446, 18, 14963, 5556, 2932, 26549, 6, 3719, 288, 5411, 514, 729, 5466, 16, 729, 16, 1342, 31, 5411, 16370, 1357, 10524, 31, 5411, 309, 261, 3446, 21, 422, 446, 13, 288, 7734, 596, 18, 8222, 2932, 3707, 24, 7791, 18, 16773, 5107, 8863, 7734, 729, 5466, 273, 316, 18, 896, 1670, 7675, 5290, 5621, 5411, 289, 469, 7734, 729, 5466, 273, 1237, 21, 18, 5290, 5621, 5411, 1357, 10524, 273, 394, 16370, 12, 17311, 3360, 1105, 18, 3922, 12, 1355, 5466, 2934, 896, 1670, 7675, 5290, 9334, 1548, 20, 8863, 5411, 729, 273, 1357, 10524, 18, 4285, 1345, 5621, 5411, 1342, 273, 1357, 10524, 18, 4285, 1345, 5621, 5411, 368, 26644, 729, 5411, 309, 261, 5577, 18, 3813, 12, 1355, 16, 1342, 3719, 288, 7734, 919, 18, 458, 12, 7131, 16, 729, 1769, 7734, 596, 18, 8222, 2932, 30803, 8665, 11958, 2706, 8863, 7734, 7156, 7675, 1376, 2932, 7131, 707, 25564, 706, 15784, 8863, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 741, 7131, 12, 780, 1296, 16, 780, 1237, 16, 780, 1237, 21, 13, 5411, 1216, 1185, 288, 3639, 309, 261, 2019, 18, 12298, 653, 12, 7131, 3719, 288, 5411, 596, 18, 8222, 2932, 3361, 23, 2177, 711, 7243, 9370, 1199, 7682, 397, 315, 478, 8753, 5107, 353, 486, 1931, 4442, 1769, 5411, 327, 31, 7734, 289, 469, 309, 261, 3446, 422, 446, 13, 288, 5411, 596, 18, 8222, 2932, 9172, 10858, 30, 12790, 261, 12293, 618, 13, 411, 25092, 2984, 1769, 5411, 327, 31, 7734, 289, 469, 309, 261, 3446, 18, 14963, 5556, 2932, 26549, 6, 3719, 288, 5411, 514, 729, 5466, 16, 729, 16, 1342, 31, 5411, 16370, 1357, 10524, 31, 5411, 309, 261, 3446, 2 ]
String result = " <thead>\n <tr>\n";
StringBuffer result = new StringBuffer(" <thead>\n <tr>\n");
private String getTableHead() { String result = " <thead>\n <tr>\n"; Iterator it = table.getColumnIterator(); while (it.hasNext()) { Column column = (Column) it.next(); column.renderHead(renderer); result += " " + renderer.getColumnHead() + "\n"; } result += " </tr>\n </thead>\n"; return result; }
49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/a99ccf809bc2c155102602b3d87cbe7a3ae5ce0b/TableRenderer.java/clean/src/net/sf/statcvs/renderer/TableRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 5638, 1414, 1435, 288, 202, 202, 780, 563, 273, 315, 565, 411, 24604, 5333, 82, 1377, 411, 313, 5333, 82, 14432, 202, 202, 3198, 518, 273, 1014, 18, 588, 1494, 3198, 5621, 202, 202, 17523, 261, 305, 18, 5332, 2134, 10756, 288, 1082, 202, 1494, 1057, 273, 261, 1494, 13, 518, 18, 4285, 5621, 1082, 202, 2827, 18, 5902, 1414, 12, 14374, 1769, 1082, 202, 2088, 1011, 315, 3639, 315, 397, 5690, 18, 588, 1494, 1414, 1435, 397, 1548, 82, 14432, 202, 202, 97, 202, 202, 2088, 1011, 315, 1377, 7765, 313, 5333, 82, 565, 7765, 24604, 5333, 82, 14432, 202, 202, 2463, 563, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 514, 5638, 1414, 1435, 288, 202, 202, 780, 563, 273, 315, 565, 411, 24604, 5333, 82, 1377, 411, 313, 5333, 82, 14432, 202, 202, 3198, 518, 273, 1014, 18, 588, 1494, 3198, 5621, 202, 202, 17523, 261, 305, 18, 5332, 2134, 10756, 288, 1082, 202, 1494, 1057, 273, 261, 1494, 13, 518, 18, 4285, 5621, 1082, 202, 2827, 18, 5902, 1414, 12, 14374, 1769, 1082, 202, 2088, 1011, 315, 3639, 315, 397, 5690, 18, 588, 1494, 1414, 1435, 397, 1548, 82, 14432, 202, 202, 97, 202, 202, 2088, 1011, 315, 1377, 7765, 313, 5333, 82, 565, 7765, 24604, 5333, 82, 14432, 202, 202, 2463, 563, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
StringBuffer buffer = new StringBuffer(); buffer.append( "class A { void f(); void g() const; }; \n" ); buffer.append( "void A::f(){ this; } \n" ); buffer.append( "void A::g() const { *this; } \n" ); IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu.getDeclarations()[0]; ICPPClassType A = (ICPPClassType) ((IASTCompositeTypeSpecifier)decl.getDeclSpecifier()).getName().resolveBinding(); IASTFunctionDefinition def = (IASTFunctionDefinition) tu.getDeclarations()[1]; IASTExpressionStatement expStatement = (IASTExpressionStatement) ((IASTCompoundStatement)def.getBody()).getStatements()[0]; assertTrue( expStatement.getExpression() instanceof IASTLiteralExpression ); IType type = CPPVisitor.getExpressionType( expStatement.getExpression() ); assertTrue( type instanceof IPointerType ); assertSame( ((IPointerType) type).getType(), A ); def = (IASTFunctionDefinition) tu.getDeclarations()[2]; expStatement = (IASTExpressionStatement) ((IASTCompoundStatement)def.getBody()).getStatements()[0]; IASTUnaryExpression ue = (IASTUnaryExpression) expStatement.getExpression(); type = CPPVisitor.getExpressionType( ue ); assertSame( type, A ); }
StringBuffer buffer = new StringBuffer(); buffer.append("class A { void f(); void g() const; }; \n"); buffer.append("void A::f(){ this; } \n"); buffer.append("void A::g() const { *this; } \n"); IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu .getDeclarations()[0]; ICPPClassType A = (ICPPClassType) ((IASTCompositeTypeSpecifier) decl .getDeclSpecifier()).getName().resolveBinding(); IASTFunctionDefinition def = (IASTFunctionDefinition) tu .getDeclarations()[1]; IASTExpressionStatement expStatement = (IASTExpressionStatement) ((IASTCompoundStatement) def .getBody()).getStatements()[0]; assertTrue(expStatement.getExpression() instanceof IASTLiteralExpression); IType type = CPPVisitor.getExpressionType(expStatement.getExpression()); assertTrue(type instanceof IPointerType); assertSame(((IPointerType) type).getType(), A); def = (IASTFunctionDefinition) tu.getDeclarations()[2]; expStatement = (IASTExpressionStatement) ((IASTCompoundStatement) def .getBody()).getStatements()[0]; IASTUnaryExpression ue = (IASTUnaryExpression) expStatement .getExpression(); type = CPPVisitor.getExpressionType(ue); assertSame(type, A); }
public void testThis() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append( "class A { void f(); void g() const; }; \n" ); //$NON-NLS-1$ buffer.append( "void A::f(){ this; } \n" ); //$NON-NLS-1$ buffer.append( "void A::g() const { *this; } \n" ); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); IASTSimpleDeclaration decl = (IASTSimpleDeclaration) tu.getDeclarations()[0]; ICPPClassType A = (ICPPClassType) ((IASTCompositeTypeSpecifier)decl.getDeclSpecifier()).getName().resolveBinding(); IASTFunctionDefinition def = (IASTFunctionDefinition) tu.getDeclarations()[1]; IASTExpressionStatement expStatement = (IASTExpressionStatement) ((IASTCompoundStatement)def.getBody()).getStatements()[0]; assertTrue( expStatement.getExpression() instanceof IASTLiteralExpression ); IType type = CPPVisitor.getExpressionType( expStatement.getExpression() ); assertTrue( type instanceof IPointerType ); assertSame( ((IPointerType) type).getType(), A ); def = (IASTFunctionDefinition) tu.getDeclarations()[2]; expStatement = (IASTExpressionStatement) ((IASTCompoundStatement)def.getBody()).getStatements()[0]; IASTUnaryExpression ue = (IASTUnaryExpression) expStatement.getExpression(); type = CPPVisitor.getExpressionType( ue ); //when 84749 is fixed, remove this assert and uncomment below. assertSame( type, A );// assertTrue( type instanceof IQualifierType );// assertSame( ((IQualifierType) type).getType(), A );// assertTrue( ((IQualifierType) type).isConst() ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 2503, 1435, 1216, 1185, 288, 565, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 565, 202, 202, 4106, 18, 6923, 12, 315, 1106, 432, 288, 918, 284, 5621, 918, 314, 1435, 1866, 31, 289, 31, 282, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 202, 202, 4106, 18, 6923, 12, 315, 6459, 432, 2866, 74, 1435, 95, 333, 31, 289, 5397, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 202, 202, 4106, 18, 6923, 12, 315, 6459, 432, 2866, 75, 1435, 1866, 288, 380, 2211, 31, 289, 2398, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1082, 565, 202, 202, 45, 9053, 6717, 2802, 28325, 273, 1109, 12, 4106, 18, 10492, 9334, 6783, 3779, 18, 4258, 52, 1769, 565, 1082, 565, 202, 202, 45, 9053, 5784, 6094, 3496, 273, 261, 45, 9053, 5784, 6094, 13, 28325, 18, 588, 21408, 1435, 63, 20, 15533, 565, 202, 202, 2871, 6584, 18328, 432, 273, 261, 2871, 6584, 18328, 13, 14015, 45, 9053, 9400, 559, 21416, 13, 8840, 18, 588, 3456, 21416, 1435, 2934, 17994, 7675, 10828, 5250, 5621, 565, 1082, 565, 202, 202, 45, 9053, 2083, 1852, 1652, 273, 261, 45, 9053, 2083, 1852, 13, 28325, 18, 588, 21408, 1435, 63, 21, 15533, 565, 202, 202, 45, 9053, 2300, 3406, 1329, 3406, 273, 261, 45, 9053, 2300, 3406, 13, 14015, 45, 9053, 16835, 3406, 13, 536, 18, 588, 2250, 1435, 2934, 588, 14663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 918, 1842, 2503, 1435, 1216, 1185, 288, 565, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 565, 202, 202, 4106, 18, 6923, 12, 315, 1106, 432, 288, 918, 284, 5621, 918, 314, 1435, 1866, 31, 289, 31, 282, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 202, 202, 4106, 18, 6923, 12, 315, 6459, 432, 2866, 74, 1435, 95, 333, 31, 289, 5397, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 202, 202, 4106, 18, 6923, 12, 315, 6459, 432, 2866, 75, 1435, 1866, 288, 380, 2211, 31, 289, 2398, 521, 82, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 565, 1082, 565, 202, 202, 45, 9053, 2 ]
Object currentSelection = cheatsheetSelectionViewer.getInput();
Object selection = cheatsheetSelectionViewer.getInput();
private void handleCategorySelection(SelectionChangedEvent selectionEvent) { Object currentSelection = cheatsheetSelectionViewer.getInput(); Object selectedCategory = getSingleSelection((IStructuredSelection)selectionEvent.getSelection()); if (currentSelection != selectedCategory) { cheatsheetSelectionViewer.setInput(selectedCategory); enableOKButton(false); } }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/93754427e3561291d1bebb056b94e8eb6170df16/CheatSheetCategoryBasedSelectionDialog.java/clean/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/dialogs/CheatSheetCategoryBasedSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 4457, 6233, 12, 6233, 27553, 4421, 1133, 13, 288, 202, 202, 921, 783, 6233, 273, 19315, 2323, 2963, 6233, 18415, 18, 588, 1210, 5621, 202, 202, 921, 3170, 4457, 273, 1082, 202, 588, 5281, 6233, 12443, 45, 30733, 6233, 13, 10705, 1133, 18, 588, 6233, 10663, 202, 202, 430, 261, 2972, 6233, 480, 3170, 4457, 13, 288, 1082, 202, 18706, 2323, 2963, 6233, 18415, 18, 542, 1210, 12, 8109, 4457, 1769, 1082, 202, 7589, 3141, 3616, 12, 5743, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 1640, 4457, 6233, 12, 6233, 27553, 4421, 1133, 13, 288, 202, 202, 921, 783, 6233, 273, 19315, 2323, 2963, 6233, 18415, 18, 588, 1210, 5621, 202, 202, 921, 3170, 4457, 273, 1082, 202, 588, 5281, 6233, 12443, 45, 30733, 6233, 13, 10705, 1133, 18, 588, 6233, 10663, 202, 202, 430, 261, 2972, 6233, 480, 3170, 4457, 13, 288, 1082, 202, 18706, 2323, 2963, 6233, 18415, 18, 542, 1210, 12, 8109, 4457, 1769, 1082, 202, 7589, 3141, 3616, 12, 5743, 1769, 202, 202, 97, 202, 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, -100, -100, -100, -100, -100, -100 ]
return "Buffer {"+this._length+"}";
return "Buffer {"+this._length+ '}';
public String toString() { if (this._length > 50) { return "Buffer {"+this._length+"}"; } else { StringBuffer b = new StringBuffer(this._length*3); b.append("{").append(this._length).append(":"); for (int x=0; x<this._length; x++) { b.append(byteAt(x)); b.append(' '); } return b.toString(); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ShortBuffer.java/buggy/src/freenet/support/ShortBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 430, 261, 2211, 6315, 2469, 405, 6437, 13, 288, 1082, 202, 2463, 315, 1892, 12528, 15, 2211, 6315, 2469, 9078, 1532, 31, 202, 202, 97, 469, 288, 1082, 202, 780, 1892, 324, 273, 394, 6674, 12, 2211, 6315, 2469, 14, 23, 1769, 5411, 324, 18, 6923, 2932, 16711, 2934, 6923, 12, 2211, 6315, 2469, 2934, 6923, 2932, 2773, 1769, 1082, 202, 1884, 261, 474, 619, 33, 20, 31, 619, 32, 2211, 6315, 2469, 31, 619, 27245, 288, 9506, 202, 70, 18, 6923, 12, 7229, 861, 12, 92, 10019, 9506, 202, 70, 18, 6923, 2668, 28005, 1082, 202, 97, 1082, 202, 2463, 324, 18, 10492, 5621, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 1762, 1435, 288, 202, 202, 430, 261, 2211, 6315, 2469, 405, 6437, 13, 288, 1082, 202, 2463, 315, 1892, 12528, 15, 2211, 6315, 2469, 9078, 1532, 31, 202, 202, 97, 469, 288, 1082, 202, 780, 1892, 324, 273, 394, 6674, 12, 2211, 6315, 2469, 14, 23, 1769, 5411, 324, 18, 6923, 2932, 16711, 2934, 6923, 12, 2211, 6315, 2469, 2934, 6923, 2932, 2773, 1769, 1082, 202, 1884, 261, 474, 619, 33, 20, 31, 619, 32, 2211, 6315, 2469, 31, 619, 27245, 288, 9506, 202, 70, 18, 6923, 12, 7229, 861, 12, 92, 10019, 9506, 202, 70, 18, 6923, 2668, 28005, 1082, 202, 97, 1082, 202, 2463, 324, 18, 10492, 5621, 202, 202, 97, 202, 97, 2 ]
super(byNicknameTag); ColumnName = new String("Nickname"); this.setEnabled(true); }
super(byNicknameTag); ColumnName = new String("Nickname"); this.setEnabled(true); }
ByNickname() { super(byNicknameTag); ColumnName = new String("Nickname"); this.setEnabled(true); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 2525, 29756, 529, 1435, 288, 5411, 2240, 12, 1637, 29756, 529, 1805, 1769, 5411, 4753, 461, 273, 394, 514, 2932, 29756, 529, 8863, 5411, 333, 18, 542, 1526, 12, 3767, 1769, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 2525, 29756, 529, 1435, 288, 5411, 2240, 12, 1637, 29756, 529, 1805, 1769, 5411, 4753, 461, 273, 394, 514, 2932, 29756, 529, 8863, 5411, 333, 18, 542, 1526, 12, 3767, 1769, 3639, 289, 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, -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, -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, -100 ]
if ( handler.tempValue.get( Style.MAP_RULES_PROP ) != null )
if ( handler.tempValue.get( IStyleModel.MAP_RULES_PROP ) != null )
protected void makeTestExpressionCompatible( ) { DesignElement element = getElement( ); // check whether the value of "highlightTestExpre" is in tempt map. if ( handler.tempValue.get( Style.HIGHLIGHT_RULES_PROP ) != null ) { List highlightRules = element.getListProperty( handler.getModule( ), Style.HIGHLIGHT_RULES_PROP ); if ( highlightRules != null ) { for ( int i = 0; i < highlightRules.size( ); i++ ) { HighlightRule highlightRule = (HighlightRule) highlightRules .get( i ); highlightRule.setTestExpression( (String) handler.tempValue .get( Style.HIGHLIGHT_RULES_PROP ) ); } handler.tempValue.remove( Style.HIGHLIGHT_RULES_PROP ); } } // check whether the value of "mapTestExpre" is in tempt map. if ( handler.tempValue.get( Style.MAP_RULES_PROP ) != null ) { List mapRules = element.getListProperty( handler.getModule( ), Style.MAP_RULES_PROP ); if ( mapRules != null ) { for ( int i = 0; i < mapRules.size( ); i++ ) { MapRule mapRule = (MapRule) mapRules.get( i ); mapRule.setTestExpression( (String) handler.tempValue .get( Style.MAP_RULES_PROP ) ); } handler.tempValue.remove( Style.MAP_RULES_PROP ); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ReportElementState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ReportElementState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1221, 4709, 2300, 14599, 12, 262, 202, 95, 202, 202, 15478, 1046, 930, 273, 7426, 12, 11272, 202, 202, 759, 866, 2856, 326, 460, 434, 315, 15978, 4709, 424, 1484, 6, 353, 316, 1022, 337, 852, 18, 202, 202, 430, 261, 1838, 18, 5814, 620, 18, 588, 12, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 682, 8839, 4478, 273, 930, 18, 588, 682, 1396, 12, 6862, 202, 4176, 18, 588, 3120, 12, 262, 16, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 11272, 1082, 202, 430, 261, 8839, 4478, 480, 446, 262, 1082, 202, 95, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 8839, 4478, 18, 1467, 12, 11272, 277, 9904, 262, 9506, 202, 95, 6862, 202, 16205, 2175, 8839, 2175, 273, 261, 16205, 2175, 13, 8839, 4478, 6862, 1082, 202, 18, 588, 12, 277, 11272, 6862, 202, 15978, 2175, 18, 542, 4709, 2300, 12, 261, 780, 13, 1838, 18, 5814, 620, 6862, 1082, 202, 18, 588, 12, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 262, 11272, 9506, 202, 97, 9506, 202, 4176, 18, 5814, 620, 18, 4479, 12, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 866, 2856, 326, 460, 434, 315, 1458, 4709, 424, 1484, 6, 353, 316, 1022, 337, 852, 18, 202, 202, 430, 261, 1838, 18, 5814, 620, 18, 588, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1221, 4709, 2300, 14599, 12, 262, 202, 95, 202, 202, 15478, 1046, 930, 273, 7426, 12, 11272, 202, 202, 759, 866, 2856, 326, 460, 434, 315, 15978, 4709, 424, 1484, 6, 353, 316, 1022, 337, 852, 18, 202, 202, 430, 261, 1838, 18, 5814, 620, 18, 588, 12, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 682, 8839, 4478, 273, 930, 18, 588, 682, 1396, 12, 6862, 202, 4176, 18, 588, 3120, 12, 262, 16, 9767, 18, 29996, 23516, 67, 14920, 55, 67, 15811, 11272, 1082, 202, 430, 261, 8839, 4478, 480, 446, 262, 1082, 202, 95, 9506, 202, 1884, 261, 509, 277, 273, 374, 2 ]
int index = findIndex(key, elementData);
int index = findIndex(_key, elementData);
public Object put(Object key, Object value) { if (key == null) { key = NULL_OBJECT; } if (value == null) { value = NULL_OBJECT; } int index = findIndex(key, elementData); // if the key doesn't exist in the table if (elementData[index] != key) { modCount++; if (++size > threshold) { rehash(); index = findIndex(key, elementData); } // insert the key and assign the value to null initially elementData[index] = key; elementData[index + 1] = null; } // insert value to where it needs to go, return the old value Object result = elementData[index + 1]; elementData[index + 1] = value; return (result == NULL_OBJECT) ? null : result; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/7b2be08a3dfebea1175c2692c0042b043ef8a7ce/IdentityHashMap.java/buggy/modules/luni/src/main/java/java/util/IdentityHashMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1378, 12, 921, 498, 16, 1033, 460, 13, 288, 202, 202, 430, 261, 856, 422, 446, 13, 288, 1082, 202, 856, 273, 3206, 67, 9422, 31, 202, 202, 97, 202, 202, 430, 261, 1132, 422, 446, 13, 288, 1082, 202, 1132, 273, 3206, 67, 9422, 31, 202, 202, 97, 202, 202, 474, 770, 273, 1104, 1016, 12, 856, 16, 930, 751, 1769, 202, 202, 759, 309, 326, 498, 3302, 1404, 1005, 316, 326, 1014, 202, 202, 430, 261, 2956, 751, 63, 1615, 65, 480, 498, 13, 288, 1082, 202, 1711, 1380, 9904, 31, 1082, 202, 430, 261, 9904, 1467, 405, 5573, 13, 288, 9506, 202, 266, 2816, 5621, 9506, 202, 1615, 273, 1104, 1016, 12, 856, 16, 930, 751, 1769, 1082, 202, 97, 1082, 202, 759, 2243, 326, 498, 471, 2683, 326, 460, 358, 446, 22458, 1082, 202, 2956, 751, 63, 1615, 65, 273, 498, 31, 1082, 202, 2956, 751, 63, 1615, 397, 404, 65, 273, 446, 31, 202, 202, 97, 202, 202, 759, 2243, 460, 358, 1625, 518, 4260, 358, 1960, 16, 327, 326, 1592, 460, 202, 202, 921, 563, 273, 930, 751, 63, 1615, 397, 404, 15533, 202, 202, 2956, 751, 63, 1615, 397, 404, 65, 273, 460, 31, 202, 202, 2463, 261, 2088, 422, 3206, 67, 9422, 13, 692, 446, 294, 563, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1378, 12, 921, 498, 16, 1033, 460, 13, 288, 202, 202, 430, 261, 856, 422, 446, 13, 288, 1082, 202, 856, 273, 3206, 67, 9422, 31, 202, 202, 97, 202, 202, 430, 261, 1132, 422, 446, 13, 288, 1082, 202, 1132, 273, 3206, 67, 9422, 31, 202, 202, 97, 202, 202, 474, 770, 273, 1104, 1016, 12, 856, 16, 930, 751, 1769, 202, 202, 759, 309, 326, 498, 3302, 1404, 1005, 316, 326, 1014, 202, 202, 430, 261, 2956, 751, 63, 1615, 65, 480, 498, 13, 288, 1082, 202, 1711, 1380, 9904, 31, 1082, 202, 430, 261, 9904, 1467, 405, 5573, 13, 288, 9506, 202, 266, 2816, 5621, 9506, 202, 1615, 273, 1104, 1016, 12, 2 ]
public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:344:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule549); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule555); following.push(FOLLOW_word_in_rule559); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule561); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:17: ( rule_attributes[rule] )? int alt16=2; switch ( input.LA(1) ) { case 30: case 32: alt16=1; break; case EOL: case 15: case 22: case 33: case 34: case 35: case 36: case 37: case 38: alt16=1; break; case 29: alt16=1; break; case 31: alt16=1; break; case 27: alt16=1; break; default: NoViableAltException nvae = new NoViableAltException("350:17: ( rule_attributes[rule] )?", 16, 0, input); throw nvae; } switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:350:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule572); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule582); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:17: ( (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==EOL||LA23_0==15||LA23_0==29||LA23_0==31 ) { alt23=1; } else if ( LA23_0==27 ) { alt23=1; } else { NoViableAltException nvae = new NoViableAltException("353:17: ( (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )? )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:18: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt19=2; int LA19_0 = input.LA(1); if ( LA19_0==29 ) { alt19=1; } else if ( LA19_0==EOL||LA19_0==15||LA19_0==27||LA19_0==31 ) { alt19=2; } else { NoViableAltException nvae = new NoViableAltException("353:18: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,29,FOLLOW_29_in_rule591); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ( ':' )? int alt17=2; int LA17_0 = input.LA(1); if ( LA17_0==30 ) { int LA17_1 = input.LA(2); if ( !( expander != null ) ) { alt17=1; } else if ( expander != null ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 1, input); throw nvae; } } else if ( (LA17_0>=EOL && LA17_0<=29)||(LA17_0>=31 && LA17_0<=56) ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("353:36: ( \':\' )?", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:353:36: ':' { match(input,30,FOLLOW_30_in_rule593); } break; } following.push(FOLLOW_opt_eol_in_rule596); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt18=2; switch ( input.LA(1) ) { case 21: int LA18_1 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 1, input); throw nvae; } break; case EOL: int LA18_2 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 2, input); throw nvae; } break; case 15: int LA18_3 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 3, input); throw nvae; } break; case 31: int LA18_4 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 4, input); throw nvae; } break; case 27: int LA18_5 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 5, input); throw nvae; } break; case 53: int LA18_6 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 6, input); throw nvae; } break; case 54: int LA18_7 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 7, input); throw nvae; } break; case 55: int LA18_8 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 8, input); throw nvae; } break; case ID: int LA18_9 = input.LA(2); if ( expander != null ) { alt18=1; } else if ( true ) { alt18=2; } else { NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 9, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt18=1; break; default: NoViableAltException nvae = new NoViableAltException("358:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:359:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule614); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:360:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule623); normal_lhs_block(lhs); following.pop(); } break; } } break; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:17: ( opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==EOL||LA22_0==15||LA22_0==31 ) { alt22=1; } else if ( LA22_0==27 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("364:17: ( opt_eol loc= \'then\' ( \':\' )? opt_eol ( options {greedy=false; } : any= . )* )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:19: opt_eol loc= 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* { following.push(FOLLOW_opt_eol_in_rule646); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,31,FOLLOW_31_in_rule650); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==30 ) { alt20=1; } else if ( (LA20_0>=EOL && LA20_0<=29)||(LA20_0>=31 && LA20_0<=56) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("364:38: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:364:38: ':' { match(input,30,FOLLOW_30_in_rule652); } break; } following.push(FOLLOW_opt_eol_in_rule656); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:17: ( options {greedy=false; } : any= . )* loop21: do { int alt21=2; int LA21_0 = input.LA(1); if ( LA21_0==27 ) { alt21=2; } else if ( (LA21_0>=EOL && LA21_0<=26)||(LA21_0>=28 && LA21_0<=56) ) { alt21=1; } switch (alt21) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:365:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop21; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence, loc.getLine() ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } } break; } } break; } match(input,27,FOLLOW_27_in_rule695); following.push(FOLLOW_opt_eol_in_rule697); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202, 5345, 273, 446, 31, 540, 202, 202, 780, 356, 6178, 273, 1408, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 5026, 24, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 5345, 11, 23285, 33, 2076, 2153, 67, 30951, 261, 1720, 67, 4350, 63, 5345, 65, 7851, 2153, 67, 30951, 261, 261, 1829, 33, 296, 13723, 11, 261, 3921, 7851, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 262, 7851, 261, 2153, 67, 30951, 1515, 33, 296, 15991, 11, 261, 3921, 7851, 2153, 67, 30951, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 1281, 33, 263, 8618, 7851, 7851, 296, 409, 11, 2153, 67, 30951, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 5026, 24, 30, 4033, 30, 2153, 67, 30951, 1515, 33, 296, 5345, 11, 23285, 33, 2076, 2153, 67, 30951, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202, 5345, 273, 446, 31, 540, 202, 202, 780, 356, 6178, 273, 1408, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 5026, 24, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 5345, 11, 23285, 33, 2076, 2153, 67, 30951, 261, 1720, 67, 4350, 63, 5345, 65, 7851, 2153, 67, 30951, 261, 2 ]
public UsageGroup groupUsage(Usage usage) { if (usage instanceof UsageInFile) { UsageInFile usageInFile = (UsageInFile)usage; return new FileUsageGroup(usageInFile.getFile()); } return null; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/23d5551e916258324b5e77db585fac09b338a54f/FileGroupingRule.java/buggy/UsageView/src/com/intellij/usages/impl/rules/FileGroupingRule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5357, 1114, 1655, 5357, 12, 5357, 9167, 15329, 430, 12, 9167, 1336, 792, 5357, 382, 812, 15329, 5357, 382, 812, 9167, 382, 812, 28657, 5357, 382, 812, 13, 9167, 31, 2463, 2704, 812, 5357, 1114, 12, 9167, 382, 812, 18, 29925, 10663, 97, 2463, 2011, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 5357, 1114, 1655, 5357, 12, 5357, 9167, 15329, 430, 12, 9167, 1336, 792, 5357, 382, 812, 15329, 5357, 382, 812, 9167, 382, 812, 28657, 5357, 382, 812, 13, 9167, 31, 2463, 2704, 812, 5357, 1114, 12, 9167, 382, 812, 18, 29925, 10663, 97, 2463, 2011, 31, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear();
public quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { quickfix.field.LegMaturityMonthYear value = new quickfix.field.LegMaturityMonthYear();
public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/clean/src/java/src/quickfix/fix44/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 336, 8329, 15947, 2336, 5445, 5593, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 336, 8329, 15947, 2336, 5445, 5593, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 15947, 2336, 5445, 5593, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 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, -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 ]
} else { String locationString = location.toOSString(); if (resolvedLocation != null && !isPathVariable(resource)) { File file = resolvedLocation.toFile(); if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; }
} String locationString = location.toOSString(); if (resolvedLocation != null && !isPathVariable(resource)) { File file = resolvedLocation.toFile(); if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT;
private String getLocationText(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; IPath resolvedLocation = resource.getLocation(); IPath location = resolvedLocation; if (resource.isLinked()) { location = resource.getRawLocation(); } if (location == null) { return NOT_EXIST_TEXT; } else { String locationString = location.toOSString(); if (resolvedLocation != null && !isPathVariable(resource)) { // No path variable used. Display the file not exist message // in the location. Fixes bug 33318. File file = resolvedLocation.toFile(); if (!file.exists()) { locationString += " " + FILE_NOT_EXIST_TEXT; //$NON-NLS-1$ } } return locationString; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/647303195df4ad4885ae8f3a3e70f141f1777eb8/ResourceInfoPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 45, 743, 4640, 2735, 273, 1058, 18, 588, 2735, 5621, 202, 202, 45, 743, 2117, 273, 4640, 2735, 31, 202, 202, 430, 261, 3146, 18, 291, 13174, 10756, 288, 1082, 202, 3562, 273, 1058, 18, 588, 4809, 2735, 5621, 202, 202, 97, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 469, 288, 1082, 202, 780, 2117, 780, 273, 2117, 18, 869, 4618, 780, 5621, 1082, 202, 430, 261, 11792, 2735, 480, 446, 597, 401, 291, 743, 3092, 12, 3146, 3719, 288, 9506, 202, 759, 2631, 589, 2190, 1399, 18, 9311, 326, 585, 486, 1005, 883, 9506, 202, 759, 316, 326, 2117, 18, 12139, 281, 7934, 890, 3707, 2643, 18, 9506, 202, 812, 585, 273, 4640, 2735, 18, 869, 812, 5621, 9506, 202, 430, 16051, 768, 18, 1808, 10756, 288, 6862, 202, 3562, 780, 1011, 315, 315, 397, 7527, 67, 4400, 67, 11838, 67, 5151, 31, 4329, 3993, 17, 5106, 17, 21, 8, 4697, 202, 97, 1082, 202, 97, 1082, 202, 2463, 2117, 780, 31, 202, 202, 97, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 45, 743, 4640, 2735, 273, 1058, 18, 588, 2735, 5621, 202, 202, 45, 743, 2117, 273, 4640, 2735, 31, 202, 202, 430, 261, 3146, 18, 291, 13174, 10756, 288, 1082, 202, 3562, 273, 1058, 18, 588, 4809, 2735, 5621, 202, 202, 97, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 469, 288, 1082, 202, 780, 2117, 780, 273, 2117, 18, 869, 4618, 780, 5621, 1082, 202, 430, 2 ]
public boolean contains(Object o);
boolean contains(Object o);
public boolean contains(Object o);
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/Collection.java/buggy/libraries/javalib/java/util/Collection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 1914, 12, 921, 320, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 1250, 1914, 12, 921, 320, 1769, 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, -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, -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, -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 ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 1759, 89, 98, 21, 19, 1252, 19, 92, 2163, 19, 71, 6904, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 1759, 2066, 98, 21, 19, 4446, 14207, 19, 12062, 2 ]
public Rectangle2D getTransformedGeometryBounds (AffineTransform txf, GraphicsNodeRenderContext rc) {
public Rectangle2D getTransformedGeometryBounds(AffineTransform txf) {
public Rectangle2D getTransformedGeometryBounds (AffineTransform txf, GraphicsNodeRenderContext rc) { AffineTransform t = txf; if(transform != null){ t = new AffineTransform(txf); t.concatenate(transform); } Rectangle2D gb = null; int i=0; while(gb == null && i < count){ gb = children[i++].getTransformedGeometryBounds(t, rc); } Rectangle2D cgb = null; while(i < count){ cgb = children[i++].getTransformedGeometryBounds(t, rc); if(cgb != null){ gb.add(cgb); } } return gb; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/32fa5d6f134dbc7519ade5bde79d3c0386deef5e/CompositeGraphicsNode.java/buggy/sources/org/apache/batik/gvt/CompositeGraphicsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13264, 22, 40, 336, 4059, 329, 9823, 5694, 3639, 261, 13785, 558, 4059, 2229, 74, 16, 16830, 907, 3420, 1042, 4519, 13, 288, 3639, 23906, 558, 4059, 268, 273, 2229, 74, 31, 3639, 309, 12, 6547, 480, 446, 15329, 5411, 268, 273, 394, 23906, 558, 4059, 12, 978, 74, 1769, 5411, 268, 18, 16426, 275, 340, 12, 6547, 1769, 3639, 289, 3639, 13264, 22, 40, 21649, 273, 446, 31, 3639, 509, 277, 33, 20, 31, 3639, 1323, 12, 4490, 422, 446, 597, 277, 411, 1056, 15329, 5411, 21649, 273, 2325, 63, 77, 9904, 8009, 588, 4059, 329, 9823, 5694, 12, 88, 16, 4519, 1769, 3639, 289, 3639, 13264, 22, 40, 276, 4490, 273, 446, 31, 3639, 1323, 12, 77, 411, 1056, 15329, 5411, 276, 4490, 273, 2325, 63, 77, 9904, 8009, 588, 4059, 329, 9823, 5694, 12, 88, 16, 4519, 1769, 5411, 309, 12, 71, 4490, 480, 446, 15329, 7734, 21649, 18, 1289, 12, 71, 4490, 1769, 5411, 289, 3639, 289, 3639, 327, 21649, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13264, 22, 40, 336, 4059, 329, 9823, 5694, 3639, 261, 13785, 558, 4059, 2229, 74, 16, 16830, 907, 3420, 1042, 4519, 13, 288, 3639, 23906, 558, 4059, 268, 273, 2229, 74, 31, 3639, 309, 12, 6547, 480, 446, 15329, 5411, 268, 273, 394, 23906, 558, 4059, 12, 978, 74, 1769, 5411, 268, 18, 16426, 275, 340, 12, 6547, 1769, 3639, 289, 3639, 13264, 22, 40, 21649, 273, 446, 31, 3639, 509, 277, 33, 20, 31, 3639, 1323, 12, 4490, 422, 446, 597, 277, 411, 1056, 15329, 5411, 21649, 273, 2325, 63, 77, 9904, 8009, 588, 4059, 329, 9823, 5694, 12, 88, 16, 4519, 1769, 3639, 289, 3639, 13264, 22, 40, 276, 4490, 273, 446, 31, 3639, 1323, 2 ]
if (bootMgr != 0) { try { framework.stopBundle(bootMgr); } catch (BundleException e) { System.err.println("Stop of BootManager failed, " + e.getNestedException()); } } framework.shutdown();
restarting = true;
public void run() { if (bootMgr != 0) { try { framework.stopBundle(bootMgr); } catch (BundleException e) { System.err.println("Stop of BootManager failed, " + e.getNestedException()); } } framework.shutdown(); try { if (bootMgr != 0) { framework.launch(bootMgr); } else { framework.launch(0); } } catch (Exception e) { println("Failed to restart framework", 0); } }
13251 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13251/999d86dc7f26df7e9a54de84bcadb49198f4287b/Main.java/buggy/osgi/framework/src/org/knopflerfish/framework/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9079, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 7137, 9455, 480, 374, 13, 288, 5375, 775, 288, 10792, 8257, 18, 5681, 3405, 12, 7137, 9455, 1769, 5375, 289, 1044, 261, 3405, 503, 425, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 4947, 434, 26254, 1318, 2535, 16, 315, 397, 4766, 4202, 425, 18, 588, 8649, 503, 10663, 5375, 289, 7734, 289, 7734, 8257, 18, 15132, 5621, 7734, 775, 288, 5375, 309, 261, 7137, 9455, 480, 374, 13, 288, 10792, 8257, 18, 20738, 12, 7137, 9455, 1769, 5375, 289, 469, 288, 10792, 8257, 18, 20738, 12, 20, 1769, 5375, 289, 7734, 289, 1044, 261, 503, 425, 13, 288, 5375, 3785, 2932, 2925, 358, 7870, 8257, 3113, 374, 1769, 7734, 289, 2868, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9079, 1071, 918, 1086, 1435, 288, 7734, 309, 261, 7137, 9455, 480, 374, 13, 288, 5375, 775, 288, 10792, 8257, 18, 5681, 3405, 12, 7137, 9455, 1769, 5375, 289, 1044, 261, 3405, 503, 425, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 4947, 434, 26254, 1318, 2535, 16, 315, 397, 4766, 4202, 425, 18, 588, 8649, 503, 10663, 5375, 289, 7734, 289, 7734, 8257, 18, 15132, 5621, 7734, 775, 288, 5375, 309, 261, 7137, 9455, 480, 374, 13, 288, 10792, 8257, 18, 20738, 12, 7137, 9455, 1769, 5375, 289, 469, 288, 10792, 8257, 18, 20738, 12, 20, 1769, 5375, 289, 7734, 289, 1044, 261, 503, 425, 13, 288, 5375, 3785, 2932, 2925, 358, 7870, 8257, 3113, 374, 1769, 2 ]
if (cr.isOverflow ()) return cr;
CoderResult cr = decode (in, out, true); if (cr.isError ()) cr.throwException ();
public final CoderResult decode (ByteBuffer in, CharBuffer out, boolean endOfInput) { int newState = endOfInput ? STATE_END : STATE_CODING; // XXX: Need to check for "previous step was an invocation [not] of // this method with a value of true for the endOfInput parameter but // a return value indicating an incomplete decoding operation" // XXX: We will not check the previous return value, just // that the previous call passed true for endOfInput if (state != STATE_RESET && state != STATE_CODING && !(endOfInput && state == STATE_END)) throw new IllegalStateException (); state = newState; for (;;) { CoderResult cr; try { cr = decodeLoop (in, out); } catch (RuntimeException e) { throw new CoderMalfunctionError (e); } if (cr.isOverflow ()) return cr; if (cr.isUnderflow ()) { if (endOfInput && in.hasRemaining ()) cr = CoderResult.malformedForLength (in.remaining ()); else return cr; } CodingErrorAction action = cr.isMalformed () ? malformedInputAction : unmappableCharacterAction; if (action == CodingErrorAction.REPORT) return cr; if (action == CodingErrorAction.REPLACE) { if (out.remaining () < replacement.length ()) return CoderResult.OVERFLOW; out.put (replacement); } in.position (in.position () + cr.length ()); } }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/0b0946663f367fe0a49b98b746c38a3f3f4f04e3/CharsetDecoder.java/buggy/libjava/java/nio/charset/CharsetDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 385, 5350, 1253, 2495, 261, 12242, 316, 16, 3703, 1892, 596, 16, 4766, 282, 1250, 20706, 1210, 13, 225, 288, 565, 509, 15907, 273, 20706, 1210, 692, 7442, 67, 4415, 294, 7442, 67, 11538, 31, 565, 368, 11329, 30, 12324, 358, 866, 364, 315, 11515, 2235, 1703, 392, 9495, 306, 902, 65, 434, 565, 368, 333, 707, 598, 279, 460, 434, 638, 364, 326, 20706, 1210, 1569, 1496, 565, 368, 279, 327, 460, 11193, 392, 14715, 13547, 1674, 6, 565, 368, 11329, 30, 1660, 903, 486, 866, 326, 2416, 327, 460, 16, 2537, 565, 368, 716, 326, 2416, 745, 2275, 638, 364, 20706, 1210, 565, 309, 261, 2019, 480, 7442, 67, 26665, 597, 919, 480, 7442, 67, 11538, 3639, 597, 401, 12, 409, 951, 1210, 597, 919, 422, 7442, 67, 4415, 3719, 1377, 604, 394, 5477, 261, 1769, 565, 919, 273, 15907, 31, 565, 364, 261, 25708, 13, 1377, 288, 3639, 385, 5350, 1253, 4422, 31, 3639, 775, 1850, 288, 5411, 4422, 273, 2495, 6452, 261, 267, 16, 596, 1769, 1850, 289, 3639, 1044, 261, 11949, 425, 13, 1850, 288, 5411, 604, 394, 385, 5350, 49, 287, 915, 668, 261, 73, 1769, 1850, 289, 3639, 309, 261, 3353, 18, 291, 15526, 1832, 13, 1850, 327, 4422, 31, 3639, 309, 261, 3353, 18, 291, 14655, 2426, 1832, 13, 1850, 288, 5411, 309, 261, 409, 951, 1210, 597, 316, 18, 5332, 11429, 1832, 13, 2868, 4422, 273, 385, 5350, 1253, 18, 81, 8246, 1290, 1782, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 385, 5350, 1253, 2495, 261, 12242, 316, 16, 3703, 1892, 596, 16, 4766, 282, 1250, 20706, 1210, 13, 225, 288, 565, 509, 15907, 273, 20706, 1210, 692, 7442, 67, 4415, 294, 7442, 67, 11538, 31, 565, 368, 11329, 30, 12324, 358, 866, 364, 315, 11515, 2235, 1703, 392, 9495, 306, 902, 65, 434, 565, 368, 333, 707, 598, 279, 460, 434, 638, 364, 326, 20706, 1210, 1569, 1496, 565, 368, 279, 327, 460, 11193, 392, 14715, 13547, 1674, 6, 565, 368, 11329, 30, 1660, 903, 486, 866, 326, 2416, 327, 460, 16, 2537, 565, 368, 716, 326, 2416, 745, 2275, 638, 364, 20706, 1210, 565, 309, 261, 2019, 480, 7442, 67, 26665, 597, 919, 480, 7442, 2 ]
RubyThread[] rubyThreads = new RubyThread[rtList.size()]; rtList.toArray(rubyThreads); return rubyThreads;
public synchronized RubyThread[] getActiveRubyThreads() { // all threads in ruby thread group plus main thread List rtList = new ArrayList(rubyThreadList.size()); for (Iterator iter = rubyThreadList.iterator(); iter.hasNext();) { Thread t = (Thread)iter.next(); if (!t.isAlive()) continue; RubyThread rt = getRubyThreadFromThread(t); rtList.add(rt); } RubyThread[] rubyThreads = new RubyThread[rtList.size()]; rtList.toArray(rubyThreads); return rubyThreads; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0b82fd60cc1328792397c3de9cc4a3b9a4a8dbe2/ThreadService.java/buggy/src/org/jruby/internal/runtime/ThreadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 19817, 3830, 8526, 11960, 54, 10340, 13233, 1435, 288, 377, 202, 759, 777, 7403, 316, 22155, 2650, 1041, 8737, 2774, 2650, 7734, 987, 8253, 682, 273, 394, 2407, 12, 27768, 3830, 682, 18, 1467, 10663, 7734, 364, 261, 3198, 1400, 273, 22155, 3830, 682, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 4884, 268, 273, 261, 3830, 13, 2165, 18, 4285, 5621, 13491, 309, 16051, 88, 18, 291, 10608, 10756, 1324, 31, 13491, 19817, 3830, 8253, 273, 4170, 10340, 3830, 1265, 3830, 12, 88, 1769, 5411, 8253, 682, 18, 1289, 12, 3797, 1769, 3639, 289, 7734, 19817, 3830, 8526, 22155, 13233, 273, 394, 19817, 3830, 63, 3797, 682, 18, 1467, 1435, 15533, 3639, 8253, 682, 18, 31447, 12, 27768, 13233, 1769, 377, 202, 377, 202, 2463, 22155, 13233, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3852, 19817, 3830, 8526, 11960, 54, 10340, 13233, 1435, 288, 377, 202, 759, 777, 7403, 316, 22155, 2650, 1041, 8737, 2774, 2650, 7734, 987, 8253, 682, 273, 394, 2407, 12, 27768, 3830, 682, 18, 1467, 10663, 7734, 364, 261, 3198, 1400, 273, 22155, 3830, 682, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 5411, 4884, 268, 273, 261, 3830, 13, 2165, 18, 4285, 5621, 13491, 309, 16051, 88, 18, 291, 10608, 10756, 1324, 31, 13491, 19817, 3830, 8253, 273, 4170, 10340, 3830, 1265, 3830, 12, 88, 1769, 5411, 8253, 682, 18, 1289, 12, 3797, 1769, 3639, 289, 7734, 19817, 3830, 8526, 22155, 13233, 273, 394, 19817, 3830, 63, 3797, 682, 18, 1467, 1435, 15533, 3639, 2 ]
public JAXRException(String message) { super(message);
public JAXRException() {
public JAXRException(String message) { super(message); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/2a267673789d9df6781c6bbb8b8e74634c0433bd/JAXRException.java/clean/specs/jaxr/src/java/javax/xml/registry/JAXRException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7431, 54, 503, 12, 780, 883, 13, 288, 3639, 2240, 12, 2150, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7431, 54, 503, 12, 780, 883, 13, 288, 3639, 2240, 12, 2150, 1769, 565, 289, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fGrammarResolver.putGrammar(root.getAttribute("targetNamespace"), grammar);
String targetNS = root.getAttribute("targetNamespace"); fGrammarNameSpaceIndex = fStringPool.addSymbol(targetNS); fGrammarResolver.putGrammar(targetNS, grammar);
private void resolveSchemaGrammar( String loc, String uri) throws Exception { SchemaGrammar grammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); if (grammar == null) { if (fSchemaGrammarParser == null) { // // creating a parser for schema only once per parser instance // leads to less objects, but increases time we spend in reset() // fSchemaGrammarParser = new DOMParser(); fSchemaGrammarParser.setEntityResolver( new Resolver(fEntityHandler) ); fSchemaGrammarParser.setErrorHandler( new ErrorHandler() ); try { fSchemaGrammarParser.setFeature("http://xml.org/sax/features/validation", false); fSchemaGrammarParser.setFeature("http://xml.org/sax/features/namespaces", true); fSchemaGrammarParser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } } // expand it before passing it to the parser InputSource source = null; EntityResolver currentER = fSchemaGrammarParser.getEntityResolver(); if (currentER != null) { source = currentER.resolveEntity("", loc); } if (source == null) { loc = fEntityHandler.expandSystemId(loc); source = new InputSource(loc); } try { fSchemaGrammarParser.parse( source ); } catch ( IOException e ) { e.printStackTrace(); } catch ( SAXException e ) { reportRecoverableXMLError( XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, e.getMessage() ); } Document document = fSchemaGrammarParser.getDocument(); //Our Grammar TraverseSchema tst = null; try { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document"); } Element root = null; if (document != null) { root = document.getDocumentElement();// This is what we pass to TraverserSchema } if (root == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Can't get back Schema document's root element :" + loc); } else { if (uri == null || !uri.equals(root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE)) ) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Schema in " + loc + " has a different target namespace " + "from the one specified in the instance document :" + uri); } grammar = new SchemaGrammar(); grammar.setGrammarDocument(document); // Since we've just constructed a schema grammar, we should make sure we know what we've done. fGrammarIsSchemaGrammar = true; fGrammarIsDTDGrammar = false; //At this point we should expand the registry table. // pass parser's entity resolver (local Resolver), which also has reference to user's // entity resolver, and also can fall-back to entityhandler's expandSystemId() tst = new TraverseSchema( root, fStringPool, (SchemaGrammar)grammar, fGrammarResolver, fErrorReporter, source.getSystemId(), currentER); fGrammarResolver.putGrammar(root.getAttribute("targetNamespace"), grammar); fGrammar = (SchemaGrammar)grammar; } } catch (Exception e) { e.printStackTrace(System.err); } } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/fdd21152c081cf9cc0e7a617fb68da603701955c/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 288, 1377, 4611, 18576, 6473, 273, 261, 3078, 18576, 13, 284, 18576, 4301, 18, 588, 18576, 12, 1650, 1769, 13491, 309, 261, 31628, 422, 446, 13, 288, 1850, 309, 261, 74, 3078, 18576, 2678, 422, 446, 13, 288, 2868, 368, 2868, 368, 4979, 279, 2082, 364, 1963, 1338, 3647, 1534, 2082, 791, 2868, 368, 5871, 87, 358, 5242, 2184, 16, 1496, 7033, 3304, 813, 732, 17571, 316, 2715, 1435, 2868, 368, 9079, 284, 3078, 18576, 2678, 273, 394, 4703, 2678, 5621, 2868, 284, 3078, 18576, 2678, 18, 542, 1943, 4301, 12, 394, 17183, 12, 74, 1943, 1503, 13, 11272, 2868, 284, 3078, 18576, 2678, 18, 542, 17729, 12, 225, 394, 26406, 1435, 11272, 2868, 775, 288, 7734, 284, 3078, 18576, 2678, 18, 542, 4595, 2932, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 8685, 3113, 629, 1769, 7734, 284, 3078, 18576, 2678, 18, 542, 4595, 2932, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 16078, 3113, 638, 1769, 7734, 284, 3078, 18576, 2678, 18, 542, 4595, 2932, 2505, 2207, 19211, 18, 3341, 19, 2902, 19, 7139, 19, 9859, 19, 18974, 17, 2159, 17, 2749, 12162, 3113, 629, 1769, 2868, 289, 1044, 261, 225, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 1248, 5650, 9367, 503, 425, 262, 288, 7734, 425, 18, 1188, 6332, 5621, 2868, 289, 1044, 261, 2358, 18, 2902, 18, 87, 651, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 288, 1377, 4611, 18576, 6473, 273, 261, 3078, 18576, 13, 284, 18576, 4301, 18, 588, 18576, 12, 1650, 1769, 13491, 309, 261, 31628, 422, 446, 13, 288, 1850, 309, 261, 74, 3078, 18576, 2678, 422, 446, 13, 288, 2868, 368, 2868, 368, 4979, 279, 2082, 364, 1963, 1338, 3647, 1534, 2082, 791, 2868, 368, 5871, 87, 358, 5242, 2184, 16, 1496, 7033, 3304, 813, 732, 17571, 316, 2715, 1435, 2868, 368, 9079, 284, 3078, 18576, 2678, 273, 394, 4703, 2678, 5621, 2868, 284, 3078, 18576, 2678, 18, 542, 1943, 4301, 12, 394, 17183, 12, 74, 1943, 1503, 13, 11272, 2868, 284, 3078, 18576, 2678, 2 ]
children[index].generate(info, actions); actions.add(new ValueAction(Action.GotoFrame2, 1)); } } else if (sValue.equals("gotoAndStop")) { int index = count-1; if (children[index].sValue == null) { int frameNumber = children[index].iValue - 1; actions.add(new ValueAction(Action.GotoFrame, frameNumber)); } else if (children[index].sValue.toLowerCase().startsWith("frame ")) { String frame = children[index].sValue.substring(6); int frameNumber = 0; try { frameNumber = Integer.valueOf(frame).intValue()-1; } catch (NumberFormatException e) {
if (children[index].sValue == null) { int frameNumber = children[index].iValue - 1; actions.add(new ValueAction(Action.GotoFrame, frameNumber)); } else if (children[index].sValue.toLowerCase().startsWith("frame ")) { String frame = children[index].sValue.substring(6); int frameNumber = 0;
private void generateFunction(ArrayList actions, ASInfo info, Object value) { String name = (value == null) ? "" : (String) value; int count = count(); if (functions.containsKey(name)) { if (sValue.equals("delete")) { children[0].generate(info, actions); Action lastAction = (Action) actions.get(actions.size()-1); if (lastAction.type == Action.GetVariable) actions.remove(actions.size()-1); addAction(actions, Action.Delete); } else if (sValue.equals("duplicateMovieClip")) { children[0].generate(info, actions); children[1].generate(info, actions); if (children[2].type == IntegerLiteral && children[2].sValue == null) { int level = 16384; level += children[2].iValue; addLiteral(actions, level); } else { addLiteral(actions, 16384); children[2].generate(info, actions); addAction(actions, Action.Add); } addAction(actions, Action.CloneSprite); } else if (sValue.equals("eval")) { children[0].generate(info, actions); addAction(actions, Action.GetVariable); } else if (sValue.equals("fscommand")) { boolean isCommandString = children[0].type == StringLiteral && children[0].sValue != null; boolean isArgumentString = children[1].type == StringLiteral && children[1].sValue != null; if (isCommandString && isArgumentString) { String url = children[0].sValue; String target = children[1].sValue; actions.add(new ValueAction(Action.GetUrl, url, target)); } else { if (isCommandString) { addReference(actions, info, children[0].sValue); } else { addReference(actions, info, "FSCommand:"); children[0].generate(info, actions); addAction(actions, Action.StringAdd); } children[1].generate(info, actions); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); } } else if (sValue.equals("getProperty")) { String propertyName = children[1].sValue; int pVal = ((Integer)propertyNames.get(propertyName)).intValue(); children[0].generate(info, actions); if (pVal >= 1 && pVal <= 21) addLiteral(actions, new Integer(pVal)); else if (pVal == 0) addLiteral(actions, new Double(pVal)); else addLiteral(actions, new Property(pVal)); addAction(actions, Action.GetProperty); } else if (sValue.equals("getURL")) { switch(count) { case 1: if (children[0].type == StringLiteral && children[0].sValue != null) { actions.add(new ValueAction(Action.GetUrl, children[0].sValue, "")); } else { children[0].generate(info, actions); addReference(actions, info, ""); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); } break; case 2: if (children[0].type == StringLiteral && children[0].sValue != null && children[1].type == StringLiteral && children[1].sValue != null) { actions.add(new ValueAction(Action.GetUrl, children[0].sValue, children[1].sValue)); } else { children[0].generate(info, actions); children[1].generate(info, actions); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); } break; case 3: children[0].generate(info, actions); children[1].generate(info, actions); if (children[2].sValue.toLowerCase().equals("get")) actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevelWithGet)); else if (children[2].sValue.toLowerCase().equals("post")) actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevelWithPost)); else actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); break; default: break; } } else if (sValue.equals("getVersion")) { addLiteral(actions, "/:$version"); addAction(actions, Action.GetVariable); } else if (sValue.equals("gotoAndPlay")) { int index = count-1; if (children[index].sValue == null) { int frameNumber = children[index].iValue - 1; actions.add(new ValueAction(Action.GotoFrame, frameNumber)); addAction(actions, Action.Play); } else if (children[index].sValue.toLowerCase().startsWith("frame ")) { String frame = children[index].sValue.substring(6); int frameNumber = 0; try { frameNumber = Integer.valueOf(frame).intValue()-1; } catch (NumberFormatException e) { } if (frameNumber == 1) { children[index].generate(info, actions); actions.add(new ValueAction(Action.GotoFrame2, 1)); } else { actions.add(new ValueAction(Action.GotoFrame, frameNumber)); addAction(actions, Action.Play); } } else { children[index].generate(info, actions); actions.add(new ValueAction(Action.GotoFrame2, 1)); } } else if (sValue.equals("gotoAndStop")) { int index = count-1; if (children[index].sValue == null) { int frameNumber = children[index].iValue - 1; actions.add(new ValueAction(Action.GotoFrame, frameNumber)); } else if (children[index].sValue.toLowerCase().startsWith("frame ")) { String frame = children[index].sValue.substring(6); int frameNumber = 0; try { frameNumber = Integer.valueOf(frame).intValue()-1; } catch (NumberFormatException e) { } if (frameNumber == 1) { children[index].generate(info, actions); actions.add(new ValueAction(Action.GotoFrame2, 0)); } else { actions.add(new ValueAction(Action.GotoFrame, frameNumber)); } } else { children[index].generate(info, actions); actions.add(new ValueAction(Action.GotoFrame2, 0)); } } else if (sValue.equals("hitTest")) { for (int i=count-1; i>=0; i--) children[i].generate(info, actions); addLiteral(actions, count); addReference(actions, info, name); addAction(actions, Action.ExecuteFunction); } else if (sValue.equals("loadMovie")) { switch(count) { case 2: if (children[0].sValue != null && children[1].sValue == null) { String url = children[0].sValue; String target = "_level" + children[1].iValue; actions.add(new ValueAction(Action.GetUrl, url, target)); } else { children[0].generate(info, actions); children[1].generate(info, actions); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToTarget)); } break; case 3: children[0].generate(info, actions); children[1].generate(info, actions); if (children[2].sValue.toLowerCase().equals("get")) actions.add(new ValueAction(Action.GetUrl2, Action.MovieToTargetWithGet)); else actions.add(new ValueAction(Action.GetUrl2, Action.MovieToTargetWithPost)); break; default: break; } } else if (sValue.equals("loadVariables")) { switch(count) { case 2: children[0].generate(info, actions); children[1].generate(info, actions); actions.add(new ValueAction(Action.GetUrl2, Action.VariablesToTarget)); break; case 3: children[0].generate(info, actions); children[1].generate(info, actions); if (children[2].sValue.toLowerCase().equals("get")) actions.add(new ValueAction(Action.GetUrl2, Action.VariablesToTargetWithGet)); else actions.add(new ValueAction(Action.GetUrl2, Action.VariablesToTargetWithPost)); break; default: break; } } else if (sValue.equals("nextFrame")) { addAction(actions, Action.NextFrame); } else if (sValue.equals("nextScene")) { actions.add(new ValueAction(Action.GotoFrame, 0)); } else if (sValue.equals("Number")) { children[0].generate(info, actions); addAction(actions, Action.ToNumber); } else if (sValue.equals("play")) { addAction(actions, Action.Play); } else if (sValue.equals("prevFrame")) { addAction(actions, Action.PrevFrame); } else if (sValue.equals("prevScene")) { actions.add(new ValueAction(Action.GotoFrame, 0)); } else if (sValue.equals("print")) { children[0].generate(info, actions); addReference(actions, info, children[1].sValue); addAction(actions, Action.GetVariable); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); } else if (sValue.equals("printAsBitmap")) { children[0].generate(info, actions); addReference(actions, info, children[1].sValue); addAction(actions, Action.GetVariable); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToLevel)); } else if (sValue.equals("random")) { children[0].generate(info, actions); addAction(actions, Action.RandomNumber); } else if (sValue.equals("removeMovieClip")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.RemoveSprite); } else if (sValue.equals("set")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.SetVariable); } else if (sValue.equals("setProperty")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.SetProperty); } else if (sValue.equals("startDrag")) { if (count > 2) { children[2].generate(info, actions); children[3].generate(info, actions); children[4].generate(info, actions); children[5].generate(info, actions); addLiteral(actions, 1); if (children[1].getType() == BooleanLiteral) { addLiteral(actions, children[1].bValue ? 1 : 0); } else { children[1].generate(info, actions); } } else if (count == 2) { addLiteral(actions, 0); if (children[1].getType() == BooleanLiteral) { addLiteral(actions, children[1].bValue ? 1 : 0); } else { children[1].generate(info, actions); } } else { addLiteral(actions, 0); addLiteral(actions, 0); } children[0].generate(info, actions); addAction(actions, Action.StartDrag); } else if (sValue.equals("stop")) { addAction(actions, Action.Stop); } else if (sValue.equals("stopAllSounds")) { addAction(actions, Action.StopSounds); } else if (sValue.equals("stopDrag")) { addAction(actions, Action.EndDrag); } else if (sValue.equals("String")) { children[0].generate(info, actions); addAction(actions, Action.ToString); } else if (sValue.equals("targetPath")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.GetTarget); } else if (sValue.equals("toggleHighQuality")) { addAction(actions, Action.ToggleQuality); } else if (sValue.equals("trace")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.Trace); } else if (sValue.equals("typeof")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.GetType); } else if (sValue.equals("unloadMovie")) { if (children[0].sValue == null) { actions.add(new ValueAction(Action.GetUrl, "", "_level" + children[0].iValue)); } else { addLiteral(actions, ""); children[0].generate(info, actions); actions.add(new ValueAction(Action.GetUrl2, Action.MovieToTarget)); } } else if (sValue.equals("void")) { for (int i=0; i<count; i++) children[i].generate(info, actions); addAction(actions, Action.Pop); addLiteral(actions, new Void()); } else { for (int i=0; i<count; i++) children[i].generate(info, actions); addReference(actions, info, name); addAction(actions, Action.ExecuteFunction); } } else { if (sValue.equals("parseInt")) { for (int i=count-1; i>=0; i--) children[i].generate(info, actions); addLiteral(actions, count); addReference(actions, info, name); addAction(actions, Action.ExecuteFunction); } else { for (int i=count-1; i>=0; i--) children[i].generate(info, actions); addLiteral(actions, count); addReference(actions, info, name); addAction(actions, Action.ExecuteFunction); if (valueFunctions.containsKey(name) == false) { if (discardValue) addAction(actions, Action.Pop); } } } if (valueFunctions.containsKey(name)) { if (discardValue) addAction(actions, Action.Pop); } }
55585 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55585/ae9ae7a2018e48c5102d1a72b7713b1802606fa7/ASNode.java/clean/src/com/flagstone/translate/ASNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 12, 19558, 4209, 16, 5355, 966, 1123, 16, 1033, 460, 13, 565, 288, 3639, 514, 508, 273, 261, 1132, 422, 446, 13, 692, 1408, 294, 261, 780, 13, 460, 31, 3639, 509, 1056, 273, 1056, 5621, 7734, 309, 261, 10722, 18, 12298, 653, 12, 529, 3719, 3639, 288, 5411, 309, 261, 87, 620, 18, 14963, 2932, 3733, 6, 3719, 5411, 288, 7734, 2325, 63, 20, 8009, 7163, 12, 1376, 16, 4209, 1769, 7734, 4382, 1142, 1803, 273, 261, 1803, 13, 4209, 18, 588, 12, 4905, 18, 1467, 1435, 17, 21, 1769, 7734, 309, 261, 2722, 1803, 18, 723, 422, 4382, 18, 967, 3092, 13, 10792, 4209, 18, 4479, 12, 4905, 18, 1467, 1435, 17, 21, 1769, 7734, 14745, 12, 4905, 16, 4382, 18, 2613, 1769, 5411, 289, 5411, 469, 309, 261, 87, 620, 18, 14963, 2932, 17342, 16727, 13120, 15339, 6, 3719, 5411, 288, 7734, 2325, 63, 20, 8009, 7163, 12, 1376, 16, 4209, 1769, 7734, 2325, 63, 21, 8009, 7163, 12, 1376, 16, 4209, 1769, 7734, 309, 261, 5906, 63, 22, 8009, 723, 422, 2144, 6177, 597, 2325, 63, 22, 8009, 87, 620, 422, 446, 13, 7734, 288, 10792, 509, 1801, 273, 2872, 17295, 31, 10792, 1801, 1011, 2325, 63, 22, 8009, 77, 620, 31, 10792, 527, 6177, 12, 4905, 16, 1801, 1769, 7734, 289, 7734, 469, 7734, 288, 10792, 527, 6177, 12, 4905, 16, 2872, 17295, 1769, 10792, 2325, 63, 22, 8009, 7163, 12, 1376, 16, 4209, 1769, 10792, 14745, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 2103, 2083, 12, 19558, 4209, 16, 5355, 966, 1123, 16, 1033, 460, 13, 565, 288, 3639, 514, 508, 273, 261, 1132, 422, 446, 13, 692, 1408, 294, 261, 780, 13, 460, 31, 3639, 509, 1056, 273, 1056, 5621, 7734, 309, 261, 10722, 18, 12298, 653, 12, 529, 3719, 3639, 288, 5411, 309, 261, 87, 620, 18, 14963, 2932, 3733, 6, 3719, 5411, 288, 7734, 2325, 63, 20, 8009, 7163, 12, 1376, 16, 4209, 1769, 7734, 4382, 1142, 1803, 273, 261, 1803, 13, 4209, 18, 588, 12, 4905, 18, 1467, 1435, 17, 21, 1769, 7734, 309, 261, 2722, 1803, 18, 723, 422, 4382, 18, 967, 3092, 13, 10792, 4209, 18, 4479, 12, 4905, 18, 1467, 1435, 17, 2 ]
return result;
public Object invoke(Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { SecurityContextHolder.setContext(securityContext); if ((SecurityContextHolder.getContext() != null) && (SecurityContextHolder.getContext().getAuthentication() != null)) { SecurityContextHolder.getContext().getAuthentication() .setAuthenticated(false); } if (logger.isDebugEnabled()) { logger.debug("Set SecurityContextHolder to contain: " + securityContext); } Object result = super.invoke(targetObject); SecurityContextHolder.setContext(new SecurityContextImpl()); if (logger.isDebugEnabled()) { logger.debug( "Set SecurityContext to new instance of SecurityContextImpl"); } return result; }
29994 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29994/7847af266436f53b4c69354df42bcd1261222f95/ContextPropagatingRemoteInvocation.java/buggy/core/src/main/java/org/acegisecurity/context/rmi/ContextPropagatingRemoteInvocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 4356, 12, 921, 1018, 921, 13, 3639, 1216, 15959, 16, 11900, 16, 2398, 15342, 288, 3639, 22672, 6064, 18, 542, 1042, 12, 7462, 1042, 1769, 3639, 309, 14015, 28646, 6064, 18, 29120, 1435, 480, 446, 13, 5411, 597, 261, 28646, 6064, 18, 29120, 7675, 588, 6492, 1435, 480, 446, 3719, 288, 5411, 22672, 6064, 18, 29120, 7675, 588, 6492, 1435, 4766, 263, 542, 15606, 12, 5743, 1769, 3639, 289, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 694, 22672, 6064, 358, 912, 30, 315, 7734, 397, 23202, 1769, 3639, 289, 3639, 1033, 563, 273, 2240, 18, 14407, 12, 3299, 921, 1769, 3639, 22672, 6064, 18, 542, 1042, 12, 2704, 22672, 2828, 10663, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 12, 7734, 315, 694, 22672, 358, 394, 791, 434, 22672, 2828, 8863, 3639, 289, 1850, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 4356, 12, 921, 1018, 921, 13, 3639, 1216, 15959, 16, 11900, 16, 2398, 15342, 288, 3639, 22672, 6064, 18, 542, 1042, 12, 7462, 1042, 1769, 3639, 309, 14015, 28646, 6064, 18, 29120, 1435, 480, 446, 13, 5411, 597, 261, 28646, 6064, 18, 29120, 7675, 588, 6492, 1435, 480, 446, 3719, 288, 5411, 22672, 6064, 18, 29120, 7675, 588, 6492, 1435, 4766, 263, 542, 15606, 12, 5743, 1769, 3639, 289, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 2932, 694, 22672, 6064, 358, 912, 30, 315, 7734, 397, 23202, 1769, 3639, 289, 3639, 1033, 563, 273, 2240, 18, 14407, 12, 3299, 921, 1769, 3639, 22672, 6064, 18, 542, 1042, 12, 2704, 2 ]
0, attribute);
index, attribute);
public void removeAttribute(Attribute attribute) { if (attributes.contains(attribute)) { attributes.remove(attribute); for (int i = 0; i < listeners.size(); ++i) ((QueryChangeListener) listeners.get(i)).queryAttributeRemoved( this, 0, attribute); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/940ef42af324710c27c495e68ee16d04e628aabe/Query.java/buggy/src/java/org/ensembl/mart/lib/Query.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18831, 12, 1499, 1566, 13, 288, 565, 309, 261, 4350, 18, 12298, 12, 4589, 3719, 288, 1377, 1677, 18, 4479, 12, 4589, 1769, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4679, 18, 1467, 5621, 965, 77, 13, 3639, 14015, 1138, 15744, 13, 4679, 18, 588, 12, 77, 13, 2934, 2271, 1499, 10026, 12, 1850, 333, 16, 1850, 770, 16, 1566, 1769, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18831, 12, 1499, 1566, 13, 288, 565, 309, 261, 4350, 18, 12298, 12, 4589, 3719, 288, 1377, 1677, 18, 4479, 12, 4589, 1769, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4679, 18, 1467, 5621, 965, 77, 13, 3639, 14015, 1138, 15744, 13, 4679, 18, 588, 12, 77, 13, 2934, 2271, 1499, 10026, 12, 1850, 333, 16, 1850, 770, 16, 1566, 1769, 565, 289, 225, 289, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private int getEnum(String key) { return m_enums.get(key); }
private int getEnum(String key) { return m_enums.get(key); }
private int getEnum(String key) { return m_enums.get(key); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/6fbfc5b396871b2ddb731ea98fccffe88307b5d3/XSLTAttributeDef.java/clean/src/org/apache/xalan/processor/XSLTAttributeDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 26813, 12, 780, 498, 13, 288, 327, 312, 67, 7924, 87, 18, 588, 12, 856, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 509, 26813, 12, 780, 498, 13, 288, 327, 312, 67, 7924, 87, 18, 588, 12, 856, 1769, 289, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public InProcessScript(String[] argArray, InputStream in, PrintStream out, PrintStream err) {
public InProcessScript(String[] argArray, InputStream in, PrintStream out, PrintStream err, File dir) {
public InProcessScript(String[] argArray, InputStream in, PrintStream out, PrintStream err) { this.argArray = argArray; this.in = in; this.out = out; this.err = err; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/c30da196a486853692150e8be1d9d034f60e00b3/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 657, 2227, 3651, 12, 780, 8526, 1501, 1076, 16, 5037, 316, 16, 21677, 596, 16, 21677, 393, 16, 1387, 1577, 13, 288, 377, 202, 202, 2211, 18, 3175, 1076, 273, 1501, 1076, 31, 377, 202, 202, 2211, 18, 267, 273, 316, 31, 377, 202, 202, 2211, 18, 659, 273, 596, 31, 377, 202, 202, 2211, 18, 370, 273, 393, 31, 377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1377, 202, 482, 657, 2227, 3651, 12, 780, 8526, 1501, 1076, 16, 5037, 316, 16, 21677, 596, 16, 21677, 393, 16, 1387, 1577, 13, 288, 377, 202, 202, 2211, 18, 3175, 1076, 273, 1501, 1076, 31, 377, 202, 202, 2211, 18, 267, 273, 316, 31, 377, 202, 202, 2211, 18, 659, 273, 596, 31, 377, 202, 202, 2211, 18, 370, 273, 393, 31, 377, 202, 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, -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, -100 ]
msgs = ((InternalEObject)minSize).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__MIN_SIZE, null, msgs);
msgs = ((InternalEObject) minSize).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__MIN_SIZE, null, msgs);
public void setMinSize(Size newMinSize) { if (newMinSize != minSize) { NotificationChain msgs = null; if (minSize != null) msgs = ((InternalEObject)minSize).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__MIN_SIZE, null, msgs); if (newMinSize != null) msgs = ((InternalEObject)newMinSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.BLOCK__MIN_SIZE, null, msgs); msgs = basicSetMinSize(newMinSize, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LayoutPackage.BLOCK__MIN_SIZE, newMinSize, newMinSize)); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/BlockImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27724, 1225, 12, 1225, 394, 2930, 1225, 13, 565, 288, 3639, 309, 261, 2704, 2930, 1225, 480, 29343, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 1154, 1225, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 29343, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11403, 972, 6236, 67, 4574, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 2930, 1225, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 2930, 1225, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11403, 972, 6236, 67, 4574, 16, 446, 16, 8733, 1769, 5411, 8733, 273, 5337, 694, 2930, 1225, 12, 2704, 2930, 1225, 16, 8733, 1769, 5411, 309, 261, 27439, 480, 446, 13, 8733, 18, 10739, 5621, 3639, 289, 3639, 469, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 9995, 2261, 18, 11403, 972, 6236, 67, 4574, 16, 394, 2930, 1225, 16, 394, 2930, 1225, 10019, 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, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 27724, 1225, 12, 1225, 394, 2930, 1225, 13, 565, 288, 3639, 309, 261, 2704, 2930, 1225, 480, 29343, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 1154, 1225, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 29343, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11403, 972, 6236, 67, 4574, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 2930, 1225, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 2930, 1225, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 9995, 2261, 18, 11403, 972, 6236, 67, 4574, 16, 446, 16, 2 ]
public static IFileInfo getFileInfo(String pathName) { IFileStore store = getFileStore(pathName); if(store == null)
public static IFileInfo getFileInfo(URI location) { IFileStore store; try { store = EFS.getStore(location); } catch (CoreException e) { log(e);
public static IFileInfo getFileInfo(String pathName) { IFileStore store = getFileStore(pathName); if(store == null) return null; return store.fetchInfo(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4fa8140ffec3a3544c0a2db6ba0bdc1c7b39d189/IDEResourceInfoUtils.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 11995, 6034, 966, 12, 780, 22943, 13, 288, 202, 202, 45, 812, 2257, 1707, 273, 6034, 2257, 12, 803, 461, 1769, 202, 202, 430, 12, 2233, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 2463, 1707, 18, 5754, 966, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 467, 11995, 6034, 966, 12, 780, 22943, 13, 288, 202, 202, 45, 812, 2257, 1707, 273, 6034, 2257, 12, 803, 461, 1769, 202, 202, 430, 12, 2233, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 2463, 1707, 18, 5754, 966, 5621, 202, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (dialog != null) dialog.close(this); dialog = null;
Dialog.getBlockedHandler().clearBlocked();
public void clearBlocked() { //dismiss the dialog that was reporting the blockage if (dialog != null) dialog.close(this); dialog = null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6a99206e054ff86f865b73dd5a4799c2a23d3d2e/EventLoopProgressMonitor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EventLoopProgressMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2424, 23722, 1435, 288, 202, 202, 759, 2251, 3105, 326, 6176, 716, 1703, 16096, 326, 1203, 410, 202, 202, 430, 261, 12730, 480, 446, 13, 1082, 202, 12730, 18, 4412, 12, 2211, 1769, 202, 202, 12730, 273, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2424, 23722, 1435, 288, 202, 202, 759, 2251, 3105, 326, 6176, 716, 1703, 16096, 326, 1203, 410, 202, 202, 430, 261, 12730, 480, 446, 13, 1082, 202, 12730, 18, 4412, 12, 2211, 1769, 202, 202, 12730, 273, 446, 31, 202, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logger.logInfo("Remote event {0}.", packet.getClass().getName());
protected <U extends AbstractThinkParityIQ> void addEventHandler( final XMPPEventHandler<U> eventHandler, final Class<? extends U> queryType) { xmppCore.addPacketListener( new PacketListener() { @SuppressWarnings("unchecked") public void processPacket(final Packet packet) { logger.logInfo("Remote event {0}.", packet.getClass().getName()); try { eventHandler.handleEvent((U) packet); } catch (final Throwable t) { throw translateError(t); } } }, new PacketTypeFilter(queryType)); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/00cf8288367bfb46631be2124b88cb577690516d/AbstractXMPP.java/buggy/client-model/src/main/java/com/thinkparity/ophelia/model/util/xmpp/AbstractXMPP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 411, 57, 3231, 4115, 1315, 754, 1553, 560, 45, 53, 34, 918, 527, 16402, 12, 5411, 727, 23216, 16402, 32, 57, 34, 30441, 16, 5411, 727, 1659, 12880, 3231, 587, 34, 843, 559, 13, 288, 3639, 619, 24109, 4670, 18, 1289, 6667, 2223, 12, 7734, 394, 11114, 2223, 1435, 288, 10792, 632, 29282, 4312, 2932, 5847, 7923, 10792, 1071, 918, 1207, 6667, 12, 6385, 11114, 4414, 13, 288, 4766, 9079, 775, 288, 18701, 30441, 18, 4110, 1133, 12443, 57, 13, 4414, 1769, 13491, 289, 1044, 261, 6385, 4206, 268, 13, 288, 18701, 604, 4204, 668, 12, 88, 1769, 13491, 289, 10792, 289, 7734, 19879, 7734, 394, 11114, 559, 1586, 12, 2271, 559, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 411, 57, 3231, 4115, 1315, 754, 1553, 560, 45, 53, 34, 918, 527, 16402, 12, 5411, 727, 23216, 16402, 32, 57, 34, 30441, 16, 5411, 727, 1659, 12880, 3231, 587, 34, 843, 559, 13, 288, 3639, 619, 24109, 4670, 18, 1289, 6667, 2223, 12, 7734, 394, 11114, 2223, 1435, 288, 10792, 632, 29282, 4312, 2932, 5847, 7923, 10792, 1071, 918, 1207, 6667, 12, 6385, 11114, 4414, 13, 288, 4766, 9079, 775, 288, 18701, 30441, 18, 4110, 1133, 12443, 57, 13, 4414, 1769, 13491, 289, 1044, 261, 6385, 4206, 268, 13, 288, 18701, 604, 4204, 668, 12, 88, 1769, 13491, 289, 10792, 289, 7734, 19879, 7734, 394, 11114, 559, 1586, 12, 2271, 559, 10019, 565, 289, 2, -100, -100 ]
public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection;
public void init(IWorkbench _workbench, IStructuredSelection _selection) { this.workbench = _workbench; this.selection = _selection;
public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection; setWindowTitle(Messages.getString("WOSubprojectCreationWizard.title")); setDefaultPageImageDescriptor(WizardsPlugin .WOCOMPONENT_WIZARD_BANNER()); }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/08e980720213c61dcc100260efe0252dae894baa/WOSubprojectCreationWizard.java/clean/projects/wolips/plugins/org.objectstyle.wolips.wizards/java/org/objectstyle/wolips/wizards/WOSubprojectCreationWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 45, 2421, 22144, 1440, 22144, 16, 467, 30733, 6233, 4421, 13, 288, 202, 202, 2211, 18, 1252, 22144, 273, 1440, 22144, 31, 202, 202, 2211, 18, 10705, 273, 4421, 31, 202, 202, 542, 3829, 4247, 12, 5058, 18, 588, 780, 2932, 59, 51, 1676, 4406, 9906, 27130, 18, 2649, 7923, 1769, 202, 202, 542, 1868, 1964, 2040, 3187, 12, 27130, 87, 3773, 9506, 202, 18, 59, 51, 22922, 67, 59, 6867, 8085, 67, 38, 11489, 654, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1208, 12, 45, 2421, 22144, 1440, 22144, 16, 467, 30733, 6233, 4421, 13, 288, 202, 202, 2211, 18, 1252, 22144, 273, 1440, 22144, 31, 202, 202, 2211, 18, 10705, 273, 4421, 31, 202, 202, 542, 3829, 4247, 12, 5058, 18, 588, 780, 2932, 59, 51, 1676, 4406, 9906, 27130, 18, 2649, 7923, 1769, 202, 202, 542, 1868, 1964, 2040, 3187, 12, 27130, 87, 3773, 9506, 202, 18, 59, 51, 22922, 67, 59, 6867, 8085, 67, 38, 11489, 654, 10663, 202, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Logger.minor(this, "Forgotten packets: "+forgottenCount);
private void processDecryptedData(byte[] decrypted, int seqNumber, KeyTracker tracker) { /** * Decoded format: * 1 byte - version number (0) * 1 byte - number of acknowledgements * Acknowledgements: * 1 byte - ack (+ve integer, subtract from seq-1) to get seq# to ack * * 1 byte - number of explicit retransmit requests * Explicit retransmit requests: * 1 byte - retransmit request (+ve integer, subtract from seq-1) to get seq# to resend * * 1 byte - number of packets forgotten * Forgotten packets: * 1 byte - forgotten packet seq# (+ve integer, subtract from seq-1) to get seq# lost * * 1 byte - number of messages * 2 bytes - message length * first message * 2 bytes - second message length * second message * ... * last message * anything beyond this point is padding, to be ignored */ // Use ptr to simplify code int ptr = RANDOM_BYTES_LENGTH; int version = decrypted[ptr++]; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } if(version != 0) { Logger.error(this,"Packet from "+tracker+" decrypted but invalid version: "+version); return; } /** Highest sequence number sent - not the same as this packet's seq number */ int realSeqNumber = seqNumber; if(seqNumber == -1) { if(ptr+4 > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } realSeqNumber = ((((((decrypted[ptr+0] & 0xff) << 8) + (decrypted[ptr+1] & 0xff)) << 8) + (decrypted[ptr+2] & 0xff)) << 8) + (decrypted[ptr+3] & 0xff); ptr+=4; } else { if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } realSeqNumber = seqNumber + (decrypted[ptr++] & 0xff); } //Logger.minor(this, "Reference seq number: "+HexUtil.bytesToHex(decrypted, ptr, 4)); if(ptr+4 > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } int referenceSeqNumber = ((((((decrypted[ptr+0] & 0xff) << 8) + (decrypted[ptr+1] & 0xff)) << 8) + (decrypted[ptr+2] & 0xff)) << 8) + (decrypted[ptr+3] & 0xff); ptr+=4; Logger.minor(this, "Reference sequence number: "+referenceSeqNumber); tracker.receivedPacket(seqNumber); int ackCount = decrypted[ptr++] & 0xff; Logger.minor(this, "Acks: "+ackCount); for(int i=0;i<ackCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } int realSeqNo = referenceSeqNumber - offset; Logger.minor(this, "ACK: "+realSeqNo); tracker.acknowledgedPacket(realSeqNo); } int retransmitCount = decrypted[ptr++] & 0xff; Logger.minor(this, "Retransmit requests: "+retransmitCount); for(int i=0;i<retransmitCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = referenceSeqNumber - offset; Logger.minor(this, "RetransmitRequest: "+realSeqNo); tracker.resendPacket(realSeqNo); } int ackRequestsCount = decrypted[ptr++] & 0xff; // These two are relative to our outgoing packet number // Because they relate to packets we have sent. for(int i=0;i<ackRequestsCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = realSeqNumber - offset; Logger.minor(this, "AckRequest: "+realSeqNo); tracker.receivedAckRequest(realSeqNo); } int forgottenCount = decrypted[ptr++] & 0xff; //Logger.minor(this, "Forgotten packets: "+forgottenCount); for(int i=0;i<forgottenCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = realSeqNumber - offset; tracker.destForgotPacket(realSeqNo); } if(seqNumber == -1) return; // No sequence number == no messages int messages = decrypted[ptr++] & 0xff; for(int i=0;i<messages;i++) { if(ptr+1 >= decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int length = ((decrypted[ptr++] & 0xff) << 8) + (decrypted[ptr++] & 0xff); if(length > decrypted.length - ptr) { Logger.error(this, "Message longer than remaining space: "+length); return; } Logger.minor(this, "Message "+i+" length "+length+", hash code: "+Fields.hashCode(decrypted, ptr, length)); Message m = usm.decodePacket(decrypted, ptr, length, tracker.pn); ptr+=length; if(m != null) { //Logger.minor(this, "Dispatching packet: "+m); usm.checkFilters(m); } } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/b65da6d7400224aceca597e3463b9ed8ec21e4b9/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 3238, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 918, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 1207, 1799, 4567, 751, 12, 7229, 8526, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 13794, 16, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 509, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 3833, 1854, 16, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 1929, 8135, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 9745, 13, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 288, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 4242, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 3238, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 918, 3328, 18, 17364, 12, 2211, 16, 315, 1290, 13212, 2253, 12640, 30, 13773, 1884, 13212, 2253, 1380, 1769, 1207, 1799, 4567, 751, 12, 7229, 8526, 3328, 18, 2 ]
jButtonToEnd.setText(">>");
jButtonToEnd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Navigation Last 2.png")));
private void initComponents() { jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jButtonSave = new javax.swing.JButton(); jButtonUndo = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jButtonToBegin = new javax.swing.JButton(); jButtonOneRowM = new javax.swing.JButton(); jButtonOneRowP = new javax.swing.JButton(); jButtonToEnd = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jLabel3 = new javax.swing.JLabel(); jComboG = new javax.swing.JComboBox(); jLabel1.setText("jLabel1"); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("\u041f\u0440\u0438\u0445\u043e\u0434\u0438"); jPanel1.setPreferredSize(new java.awt.Dimension(263, 33)); jButtonSave.setText("\u0421\u044a\u0445\u0440\u0430\u043d\u0438"); jButtonSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveActionPerformed(evt); } }); jButtonSave.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonSaveKeyPressed(evt); } }); jPanel1.add(jButtonSave); jButtonUndo.setText("\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u0438"); jButtonUndo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonUndoActionPerformed(evt); } }); jButtonUndo.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonUndoKeyPressed(evt); } }); jPanel1.add(jButtonUndo); jButtonClose.setText("\u0417\u0430\u0442\u0432\u043e\u0440\u0438"); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jButtonClose.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonCloseKeyPressed(evt); } }); jPanel1.add(jButtonClose); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel2.setPreferredSize(new java.awt.Dimension(400, 300)); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f")); jPanel3.setPreferredSize(new java.awt.Dimension(230, 70)); jButtonToBegin.setText("<<"); jButtonToBegin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonToBeginActionPerformed(evt); } }); jButtonToBegin.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonToBeginKeyPressed(evt); } }); jPanel3.add(jButtonToBegin); jButtonOneRowM.setText("<"); jButtonOneRowM.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOneRowMActionPerformed(evt); } }); jButtonOneRowM.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonOneRowMKeyPressed(evt); } }); jPanel3.add(jButtonOneRowM); jButtonOneRowP.setText(">"); jButtonOneRowP.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOneRowPActionPerformed(evt); } }); jButtonOneRowP.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonOneRowPKeyPressed(evt); } }); jPanel3.add(jButtonOneRowP); jButtonToEnd.setText(">>"); jButtonToEnd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonToEndActionPerformed(evt); } }); jButtonToEnd.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonToEndKeyPressed(evt); } }); jPanel3.add(jButtonToEnd); jLabel2.setText("\u041a\u043e\u0434:"); jLabel4.setText("\u0418\u043c\u0435:"); jLabel5.setText("\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440:"); jTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); jTextField1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField1FocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { jTextField1FocusLost(evt); } }); jTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField1KeyPressed(evt); } }); jTextField3.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); jTextField3.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField3FocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { jTextField3FocusLost(evt); } }); jTextField3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField3KeyPressed(evt); } }); jTextArea1.setColumns(20); jTextArea1.setRows(5); jTextArea1.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); jTextArea1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextArea1FocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { jTextArea1FocusLost(evt); } }); jScrollPane1.setViewportView(jTextArea1); jLabel3.setText("\u0413\u0440\u0443\u043f\u0430:"); jComboG.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); jComboG.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jComboGFocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { jComboGFocusLost(evt); } }); jComboG.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jComboGKeyPressed(evt); } }); org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(jLabel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.TRAILING, jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 80, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, jComboG, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 213, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(org.jdesktop.layout.GroupLayout.LEADING, jTextField3) .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE)) .add(73, 73, 73)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(16, 16, 16) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel3) .add(jComboG, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel2) .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel4) .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel5) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(19, Short.MAX_VALUE)) ); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-497)/2, (screenSize.height-320)/2, 497, 320); }// </editor-fold>//GEN-END:initComponents
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/569073a4ee24627a55124c91e85973b13ebcffa2/aeIncom.java/clean/src/nom/aeIncom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 26538, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 17871, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 525, 3616, 4755, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 31224, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 4605, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 17871, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 17871, 23, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 525, 3616, 774, 8149, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 3335, 1999, 49, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 3335, 1999, 52, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 774, 1638, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 26538, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 26538, 24, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 26538, 25, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 525, 16157, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 525, 16157, 23, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 525, 26360, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 26360, 5621, 3639, 525, 1528, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 1208, 7171, 1435, 288, 3639, 26538, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 17871, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 525, 3616, 4755, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 31224, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 4605, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 17871, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 17871, 23, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 525, 3616, 774, 8149, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 3616, 2 ]
setModified(true);
public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1684, 1626, 12, 1626, 752, 1626, 13, 288, 202, 202, 430, 261, 12443, 2640, 1626, 422, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 3719, 747, 9506, 202, 12443, 2640, 1626, 480, 446, 13, 597, 261, 67, 2640, 1626, 422, 446, 3719, 747, 9506, 202, 12443, 2640, 1626, 480, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 13, 597, 9506, 202, 5, 2640, 1626, 18, 14963, 24899, 2640, 1626, 20349, 288, 1082, 202, 67, 2640, 1626, 273, 752, 1626, 31, 1082, 202, 542, 4575, 12, 3767, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 1684, 1626, 12, 1626, 752, 1626, 13, 288, 202, 202, 430, 261, 12443, 2640, 1626, 422, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 3719, 747, 9506, 202, 12443, 2640, 1626, 480, 446, 13, 597, 261, 67, 2640, 1626, 422, 446, 3719, 747, 9506, 202, 12443, 2640, 1626, 480, 446, 13, 597, 261, 67, 2640, 1626, 480, 446, 13, 597, 9506, 202, 5, 2640, 1626, 18, 14963, 24899, 2640, 1626, 20349, 288, 1082, 202, 67, 2640, 1626, 273, 752, 1626, 31, 1082, 202, 542, 4575, 12, 3767, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return gen.Assign( hv, gen.Cons( cf.pos, elem.type(), elem, hv ));
return gen.Assign( hv, gen.Cons( cf.pos, elementType, elem, hv ));
Tree prependToHelpVar( Symbol realVar, Tree elem ) { Tree hv = refHelpVar( realVar ); return gen.Assign( hv, gen.Cons( cf.pos, elem.type(), elem, hv )); /* return cf.Block(pos, new Tree [] { cf.debugPrintRuntime( "ASSIGN" ), gen.Assign( hv, cf.newSeqCons( elem, hv )) }, defs.UNIT_TYPE()); */ }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/9a3620555d9e27268c804ed5f34ad440e2e7c1c4/RightTracerInScala.java/buggy/sources/scalac/transformer/matching/RightTracerInScala.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4902, 8254, 774, 6696, 1537, 12, 8565, 2863, 1537, 16, 4902, 3659, 262, 288, 202, 2471, 366, 90, 273, 1278, 6696, 1537, 12, 2863, 1537, 11272, 202, 2463, 3157, 18, 4910, 12, 366, 90, 16, 3157, 18, 9054, 12, 6080, 18, 917, 16, 3659, 18, 723, 9334, 3659, 16, 366, 90, 262, 1769, 202, 20308, 202, 225, 327, 6080, 18, 1768, 12, 917, 16, 202, 225, 394, 4902, 5378, 288, 202, 225, 6080, 18, 4148, 5108, 5576, 12, 315, 23289, 6, 262, 16, 202, 225, 3157, 18, 4910, 12, 366, 90, 16, 6080, 18, 2704, 6926, 9054, 12, 3659, 16, 366, 90, 8623, 202, 225, 19879, 17588, 18, 15736, 67, 2399, 10663, 202, 5549, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4902, 8254, 774, 6696, 1537, 12, 8565, 2863, 1537, 16, 4902, 3659, 262, 288, 202, 2471, 366, 90, 273, 1278, 6696, 1537, 12, 2863, 1537, 11272, 202, 2463, 3157, 18, 4910, 12, 366, 90, 16, 3157, 18, 9054, 12, 6080, 18, 917, 16, 3659, 18, 723, 9334, 3659, 16, 366, 90, 262, 1769, 202, 20308, 202, 225, 327, 6080, 18, 1768, 12, 917, 16, 202, 225, 394, 4902, 5378, 288, 202, 225, 6080, 18, 4148, 5108, 5576, 12, 315, 23289, 6, 262, 16, 202, 225, 3157, 18, 4910, 12, 366, 90, 16, 6080, 18, 2704, 6926, 9054, 12, 3659, 16, 366, 90, 8623, 202, 225, 19879, 17588, 18, 15736, 67, 2399, 10663, 202, 5549, 565, 289, 2, -100, -100 ]
if (namespace.equals(prop.getNamespaceURI()) && name.equals(prop.getLocalName())){ return new SourceProperty(prop.getElement()); }
return new SourceProperty(prop.getElement());
public SourceProperty getSourceProperty (String namespace, String name) throws SourceException { Enumeration props= null; org.apache.webdav.lib.Property prop = null; try { Enumeration responses = this.resource.propfindMethod(0); while (responses.hasMoreElements()) { ResponseEntity response = (ResponseEntity)responses.nextElement(); props = response.getProperties(); while (props.hasMoreElements()) { prop = (Property) props.nextElement(); if (namespace.equals(prop.getNamespaceURI()) && name.equals(prop.getLocalName())){ return new SourceProperty(prop.getElement()); } } } } catch (Exception e) { throw new SourceException("Error getting property: "+name, e); } return null; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/6d849e013b39dc37e8754a7f2031e59e57a62f52/WebDAVSource.java/clean/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4998, 1396, 7889, 1396, 261, 780, 1981, 16, 514, 508, 13, 565, 1216, 4998, 503, 288, 1850, 13864, 3458, 33, 446, 31, 1850, 2358, 18, 19211, 18, 4875, 20752, 18, 2941, 18, 1396, 2270, 273, 446, 31, 1850, 775, 288, 2868, 13864, 7220, 273, 333, 18, 3146, 18, 5986, 4720, 1305, 12, 20, 1769, 2868, 1323, 261, 11822, 18, 5332, 7417, 3471, 10756, 288, 5375, 2306, 1943, 766, 273, 261, 1064, 1943, 13, 11822, 18, 4285, 1046, 5621, 5375, 3458, 273, 766, 18, 588, 2297, 5621, 5375, 1323, 261, 9693, 18, 5332, 7417, 3471, 10756, 288, 8227, 2270, 273, 261, 1396, 13, 3458, 18, 4285, 1046, 5621, 8227, 309, 261, 4937, 18, 14963, 12, 5986, 18, 588, 3402, 3098, 10756, 12900, 597, 508, 18, 14963, 12, 5986, 18, 588, 29583, 1435, 3719, 95, 12900, 327, 394, 4998, 1396, 12, 5986, 18, 21336, 10663, 8227, 289, 5375, 289, 2868, 289, 1850, 289, 1044, 261, 503, 425, 13, 288, 2868, 604, 394, 4998, 503, 2932, 668, 8742, 1272, 30, 13773, 529, 16, 425, 1769, 1850, 289, 1850, 327, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 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, 4998, 1396, 7889, 1396, 261, 780, 1981, 16, 514, 508, 13, 565, 1216, 4998, 503, 288, 1850, 13864, 3458, 33, 446, 31, 1850, 2358, 18, 19211, 18, 4875, 20752, 18, 2941, 18, 1396, 2270, 273, 446, 31, 1850, 775, 288, 2868, 13864, 7220, 273, 333, 18, 3146, 18, 5986, 4720, 1305, 12, 20, 1769, 2868, 1323, 261, 11822, 18, 5332, 7417, 3471, 10756, 288, 5375, 2306, 1943, 766, 273, 261, 1064, 1943, 13, 11822, 18, 4285, 1046, 5621, 5375, 3458, 273, 766, 18, 588, 2297, 5621, 5375, 1323, 261, 9693, 18, 5332, 7417, 3471, 10756, 288, 8227, 2270, 273, 261, 1396, 13, 3458, 18, 4285, 1046, 5621, 8227, 309, 261, 4937, 18, 14963, 12, 5986, 18, 588, 2 ]
Map reportArtifactMap = project.getReportArtifactMap();
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( project.hasParent() ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section Map artifactMap = project.getArtifactMap(); List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String conflictId = ArtifactUtils.artifactId( dep.getGroupId(), dep.getArtifactId(), dep.getType(), dep.getClassifier(), dep.getVersion() ); Artifact artifact = (Artifact) artifactMap.get( conflictId ); String version = resolveVersion( artifact, "dependency", project ); dep.setVersion( version ); } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section Map pluginArtifactMap = project.getPluginArtifactMap(); List plugins = build.getPlugins(); for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) pluginArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "plugin", project ); plugin.setVersion( version ); } //Rewrite extensions section Map extensionArtifactMap = project.getExtensionArtifactMap(); List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String pluginId = ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ); Artifact artifact = (Artifact) extensionArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "extension", project ); ext.setVersion( version ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section Map reportArtifactMap = project.getReportArtifactMap(); List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) reportArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "report", project ); plugin.setVersion( version ); } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/8c97337f8b1e7590b5b50936679ff46b9845de63/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 1488, 5621, 5411, 368, 19618, 982, 1177, 5411, 309, 261, 1984, 18, 5332, 3054, 1435, 262, 5411, 288, 7734, 14022, 982, 7581, 273, 1984, 18, 588, 3054, 7581, 5621, 7734, 309, 261, 353, 4568, 12, 982, 7581, 18, 588, 2171, 1444, 1435, 262, 262, 7734, 288, 10792, 514, 1177, 273, 2245, 1444, 12, 982, 7581, 16, 315, 2938, 3113, 1984, 11272, 10792, 938, 18, 588, 3054, 7675, 542, 1444, 12, 1177, 11272, 7734, 289, 5411, 289, 5411, 368, 19618, 5030, 2442, 5411, 1635, 6462, 863, 273, 1984, 18, 588, 7581, 863, 5621, 5411, 987, 5030, 273, 938, 18, 588, 8053, 5621, 5411, 309, 261, 5030, 480, 446, 262, 5411, 288, 7734, 364, 261, 4498, 277, 273, 5030, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 7734, 288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 2 ]
sipStack.logWriter.logMessage( "Transaction Added " + this +myTag + "/" + hisTag); sipStack.logWriter.logMessage( "TID = " + transaction.getTransactionId() + "/" + transaction.IsServerTransaction());
sipStack.logWriter.logMessage("Transaction Added " + this + myTag + "/" + hisTag); sipStack.logWriter.logMessage("TID = " + transaction.getTransactionId() + "/" + transaction.IsServerTransaction());
public void addTransaction(SIPTransaction transaction) { SIPRequest sipRequest = (SIPRequest) transaction.getOriginalRequest(); // Proessing a re-invite. if (firstTransaction != null && firstTransaction != transaction && transaction.getMethod().equals (firstTransaction.getMethod())) { this.reInviteFlag = true; } // Set state to Completed if we are processing a // BYE transaction for the dialog. // Will be set to TERMINATED after the BYE // transaction completes. if (sipRequest.getMethod().equals(Request.BYE)) { this.setState(COMPLETED_STATE); } if (firstTransaction == null) { // Record the local and remote sequenc // numbers and the from and to tags for future // use on this dialog. firstTransaction = transaction; this.setLocalParty(sipRequest); this.setRemoteParty(sipRequest); this.setCallId(sipRequest); this.originalRequest = sipRequest; if (transaction instanceof SIPServerTransaction) { hisTag = sipRequest.getFrom().getTag(); // My tag is assigned when sending response } else { setLocalSequenceNumber( sipRequest.getCSeq().getSequenceNumber()); // his tag is known when receiving response myTag = sipRequest.getFrom().getTag(); if (myTag == null) throw new RuntimeException("bad message tag missing!"); } } else if ( transaction.getMethod().equals(firstTransaction.getMethod()) && (((firstTransaction instanceof SIPServerTransaction) && (transaction instanceof SIPClientTransaction)) || ((firstTransaction instanceof SIPClientTransaction) && (transaction instanceof SIPServerTransaction)))) { // Switch from client side to server side for re-invite // (put the other side on hold). firstTransaction = transaction; this.setLocalParty(sipRequest); this.setRemoteParty(sipRequest); this.setCallId(sipRequest); this.originalRequest = sipRequest; } if (transaction instanceof SIPServerTransaction) setRemoteSequenceNumber( sipRequest.getCSeq().getSequenceNumber()); // If this is a server transaction record the remote // sequence number to avoid re-processing of requests // with the same sequence number directed towards this // dialog. this.lastTransaction = transaction; // set a back ptr in the incoming dialog. transaction.setDialog(this); if (LogWriter.needsLogging) { sipStack.logWriter.logMessage( "Transaction Added " + this +myTag + "/" + hisTag); sipStack.logWriter.logMessage( "TID = " + transaction.getTransactionId() + "/" + transaction.IsServerTransaction()); sipStack.logWriter.logStackTrace(); } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/48d0f5aefaaec7a6c6f768504e4d3fcffcc8313f/SIPDialog.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 3342, 12, 17739, 3342, 2492, 13, 288, 8227, 348, 2579, 691, 10341, 691, 273, 261, 17739, 691, 13, 3639, 2492, 18, 588, 8176, 691, 5621, 7734, 368, 1186, 403, 310, 279, 283, 17, 27154, 18, 3639, 309, 261, 3645, 3342, 480, 446, 3639, 597, 1122, 3342, 480, 2492, 3639, 597, 2492, 18, 588, 1305, 7675, 14963, 3639, 261, 3645, 3342, 18, 588, 1305, 1435, 3719, 288, 5411, 333, 18, 266, 22730, 4678, 273, 638, 31, 3639, 289, 7734, 368, 1000, 919, 358, 28722, 309, 732, 854, 4929, 279, 3639, 368, 6953, 41, 2492, 364, 326, 6176, 18, 3639, 368, 9980, 506, 444, 358, 20772, 6236, 6344, 1839, 326, 6953, 41, 3639, 368, 2492, 7218, 18, 7734, 309, 261, 28477, 691, 18, 588, 1305, 7675, 14963, 12, 691, 18, 6486, 41, 3719, 288, 5411, 333, 18, 542, 1119, 12, 15795, 40, 67, 7998, 1769, 3639, 289, 7734, 309, 261, 3645, 3342, 422, 446, 13, 288, 5411, 368, 5059, 326, 1191, 471, 2632, 26401, 1331, 5411, 368, 5600, 471, 326, 628, 471, 358, 2342, 364, 3563, 5411, 368, 999, 603, 333, 6176, 18, 5411, 1122, 3342, 273, 2492, 31, 5411, 333, 18, 542, 2042, 17619, 12, 28477, 691, 1769, 5411, 333, 18, 542, 5169, 17619, 12, 28477, 691, 1769, 5411, 333, 18, 542, 1477, 548, 12, 28477, 691, 1769, 5411, 333, 18, 8830, 691, 273, 10341, 691, 31, 13491, 309, 261, 7958, 1276, 348, 2579, 2081, 3342, 13, 288, 7734, 18423, 1805, 273, 10341, 691, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 3342, 12, 17739, 3342, 2492, 13, 288, 8227, 348, 2579, 691, 10341, 691, 273, 261, 17739, 691, 13, 3639, 2492, 18, 588, 8176, 691, 5621, 7734, 368, 1186, 403, 310, 279, 283, 17, 27154, 18, 3639, 309, 261, 3645, 3342, 480, 446, 3639, 597, 1122, 3342, 480, 2492, 3639, 597, 2492, 18, 588, 1305, 7675, 14963, 3639, 261, 3645, 3342, 18, 588, 1305, 1435, 3719, 288, 5411, 333, 18, 266, 22730, 4678, 273, 638, 31, 3639, 289, 7734, 368, 1000, 919, 358, 28722, 309, 732, 854, 4929, 279, 3639, 368, 6953, 41, 2492, 364, 326, 6176, 18, 3639, 368, 9980, 506, 444, 358, 20772, 6236, 6344, 1839, 326, 6953, 41, 3639, 368, 2492, 7218, 18, 2 ]
public void unparse(XmlaResponse response) { throw new UnsupportedOperationException();
public void unparse(XmlaResponse response) throws XmlaException { throw new XmlaException( CLIENT_FAULT_FC, HSB_UNSUPPORTED_OPERATION_CODE, HSB_UNSUPPORTED_OPERATION_FAULT_FS, new UnsupportedOperationException("MDSCHEMA_SETS"));
public void unparse(XmlaResponse response) { throw new UnsupportedOperationException(); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/41e43f806f666da1ff483ebb20820e61433739e2/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 640, 2670, 12, 4432, 69, 1064, 766, 13, 288, 5411, 604, 394, 13172, 5621, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 1071, 918, 640, 2670, 12, 4432, 69, 1064, 766, 13, 288, 5411, 604, 394, 13172, 5621, 3639, 289, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pm.subTask("Checking preconditions");
pm.subTask("checking preconditions...");
public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException { /* * not checked preconditions: * a. native methods in locally defined types in this package (too expensive - requires AST analysis) */ pm.beginTask("", 46); pm.subTask("Checking preconditions"); RefactoringStatus result= new RefactoringStatus(); result.merge(checkAvailability(fNewPackage)); pm.worked(1); if (fNewPackage.getCompilationUnit(getCu().getElementName()).exists()) result.addFatalError("Compilation unit \"" + getCu().getElementName() + "\" already exists in " + fNewPackage.getElementName()); pm.worked(1); result.merge(checkNewPackage()); pm.worked(1); result.merge(Checks.checkForNativeMethods(getCu())); pm.worked(1); result.merge(Checks.checkForMainMethods(getCu())); pm.worked(1); if (result.hasFatalError()) return result; fNeedsImportToCurrentPackage= needsImportToCurrentPackage(new SubProgressMonitor(pm, 3, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL), getCu()); if (fNeedsImportToCurrentPackage) result.merge(checkTopLevelTypeNameConflict(fNewPackage, getCu())); result.merge(Checks.checkAffectedResourcesAvailability(getOccurrences(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)))); pm.worked(5); result.merge(checkReferencesInOurCompilationUnit(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL))); result.merge(checkReferencesInOtherCompilationUnits(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL))); pm.done(); return result; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/cfdb01048cc045ba0653c8076d1c2081a7fabb0d/MoveCompilationUnitRefactoring.java/clean/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/core/refactoring/cus/MoveCompilationUnitRefactoring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 868, 3493, 6053, 1482, 866, 1210, 12, 45, 5491, 7187, 7430, 13, 1216, 5110, 1488, 503, 288, 202, 202, 20308, 1082, 380, 486, 5950, 675, 6381, 30, 1082, 380, 225, 279, 18, 6448, 2590, 316, 13760, 2553, 1953, 316, 333, 2181, 261, 16431, 19326, 300, 4991, 9183, 6285, 13, 1082, 1195, 202, 202, 7755, 18, 10086, 2174, 2932, 3113, 17077, 1769, 202, 202, 7755, 18, 1717, 2174, 2932, 14294, 675, 6381, 8863, 202, 202, 426, 3493, 6053, 1482, 563, 33, 394, 868, 3493, 6053, 1482, 5621, 202, 202, 2088, 18, 2702, 12, 1893, 10427, 12, 74, 1908, 2261, 10019, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 9506, 202, 430, 261, 74, 1908, 2261, 18, 588, 19184, 2802, 12, 588, 39, 89, 7675, 21336, 461, 1435, 2934, 1808, 10756, 1082, 202, 2088, 18, 1289, 19593, 668, 2932, 19184, 2836, 11843, 397, 1927, 89, 7675, 21336, 461, 1435, 397, 7023, 1818, 1704, 316, 315, 397, 284, 1908, 2261, 18, 21336, 461, 10663, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 9506, 202, 2088, 18, 2702, 12, 1893, 1908, 2261, 10663, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 9506, 202, 2088, 18, 2702, 12, 4081, 18, 1893, 1290, 9220, 4712, 12, 588, 39, 89, 1435, 10019, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 202, 202, 2088, 18, 2702, 12, 4081, 18, 1893, 1290, 6376, 4712, 12, 588, 39, 89, 1435, 10019, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 868, 3493, 6053, 1482, 866, 1210, 12, 45, 5491, 7187, 7430, 13, 1216, 5110, 1488, 503, 288, 202, 202, 20308, 1082, 380, 486, 5950, 675, 6381, 30, 1082, 380, 225, 279, 18, 6448, 2590, 316, 13760, 2553, 1953, 316, 333, 2181, 261, 16431, 19326, 300, 4991, 9183, 6285, 13, 1082, 1195, 202, 202, 7755, 18, 10086, 2174, 2932, 3113, 17077, 1769, 202, 202, 7755, 18, 1717, 2174, 2932, 14294, 675, 6381, 8863, 202, 202, 426, 3493, 6053, 1482, 563, 33, 394, 868, 3493, 6053, 1482, 5621, 202, 202, 2088, 18, 2702, 12, 1893, 10427, 12, 74, 1908, 2261, 10019, 202, 202, 7755, 18, 1252, 329, 12, 21, 1769, 9506, 202, 430, 261, 74, 1908, 2261, 18, 2 ]
callQueue.removeFirst();
Call oldCall = (Call) callQueue.removeFirst(); LOG.warn("Call queue overflow discarding oldest call " + oldCall);
private void processData() throws IOException, InterruptedException { byte[] bytes = new byte[dataLength]; data.get(bytes); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bytes)); int id = dis.readInt(); // try to read an id if (LOG.isDebugEnabled()) LOG.debug(" got #" + id); Writable param = makeParam(); // read param param.readFields(dis); Call call = new Call(id, param, this); synchronized (callQueue) { if (callQueue.size() >= maxQueueSize) { callQueue.removeFirst(); } callQueue.addLast(call); // queue the call callQueue.notify(); // wake up a waiting handler } }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/7615d94f190049f91f06b9188e1b4b571d5628dd/Server.java/buggy/src/java/org/apache/hadoop/ipc/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 751, 1435, 1216, 225, 1860, 16, 7558, 288, 1377, 1160, 8526, 1731, 273, 394, 1160, 63, 892, 1782, 15533, 1377, 501, 18, 588, 12, 3890, 1769, 1377, 29382, 1015, 273, 394, 29382, 12, 2704, 16180, 12, 3890, 10019, 1377, 509, 612, 273, 1015, 18, 896, 1702, 5621, 10792, 368, 775, 358, 855, 392, 612, 2868, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 3639, 2018, 18, 4148, 2932, 2363, 31526, 397, 612, 1769, 5375, 14505, 579, 273, 1221, 786, 5621, 6647, 368, 855, 579, 1377, 579, 18, 896, 2314, 12, 2251, 1769, 8227, 3049, 745, 273, 394, 3049, 12, 350, 16, 579, 16, 333, 1769, 1377, 3852, 261, 1991, 3183, 13, 288, 3639, 309, 261, 1991, 3183, 18, 1467, 1435, 1545, 943, 3183, 1225, 13, 288, 1850, 3049, 1592, 1477, 273, 261, 1477, 13, 745, 3183, 18, 4479, 3759, 5621, 2018, 18, 8935, 2932, 1477, 2389, 9391, 10388, 310, 17067, 745, 315, 397, 1592, 1477, 1769, 3639, 289, 3639, 745, 3183, 18, 1289, 3024, 12, 1991, 1769, 2868, 368, 2389, 326, 745, 3639, 745, 3183, 18, 12336, 5621, 10402, 368, 19891, 731, 279, 7336, 1838, 1377, 289, 5411, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 751, 1435, 1216, 225, 1860, 16, 7558, 288, 1377, 1160, 8526, 1731, 273, 394, 1160, 63, 892, 1782, 15533, 1377, 501, 18, 588, 12, 3890, 1769, 1377, 29382, 1015, 273, 394, 29382, 12, 2704, 16180, 12, 3890, 10019, 1377, 509, 612, 273, 1015, 18, 896, 1702, 5621, 10792, 368, 775, 358, 855, 392, 612, 2868, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 3639, 2018, 18, 4148, 2932, 2363, 31526, 397, 612, 1769, 5375, 14505, 579, 273, 1221, 786, 5621, 6647, 368, 855, 579, 1377, 579, 18, 896, 2314, 12, 2251, 1769, 8227, 3049, 745, 273, 394, 3049, 12, 350, 16, 579, 16, 333, 1769, 1377, 3852, 261, 1991, 3183, 13, 288, 3639, 309, 261, 2 ]
return RubyFixnum.newFixnum(runtime, oldRandomSeed);
return runtime.newFixnum(oldRandomSeed);
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { Ruby runtime = recv.getRuntime(); long oldRandomSeed = runtime.randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_i", true); runtime.randomSeed = integerSeed.getLongValue(); } else { // Not sure how well this works, but it works much better than // just currentTimeMillis by itself. runtime.randomSeed = System.currentTimeMillis() ^ recv.hashCode() ^ runtime.randomSeedSequence++ ^ runtime.random.nextInt(Math.abs((int)runtime.randomSeed)); } runtime.random.setSeed(runtime.randomSeed); return RubyFixnum.newFixnum(runtime, oldRandomSeed); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4522, 272, 7884, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 3099, 273, 10665, 18, 588, 5576, 5621, 3639, 1525, 1592, 8529, 12702, 273, 3099, 18, 9188, 12702, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 13, 288, 5411, 19817, 4522, 3571, 12702, 273, 2868, 202, 12, 54, 10340, 4522, 13, 833, 63, 20, 8009, 6283, 31616, 2932, 4522, 3113, 315, 869, 67, 77, 3113, 638, 1769, 5411, 3099, 18, 9188, 12702, 273, 3571, 12702, 18, 588, 3708, 620, 5621, 3639, 289, 469, 288, 540, 202, 759, 2288, 3071, 3661, 5492, 333, 6330, 16, 1496, 518, 6330, 9816, 7844, 2353, 540, 202, 759, 2537, 8102, 635, 6174, 18, 5411, 3099, 18, 9188, 12702, 273, 2332, 18, 2972, 28512, 1435, 3602, 9506, 225, 10665, 18, 2816, 1085, 1435, 3602, 3099, 18, 9188, 12702, 4021, 9904, 3602, 9506, 225, 3099, 18, 9188, 18, 4285, 1702, 12, 10477, 18, 5113, 12443, 474, 13, 9448, 18, 9188, 12702, 10019, 3639, 289, 3639, 3099, 18, 9188, 18, 542, 12702, 12, 9448, 18, 9188, 12702, 1769, 3639, 327, 3099, 18, 2704, 8585, 2107, 12, 1673, 8529, 12702, 1769, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4522, 272, 7884, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 3099, 273, 10665, 18, 588, 5576, 5621, 3639, 1525, 1592, 8529, 12702, 273, 3099, 18, 9188, 12702, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 13, 288, 5411, 19817, 4522, 3571, 12702, 273, 2868, 202, 12, 54, 10340, 4522, 13, 833, 63, 20, 8009, 6283, 31616, 2932, 4522, 3113, 315, 869, 67, 77, 3113, 638, 1769, 5411, 3099, 18, 9188, 12702, 273, 3571, 12702, 18, 588, 3708, 620, 5621, 3639, 289, 469, 288, 540, 202, 759, 2288, 3071, 3661, 5492, 333, 6330, 16, 1496, 518, 6330, 9816, 7844, 2353, 540, 202, 759, 2537, 8102, 635, 6174, 2 ]
m_makeIndicatorFilter = new weka.filters.unsupervised.attribute.MakeIndicator(); m_makeIndicatorFilter.setInputFormat(metaData); m_makeIndicatorFilter.setAttributeIndex("" + (metaData.classIndex() + 1)); m_makeIndicatorFilter.setNumeric(true); m_attrFilter = new weka.filters.unsupervised.attribute.Remove(); m_attrFilter.setInputFormat(m_makeIndicatorFilter.getOutputFormat()); m_attrFilter.setInvertSelection(true);
public void buildClassifier(Instances data) throws Exception { if (m_BaseClassifiers.length == 0) { throw new Exception("No base classifiers have been set"); } if (m_MetaClassifier == null) { throw new Exception("No meta classifier has been set"); } if (!(data.classAttribute().isNominal() || data.classAttribute().isNumeric())) { throw new Exception("Class attribute has to be nominal or numeric!"); } Instances newData = new Instances(data); m_BaseFormat = new Instances(data, 0); newData.deleteWithMissingClass(); if (newData.numInstances() == 0) { throw new Exception("No training instances without missing class!"); } newData.randomize(new Random(m_Seed)); if (newData.classAttribute().isNominal()) newData.stratify(m_NumFolds); int numClassifiers = m_BaseClassifiers.length; // Create meta data Instances metaData = metaFormat(newData); m_MetaFormat = new Instances(metaData, 0); for (int j = 0; j < m_NumFolds; j++) { Instances train = newData.trainCV(m_NumFolds, j); // Build base classifiers for (int i = 0; i < m_BaseClassifiers.length; i++) { getBaseClassifier(i).buildClassifier(train); } // Classify test instances and add to meta data Instances test = newData.testCV(m_NumFolds, j); for (int i = 0; i < test.numInstances(); i++) { metaData.add(metaInstance(test.instance(i))); } } // Rebuild all the base classifiers on the full training data for (int i = 0; i < numClassifiers; i++) { getBaseClassifier(i).buildClassifier(newData); } // Build meta classifiers m_MetaClassifiers = Classifier.makeCopies(m_MetaClassifier,newData.numClasses()); m_makeIndicatorFilter = new weka.filters.unsupervised.attribute.MakeIndicator(); m_makeIndicatorFilter.setInputFormat(metaData); m_makeIndicatorFilter.setAttributeIndex("" + (metaData.classIndex() + 1)); m_makeIndicatorFilter.setNumeric(true); m_attrFilter = new weka.filters.unsupervised.attribute.Remove(); m_attrFilter.setInputFormat(m_makeIndicatorFilter.getOutputFormat()); m_attrFilter.setInvertSelection(true); int [] arrIdc = new int[m_BaseClassifiers.length+1]; arrIdc[m_BaseClassifiers.length]=metaData.numAttributes()-1; Instances newInsts; for (int i = 0; i<m_MetaClassifiers.length; i++) { for (int j = 0; j<m_BaseClassifiers.length; j++) arrIdc[j]=newData.numClasses()*j+i; m_attrFilter.setAttributeIndicesArray(arrIdc); m_makeIndicatorFilter.setValueIndex(i); newInsts=Filter.useFilter(metaData,m_makeIndicatorFilter); m_attrFilter.setInputFormat(m_makeIndicatorFilter.getOutputFormat()); newInsts=Filter.useFilter(newInsts,m_attrFilter); newInsts.setClassIndex(newInsts.numAttributes()-1); m_MetaClassifiers[i].buildClassifier(newInsts); } }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/003b9c5710dba577f8d749ab89d292ab3bbb4e95/StackingC.java/buggy/classifiers/meta/StackingC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1361, 13860, 12, 5361, 501, 13, 1216, 1185, 288, 565, 309, 261, 81, 67, 2171, 10469, 18, 2469, 422, 374, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 1026, 667, 3383, 1240, 2118, 444, 8863, 565, 289, 565, 309, 261, 81, 67, 2781, 13860, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 2191, 14622, 711, 2118, 444, 8863, 565, 289, 565, 309, 16051, 12, 892, 18, 1106, 1499, 7675, 291, 26685, 1490, 1435, 747, 202, 225, 501, 18, 1106, 1499, 7675, 291, 9902, 1435, 3719, 288, 1377, 604, 394, 1185, 2932, 797, 1566, 711, 358, 506, 12457, 1490, 578, 6389, 4442, 1769, 565, 289, 565, 18357, 16026, 273, 394, 18357, 12, 892, 1769, 565, 312, 67, 2171, 1630, 273, 394, 18357, 12, 892, 16, 374, 1769, 565, 16026, 18, 3733, 1190, 4841, 797, 5621, 565, 309, 261, 2704, 751, 18, 2107, 5361, 1435, 422, 374, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 8277, 3884, 2887, 3315, 667, 4442, 1769, 565, 289, 565, 16026, 18, 9188, 554, 12, 2704, 8072, 12, 81, 67, 12702, 10019, 565, 309, 261, 2704, 751, 18, 1106, 1499, 7675, 291, 26685, 1490, 10756, 1377, 16026, 18, 701, 270, 1164, 12, 81, 67, 2578, 15592, 87, 1769, 565, 509, 818, 10469, 273, 312, 67, 2171, 10469, 18, 2469, 31, 565, 368, 1788, 2191, 501, 565, 18357, 11651, 273, 2191, 1630, 12, 2704, 751, 1769, 565, 312, 67, 2781, 1630, 273, 394, 18357, 12, 3901, 751, 16, 374, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 13860, 12, 5361, 501, 13, 1216, 1185, 288, 565, 309, 261, 81, 67, 2171, 10469, 18, 2469, 422, 374, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 1026, 667, 3383, 1240, 2118, 444, 8863, 565, 289, 565, 309, 261, 81, 67, 2781, 13860, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 2191, 14622, 711, 2118, 444, 8863, 565, 289, 565, 309, 16051, 12, 892, 18, 1106, 1499, 7675, 291, 26685, 1490, 1435, 747, 202, 225, 501, 18, 1106, 1499, 7675, 291, 9902, 1435, 3719, 288, 1377, 604, 394, 1185, 2932, 797, 1566, 711, 358, 506, 12457, 1490, 578, 6389, 4442, 1769, 565, 289, 565, 18357, 16026, 273, 394, 18357, 12, 892, 1769, 565, 2 ]
ShadowVeryShortPeriodTotal[2] = 0; ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortPeriodTotal[0] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); EqualPeriodTotal[2] = 0; EqualPeriodTotal[1] = 0; EqualPeriodTotal[0] = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod);
public TA_RetCode CDLIDENTICAL3CROWS(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double[] ShadowVeryShortPeriodTotal = new double[3]; ; double[] EqualPeriodTotal = new double[3]; ; int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, EqualTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLIDENTICAL3CROWS_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } ShadowVeryShortPeriodTotal[2] = 0; ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortPeriodTotal[0] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); EqualPeriodTotal[2] = 0; EqualPeriodTotal[1] = 0; EqualPeriodTotal[0] = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod); i = ShadowVeryShortTrailingIdx; while (i < startIdx) { ShadowVeryShortPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); ShadowVeryShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowVeryShortPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = EqualTrailingIdx; while (i < startIdx) { EqualPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); EqualPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 2] >= inOpen[i - 2] ? 1 : -1) == -1 && ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inClose[i] >= inOpen[i] ? 1 : -1) == -1 && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inClose[i - 2] > inClose[i - 1] && inClose[i - 1] > inClose[i] && inOpen[i - 1] <= inClose[i - 2] + ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inOpen[i - 1] >= inClose[i - 2] - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inOpen[i] <= inClose[i - 1] + ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inOpen[i] >= inClose[i - 1] - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; for (totIdx = 2; totIdx >= 0; --totIdx) ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); for (totIdx = 2; totIdx >= 1; --totIdx) EqualPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[EqualTrailingIdx - totIdx] - inOpen[EqualTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[EqualTrailingIdx - totIdx] - inLow[EqualTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[EqualTrailingIdx - totIdx] - (inClose[EqualTrailingIdx - totIdx] >= inOpen[EqualTrailingIdx - totIdx] ? inClose[EqualTrailingIdx - totIdx] : inOpen[EqualTrailingIdx - totIdx])) + ((inClose[EqualTrailingIdx - totIdx] >= inOpen[EqualTrailingIdx - totIdx] ? inOpen[EqualTrailingIdx - totIdx] : inClose[EqualTrailingIdx - totIdx]) - inLow[EqualTrailingIdx - totIdx]) : 0))); i++; ShadowVeryShortTrailingIdx++; EqualTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 13355, 10109, 23, 39, 28402, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 8526, 24915, 58, 627, 4897, 5027, 5269, 273, 394, 1645, 63, 23, 15533, 202, 202, 31, 202, 202, 9056, 8526, 9057, 5027, 5269, 273, 394, 1645, 63, 23, 15533, 202, 202, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 9997, 4223, 16, 24915, 58, 627, 4897, 16808, 4223, 16, 9057, 16808, 4223, 16, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 411, 374, 13, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 202, 202, 430, 14015, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 202, 202, 7330, 823, 5269, 273, 385, 8914, 13355, 10109, 23, 39, 28402, 67, 9794, 823, 5621, 202, 202, 430, 261, 1937, 4223, 411, 2324, 823, 5269, 13, 1082, 202, 1937, 4223, 273, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 405, 679, 4223, 13, 288, 1082, 202, 659, 24059, 4223, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 385, 8914, 13355, 10109, 23, 39, 28402, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 63, 5717, 288, 202, 202, 9056, 8526, 24915, 58, 627, 4897, 5027, 5269, 273, 394, 1645, 63, 23, 15533, 202, 202, 31, 202, 202, 9056, 8526, 9057, 5027, 5269, 273, 394, 1645, 63, 23, 15533, 202, 202, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 9997, 4223, 16, 24915, 58, 627, 4897, 16808, 4223, 16, 9057, 2 ]
getOkButton().setEnabled(false);
protected Control createContents(Composite parent) { Control control = super.createContents(parent); List selections = getInitialElementSelections(); if (!selections.isEmpty()) { listViewer.setSelection(new StructuredSelection(selections), true); } updateButtonAvailability(); return control; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f865978e43fc1fd851b3a528710854c6485dea43/WorkingSetSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 8888, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 752, 6323, 12, 9400, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 982, 13, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 288, 202, 202, 3367, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 3325, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 273, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 2240, 18, 2640, 6323, 12, 2938, 1769, 202, 202, 682, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 21738, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 273, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 24044, 1046, 29913, 5621, 202, 202, 430, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 16051, 10705, 87, 18, 291, 1921, 10756, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 288, 1082, 202, 1098, 18415, 18, 542, 6233, 12, 2704, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 7362, 2862, 6233, 12, 10705, 87, 3631, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 638, 1769, 202, 202, 97, 202, 202, 2725, 3616, 10427, 5621, 202, 202, 2463, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 3325, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 8888, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 752, 6323, 12, 9400, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 982, 13, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 288, 202, 202, 3367, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 3325, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 273, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 2240, 18, 2640, 6323, 12, 2938, 1769, 202, 202, 682, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 21738, 225, 336, 8809, 3616, 7675, 542, 1526, 12, 5743, 1769, 273, 225, 2 ]
assertEquals( enumSpec.getName(), "_A" );
assertEquals( enumSpec.getName(), "_A" );
public void testBug54639() throws Exception { Writer writer = new StringWriter(); writer.write( "typedef enum _A { } A, *pA; " ); Iterator i = parse( writer.toString() ).getDeclarations(); IASTTypedefDeclaration typedef = (IASTTypedefDeclaration)i.next(); assertEquals( typedef.getName(), "A" ); IASTEnumerationSpecifier enumSpec = (IASTEnumerationSpecifier) typedef.getAbstractDeclarator().getTypeSpecifier(); assertEquals( enumSpec.getName(), "_A" ); IASTTypedefDeclaration typedef2 = (IASTTypedefDeclaration)i.next(); assertEquals( typedef2.getName(), "pA" ); assertEquals( typedef2.getAbstractDeclarator().getPointerOperators().next(), ASTPointerOperator.POINTER ); enumSpec = (IASTEnumerationSpecifier) typedef2.getAbstractDeclarator().getTypeSpecifier(); assertEquals( enumSpec.getName(), "_A" ); assertFalse( i.hasNext() ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 19865, 6564, 21607, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 723, 536, 2792, 389, 37, 288, 289, 432, 16, 380, 84, 37, 31, 315, 11272, 9506, 202, 3198, 277, 273, 1109, 12, 2633, 18, 10492, 1435, 262, 18, 588, 21408, 5621, 9506, 202, 45, 9053, 559, 536, 6094, 618, 536, 273, 261, 45, 9053, 559, 536, 6094, 13, 77, 18, 4285, 5621, 202, 202, 11231, 8867, 12, 618, 536, 18, 17994, 9334, 315, 37, 6, 11272, 202, 202, 45, 9053, 21847, 21416, 2792, 1990, 273, 261, 45, 9053, 21847, 21416, 13, 618, 536, 18, 588, 7469, 31419, 7675, 588, 559, 21416, 5621, 202, 202, 11231, 8867, 12, 2792, 1990, 18, 17994, 9334, 4192, 37, 6, 11272, 9506, 202, 45, 9053, 559, 536, 6094, 618, 536, 22, 273, 261, 45, 9053, 559, 536, 6094, 13, 77, 18, 4285, 5621, 202, 202, 11231, 8867, 12, 618, 536, 22, 18, 17994, 9334, 315, 84, 37, 6, 11272, 202, 202, 11231, 8867, 12, 618, 536, 22, 18, 588, 7469, 31419, 7675, 588, 4926, 24473, 7675, 4285, 9334, 9183, 4926, 5592, 18, 2419, 9125, 11272, 202, 202, 7924, 1990, 273, 261, 45, 9053, 21847, 21416, 13, 618, 536, 22, 18, 588, 7469, 31419, 7675, 588, 559, 21416, 5621, 202, 202, 11231, 8867, 12, 2792, 1990, 18, 17994, 9334, 4192, 37, 6, 11272, 9506, 202, 11231, 8381, 12, 277, 18, 5332, 2134, 1435, 11272, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 19865, 6564, 21607, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 723, 536, 2792, 389, 37, 288, 289, 432, 16, 380, 84, 37, 31, 315, 11272, 9506, 202, 3198, 277, 273, 1109, 12, 2633, 18, 10492, 1435, 262, 18, 588, 21408, 5621, 9506, 202, 45, 9053, 559, 536, 6094, 618, 536, 273, 261, 45, 9053, 559, 536, 6094, 13, 77, 18, 4285, 5621, 202, 202, 11231, 8867, 12, 618, 536, 18, 17994, 9334, 315, 37, 6, 11272, 202, 202, 45, 9053, 21847, 21416, 2792, 1990, 273, 261, 45, 9053, 21847, 21416, 13, 618, 536, 18, 588, 7469, 31419, 7675, 588, 559, 21416, 2 ]
shadow = defaults.getColor("ComboBox.buttonShadow"); darkShadow = defaults.getColor("ComboBox.buttonDarkShadow"); highlight = defaults.getColor("ComboBox.buttonHighlight");
shadow = UIManager.getColor("ComboBox.buttonShadow"); darkShadow = UIManager.getColor("ComboBox.buttonDarkShadow"); highlight = UIManager.getColor("ComboBox.buttonHighlight");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (fore == null || fore instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox.foreground")); if (back == null || back instanceof UIResource) comboBox.setBackground(defaults.getColor("ComboBox.background")); // fetch the button color scheme shadow = defaults.getColor("ComboBox.buttonShadow"); darkShadow = defaults.getColor("ComboBox.buttonDarkShadow"); highlight = defaults.getColor("ComboBox.buttonHighlight"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7019, 1435, 225, 288, 565, 10034, 73, 643, 87, 3467, 273, 6484, 1318, 18, 588, 9794, 1876, 2954, 292, 7019, 5621, 565, 10063, 284, 273, 16778, 3514, 18, 588, 5711, 5621, 565, 5563, 895, 273, 16778, 3514, 18, 588, 23206, 5621, 565, 5563, 1473, 273, 16778, 3514, 18, 588, 8199, 5621, 565, 309, 261, 74, 422, 446, 747, 284, 1276, 6484, 1420, 13, 1377, 16778, 3514, 18, 542, 5711, 12, 7606, 18, 588, 5711, 2932, 22199, 18, 5776, 7923, 1769, 3639, 309, 261, 1405, 422, 446, 747, 895, 1276, 6484, 1420, 13, 1377, 16778, 3514, 18, 542, 23206, 12, 7606, 18, 588, 2957, 2932, 22199, 18, 1405, 2915, 7923, 1769, 565, 309, 261, 823, 422, 446, 747, 1473, 1276, 6484, 1420, 13, 1377, 16778, 3514, 18, 542, 8199, 12, 7606, 18, 588, 2957, 2932, 22199, 18, 9342, 7923, 1769, 565, 368, 2158, 326, 3568, 2036, 4355, 565, 10510, 273, 3467, 18, 588, 2957, 2932, 22199, 18, 5391, 12957, 8863, 565, 23433, 12957, 273, 3467, 18, 588, 2957, 2932, 22199, 18, 5391, 40, 1313, 12957, 8863, 565, 8839, 273, 3467, 18, 588, 2957, 2932, 22199, 18, 5391, 16205, 8863, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7019, 1435, 225, 288, 565, 10034, 73, 643, 87, 3467, 273, 6484, 1318, 18, 588, 9794, 1876, 2954, 292, 7019, 5621, 565, 10063, 284, 273, 16778, 3514, 18, 588, 5711, 5621, 565, 5563, 895, 273, 16778, 3514, 18, 588, 23206, 5621, 565, 5563, 1473, 273, 16778, 3514, 18, 588, 8199, 5621, 565, 309, 261, 74, 422, 446, 747, 284, 1276, 6484, 1420, 13, 1377, 16778, 3514, 18, 542, 5711, 12, 7606, 18, 588, 5711, 2932, 22199, 18, 5776, 7923, 1769, 3639, 309, 261, 1405, 422, 446, 747, 895, 1276, 6484, 1420, 13, 1377, 16778, 3514, 18, 542, 23206, 12, 7606, 18, 588, 2957, 2932, 22199, 18, 1405, 2915, 7923, 1769, 565, 309, 261, 823, 422, 2 ]
siteBuild.setPluginLocation(new Path(htmlPage.getPluginLocation())); siteBuild.setFeatureLocation(new Path(htmlPage.getFeaturesLocation()));
siteBuild.setPluginLocation(new Path(DEFAULT_PLUGIN_DIR)); siteBuild.setFeatureLocation(new Path(DEFAULT_FEATURE_DIR));
private IFile createSiteManifest( IProject project, SiteData data) throws CoreException { IFile file = project.getFile("site.xml"); if (file.exists()) return file; WorkspaceSiteModel model = new WorkspaceSiteModel(); model.setFile(file); ISite site = model.getSite(); String name = project.getName(); site.setLabel(name); site.setType(data.type); site.setURL(data.url); // Save the model model.save(); model.dispose(); // Create and save build model WorkspaceSiteBuildModel buildModel = new WorkspaceSiteBuildModel(); IFile buildFile = project.getFile(PDECore.SITEBUILD_FILE); buildModel.setFile(buildFile); ISiteBuild siteBuild = buildModel.getSiteBuild(); siteBuild.setAutobuild(false); siteBuild.setPluginLocation(new Path(htmlPage.getPluginLocation())); siteBuild.setFeatureLocation(new Path(htmlPage.getFeaturesLocation())); siteBuild.setShowConsole(true); buildModel.save(); buildModel.dispose(); // Set the default editor IDE.setDefaultEditor(file, PDEPlugin.SITE_EDITOR_ID); return file; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/0561f4a99b151d092865a3530db052974e899ad5/NewSiteProjectWizard.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/site/NewSiteProjectWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 812, 752, 4956, 9121, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 4956, 751, 501, 13, 202, 202, 15069, 30015, 288, 202, 202, 45, 812, 585, 273, 1984, 18, 29925, 2932, 4256, 18, 2902, 8863, 202, 202, 430, 261, 768, 18, 1808, 10756, 327, 585, 31, 202, 202, 8241, 4956, 1488, 938, 273, 394, 14396, 4956, 1488, 5621, 202, 202, 2284, 18, 542, 812, 12, 768, 1769, 202, 202, 45, 4956, 2834, 273, 938, 18, 588, 4956, 5621, 202, 202, 780, 508, 273, 1984, 18, 17994, 5621, 202, 202, 4256, 18, 542, 2224, 12, 529, 1769, 202, 202, 4256, 18, 542, 559, 12, 892, 18, 723, 1769, 202, 202, 4256, 18, 542, 1785, 12, 892, 18, 718, 1769, 202, 202, 759, 7074, 326, 938, 202, 202, 2284, 18, 5688, 5621, 202, 202, 2284, 18, 2251, 4150, 5621, 9506, 202, 759, 1788, 471, 1923, 1361, 938, 202, 202, 8241, 4956, 3116, 1488, 1361, 1488, 273, 394, 14396, 4956, 3116, 1488, 5621, 202, 202, 45, 812, 1361, 812, 273, 1984, 18, 29925, 12, 52, 1639, 4670, 18, 20609, 20215, 67, 3776, 1769, 202, 202, 3510, 1488, 18, 542, 812, 12, 3510, 812, 1769, 202, 202, 45, 4956, 3116, 2834, 3116, 273, 1361, 1488, 18, 588, 4956, 3116, 5621, 202, 225, 202, 4256, 3116, 18, 542, 7150, 947, 680, 12, 5743, 1769, 202, 225, 202, 4256, 3116, 18, 542, 3773, 2735, 12, 2704, 2666, 12, 2620, 1964, 18, 588, 3773, 2735, 1435, 10019, 202, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 467, 812, 752, 4956, 9121, 12, 202, 202, 45, 4109, 1984, 16, 202, 202, 4956, 751, 501, 13, 202, 202, 15069, 30015, 288, 202, 202, 45, 812, 585, 273, 1984, 18, 29925, 2932, 4256, 18, 2902, 8863, 202, 202, 430, 261, 768, 18, 1808, 10756, 327, 585, 31, 202, 202, 8241, 4956, 1488, 938, 273, 394, 14396, 4956, 1488, 5621, 202, 202, 2284, 18, 542, 812, 12, 768, 1769, 202, 202, 45, 4956, 2834, 273, 938, 18, 588, 4956, 5621, 202, 202, 780, 508, 273, 1984, 18, 17994, 5621, 202, 202, 4256, 18, 542, 2224, 12, 529, 1769, 202, 202, 4256, 18, 542, 559, 12, 892, 18, 723, 1769, 202, 202, 4256, 18, 542, 1785, 12, 2 ]
if(!(parent instanceof NativeCall)) {
if(name != null && name.equals("this")) { parent = null; } else if(!(parent instanceof NativeCall)) {
protected Object[] getChildren() { if(children != null) return children; Context cx = Context.enter(); try { Object value = getObject(); if(value == null) return children = empty; if(value == ScriptableObject.NOT_FOUND || value == Undefined.instance) { return children = empty; } if(value instanceof Scriptable) { Scriptable scrip = (Scriptable)value; Scriptable proto = scrip.getPrototype(); Scriptable parent = scrip.getParentScope(); if(value instanceof NativeCall) { if(!(parent instanceof NativeCall)) { parent = null; } } if(proto != null) { if(builtin == null) { builtin = new Scriptable[6]; builtin[0] = ScriptableObject.getObjectPrototype(scrip); builtin[1] = ScriptableObject.getFunctionPrototype(scrip); builtin[2] = ScriptableObject.getClassPrototype(scrip, "String"); builtin[3] = ScriptableObject.getClassPrototype(scrip, "Boolean"); builtin[4] = ScriptableObject.getClassPrototype(scrip, "Array"); builtin[5] = ScriptableObject.getClassPrototype(scrip, "Number"); } for(int i = 0; i < builtin.length; i++) { if(proto == builtin[i]) { proto = null; break; } } } if(scrip.has(0, scrip)) { int len = 0; try { Scriptable start = scrip; Scriptable obj = start; Object result = Undefined.instance; do { if(obj.has("length", start)) { result = obj.get("length", start); if (result != Scriptable.NOT_FOUND) break; } obj = obj.getPrototype(); } while (obj != null); if(result instanceof Number) { len = ((Number)result).intValue(); } } catch(Exception exc) { } if(parent != null) { len++; } if(proto != null) { len++; } children = new VariableNode[len]; int i = 0; int j = 0; if(proto != null) { children[i++] = new VariableNode(scrip, "__proto__"); j++; } if(parent != null) { children[i++] = new VariableNode(scrip, "__parent__"); j++; } for(; i < len; i++) { children[i] = new VariableNode(scrip, i-j); } } else { int len = 0; Hashtable t = new Hashtable(); Object[] ids = scrip.getIds(); if(proto != null) t.put("__proto__", "__proto__"); if(parent != null) t.put("__parent__", "__parent__"); if(ids.length > 0) { for(int j = 0; j < ids.length; j++) { t.put(ids[j], ids[j]); } } ids = new Object[t.size()]; Enumeration e = t.keys(); int j = 0; while(e.hasMoreElements()) { ids[j++] = e.nextElement().toString(); } if(ids != null && ids.length > 0) { java.util.Arrays.sort(ids, new java.util.Comparator() { public int compare(Object l, Object r) { return l.toString().compareToIgnoreCase(r.toString()); } }); len = ids.length; } children = new VariableNode[len]; for(int i = 0; i < len; i++) { Object id = ids[i]; children[i] = new VariableNode(scrip, id.toString()); } } } } catch (Exception exc) { exc.printStackTrace(); } finally { cx.exit(); } return children; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/bf90b94ec71619b87c1dcbc1468ca7d8baa373f0/VariableModel.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 8526, 10268, 1435, 288, 202, 430, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 202, 698, 288, 202, 565, 1033, 460, 273, 6455, 5621, 202, 565, 309, 12, 1132, 422, 446, 13, 327, 2325, 273, 1008, 31, 202, 565, 309, 12, 1132, 422, 22780, 921, 18, 4400, 67, 9294, 747, 202, 4202, 460, 422, 22243, 18, 1336, 13, 288, 202, 202, 2463, 2325, 273, 1008, 31, 202, 565, 289, 202, 565, 309, 12, 1132, 1276, 22780, 13, 288, 202, 202, 3651, 429, 888, 21335, 273, 261, 3651, 429, 13, 1132, 31, 202, 202, 3651, 429, 3760, 273, 888, 21335, 18, 588, 15846, 5621, 202, 202, 3651, 429, 982, 273, 888, 21335, 18, 588, 3054, 3876, 5621, 7734, 309, 12, 1132, 1276, 16717, 1477, 13, 288, 10792, 309, 12, 529, 480, 446, 597, 508, 18, 14963, 2932, 2211, 6, 3719, 288, 282, 982, 273, 446, 31, 289, 469, 309, 12, 5, 12, 2938, 1276, 16717, 1477, 3719, 288, 21821, 982, 273, 446, 31, 10792, 289, 7734, 289, 202, 202, 430, 12, 9393, 480, 446, 13, 288, 1082, 565, 309, 12, 24553, 422, 446, 13, 288, 1082, 202, 24553, 273, 394, 22780, 63, 26, 15533, 1082, 202, 24553, 63, 20, 65, 273, 282, 9506, 565, 22780, 921, 18, 588, 921, 15846, 12, 2614, 84, 1769, 1082, 202, 24553, 63, 21, 65, 273, 4697, 565, 22780, 921, 18, 588, 2083, 15846, 12, 2614, 84, 1769, 1082, 202, 24553, 63, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 10268, 1435, 288, 202, 430, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 202, 698, 288, 202, 565, 1033, 460, 273, 6455, 5621, 202, 565, 309, 12, 1132, 422, 446, 13, 327, 2325, 273, 1008, 31, 202, 565, 309, 12, 1132, 422, 22780, 921, 18, 4400, 67, 9294, 747, 202, 4202, 460, 422, 22243, 18, 1336, 13, 288, 202, 202, 2463, 2325, 273, 1008, 31, 202, 565, 289, 202, 565, 309, 12, 1132, 1276, 22780, 13, 288, 202, 202, 3651, 429, 888, 21335, 273, 261, 3651, 429, 13, 1132, 31, 202, 202, 3651, 429, 3760, 273, 888, 21335, 18, 588, 15846, 5621, 202, 202, 3651, 429, 982, 2 ]
private void sendPermissionDenied( IMCServiceInterface imcref, Writer out, int meta_id, UserDomainObject user ) throws IOException {
private void sendPermissionDenied( ImcmsServices imcref, Writer out, int meta_id, UserDomainObject user ) throws IOException {
private void sendPermissionDenied( IMCServiceInterface imcref, Writer out, int meta_id, UserDomainObject user ) throws IOException { Vector vec = new Vector( 2 ); vec.add( "#meta_id#" ); vec.add( String.valueOf( meta_id ) ); String htmlStr = imcref.getAdminTemplate( "include_permission_denied.html", user, vec ); out.write( htmlStr ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/SaveInclude.java/buggy/server/src/com/imcode/imcms/servlet/admin/SaveInclude.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 5041, 10410, 12, 2221, 6851, 5676, 709, 71, 1734, 16, 5497, 596, 16, 509, 2191, 67, 350, 16, 2177, 3748, 921, 729, 262, 1216, 1860, 288, 3639, 5589, 7062, 273, 394, 5589, 12, 576, 11272, 3639, 7062, 18, 1289, 12, 6619, 3901, 67, 350, 17133, 11272, 3639, 7062, 18, 1289, 12, 514, 18, 1132, 951, 12, 2191, 67, 350, 262, 11272, 3639, 514, 1729, 1585, 273, 709, 71, 1734, 18, 588, 4446, 2283, 12, 315, 6702, 67, 9827, 67, 13002, 2092, 18, 2620, 3113, 729, 16, 7062, 11272, 3639, 596, 18, 2626, 12, 1729, 1585, 11272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 1366, 5041, 10410, 12, 2221, 6851, 5676, 709, 71, 1734, 16, 5497, 596, 16, 509, 2191, 67, 350, 16, 2177, 3748, 921, 729, 262, 1216, 1860, 288, 3639, 5589, 7062, 273, 394, 5589, 12, 576, 11272, 3639, 7062, 18, 1289, 12, 6619, 3901, 67, 350, 17133, 11272, 3639, 7062, 18, 1289, 12, 514, 18, 1132, 951, 12, 2191, 67, 350, 262, 11272, 3639, 514, 1729, 1585, 273, 709, 71, 1734, 18, 588, 4446, 2283, 12, 315, 6702, 67, 9827, 67, 13002, 2092, 18, 2620, 3113, 729, 16, 7062, 11272, 3639, 596, 18, 2626, 12, 1729, 1585, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolean valid = _context.messageValidator().validateMessage(msg.getUniqueId(), msg.getMessageExpiration().getTime());
boolean valid = getContext().messageValidator().validateMessage(msg.getUniqueId(), msg.getMessageExpiration().getTime());
private void honorSendLocal(TunnelInfo info, RouterIdentity ident) { if ( (info.getDestination() == null) || !(_message instanceof DataMessage) ) { // its a network message targeting us... if (_log.shouldLog(Log.DEBUG)) _log.debug("Destination is null or its not a DataMessage - pass it off to the InNetMessagePool"); InNetMessage msg = new InNetMessage(_context); msg.setFromRouter(ident); msg.setFromRouterHash(ident.getHash()); msg.setMessage(_message); msg.setReplyBlock(null); _context.inNetMessagePool().add(msg); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Destination is not null and it is a DataMessage - pop it into the ClientMessagePool"); DataMessage msg = (DataMessage)_message; boolean valid = _context.messageValidator().validateMessage(msg.getUniqueId(), msg.getMessageExpiration().getTime()); if (!valid) { if (_log.shouldLog(Log.WARN)) _log.warn("Duplicate data message received [" + msg.getUniqueId() + " expiring on " + msg.getMessageExpiration() + "]"); _context.messageHistory().droppedOtherMessage(msg); _context.messageHistory().messageProcessingError(msg.getUniqueId(), msg.getClass().getName(), "Duplicate"); return; } Payload payload = new Payload(); payload.setEncryptedData(msg.getData()); MessageReceptionInfo receptionInfo = new MessageReceptionInfo(); receptionInfo.setFromPeer(ident.getHash()); receptionInfo.setFromTunnel(_tunnelId); ClientMessage clientMessage = new ClientMessage(); clientMessage.setDestination(info.getDestination()); clientMessage.setPayload(payload); clientMessage.setReceptionInfo(receptionInfo); _context.clientMessagePool().add(clientMessage); _context.messageHistory().receivePayloadMessage(msg.getUniqueId()); } }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/SendTunnelMessageJob.java/clean/router/java/src/net/i2p/router/message/SendTunnelMessageJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 24338, 280, 3826, 2042, 12, 20329, 966, 1123, 16, 9703, 4334, 3390, 13, 288, 3639, 309, 261, 261, 1376, 18, 588, 5683, 1435, 422, 446, 13, 747, 401, 24899, 2150, 1276, 1910, 1079, 13, 262, 288, 5411, 368, 2097, 279, 2483, 883, 31490, 584, 2777, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 5683, 353, 446, 578, 2097, 486, 279, 1910, 1079, 300, 1342, 518, 3397, 358, 326, 657, 7308, 1079, 2864, 8863, 5411, 657, 7308, 1079, 1234, 273, 394, 657, 7308, 1079, 24899, 2472, 1769, 5411, 1234, 18, 542, 1265, 8259, 12, 6392, 1769, 5411, 1234, 18, 542, 1265, 8259, 2310, 12, 6392, 18, 588, 2310, 10663, 5411, 1234, 18, 542, 1079, 24899, 2150, 1769, 5411, 1234, 18, 542, 7817, 1768, 12, 2011, 1769, 5411, 389, 2472, 18, 267, 7308, 1079, 2864, 7675, 1289, 12, 3576, 1769, 3639, 289, 469, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 5683, 353, 486, 446, 471, 518, 353, 279, 1910, 1079, 300, 1843, 518, 1368, 326, 2445, 1079, 2864, 8863, 5411, 1910, 1079, 1234, 273, 261, 751, 1079, 13, 67, 2150, 31, 5411, 1250, 923, 273, 6474, 7675, 2150, 5126, 7675, 5662, 1079, 12, 3576, 18, 588, 24174, 9334, 1234, 18, 24906, 12028, 7675, 588, 950, 10663, 5411, 309, 16051, 877, 13, 288, 7734, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 24338, 280, 3826, 2042, 12, 20329, 966, 1123, 16, 9703, 4334, 3390, 13, 288, 3639, 309, 261, 261, 1376, 18, 588, 5683, 1435, 422, 446, 13, 747, 401, 24899, 2150, 1276, 1910, 1079, 13, 262, 288, 5411, 368, 2097, 279, 2483, 883, 31490, 584, 2777, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 5683, 353, 446, 578, 2097, 486, 279, 1910, 1079, 300, 1342, 518, 3397, 358, 326, 657, 7308, 1079, 2864, 8863, 5411, 657, 7308, 1079, 1234, 273, 394, 657, 7308, 1079, 24899, 2472, 1769, 5411, 1234, 18, 542, 1265, 8259, 12, 6392, 1769, 5411, 1234, 18, 542, 1265, 8259, 2310, 12, 6392, 18, 2 ]
public void widgetSelected( SelectionEvent e )
void widgetSelected( SelectionEvent e )
public void widgetSelected( SelectionEvent e ) { if ( e.widget.equals( btnApproximate ) ) { getFormatSpecifier( ).setPrecise( !btnApproximate.getSelection( ) ); this.setEnabled( true ); } else if ( e.widget.equals( btnUseNumerator ) ) { this.spnNumerator.setEnabled( true ); this.spnFractionDigits.setEnabled( false ); } else if ( e.widget.equals( btnUseDenorminator ) ) { this.spnNumerator.setEnabled( false ); this.spnFractionDigits.setEnabled( true ); } else if ( e.widget.equals( spnFractionDigits ) ) { getFormatSpecifier( ).setFractionDigits( spnFractionDigits.getSelection( ) ); } else if ( e.widget.equals( spnNumerator ) ) { getFormatSpecifier( ).setNumerator( spnNumerator.getSelection( ) ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 202, 95, 1082, 202, 430, 261, 425, 18, 6587, 18, 14963, 12, 10638, 25789, 4988, 262, 262, 1082, 202, 95, 9506, 202, 588, 1630, 21416, 12, 262, 18, 542, 1386, 30708, 12, 401, 11898, 25789, 4988, 18, 588, 6233, 12, 262, 11272, 9506, 202, 2211, 18, 542, 1526, 12, 638, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 425, 18, 6587, 18, 14963, 12, 10638, 3727, 2578, 7385, 262, 262, 1082, 202, 95, 9506, 202, 2211, 18, 1752, 82, 2578, 7385, 18, 542, 1526, 12, 638, 11272, 9506, 202, 2211, 18, 1752, 82, 13724, 9537, 18, 542, 1526, 12, 629, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 425, 18, 6587, 18, 14963, 12, 10638, 3727, 8517, 535, 4240, 262, 262, 1082, 202, 95, 9506, 202, 2211, 18, 1752, 82, 2578, 7385, 18, 542, 1526, 12, 629, 11272, 9506, 202, 2211, 18, 1752, 82, 13724, 9537, 18, 542, 1526, 12, 638, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 425, 18, 6587, 18, 14963, 12, 1694, 82, 13724, 9537, 262, 262, 1082, 202, 95, 9506, 202, 588, 1630, 21416, 12, 262, 18, 542, 13724, 9537, 12, 1694, 82, 13724, 9537, 18, 588, 6233, 12, 262, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 425, 18, 6587, 18, 14963, 12, 1694, 82, 2578, 7385, 262, 262, 1082, 202, 95, 9506, 202, 588, 1630, 21416, 12, 262, 18, 542, 2578, 7385, 12, 1694, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 202, 95, 1082, 202, 430, 261, 425, 18, 6587, 18, 14963, 12, 10638, 25789, 4988, 262, 262, 1082, 202, 95, 9506, 202, 588, 1630, 21416, 12, 262, 18, 542, 1386, 30708, 12, 401, 11898, 25789, 4988, 18, 588, 6233, 12, 262, 11272, 9506, 202, 2211, 18, 542, 1526, 12, 638, 11272, 1082, 202, 97, 1082, 202, 12107, 309, 261, 425, 18, 6587, 18, 14963, 12, 10638, 3727, 2578, 7385, 262, 262, 1082, 202, 95, 9506, 202, 2211, 18, 1752, 82, 2578, 7385, 18, 542, 1526, 12, 638, 11272, 9506, 202, 2211, 18, 1752, 82, 13724, 9537, 18, 542, 1526, 12, 629, 11272, 1082, 202, 97, 1082, 202, 2 ]
for (int i = 0; i < perspToDelete.size(); i++) deletePerspective((IPerspectiveDescriptor) perspToDelete.get(i)); }
for (int i = 0; i < perspToDelete.size(); i++) deletePerspective((IPerspectiveDescriptor) perspToDelete.get(i)); }
public void deletePerspectives(ArrayList perspToDelete) { for (int i = 0; i < perspToDelete.size(); i++) deletePerspective((IPerspectiveDescriptor) perspToDelete.get(i)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0707a6aff6dbd240f7c0b2dae47e64da2f4fd627/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 14781, 1181, 3606, 12, 19558, 13508, 84, 14976, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13508, 84, 14976, 18, 1467, 5621, 277, 27245, 5411, 1430, 14781, 16772, 12443, 2579, 414, 16772, 3187, 13, 13508, 84, 14976, 18, 588, 12, 77, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 14781, 1181, 3606, 12, 19558, 13508, 84, 14976, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 13508, 84, 14976, 18, 1467, 5621, 277, 27245, 5411, 1430, 14781, 16772, 12443, 2579, 414, 16772, 3187, 13, 13508, 84, 14976, 18, 588, 12, 77, 10019, 565, 289, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else { PsiType collectionType = variable.getManager().getElementFactory().createTypeByFQClassName("java.util.Collection", variable.getResolveScope());
} else { PsiType collectionType = variable.getManager().getElementFactory().createTypeByFQClassName("java.util.Collection", variable.getResolveScope());
public AutomaticVariableRenamer(PsiClass aClass, String newClassName, List<UsageInfo> usages) { for (Iterator<UsageInfo> iterator = usages.iterator(); iterator.hasNext();) { final UsageInfo info = iterator.next(); final PsiElement element = info.getElement(); if (!(element instanceof PsiJavaCodeReferenceElement)) continue; final PsiVariable variable = PsiTreeUtil.getParentOfType(element, PsiVariable.class); if (variable == null) continue; final PsiJavaCodeReferenceElement ref = variable.getTypeElement().getInnermostComponentReferenceElement(); if (ref == null) continue; if (ref.equals(element)) { myElements.add((variable)); if (variable.getType() instanceof PsiArrayType) { myToUnpluralize.add(variable); } } else { PsiType collectionType = variable.getManager().getElementFactory().createTypeByFQClassName("java.util.Collection", variable.getResolveScope()); if (!collectionType.isAssignableFrom(variable.getType())) continue; final PsiTypeElement[] typeParameterElements = ref.getParameterList().getTypeParameterElements(); for (PsiTypeElement typeParameterElement : typeParameterElements) { final PsiJavaCodeReferenceElement parameterRef = typeParameterElement.getInnermostComponentReferenceElement(); if (parameterRef != null && parameterRef.equals(element)) { myElements.add((variable)); myToUnpluralize.add(variable); break; } } } } suggestAllNames(aClass.getName(), newClassName); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/82003bc6c31a5d89b0c29f38bc92c98b60b63ae2/AutomaticVariableRenamer.java/buggy/refactoring/impl/com/intellij/refactoring/rename/naming/AutomaticVariableRenamer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 11809, 4941, 3092, 16290, 24458, 12, 52, 7722, 797, 20148, 16, 514, 394, 3834, 16, 987, 32, 5357, 966, 34, 584, 1023, 13, 288, 565, 364, 261, 3198, 32, 5357, 966, 34, 2775, 273, 584, 1023, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 727, 10858, 966, 1123, 273, 2775, 18, 4285, 5621, 1377, 727, 453, 7722, 1046, 930, 273, 1123, 18, 21336, 5621, 1377, 309, 16051, 12, 2956, 1276, 453, 7722, 5852, 1085, 2404, 1046, 3719, 1324, 31, 1377, 727, 453, 7722, 3092, 2190, 273, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 2956, 16, 453, 7722, 3092, 18, 1106, 1769, 1377, 309, 261, 6105, 422, 446, 13, 1324, 31, 1377, 727, 453, 7722, 5852, 1085, 2404, 1046, 1278, 273, 2190, 18, 588, 559, 1046, 7675, 588, 382, 82, 28055, 1841, 2404, 1046, 5621, 1377, 309, 261, 1734, 422, 446, 13, 1324, 31, 1377, 309, 261, 1734, 18, 14963, 12, 2956, 3719, 288, 3639, 3399, 3471, 18, 1289, 12443, 6105, 10019, 3639, 309, 261, 6105, 18, 588, 559, 1435, 1276, 453, 7722, 27182, 13, 288, 1850, 3399, 774, 984, 15203, 554, 18, 1289, 12, 6105, 1769, 3639, 289, 1377, 289, 469, 288, 3639, 453, 7722, 559, 1849, 559, 273, 2190, 18, 588, 1318, 7675, 21336, 1733, 7675, 2640, 559, 858, 23032, 3834, 2932, 6290, 18, 1367, 18, 2532, 3113, 2190, 18, 588, 8460, 3876, 10663, 3639, 309, 16051, 5548, 559, 18, 291, 7961, 1265, 12, 6105, 18, 588, 559, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11809, 4941, 3092, 16290, 24458, 12, 52, 7722, 797, 20148, 16, 514, 394, 3834, 16, 987, 32, 5357, 966, 34, 584, 1023, 13, 288, 565, 364, 261, 3198, 32, 5357, 966, 34, 2775, 273, 584, 1023, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 727, 10858, 966, 1123, 273, 2775, 18, 4285, 5621, 1377, 727, 453, 7722, 1046, 930, 273, 1123, 18, 21336, 5621, 1377, 309, 16051, 12, 2956, 1276, 453, 7722, 5852, 1085, 2404, 1046, 3719, 1324, 31, 1377, 727, 453, 7722, 3092, 2190, 273, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 2956, 16, 453, 7722, 3092, 18, 1106, 1769, 1377, 309, 261, 6105, 422, 446, 13, 1324, 31, 1377, 727, 2 ]
JTabbedPane tabbedPane = new JTabbedPane();
m_tabbedPane = new JTabbedPane();
private AboutDialog(String name, String version, String protocolVersion, String command) { JTabbedPane tabbedPane = new JTabbedPane(); boolean isProgramAvailable = (name != null && ! name.equals("")); int tabIndex = 0; JPanel programPanel; if (isProgramAvailable) { String versionInfo = ""; if (version != null && ! version.equals("")) versionInfo = "<p align=\"center\">Version " + version + "</p>"; int width = GuiUtils.getDefaultMonoFontSize() * 25; programPanel = createPanel("<p align=\"center\"><b>" + name + "</b></p>" + versionInfo + "<p align=\"center\" width=\"" + width + "\">" + "GTP protocol version " + protocolVersion + "<br>" + "Command: " + "<tt>" + command + "</tt></p>"); tabbedPane.add("Program", programPanel); tabbedPane.setMnemonicAt(tabIndex, KeyEvent.VK_P); tabbedPane.setSelectedIndex(tabIndex); ++tabIndex; } tabbedPane.add("GoGui", createPanelGoGui()); tabbedPane.setMnemonicAt(tabIndex, KeyEvent.VK_G); ++tabIndex; tabbedPane.add("Java", createPanelJava()); tabbedPane.setMnemonicAt(tabIndex, KeyEvent.VK_J); ++tabIndex; setMessage(tabbedPane); setOptionType(DEFAULT_OPTION); }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/c7807198c779f49850a0bc0984e1134f1f34dc5b/AboutDialog.java/clean/src/net/sf/gogui/gogui/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9771, 659, 6353, 12, 780, 508, 16, 514, 1177, 16, 514, 1771, 1444, 16, 13491, 514, 1296, 13, 565, 288, 3639, 312, 67, 7032, 2992, 8485, 273, 394, 804, 5661, 2992, 8485, 5621, 3639, 1250, 353, 9459, 5268, 273, 261, 529, 480, 446, 597, 401, 508, 18, 14963, 2932, 7923, 1769, 3639, 509, 3246, 1016, 273, 374, 31, 3639, 24048, 5402, 5537, 31, 3639, 309, 261, 291, 9459, 5268, 13, 3639, 288, 5411, 514, 20555, 273, 1408, 31, 5411, 309, 261, 1589, 480, 446, 597, 401, 1177, 18, 14963, 2932, 6, 3719, 7734, 20555, 273, 3532, 84, 5689, 5189, 5693, 24735, 1444, 315, 397, 1177, 10792, 397, 6823, 84, 2984, 31, 5411, 509, 1835, 273, 611, 4881, 1989, 18, 588, 1868, 11415, 83, 22688, 1435, 380, 6969, 31, 5411, 5402, 5537, 273, 7734, 752, 5537, 2932, 32, 84, 5689, 5189, 5693, 2412, 4438, 70, 2984, 397, 508, 397, 6823, 70, 4695, 84, 2984, 397, 18701, 20555, 397, 18701, 3532, 84, 5689, 5189, 5693, 2412, 1835, 13186, 397, 1835, 397, 7023, 2984, 397, 18701, 315, 43, 11130, 1771, 1177, 315, 397, 1771, 1444, 18701, 397, 3532, 2848, 2984, 397, 18701, 315, 2189, 30, 315, 397, 18701, 3532, 748, 2984, 397, 1296, 397, 6823, 748, 4695, 84, 2984, 1769, 5411, 3246, 2992, 8485, 18, 1289, 2932, 9459, 3113, 5402, 5537, 1769, 5411, 3246, 2992, 8485, 18, 542, 29668, 20918, 861, 12, 7032, 1016, 16, 23737, 18, 58, 47, 67, 52, 1769, 5411, 3246, 2992, 8485, 18, 542, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 9771, 659, 6353, 12, 780, 508, 16, 514, 1177, 16, 514, 1771, 1444, 16, 13491, 514, 1296, 13, 565, 288, 3639, 312, 67, 7032, 2992, 8485, 273, 394, 804, 5661, 2992, 8485, 5621, 3639, 1250, 353, 9459, 5268, 273, 261, 529, 480, 446, 597, 401, 508, 18, 14963, 2932, 7923, 1769, 3639, 509, 3246, 1016, 273, 374, 31, 3639, 24048, 5402, 5537, 31, 3639, 309, 261, 291, 9459, 5268, 13, 3639, 288, 5411, 514, 20555, 273, 1408, 31, 5411, 309, 261, 1589, 480, 446, 597, 401, 1177, 18, 14963, 2932, 6, 3719, 7734, 20555, 273, 3532, 84, 5689, 5189, 5693, 24735, 1444, 315, 397, 1177, 10792, 397, 6823, 84, 2984, 31, 5411, 509, 1835, 273, 611, 4881, 2 ]
_call.setOperationName( new javax.xml.namespace.QName("http:
_call.setOperationName(new javax.xml.namespace.QName("http:
public javax.activation.DataHandler exportToZip(java.lang.String taskName) throws java.rmi.RemoteException, org.genepattern.webservice.WebServiceException { if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[12]); _call.setUseSOAPAction(true); _call.setSOAPActionURI(""); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName( new javax.xml.namespace.QName("http://server.webservice.server.genepattern.org", "exportToZip")); setRequestHeaders(_call); setAttachments(_call); try { java.lang.Object _resp = _call.invoke(new java.lang.Object[]{taskName}); if (_resp instanceof java.rmi.RemoteException) { throw(java.rmi.RemoteException) _resp; } else { extractAttachments(_call); try { return (javax.activation.DataHandler) _resp; } catch (java.lang.Exception _exception) { return (javax.activation.DataHandler) org.apache.axis.utils.JavaUtils .convert(_resp, javax.activation.DataHandler.class); } } } catch (org.apache.axis.AxisFault axisFaultException) { if (axisFaultException.detail != null) { if (axisFaultException.detail instanceof java.rmi.RemoteException) { throw(java.rmi.RemoteException) axisFaultException.detail; } if (axisFaultException.detail instanceof org.genepattern.webservice.WebServiceException) { throw(org.genepattern.webservice.WebServiceException) axisFaultException.detail; } } throw axisFaultException; } }
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/a0155594d89ec195e6c5da1587aba6dc217a6f24/TaskIntegratorSoapBindingStub.java/clean/src/org/genepattern/webservice/TaskIntegratorSoapBindingStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6863, 18, 16908, 18, 751, 1503, 3359, 774, 9141, 12, 6290, 18, 4936, 18, 780, 20172, 13, 5411, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 2358, 18, 4507, 881, 1344, 18, 1814, 20015, 18, 4079, 15133, 288, 3639, 309, 261, 9565, 18, 7097, 3293, 422, 446, 13, 288, 5411, 604, 394, 2358, 18, 19211, 18, 4890, 18, 2279, 27185, 503, 5621, 3639, 289, 3639, 2358, 18, 19211, 18, 4890, 18, 2625, 18, 1477, 389, 1991, 273, 752, 1477, 5621, 3639, 389, 1991, 18, 542, 2988, 24899, 17542, 63, 2138, 19226, 3639, 389, 1991, 18, 542, 3727, 27952, 1803, 12, 3767, 1769, 3639, 389, 1991, 18, 542, 27952, 1803, 3098, 2932, 8863, 3639, 389, 1991, 18, 542, 27952, 1444, 12, 3341, 18, 19211, 18, 4890, 18, 19215, 18, 27952, 2918, 18, 27952, 2499, 67, 25878, 55, 1769, 3639, 389, 1991, 18, 542, 2988, 461, 12, 7734, 394, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 2505, 2207, 3567, 18, 1814, 20015, 18, 3567, 18, 4507, 881, 1344, 18, 3341, 3113, 315, 6530, 774, 9141, 7923, 1769, 3639, 12475, 3121, 24899, 1991, 1769, 3639, 444, 12961, 24899, 1991, 1769, 3639, 775, 288, 5411, 2252, 18, 4936, 18, 921, 389, 12243, 273, 389, 1991, 18, 14407, 12, 2704, 2252, 18, 4936, 18, 921, 63, 7073, 4146, 461, 22938, 5411, 309, 261, 67, 12243, 1276, 2252, 18, 8864, 77, 18, 5169, 503, 13, 288, 7734, 604, 12, 6290, 18, 8864, 77, 18, 5169, 503, 13, 389, 12243, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6863, 18, 16908, 18, 751, 1503, 3359, 774, 9141, 12, 6290, 18, 4936, 18, 780, 20172, 13, 5411, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 2358, 18, 4507, 881, 1344, 18, 1814, 20015, 18, 4079, 15133, 288, 3639, 309, 261, 9565, 18, 7097, 3293, 422, 446, 13, 288, 5411, 604, 394, 2358, 18, 19211, 18, 4890, 18, 2279, 27185, 503, 5621, 3639, 289, 3639, 2358, 18, 19211, 18, 4890, 18, 2625, 18, 1477, 389, 1991, 273, 752, 1477, 5621, 3639, 389, 1991, 18, 542, 2988, 24899, 17542, 63, 2138, 19226, 3639, 389, 1991, 18, 542, 3727, 27952, 1803, 12, 3767, 1769, 3639, 389, 1991, 18, 542, 27952, 1803, 3098, 2932, 8863, 3639, 389, 1991, 18, 2 ]
iVisited.accept(_Payload);
_Payload.visitBreakNode(iVisited);
public void visitBreakNode(BreakNode iVisited) { iVisited.accept(_Payload); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 7634, 907, 12, 7634, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 7634, 907, 12, 7634, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 1769, 202, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new RangeError(runtime, "bignum too big to convert into `int'");
throw new RangeError(getRuntime(), "bignum too big to convert into `int'");
public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) { throw new RangeError(runtime, "bignum too big to convert into `int'"); } return new RubyBignum(runtime, value.shiftRight((int) shift)); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 38, 724, 379, 1061, 67, 86, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 4654, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 4012, 405, 2144, 18, 6694, 67, 4051, 747, 4654, 411, 2144, 18, 6236, 67, 4051, 13, 288, 1082, 202, 12849, 394, 8086, 668, 12, 9448, 16, 315, 70, 724, 379, 4885, 5446, 358, 1765, 1368, 1375, 474, 4970, 1769, 202, 202, 97, 3639, 327, 394, 19817, 38, 724, 379, 12, 9448, 16, 460, 18, 4012, 4726, 12443, 474, 13, 4654, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 38, 724, 379, 1061, 67, 86, 4012, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 1525, 4654, 273, 1308, 18, 588, 3708, 620, 5621, 3639, 309, 261, 4012, 405, 2144, 18, 6694, 67, 4051, 747, 4654, 411, 2144, 18, 6236, 67, 4051, 13, 288, 1082, 202, 12849, 394, 8086, 668, 12, 9448, 16, 315, 70, 724, 379, 4885, 5446, 358, 1765, 1368, 1375, 474, 4970, 1769, 202, 202, 97, 3639, 327, 394, 19817, 38, 724, 379, 12, 9448, 16, 460, 18, 4012, 4726, 12443, 474, 13, 4654, 10019, 565, 289, 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 ]
AST __t1838 = _t; AST tmp1933_AST_in = (AST)_t;
AST __t1844 = _t; AST tmp1945_AST_in = (AST)_t;
public final void createxdocumentstate(AST _t) throws RecognitionException { AST createxdocumentstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1838 = _t; AST tmp1933_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp1934_AST_in = (AST)_t; match(_t,XDOCUMENT); _t = _t.getNextSibling(); create_whatever_args(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1838; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 338, 5457, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 338, 5457, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2643, 7414, 273, 389, 88, 31, 202, 202, 9053, 1853, 3657, 3707, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 3657, 5026, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 60, 18450, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 2640, 67, 3350, 14299, 67, 1968, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 2019, 67, 409, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 67, 88, 273, 1001, 88, 2643, 7414, 31, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 67, 1349, 2471, 273, 389, 88, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 338, 5457, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 338, 5457, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2643, 7414, 273, 389, 88, 31, 202, 202, 9053, 1853, 3657, 3707, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 3657, 5026, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 60, 2 ]
else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn
else if ( StyleRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn
public void end( ) throws SAXException { String value = text.toString( ); assert struct != null; if ( NULL_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_NULL; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_NULL; } if ( NOT_NULL_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_NOT_NULL; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_NOT_NULL; } if ( TRUE_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_TRUE; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_TRUE; } if ( FALSE_VALUE.equalsIgnoreCase( value ) ) { if ( FilterCondition.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.FILTER_OPERATOR_FALSE; else if ( MapRule.OPERATOR_MEMBER.equalsIgnoreCase( propDefn .getName( ) ) ) value = DesignChoiceConstants.MAP_OPERATOR_FALSE; } setMember( struct, propDefn.getName( ), name, value ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/CompatibleOperatorState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleOperatorState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 679, 12, 262, 1216, 14366, 202, 95, 202, 202, 780, 460, 273, 977, 18, 10492, 12, 11272, 202, 202, 11231, 1958, 480, 446, 31, 202, 202, 430, 261, 3206, 67, 4051, 18, 14963, 5556, 12, 460, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 4008, 3418, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 11126, 67, 26110, 67, 8560, 31, 1082, 202, 12107, 309, 261, 1635, 2175, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 8352, 67, 26110, 67, 8560, 31, 202, 202, 97, 202, 202, 430, 261, 4269, 67, 8560, 67, 4051, 18, 14963, 5556, 12, 460, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 4008, 3418, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 11126, 67, 26110, 67, 4400, 67, 8560, 31, 1082, 202, 12107, 309, 261, 1635, 2175, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 8352, 67, 26110, 67, 4400, 67, 8560, 31, 202, 202, 97, 202, 202, 430, 261, 5383, 67, 4051, 18, 14963, 5556, 12, 460, 262, 262, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 12, 262, 1216, 14366, 202, 95, 202, 202, 780, 460, 273, 977, 18, 10492, 12, 11272, 202, 202, 11231, 1958, 480, 446, 31, 202, 202, 430, 261, 3206, 67, 4051, 18, 14963, 5556, 12, 460, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 4008, 3418, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 11126, 67, 26110, 67, 8560, 31, 1082, 202, 12107, 309, 261, 1635, 2175, 18, 26110, 67, 19630, 18, 14963, 5556, 12, 2270, 3262, 82, 6862, 202, 18, 17994, 12, 262, 262, 262, 9506, 202, 1132, 273, 29703, 10538, 2918, 18, 8352, 2 ]
closure.call(files[i]);
closure.callSpecial(files[i]);
public static void eachFile(File self, Closure closure) throws FileNotFoundException, IllegalArgumentException { checkDir(self); File[] files = self.listFiles(); for (int i = 0; i < files.length; i++) { closure.call(files[i]); } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3ca12621865d127c779e1d6e8bb658477db05f19/DefaultGroovyMethods.java/buggy/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1517, 812, 12, 812, 365, 16, 7255, 7213, 13, 1216, 13707, 16, 2754, 288, 3639, 866, 1621, 12, 2890, 1769, 3639, 1387, 8526, 1390, 273, 365, 18, 1098, 2697, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 288, 5411, 7213, 18, 1991, 12193, 12, 2354, 63, 77, 19226, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 1517, 812, 12, 812, 365, 16, 7255, 7213, 13, 1216, 13707, 16, 2754, 288, 3639, 866, 1621, 12, 2890, 1769, 3639, 1387, 8526, 1390, 273, 365, 18, 1098, 2697, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 288, 5411, 7213, 18, 1991, 12193, 12, 2354, 63, 77, 19226, 3639, 289, 565, 289, 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, -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 startElement(QName element, XMLAttributes attributes)
public void startElement(QName element, XMLAttributes attributes, Augmentations augs)
public void startElement(QName element, XMLAttributes attributes) throws XNIException { if (fNamespaces) { handleStartElement(element, attributes, false); } else if (fDocumentHandler != null) { fDocumentHandler.startElement(element, attributes); } } // startElement(QName,XMLAttributes)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ee3cf4ff9e64a0ae2d3c850b7c9b40e51771781d/XMLNamespaceBinder.java/buggy/src/org/apache/xerces/impl/XMLNamespaceBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 432, 14870, 1012, 279, 9024, 13, 3639, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 13180, 13, 288, 5411, 1640, 1685, 1046, 12, 2956, 16, 1677, 16, 629, 1769, 3639, 289, 3639, 469, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 16, 1677, 1769, 3639, 289, 565, 289, 368, 13591, 12, 13688, 16, 4201, 2498, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 432, 14870, 1012, 279, 9024, 13, 3639, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 13180, 13, 288, 5411, 1640, 1685, 1046, 12, 2956, 16, 1677, 16, 629, 1769, 3639, 289, 3639, 469, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 16, 1677, 1769, 3639, 289, 565, 289, 368, 13591, 12, 13688, 16, 4201, 2498, 13, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ind.setFitness(1 / (1+ Common.sum(ce)/config.nClasses));
double fit = 1 / (1+ Common.sum(ce)/config.nClasses);
public void calculate(Output outputs, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data) { double[] ce = new double[config.nClasses]; for (int wClass=0; wClass<config.nClasses; wClass++) { prob[wClass] = outputs.getArray(wClass); } /* for (int wSample=0; wSample<data.nSamples; wSample++) { double sum = 0; for (int wClass=0; wClass<config.nClasses; wClass++) sum += prob[wClass][wSample]; for (int wClass=0; wClass<config.nClasses; wClass++) prob[wClass][wSample] /= sum; } */ for (int wClass=0; wClass<config.nClasses; wClass++) { ce[wClass] = crossEntropy(pReal[wClass], prob[wClass]); //ce[wClass] = crossEntropy(prob[wClass], pReal[wClass]); } ind.setFitness(1 / (1+ Common.sum(ce)/config.nClasses)); for (int wClass=0; wClass<config.nClasses; wClass++) ce[wClass] = 1 / (1 + ce[wClass]); assignFitness(ind, 1 / (1+ Common.sum(ce)/config.nClasses), ce, config); }
12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/8618c14b00504867a6a8f2ef85abdeaaa019f64d/FitnessClassifier.java/clean/branches/clustering/src/gpalta/classifier/FitnessClassifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4604, 12, 1447, 6729, 16, 24147, 1547, 16, 16380, 1447, 1733, 1906, 1447, 1733, 16, 1910, 6064, 501, 13, 565, 288, 3639, 1645, 8526, 5898, 273, 394, 1645, 63, 1425, 18, 82, 4818, 15533, 3639, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 18, 82, 4818, 31, 341, 797, 27245, 3639, 288, 5411, 3137, 63, 91, 797, 65, 273, 6729, 18, 588, 1076, 12, 91, 797, 1769, 3639, 289, 3639, 1748, 3639, 364, 261, 474, 341, 8504, 33, 20, 31, 341, 8504, 32, 892, 18, 82, 13239, 31, 341, 8504, 27245, 3639, 288, 5411, 1645, 2142, 273, 374, 31, 5411, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 18, 82, 4818, 31, 341, 797, 27245, 7734, 2142, 1011, 3137, 63, 91, 797, 6362, 91, 8504, 15533, 5411, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 18, 82, 4818, 31, 341, 797, 27245, 7734, 3137, 63, 91, 797, 6362, 91, 8504, 65, 9531, 2142, 31, 3639, 289, 3639, 1195, 3639, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 18, 82, 4818, 31, 341, 797, 27245, 3639, 288, 5411, 5898, 63, 91, 797, 65, 273, 6828, 28727, 12, 84, 6955, 63, 91, 797, 6487, 3137, 63, 91, 797, 19226, 5411, 368, 311, 63, 91, 797, 65, 273, 6828, 28727, 12, 7748, 63, 91, 797, 6487, 293, 6955, 63, 91, 797, 19226, 3639, 289, 3639, 1645, 4845, 273, 404, 342, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4604, 12, 1447, 6729, 16, 24147, 1547, 16, 16380, 1447, 1733, 1906, 1447, 1733, 16, 1910, 6064, 501, 13, 565, 288, 3639, 1645, 8526, 5898, 273, 394, 1645, 63, 1425, 18, 82, 4818, 15533, 3639, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 18, 82, 4818, 31, 341, 797, 27245, 3639, 288, 5411, 3137, 63, 91, 797, 65, 273, 6729, 18, 588, 1076, 12, 91, 797, 1769, 3639, 289, 3639, 1748, 3639, 364, 261, 474, 341, 8504, 33, 20, 31, 341, 8504, 32, 892, 18, 82, 13239, 31, 341, 8504, 27245, 3639, 288, 5411, 1645, 2142, 273, 374, 31, 5411, 364, 261, 474, 341, 797, 33, 20, 31, 341, 797, 32, 1425, 2 ]
final byte drdaType = reader.readByte();
paramDrdaTypes.addElement(new Byte(reader.readByte()));
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { PreparedStatement ps = stmt.getPreparedStatement(); final boolean haveParams = (stmt.getNumParams() > 0); reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // required case CodePoint.FDODSC: while (reader.getDdmLength() > 6) //we get parameter info til last 6 byte { int dtaGrpLen = reader.readUnsignedByte(); int numVarsInGrp = (dtaGrpLen - 3) / 3; if (SanityManager.DEBUG) trace("num of vars in this group is: "+numVarsInGrp); reader.readByte(); // tripletType reader.readByte(); // id for (int j = 0; j < numVarsInGrp; j++) { final byte drdaType = reader.readByte(); if (SanityManager.DEBUG) trace("drdaType is: "+ "0x" + Integer.toHexString(drdaType)); final int drdaLength = reader.readNetworkShort(); if (SanityManager.DEBUG) trace("drdaLength is: "+drdaLength); if (!haveParams) { stmt.addParam(drdaType, drdaLength); continue; } final DRDAStatement.CliParam cp = stmt.getCliParam(j); if (cp.drdaType != drdaType || cp.drdaLength != drdaLength) { if (SanityManager.DEBUG) { trace(ps+" param " +j+ " type: "+ drdaTypeName(cp.drdaType)+ "->"+drdaTypeName(drdaType)+ " length: "+ cp.drdaLength+"->"+drdaLength); } // Trust that this is OK... cp.drdaType = drdaType; cp.drdaLength = drdaLength; } } } // while (reader if (ps == null) // it is a CallableStatement under construction { final int numVars = stmt.getNumParams(); if (SanityManager.DEBUG) trace("numVars = " + numVars); String marks = "(?"; // construct parameter marks for (int i = 1; i < numVars; i++) marks += ", ?"; String prepareString = "call " + stmt.procName + marks + ")"; if (SanityManager.DEBUG) trace ("$$ prepareCall is: "+prepareString); CallableStatement cs = null; try { cs = (CallableStatement) stmt.prepare(prepareString); stmt.registerAllOutParams(); } catch (SQLException se) { if (! stmt.outputExpected || (!se.getSQLState().equals(SQLState.LANG_NO_METHOD_FOUND))) throw se; if (SanityManager.DEBUG) trace("****** second try with return parameter..."); // Save first SQLException most likely suspect if (numVars == 1) prepareString = "? = call " + stmt.procName +"()"; else prepareString = "? = call " + stmt.procName +"("+marks.substring(3) + ")"; if (SanityManager.DEBUG) trace ("$$ prepareCall is: "+prepareString); try { cs = (CallableStatement) stmt.prepare(prepareString); } catch (SQLException se2) { // The first exception is the most likely suspect throw se; } } ps = cs; stmt.ps = ps; } reader.readBytes(6); // descriptor footer break; // optional case CodePoint.FDODTA: EmbedParameterSetMetaData pmeta = stmt.getParameterMetaData(); reader.readByte(); // row indicator final int numVars = stmt.getNumParams(); for (int i = 0; i < numVars; i++) { final DRDAStatement.CliParam cp = stmt.getCliParam(i); if ((cp.drdaType & 0x1) == 0x1) // nullable { int nullData = reader.readUnsignedByte(); if ((nullData & 0xFF) == FdocaConstants.NULL_DATA) { if (SanityManager.DEBUG) trace("******param null"); if (pmeta.getParameterMode(i + 1) != JDBC30Translation.PARAMETER_MODE_OUT ) ps.setNull(i+1, pmeta.getParameterType(i+1)); if (stmt.isOutputParam(i+1)) stmt.registerOutParam(i+1); continue; } } // not null, read and set it readAndSetParams(i, stmt, cp, pmeta); } break; case CodePoint.EXTDTA: readAndSetAllExtParams(stmt); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/803c7d07414dbdfffdd7937a8ad18dde6012c220/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1109, 3997, 9081, 37, 67, 1252, 12, 6331, 9793, 3406, 3480, 13, 1216, 16801, 9793, 5752, 503, 16, 23116, 202, 95, 202, 202, 29325, 4250, 273, 3480, 18, 588, 29325, 5621, 3639, 727, 1250, 1240, 1370, 273, 261, 10589, 18, 588, 2578, 1370, 1435, 405, 374, 1769, 540, 202, 202, 10530, 18, 3355, 2532, 5621, 1082, 3639, 509, 18614, 273, 2949, 18, 588, 31536, 5621, 202, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 202, 202, 95, 9506, 202, 9610, 261, 710, 2148, 13, 9506, 202, 95, 6862, 202, 759, 1931, 6862, 202, 3593, 3356, 2148, 18, 16894, 1212, 2312, 30, 25083, 202, 17523, 261, 10530, 18, 588, 40, 10956, 1782, 1435, 405, 1666, 13, 368, 1814, 336, 1569, 1123, 268, 330, 1142, 1666, 1160, 6862, 202, 95, 25083, 202, 474, 302, 2351, 43, 13832, 2891, 273, 2949, 18, 896, 13290, 3216, 5621, 25083, 202, 474, 818, 5555, 382, 43, 13832, 273, 261, 72, 2351, 43, 13832, 2891, 300, 890, 13, 342, 890, 31, 25083, 202, 430, 261, 55, 10417, 1318, 18, 9394, 13, 15106, 202, 5129, 2932, 2107, 434, 4153, 316, 333, 1041, 353, 30, 13773, 2107, 5555, 382, 43, 13832, 1769, 25083, 202, 10530, 18, 896, 3216, 5621, 202, 202, 759, 6882, 1469, 559, 25083, 202, 10530, 18, 896, 3216, 5621, 202, 202, 759, 612, 25083, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 818, 5555, 382, 43, 13832, 31, 525, 27245, 25083, 202, 95, 18701, 727, 1160, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 918, 1109, 3997, 9081, 37, 67, 1252, 12, 6331, 9793, 3406, 3480, 13, 1216, 16801, 9793, 5752, 503, 16, 23116, 202, 95, 202, 202, 29325, 4250, 273, 3480, 18, 588, 29325, 5621, 3639, 727, 1250, 1240, 1370, 273, 261, 10589, 18, 588, 2578, 1370, 1435, 405, 374, 1769, 540, 202, 202, 10530, 18, 3355, 2532, 5621, 1082, 3639, 509, 18614, 273, 2949, 18, 588, 31536, 5621, 202, 202, 17523, 261, 710, 2148, 480, 300, 21, 13, 202, 202, 95, 9506, 202, 9610, 261, 710, 2148, 13, 9506, 202, 95, 6862, 202, 759, 1931, 6862, 202, 3593, 3356, 2148, 18, 16894, 1212, 2312, 30, 25083, 202, 17523, 261, 10530, 18, 588, 40, 10956, 1782, 1435, 405, 1666, 2 ]