rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
priorities = new ArrayList<TracPriority>(values.size()); | data.priorities = new ArrayList<TracPriority>(values.size()); | public void updateAttributes(IProgressMonitor monitor) throws TracException { monitor.beginTask("Updating attributes", IProgressMonitor.UNKNOWN); GetMethod method = connect(repositoryUrl + ITracClient.NEW_TICKET_URL); try { BufferedReader reader = new BufferedReader(new InputStreamReader(method.getResponseBodyAsStream(), ITracClient.CHARSET)); HtmlStreamTokenizer tokenizer = new HtmlStreamTokenizer(reader, null); for (Token token = tokenizer.nextToken(); token.getType() != Token.EOF; token = tokenizer.nextToken()) { if (monitor.isCanceled()) { throw new OperationCanceledException(); } if (token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.SELECT) { String name = tag.getAttribute("id"); if ("component".equals(name)) { List<String> values = getOptionValues(tokenizer); components = new ArrayList<TracComponent>(values.size()); for (String value : values) { components.add(new TracComponent(value)); } } else if ("milestone".equals(name)) { List<String> values = getOptionValues(tokenizer); milestones = new ArrayList<TracMilestone>(values.size()); for (String value : values) { milestones.add(new TracMilestone(value)); } } else if ("priority".equals(name)) { List<String> values = getOptionValues(tokenizer); priorities = new ArrayList<TracPriority>(values.size()); for (int i = 0; i < values.size(); i++) { priorities.add(new TracPriority(values.get(i), i + 1)); } } else if ("severity".equals(name)) { List<String> values = getOptionValues(tokenizer); severities = new ArrayList<TracSeverity>(values.size()); for (int i = 0; i < values.size(); i++) { severities.add(new TracSeverity(values.get(i), i + 1)); } } else if ("type".equals(name)) { List<String> values = getOptionValues(tokenizer); ticketTypes = new ArrayList<TracTicketType>(values.size()); for (int i = 0; i < values.size(); i++) { ticketTypes.add(new TracTicketType(values.get(i), i + 1)); } } else if ("version".equals(name)) { List<String> values = getOptionValues(tokenizer); versions = new ArrayList<TracVersion>(values.size()); for (String value : values) { versions.add(new TracVersion(value)); } } } } } ticketResolutions = new ArrayList<TracTicketResolution>(5); ticketResolutions.add(new TracTicketResolution("fixed", 1)); ticketResolutions.add(new TracTicketResolution("invalid", 2)); ticketResolutions.add(new TracTicketResolution("wontfix", 3)); ticketResolutions.add(new TracTicketResolution("duplicate", 4)); ticketResolutions.add(new TracTicketResolution("worksforme", 5)); ticketStatus = new ArrayList<TracTicketStatus>(4); ticketStatus.add(new TracTicketStatus("new", 1)); ticketStatus.add(new TracTicketStatus("assigned", 2)); ticketStatus.add(new TracTicketStatus("reopened", 3)); ticketStatus.add(new TracTicketStatus("closed", 4)); } catch (IOException e) { throw new TracException(e); } catch (ParseException e) { throw new TracException(e); } finally { method.releaseConnection(); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/fedb2441b9ffa74538e5b1135e14e2185d5b4c72/Trac09Client.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/core/Trac09Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
45,
5491,
7187,
6438,
13,
1216,
2197,
71,
503,
288,
202,
202,
10259,
18,
10086,
2174,
2932,
17858,
1677,
3113,
467,
5491,
7187,
18,
14737,
1769,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
45,
5491,
7187,
6438,
13,
1216,
2197,
71,
503,
288,
202,
202,
10259,
18,
10086,
2174,
2932,
17858,
1677,
3113,
467,
5491,
7187,
18,
14737,
1769,
202,
202,
... |
return ValidationError.error("error"); | return ValidationStatus.error("error"); | public void testBindingListeners() { final int[] calls = new int[] { 0, 0 }; // this exact sequence of positions are not API and may change from // release to release. // This is just here to check that we got a sane sequence of pipeline // positions // and to catch when the sequence changes when we don't expect it to // change. // // See BindingEvent#pipelinePosition for details. final int[] pipelinePositions = new int[] { 0, 1, 2, 3, 4, 0, 2, 4, 1, 0, 1, 2, 0, 2, 4, 1 }; WritableValue settableValue1 = new WritableValue(Object.class); WritableValue settableValue2 = new WritableValue(Object.class); Object o1 = new Object(); Object o2 = new Object(); settableValue1.setValue(o1); settableValue2.setValue(o2); DataBindingContext dbc = new DataBindingContext(); Binding binding = dbc.bindValue(settableValue1, settableValue2, null); binding.addBindingEventListener(new IBindingListener() { public ValidationError bindingEvent(BindingEvent e) { // Make sure we get the right sequence of pipeline positions assertEquals("Unexpected pipeline position at call #" + calls[0], pipelinePositions[calls[0]], e.pipelinePosition); calls[0]++; return null; } }); binding.addBindingEventListener(new IBindingListener() { public ValidationError bindingEvent(BindingEvent e) { calls[1]++; return null; } }); assertEquals(o2, settableValue1.getValue()); assertEquals( "Both binding events should be called the same number of times", calls[0], calls[1]); settableValue1.setValue(o1); assertEquals(o1, settableValue2.getValue()); assertEquals( "Both binding events should be called the same number of times", calls[0], calls[1]); settableValue2.setValue(o2); assertEquals( "Both binding events should be called the same number of times", calls[0], calls[1]); assertEquals(o2, settableValue1.getValue()); // Now test forcing an error from the event handler... binding.addBindingEventListener(new IBindingListener() { public ValidationError bindingEvent(BindingEvent e) { if (e.pipelinePosition == BindingEvent.PIPELINE_AFTER_CONVERT) { return ValidationError.error("error"); } return null; } }); settableValue1.setValue(o1); settableValue2.setValue(o2); assertEquals( "Both binding events should be called the same number of times", calls[0], calls[1]); assertEquals("binding events should be called at least once", true, calls[0] > 0); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/646de6c1228ca0820a97e225df84d75e3993e272/ValueBindingTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/ValueBindingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5250,
5583,
1435,
288,
3639,
727,
509,
8526,
4097,
273,
394,
509,
8526,
288,
374,
16,
374,
289,
31,
3639,
368,
333,
5565,
3102,
434,
6865,
854,
486,
1491,
471,
2026,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5250,
5583,
1435,
288,
3639,
727,
509,
8526,
4097,
273,
394,
509,
8526,
288,
374,
16,
374,
289,
31,
3639,
368,
333,
5565,
3102,
434,
6865,
854,
486,
1491,
471,
2026,
25... |
FunctionTemplate newElement = new FunctionTemplate( parent, name ); | FunctionTemplateDeclaration newElement = new FunctionTemplateDeclaration( parent, name ); | private FunctionDeclaration createFunctionSpecification(Parent parent, IASTFunction functionDeclaration, boolean isTemplate) throws CModelException { String name = functionDeclaration.getName(); if ((name == null) || (name.length() <= 0)) { // Something is wrong, skip this element return null; } // get parameters types String[] parameterTypes = ASTUtil.getFunctionParameterTypes(functionDeclaration); FunctionDeclaration element = null; if( functionDeclaration instanceof IASTMethod ) { IASTMethod methodDeclaration = (IASTMethod) functionDeclaration; MethodDeclaration methodElement = null; if (methodDeclaration.hasFunctionBody()) { // method if(!isTemplate){ Method newElement = new Method( parent, name ); methodElement = newElement; }else { MethodTemplate newElement = new MethodTemplate(parent, name); methodElement = newElement; } } else { // method declaration if(!isTemplate){ MethodDeclaration newElement = new MethodDeclaration( parent, name ); methodElement = newElement; }else { MethodTemplate newElement = new MethodTemplate(parent, name); methodElement = newElement; } } methodElement.setParameterTypes(parameterTypes); methodElement.setReturnType( ASTUtil.getType(functionDeclaration.getReturnType()) ); methodElement.setStatic(functionDeclaration.isStatic()); // Common settings for method declaration methodElement.setVisibility(methodDeclaration.getVisiblity()); methodElement.setVolatile(methodDeclaration.isVolatile()); methodElement.setConst(methodDeclaration.isConst()); methodElement.setVirtual(methodDeclaration.isVirtual()); methodElement.setPureVirtual(methodDeclaration.isPureVirtual()); methodElement.setInline(methodDeclaration.isInline()); methodElement.setFriend(methodDeclaration.isFriend()); methodElement.setConstructor(methodDeclaration.isConstructor()); methodElement.setDestructor(methodDeclaration.isDestructor()); element = methodElement; } else // instance of IASTFunction { FunctionDeclaration functionElement = null; if (functionDeclaration.hasFunctionBody()) { // function if(!isTemplate){ Function newElement = new Function( parent, name ); functionElement = newElement; } else { FunctionTemplate newElement = new FunctionTemplate( parent, name ); functionElement = newElement; } } else { // functionDeclaration if(!isTemplate){ FunctionDeclaration newElement = new FunctionDeclaration( parent, name ); functionElement = newElement; } else { FunctionTemplate newElement = new FunctionTemplate( parent, name ); functionElement = newElement; } } functionElement.setParameterTypes(parameterTypes); functionElement.setReturnType( ASTUtil.getType(functionDeclaration.getReturnType()) ); functionElement.setStatic(functionDeclaration.isStatic()); element = functionElement; } // add to parent parent.addChild( element ); // hook up the offsets element.setIdPos( functionDeclaration.getNameOffset(), (functionDeclaration.getNameEndOffset() - functionDeclaration.getNameOffset()) ); if(!isTemplate){ // set the element position element.setPos(functionDeclaration.getStartingOffset(), functionDeclaration.getEndingOffset() - functionDeclaration.getStartingOffset()); } element.setLines( functionDeclaration.getStartingLine(), functionDeclaration.getEndingLine() ); this.newElements.put(element, element.getElementInfo()); return element; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/dd2d2f9a52db3f3bdb4053be6286f0e185ffad86/CModelBuilder.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4284,
6094,
752,
2083,
8615,
12,
3054,
982,
16,
467,
9053,
2083,
445,
6094,
16,
1250,
353,
2283,
13,
1216,
385,
1488,
503,
565,
288,
377,
1082,
202,
780,
508,
273,
445,
6094,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4284,
6094,
752,
2083,
8615,
12,
3054,
982,
16,
467,
9053,
2083,
445,
6094,
16,
1250,
353,
2283,
13,
1216,
385,
1488,
503,
565,
288,
377,
1082,
202,
780,
508,
273,
445,
6094,... |
this.setBounds(x, y, width, height); layeredPane.add(this, JLayeredPane.POPUP_LAYER, 0); | c.setBounds(x, y, width, height); layeredPane.add(c, JLayeredPane.POPUP_LAYER, 0); | public void show(int x, int y, int width, int height) { JLayeredPane layeredPane; layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane(); this.setBounds(x, y, width, height); layeredPane.add(this, JLayeredPane.POPUP_LAYER, 0); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
565,
288,
1377,
804,
4576,
329,
8485,
3018,
329,
8485,
31,
1377,
3018,
329,
8485,
273,
26145,
11864,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
13,
565,
288,
1377,
804,
4576,
329,
8485,
3018,
329,
8485,
31,
1377,
3018,
329,
8485,
273,
26145,
11864,
18,
... |
getFigure( ).getBounds( ).height - ( getFigure( ).getInsets( ).top + getFigure( ).getInsets( ).bottom ) ); | TableUtil.getTableContentsHeight(this) ); | public void selectColumn( int[] numbers ) { if ( numbers == null || numbers.length == 0 ) { return; } ArrayList list = new ArrayList( ); int size = numbers.length; int width = 0; int minColumnnumber = numbers[0]; for ( int i = 0; i < size; i++ ) { if ( minColumnnumber > numbers[i] ) { minColumnnumber = numbers[i]; } width = width + TableUtil.caleVisualWidth( this, getColumn( numbers[i] ) ); list.add( new DummyColumnEditPart( getColumn( numbers[i] ) ) ); } for ( int i = 0; i < size; i++ ) { int rowNumber = getTableAdapter( ).getRowCount( ); for ( int j = 0; j < rowNumber; j++ ) { TableCellEditPart part = getCell( j + 1, numbers[i] ); if ( part != null ) { list.add( part ); } } } int x = TableUtil.caleX( this, minColumnnumber ); Rectangle rect = new Rectangle( x, 0, width, getFigure( ).getBounds( ).height - ( getFigure( ).getInsets( ).top + getFigure( ).getInsets( ).bottom ) ); setSelectRowAndColumnRect( rect ); getViewer( ).setSelection( new StructuredSelection( list ) ); setSelectRowAndColumnRect( null ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e0aeea1d7b73056e59d762386715a9e1c354a716/TableEditPart.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
1494,
12,
509,
8526,
5600,
262,
202,
95,
202,
202,
430,
261,
5600,
422,
446,
747,
5600,
18,
2469,
422,
374,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
1494,
12,
509,
8526,
5600,
262,
202,
95,
202,
202,
430,
261,
5600,
422,
446,
747,
5600,
18,
2469,
422,
374,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
... |
HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + "." + configName); | HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + '.' + configName); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { SubConfig[] sc = config.getConfigs(); Arrays.sort(sc); boolean advancedEnabled = core.isAdvancedDarknetEnabled(); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet Node Configuration of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); contentNode.addChild(core.alerts.createSummary()); if(advancedEnabled){ HTMLNode navigationBar = ctx.getPageMaker().getInfobox("navbar", "Configuration Navigation"); HTMLNode navigationContent = ctx.getPageMaker().getContentNode(navigationBar).addChild("ul"); for(int i=0; i<sc.length;i++){ navigationContent.addChild("li").addChild("a", "href", "#"+sc[i].getPrefix(), sc[i].getPrefix()); } contentNode.addChild(navigationBar); } HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-normal"); infobox.addChild("div", "class", "infobox-header", "Freenet node configuration"); HTMLNode configNode = infobox.addChild("div", "class", "infobox-content"); HTMLNode formNode = configNode.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); formNode.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); for(int i=0; i<sc.length;i++){ short displayedConfigElements = 0; Option[] o = sc[i].getOptions(); HTMLNode configGroupUlNode = new HTMLNode("ul", "class", "config"); for(int j=0; j<o.length; j++){ if(! (!advancedEnabled && o[j].isExpert())){ displayedConfigElements++; String configName = o[j].getName(); HTMLNode configItemNode = configGroupUlNode.addChild("li"); configItemNode.addChild("span", "class", "configshortdesc", o[j].getShortDesc()); HTMLNode configItemValueNode = configItemNode.addChild("span", "class", "config"); if(o[j].getValueString() == null){ Logger.error(this, sc[i].getPrefix() + configName + "has returned null from config!);"); continue; } if(o[j].getValueString().equals("true") || o[j].getValueString().equals("false")){ HTMLNode selectNode = configItemValueNode.addChild("select", "name", sc[i].getPrefix() + "." + configName); if(o[j].getValueString().equals("true")){ selectNode.addChild("option", new String[] { "value", "selected" }, new String[] { "true", "selected" }, "true"); selectNode.addChild("option", "value", "false", "false"); }else{ selectNode.addChild("option", "value", "true", "true"); selectNode.addChild("option", new String[] { "value", "selected" }, new String[] { "false", "selected" }, "false"); } }else{ configItemValueNode.addChild("input", new String[] { "type", "class", "alt", "name", "value" }, new String[] { "text", "config", o[j].getShortDesc(), sc[i].getPrefix() + "." + configName, o[j].getValueString() }); } configItemNode.addChild("span", "class", "configlongdesc", o[j].getLongDesc()); } } if(displayedConfigElements>0) { formNode.addChild("div", "class", "configprefix", sc[i].getPrefix()); formNode.addChild("a", "name", sc[i].getPrefix()); formNode.addChild(configGroupUlNode); } } formNode.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Apply" }); formNode.addChild("input", new String[] { "type", "value" }, new String[] { "reset", "Reset" }); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ConfigToadlet.java/buggy/src/freenet/clients/http/ConfigToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
... |
return jjStopAtPos(0, 31); case 60: jjmatchedKind = 35; return jjMoveStringLiteralDfa1_0(0x1000000000L); | return jjStopAtPos(0, 34); case 58: return jjStopAtPos(0, 5); | private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 33: jjmatchedKind = 41; return jjMoveStringLiteralDfa1_0(0x10000000000L); case 35: jjmatchedKind = 15; return jjMoveStringLiteralDfa1_0(0x5000L); case 37: return jjStopAtPos(0, 32); case 38: return jjMoveStringLiteralDfa1_0(0x200000000L); case 40: return jjStopAtPos(0, 5); case 42: return jjStopAtPos(0, 30); case 43: return jjStopAtPos(0, 29); case 44: return jjStopAtPos(0, 3); case 45: return jjStartNfaWithStates_0(0, 28, 31); case 46: return jjMoveStringLiteralDfa1_0(0x10L); case 47: return jjStopAtPos(0, 31); case 60: jjmatchedKind = 35; return jjMoveStringLiteralDfa1_0(0x1000000000L); case 61: jjmatchedKind = 42; return jjMoveStringLiteralDfa1_0(0x8000000000L); case 62: jjmatchedKind = 37; return jjMoveStringLiteralDfa1_0(0x4000000000L); case 91: return jjStopAtPos(0, 1); case 93: return jjStopAtPos(0, 2); case 102: return jjMoveStringLiteralDfa1_0(0x4000000L); case 116: return jjMoveStringLiteralDfa1_0(0x2000000L); case 124: return jjMoveStringLiteralDfa1_0(0x400000000L); default : return jjMoveNfa_0(0, 0); }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
20170,
31,
540,
327,
10684,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
20170,
31,
540,
327,
10684,
76... |
protected void removeInternalPrimaryKeyIndex(Table table) | protected void removeInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table) throws SQLException | protected void removeInternalPrimaryKeyIndex(Table table) { Column[] pks = table.getPrimaryKeyColumns(); List columnNames = new ArrayList(); for (int columnIdx = 0; columnIdx < pks.length; columnIdx++) { columnNames.add(pks[columnIdx].getName()); } for (int indexIdx = 0; indexIdx < table.getIndexCount(); indexIdx++) { Index index = table.getIndex(indexIdx); if (index.isUnique() && matches(index, columnNames) && isInternalPrimaryKeyIndex(table, index)) { table.removeIndex(indexIdx); break; } } } | 3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/9525fc3dddedf7411a36dd99e21ceb6315e3db55/JdbcModelReader.java/clean/src/java/org/apache/ddlutils/platform/JdbcModelReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
3061,
11575,
1016,
12,
4254,
6998,
3611,
11651,
16,
3555,
1014,
13,
1216,
6483,
565,
288,
3639,
4753,
8526,
24871,
540,
273,
1014,
18,
588,
11575,
3380,
5621,
3639,
987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
3061,
11575,
1016,
12,
4254,
6998,
3611,
11651,
16,
3555,
1014,
13,
1216,
6483,
565,
288,
3639,
4753,
8526,
24871,
540,
273,
1014,
18,
588,
11575,
3380,
5621,
3639,
987,
... |
element.set(null); info.setLive(false); node.internalSetProperty(Constants.JCR_LOCKOWNER, null); node.internalSetProperty(Constants.JCR_LOCKISDEEP, null); node.save(); | public synchronized void unlock(NodeImpl node) throws LockException, RepositoryException { // check whether node is locked by this session Path path = node.getPrimaryPath(); PathMap.Element element = lockMap.map(path, true); if (element == null) { throw new LockException("Node not locked: " + node.safeGetJCRPath()); } LockInfo info = (LockInfo) element.get(); if (info == null) { throw new LockException("Node not locked: " + node.safeGetJCRPath()); } if (!node.getSession().equals(info.getLockHolder())) { throw new LockException("Node not locked by session: " + node.safeGetJCRPath()); } // remove lock in path map element.set(null); info.setLive(false); // remove properties in content node.internalSetProperty(Constants.JCR_LOCKOWNER, null); node.internalSetProperty(Constants.JCR_LOCKISDEEP, null); node.save(); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/0debae1d9ea3dff55d72166e0f782dcc95737f05/LockManagerImpl.java/clean/core/src/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
7186,
12,
907,
2828,
756,
13,
5411,
1216,
3488,
503,
16,
13367,
288,
3639,
368,
866,
2856,
756,
353,
8586,
635,
333,
1339,
3639,
2666,
589,
273,
756,
18,
588,
6793,
743... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
7186,
12,
907,
2828,
756,
13,
5411,
1216,
3488,
503,
16,
13367,
288,
3639,
368,
866,
2856,
756,
353,
8586,
635,
333,
1339,
3639,
2666,
589,
273,
756,
18,
588,
6793,
743... | |
ElementListSelectionDialog dialog = new ElementListSelectionDialog( PDEPlugin.getActiveWorkbenchShell(), new ImportPackageDialogLabelProvider()); dialog.setElements(getAvailablePackages()); dialog.setMultipleSelection(true); dialog.setMessage(PDEUIMessages.ImportPackageSection_exported); dialog.setTitle(PDEUIMessages.ImportPackageSection_selection); dialog.create(); SWTUtil.setDialogSize(dialog, 400, 500); | final ConditionalListSelectionDialog dialog = new ConditionalListSelectionDialog( PDEPlugin.getActiveWorkbenchShell(), new ImportPackageDialogLabelProvider(), PDEUIMessages.ImportPackageSection_dialogButtonLabel); Runnable runnable = new Runnable() { public void run() { setElements(dialog); dialog.setMultipleSelection(true); dialog.setMessage(PDEUIMessages.ImportPackageSection_exported); dialog.setTitle(PDEUIMessages.ImportPackageSection_selection); dialog.create(); SWTUtil.setDialogSize(dialog, 400, 500); } }; BusyIndicator.showWhile(Display.getCurrent(), runnable); | private void handleAdd() { ElementListSelectionDialog dialog = new ElementListSelectionDialog( PDEPlugin.getActiveWorkbenchShell(), new ImportPackageDialogLabelProvider()); dialog.setElements(getAvailablePackages()); dialog.setMultipleSelection(true); dialog.setMessage(PDEUIMessages.ImportPackageSection_exported); dialog.setTitle(PDEUIMessages.ImportPackageSection_selection); dialog.create(); SWTUtil.setDialogSize(dialog, 400, 500); if (dialog.open() == Window.OK) { Object[] selected = dialog.getResult(); if (fHeader != null) { for (int i = 0; i < selected.length; i++) { ExportPackageDescription candidate = (ExportPackageDescription) selected[i]; fHeader.addPackage(new ImportPackageObject(fHeader, candidate, getVersionAttribute())); } } else { getBundle().setHeader(Constants.IMPORT_PACKAGE, getValue(selected)); } } } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/10343abb52ec70aeb3f71b74baf2b44b19243c87/ImportPackageSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
986,
1435,
288,
4202,
3010,
682,
6233,
6353,
6176,
273,
394,
3010,
682,
6233,
6353,
12,
7734,
453,
1639,
3773,
18,
588,
3896,
2421,
22144,
13220,
9334,
1171,
394,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
986,
1435,
288,
4202,
3010,
682,
6233,
6353,
6176,
273,
394,
3010,
682,
6233,
6353,
12,
7734,
453,
1639,
3773,
18,
588,
3896,
2421,
22144,
13220,
9334,
1171,
394,
61... |
MylarPlugin.log("Could not load dyanmic popup menu: " + dynamicPopupContributor.getClass().getCanonicalName() + " must implement " + IDynamicSubMenuContributor.class.getCanonicalName(), thisReader); | MylarPlugin.log("Could not load dyanmic popup menu: " + dynamicPopupContributor.getClass().getCanonicalName() + " must implement " + IDynamicSubMenuContributor.class.getCanonicalName(), null); | private static void readDynamicPopupContributor(IConfigurationElement element) { try{ Object dynamicPopupContributor = element.createExecutableExtension(DYNAMIC_POPUP_CLASS_ID); if (dynamicPopupContributor instanceof IDynamicSubMenuContributor) { MylarTasklistPlugin.getDefault().addDynamicPopupContributor((IDynamicSubMenuContributor) dynamicPopupContributor); } else { MylarPlugin.log("Could not load dyanmic popup menu: " + dynamicPopupContributor.getClass().getCanonicalName() + " must implement " + IDynamicSubMenuContributor.class.getCanonicalName(), thisReader); } } catch (CoreException e){ MylarPlugin.log(e, "Could not load dynamic popup extension"); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c66e1abc548299095f0992ffd278426ba0fc3203/TaskListExtensionReader.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskListExtensionReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
855,
9791,
13770,
442,
19293,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
698,
95,
1082,
202,
921,
5976,
13770,
442,
19293,
273,
930,
18,
2640,
17709,
3625,
12,
40,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
855,
9791,
13770,
442,
19293,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
698,
95,
1082,
202,
921,
5976,
13770,
442,
19293,
273,
930,
18,
2640,
17709,
3625,
12,
40,... |
JJCalls p = jj_2_rtns[index]; while (p.gen > jj_gen) { if (p.next == null) { p = p.next = new JJCalls(); break; } p = p.next; } p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla; | JJCalls p = jj_2_rtns[index]; while (p.gen > jj_gen) { if (p.next == null) { p = p.next = new JJCalls(); break; } p = p.next; | final private void jj_save(int index, int xla) { JJCalls p = jj_2_rtns[index]; while (p.gen > jj_gen) { if (p.next == null) { p = p.next = new JJCalls(); break; } p = p.next; } p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
918,
10684,
67,
5688,
12,
474,
770,
16,
509,
619,
11821,
13,
288,
3639,
804,
46,
10125,
293,
273,
10684,
67,
22,
67,
3797,
2387,
63,
1615,
15533,
3639,
1323,
261,
84,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
3238,
918,
10684,
67,
5688,
12,
474,
770,
16,
509,
619,
11821,
13,
288,
3639,
804,
46,
10125,
293,
273,
10684,
67,
22,
67,
3797,
2387,
63,
1615,
15533,
3639,
1323,
261,
84,
18,
4... |
IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null) { return; | if(this.getActivePage() != 0) { this.switchToJava(); | public void doRevertToSaved() { IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null) { return; } if(!(editorPart instanceof ITextEditor)) { return; } ITextEditor textEditor = (ITextEditor)editorPart; textEditor.doRevertToSaved(); } | 46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/cfa60f4c7c64179ca3e944698b55b7f81acf67a1/ComponentEditor.java/clean/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/part/ComponentEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
426,
1097,
774,
16776,
1435,
288,
202,
202,
45,
6946,
1988,
4858,
1988,
273,
333,
18,
588,
3896,
6946,
5621,
202,
202,
430,
12,
9177,
1988,
422,
446,
13,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
426,
1097,
774,
16776,
1435,
288,
202,
202,
45,
6946,
1988,
4858,
1988,
273,
333,
18,
588,
3896,
6946,
5621,
202,
202,
430,
12,
9177,
1988,
422,
446,
13,
288,
1082,
... |
this.listeners.remove( l ); | this.listeners.remove(l); | public void removeTreeModelListener( TreeModelListener l ) { this.listeners.remove( l ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/DOMInspector.java/clean/src/java/org/xhtmlrenderer/swing/DOMInspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
2471,
1488,
2223,
12,
4902,
1488,
2223,
328,
262,
288,
3639,
333,
18,
16072,
18,
4479,
12,
80,
1769,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
2471,
1488,
2223,
12,
4902,
1488,
2223,
328,
262,
288,
3639,
333,
18,
16072,
18,
4479,
12,
80,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (name1.startsWith("* ")) name1 = name1.substring(2); if (name2.startsWith("* ")) name2 = name2.substring(2); | String prefix = DefaultEditorPresentation.DIRTY_PREFIX; if (name1.startsWith(prefix)) name1 = name1.substring(prefix.length()); if (name2.startsWith(prefix)) name2 = name2.substring(prefix.length()); | public int compare(Viewer viewer, Object e1, Object e2) { int cat1 = category(e1); int cat2 = category(e2); if (cat1 != cat2) return cat1 - cat2; // cat1 == cat2 String name1; String name2; if (viewer == null || !(viewer instanceof ContentViewer)) { name1 = e1.toString(); name2 = e2.toString(); } else { IBaseLabelProvider prov = ((ContentViewer) viewer).getLabelProvider(); if (prov instanceof ILabelProvider) { ILabelProvider lprov = (ILabelProvider) prov; name1 = lprov.getText(e1); name2 = lprov.getText(e2); // ILabelProvider's implementation in BasicStackList calls // DefaultEditorPresentation.getLabelText which returns the name of dirty // files begining with "* ", sorting should not take "* " in consideration if (name1.startsWith("* ")) //$NON-NLS-1$ name1 = name1.substring(2); if (name2.startsWith("* ")) //$NON-NLS-1$ name2 = name2.substring(2); } else { name1 = e1.toString(); name2 = e2.toString(); } } if (name1 == null) name1 = "";//$NON-NLS-1$ if (name2 == null) name2 = "";//$NON-NLS-1$ return collator.compare(name1, name2); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/186894c2caa3a22a62b5d24893355a9c08ba80e4/BasicStackList.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicStackList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
377,
202,
202,
474,
6573,
21,
273,
3150,
12,
73,
21,
1769,
377,
202,
202,
474,
6573,
22,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
377,
202,
202,
474,
6573,
21,
273,
3150,
12,
73,
21,
1769,
377,
202,
202,
474,
6573,
22,
273,
... |
SubmittedValueEntry sve = fossilizedconverter.parseBinding(key, values[0]); rsvc.addEntry(sve); Logger.log.info("Discovered noncomponent binding for " + sve.valuebinding + " rvalue " + sve.newvalue); | for (int i = 0; i < values.length; ++ i) { SubmittedValueEntry sve = fossilizedconverter.parseBinding(key, values[i]); rsvc.addEntry(sve); Logger.log.info("Discovered noncomponent binding for " + sve.valuebinding + " rvalue " + sve.newvalue); } | public void parseRequest(RequestSubmittedValueCache rsvc) { // Firstly acquire all non-component ("pure") bindings for (Iterator keyit = normalizedrequest.keySet().iterator(); keyit .hasNext();) { String key = (String) keyit.next(); String[] values = (String[]) normalizedrequest.get(key); Logger.log.info("PostInit: key " + key + " value " + values[0]); if (fossilizedconverter.isNonComponentBinding(key)) { SubmittedValueEntry sve = fossilizedconverter.parseBinding(key, values[0]); rsvc.addEntry(sve); Logger.log.info("Discovered noncomponent binding for " + sve.valuebinding + " rvalue " + sve.newvalue); } // Secondly assess whether this was a component fossilised binding. else if (fossilizedconverter.isFossilisedBinding(key) && values.length > 0) { SubmittedValueEntry sve = fossilizedconverter.parseFossil(key, values[0]); // Grab dependent values which we can now deduce may be in the request String[] newvalue = (String[]) normalizedrequest.get(sve.componentid); sve.newvalue = newvalue; fossilizedconverter.fixupNewValue(sve, rendersystemstatic, key, values[0]); String[] reshaper = (String[]) normalizedrequest.get(fossilizedconverter.getReshaperKey(sve.componentid)); if (reshaper != null) { sve.reshaperbinding = reshaper[0]; } Logger.log.info("Discovered fossilised binding for " + sve.valuebinding + " for component " + sve.componentid + " with old value " + sve.oldvalue); rsvc.addEntry(sve); } } } | 45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/78eac849dbd1f91385e84dce87b59eed8f8d70da/PostDecoder.java/clean/src/uk/org/ponder/rsf/processor/PostDecoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1109,
691,
12,
691,
28882,
620,
1649,
3597,
4227,
13,
288,
282,
368,
5783,
715,
10533,
777,
1661,
17,
4652,
7566,
84,
594,
7923,
7394,
565,
364,
261,
3198,
498,
305,
273,
564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
691,
12,
691,
28882,
620,
1649,
3597,
4227,
13,
288,
282,
368,
5783,
715,
10533,
777,
1661,
17,
4652,
7566,
84,
594,
7923,
7394,
565,
364,
261,
3198,
498,
305,
273,
564... |
log.error(e); | System.err.println(e); | public static void main(String args[]) { PullPushTestMux t=new PullPushTestMux(); try { t.start(); } catch(Exception e) { log.error(e); } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/PullPushTestMux.java/clean/tests/other/org/jgroups/tests/PullPushTestMux.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
9629,
7621,
4709,
18561,
268,
33,
2704,
14899,
7621,
4709,
18561,
5621,
202,
698,
288,
202,
565,
268,
18,
1937,
5621,
202,
97,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
9629,
7621,
4709,
18561,
268,
33,
2704,
14899,
7621,
4709,
18561,
5621,
202,
698,
288,
202,
565,
268,
18,
1937,
5621,
202,
97,
20... |
if ( paramValue != null && paramValue.trim( ).length( ) <= 0 && !parameter.allowBlank( ) && parameter.getDataType( ).equalsIgnoreCase( DesignChoiceConstants.PARAM_TYPE_STRING ) ) { | if (paramValue != null && paramValue.trim().length() <= 0 && !parameter.allowBlank() && parameter.getDataType().equalsIgnoreCase( DesignChoiceConstants.PARAM_TYPE_STRING)) { | public boolean isMissingParameter( ) { boolean missingParameter = false; ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); HashMap params = (HashMap) this.getConfigVars( ); List parameters = model.getFlattenParameters( ); if ( parameters != null ) { for ( int i = 0; i < parameters.size( ); i++ ) { if ( parameters.get( i ) instanceof ScalarParameterHandle ) { ScalarParameterHandle parameter = ( (ScalarParameterHandle) parameters .get( i ) ); if ( parameter.isHidden( ) ) { continue; } String paramValue = null; if ( params != null && params.containsKey( parameter.getName( ) ) ) { Object curVal = params.get( parameter.getName( ) ); if ( curVal != null ) paramValue = curVal.toString( ); } else { paramValue = parameter.getDefaultValue( ); } if ( paramValue == null && !parameter.allowNull( ) ) { missingParameter = true; break; } if ( paramValue != null && paramValue.trim( ).length( ) <= 0 && !parameter.allowBlank( ) && parameter.getDataType( ).equalsIgnoreCase( DesignChoiceConstants.PARAM_TYPE_STRING ) ) { missingParameter = true; break; } } } } return missingParameter; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/464f907d246180ca04c84336398722e6d5245566/ReportPreviewFormPage.java/clean/UI/org.eclipse.birt.report.designer.ui.preview/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
4841,
1662,
12,
262,
202,
95,
202,
202,
6494,
3315,
1662,
273,
629,
31,
202,
202,
3120,
3259,
938,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9506,
202,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
353,
4841,
1662,
12,
262,
202,
95,
202,
202,
6494,
3315,
1662,
273,
629,
31,
202,
202,
3120,
3259,
938,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9506,
202,
18,
5... |
domainReport.addData(ipEntry.getDomain(),1); | domainReport.addData(ipEntry.getDomain(), 1); | public static void main (String [] args) throws Exception { String USAGE = "Usage: java SchedulerReport [options] <date (YYYY-MM-DD)> Enter -help for a list of options\n"; String HELP = "Where [options] are:\n"+ " -help Displays help\n"+ " -step <day|month> Specifies size of step (day by default)\n"+ " -n <steps> Specifies number of steps to do\n"; if (args.length == 0){ System.err.println(USAGE); System.exit(1); } else if (args.length == 1 && args[0].equalsIgnoreCase("-help")){ System.err.println(USAGE); System.err.println(HELP); System.exit(1); } int n = 1; String stepStr = "day"; for (int i=0;i<args.length-1;i++){ if (args[i].equals("-n")) { n = Integer.parseInt(args[++i]); } else if (args[i].equals("-step")) { stepStr = args[++i]; } else if (args[i].equalsIgnoreCase("-help")) { System.err.println(USAGE); System.err.println(HELP); System.exit(1); } else { System.err.println("Unknown argument: " + args[i]); System.exit(1); } } String inputDate = args[args.length-1]; DatabaseRetriever dbr = new DatabaseRetriever(); TimeStep ts = new TimeStep (stepStr, n, inputDate); HistogramParser internalReport = new HistogramParser("Internal MCS/ISI packets recieved", "internalhistogram", "% of Jobs from MCS/ISI", n); HistogramParser domainReport = new HistogramParser("Total Jobs Shown by Domain", "domainhistogram", "Number of Jobs", n); System.out.println("<report>"); while (ts.next()){ IPTable iptracker = new IPTable(); int totalJobs=0; String startDate = ts.getFormattedTime(); Date startTime = ts.getTime(); ts.stepTime(); internalReport.nextEntry(startDate, ts.getFormattedTime()); domainReport.nextEntry(startDate, ts.getFormattedTime()); ResultSet rs = dbr.retrieve("gram_packets",new String [] {"ip_address"}, startTime, ts.getTime()); while(rs.next()){ totalJobs++; IPEntry ipEntry = IPEntry.getIPEntry(rs.getString(1)); iptracker.addDomain(ipEntry.getDomain()); domainReport.addData(ipEntry.getDomain(),1); } if (iptracker.getDomains().containsKey("ISI")){ internalReport.addData("ISI", 100.0*((IPTable.DomainEntry)iptracker.getDomains().get("ISI")).getCount()/totalJobs); } else{ internalReport.addData("ISI",0); } if (iptracker.getDomains().containsKey("MCS")){ internalReport.addData("MCS", 100.0*((IPTable.DomainEntry)iptracker.getDomains().get("MCS")).getCount()/totalJobs); } else{ internalReport.addData("MCS",0); } } internalReport.output(System.out); domainReport.output(System.out); System.out.println("</report>");} | 8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/DomainReport.java/buggy/usage/java/reports/source/src/org/globus/usage/report/gram/DomainReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
288,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
12620,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
5698,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
288,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
12620,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
5698,
1... |
src.put (toPut); | put (toPut); | public FloatBuffer put (FloatBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { float[] toPut = new float [src.remaining ()]; src.get (toPut); src.put (toPut); } return this; } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/d1e713dce833f558f488ec5d2aa05a825cf0ef42/FloatBuffer.java/buggy/libjava/java/nio/FloatBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5450,
1892,
1378,
261,
4723,
1892,
1705,
13,
225,
288,
565,
309,
261,
4816,
422,
333,
13,
1377,
604,
394,
2754,
261,
1769,
565,
13855,
15526,
12,
4816,
18,
17956,
10663,
565,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5450,
1892,
1378,
261,
4723,
1892,
1705,
13,
225,
288,
565,
309,
261,
4816,
422,
333,
13,
1377,
604,
394,
2754,
261,
1769,
565,
13855,
15526,
12,
4816,
18,
17956,
10663,
565,
309,
... |
log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE, currentArchiveFile.getName(), | log.info(Messages.getMessage( DeploymentErrorMsgs.INVALID_MODULE, currentArchiveFile.getName(), | public void doDeploy() { if (wsToDeploy.size() > 0) { for (int i = 0; i < wsToDeploy.size(); i++) { currentArchiveFile = (ArchiveFileData) wsToDeploy.get(i); int type = currentArchiveFile.getType(); try { ArchiveReader archiveReader; StringWriter errorWriter = new StringWriter(); switch (type) { case SERVICE: currentArchiveFile.setClassLoader(extractServiceArchive); archiveReader = new ArchiveReader(); String serviceStatus = ""; try { // ServiceDescription service = archiveReader.createService(currentArchiveFile.getAbsolutePath()); ServiceDescription service = archiveReader.createService(currentArchiveFile); service.setClassLoader(currentArchiveFile.getClassLoader()); archiveReader.processServiceDescriptor(currentArchiveFile.getAbsolutePath(), this, service,extractServiceArchive);// archiveReader.readServiceArchive(currentArchiveFile.getAbsolutePath(),// this,// service); addnewService(service); log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS, currentArchiveFile.getName())); } catch (DeploymentException de) { log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE, currentArchiveFile.getName()));// log.info("DeploymentException " + de); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); de.printStackTrace(error_ptintWriter); serviceStatus = "Error:\n" + errorWriter.toString();// de.printStackTrace(); } catch (AxisFault axisFault) {// axisFault.printStackTrace(); log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE, currentArchiveFile.getName()));// log.info("AxisFault " + axisFault); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); axisFault.printStackTrace(error_ptintWriter); serviceStatus = "Error:\n" + errorWriter.toString(); } catch (Exception e) {// e.printStackTrace(); log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE, currentArchiveFile.getName()));// log.info("Exception " + e); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); e.printStackTrace(error_ptintWriter); serviceStatus = "Error:\n" + errorWriter.toString(); } finally { if (serviceStatus.startsWith("Error:")) { axisConfig.getFaulytServices().put(getAxisServiceName(currentArchiveFile.getName()), serviceStatus); } currentArchiveFile = null; } break; case MODULE: currentArchiveFile.setClassLoader(false); archiveReader = new ArchiveReader(); String moduleStatus = ""; try { ModuleDescription metaData = new ModuleDescription(); archiveReader.readModuleArchive(currentArchiveFile.getAbsolutePath(), this, metaData); addNewModule(metaData); log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_MODULE, metaData.getName().getLocalPart()));// "Moduel WS Name " +// currentArchiveFile.getName() +// " modulename :" +// metaData.getName()); } catch (DeploymentException e) {// e.printStackTrace(); log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE, currentArchiveFile.getName(), e.getMessage()));// "Invalid module" +// currentArchiveFile.getName());// log.info("DeploymentException " + e); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); e.printStackTrace(error_ptintWriter); moduleStatus = "Error:\n" + errorWriter.toString(); } catch (AxisFault axisFault) {// axisFault.printStackTrace(); log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE, currentArchiveFile.getName(), axisFault.getMessage())); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); axisFault.printStackTrace(error_ptintWriter); moduleStatus = "Error:\n" + errorWriter.toString(); } finally { if (moduleStatus.startsWith("Error:")) { axisConfig.getFaulytModules().put(getAxisServiceName(currentArchiveFile.getName()), moduleStatus); } currentArchiveFile = null; } break; } } catch (AxisFault axisFault) { log.info(Messages.getMessage(DeploymentErrorMsgs.SETTING_CL, axisFault.getMessage()));// continue; } } } wsToDeploy.clear(); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6b1c67016627307179e25dd8e61b3221863d41bb/DeploymentEngine.java/buggy/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
10015,
1435,
288,
3639,
309,
261,
4749,
774,
10015,
18,
1467,
1435,
405,
374,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4945,
774,
10015,
18,
1467,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
10015,
1435,
288,
3639,
309,
261,
4749,
774,
10015,
18,
1467,
1435,
405,
374,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4945,
774,
10015,
18,
1467,
5621... |
return apply2(-11, arg1, arg2); | return apply2(-1, arg1, arg2); | public static Object $Mn(Object arg1, Object arg2) { return apply2(-11, arg1, arg2); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/9a484eeea88504c17c8bc9262822b67e7b60c209/AddOp.java/clean/gnu/jemacs/lang/AddOp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
271,
29668,
12,
921,
1501,
21,
16,
1033,
1501,
22,
13,
225,
288,
565,
327,
2230,
22,
19236,
21,
16,
1501,
21,
16,
1501,
22,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1033,
271,
29668,
12,
921,
1501,
21,
16,
1033,
1501,
22,
13,
225,
288,
565,
327,
2230,
22,
19236,
21,
16,
1501,
21,
16,
1501,
22,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,... |
boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); if (!isOSX) { try { System.loadLibrary("jawt"); } catch (UnsatisfiedLinkError e) { if (e.getMessage().indexOf("already loaded") == -1) { throw e; | boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); if (!isOSX) { try { System.loadLibrary("jawt"); } catch (UnsatisfiedLinkError e) { if (e.getMessage().indexOf("already loaded") == -1) { throw e; } | public Object run() { boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); if (!isOSX) { try { System.loadLibrary("jawt"); } catch (UnsatisfiedLinkError e) { // Accessibility technologies load JAWT themselves; safe to continue // as long as JAWT is loaded by any loader if (e.getMessage().indexOf("already loaded") == -1) { throw e; } } } System.loadLibrary("jogl"); // Workaround for 4845371. // Make sure the first reference to the JNI GetDirectBufferAddress is done // from a privileged context so the VM's internal class lookups will succeed. JAWT jawt = new JAWT(); JAWTFactory.JAWT_GetAWT(jawt); return null; } | 46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/880c498e4b360fa2f51feb606e621badf902ab83/NativeLibLoader.java/clean/src/net/java/games/jogl/impl/NativeLibLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
1086,
1435,
288,
1850,
1250,
353,
4618,
60,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
20387,
14963,
2932,
9990,
5932,
1139,
8863,
1850,
309,
16051,
291,
4618,
60,
13,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
1086,
1435,
288,
1850,
1250,
353,
4618,
60,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
20387,
14963,
2932,
9990,
5932,
1139,
8863,
1850,
309,
16051,
291,
4618,
60,
13,
288,... |
/* If our borders change (which often happens when we opaque resize), we need to make sure that a new layout will happen, since Sun forgets to handle this case. */ | protected void postConfigureEvent (int x, int y, int width, int height, int top, int left, int bottom, int right) { /* If our borders change (which often happens when we opaque resize), we need to make sure that a new layout will happen, since Sun forgets to handle this case. */ if (insets.top != top || insets.left != left || insets.bottom != bottom || insets.right != right) { awtComponent.invalidate (); } insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right; awtComponent.setBounds (x, y, width, height); awtComponent.validate (); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/0f843d89c21e86f6950f46b3c08173b3d30b9f3e/GtkWindowPeer.java/buggy/libjava/gnu/java/awt/peer/gtk/GtkWindowPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1603,
11207,
1133,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
6862,
377,
509,
1760,
16,
509,
2002,
16,
509,
5469,
16,
509,
2145,
13,
225,
288,
565,
1748... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
11207,
1133,
261,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
6862,
377,
509,
1760,
16,
509,
2002,
16,
509,
5469,
16,
509,
2145,
13,
225,
288,
565,
1748... | |
BoxRendering.paint(c, box, false, restyle); return; | public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); BoxRendering.paint(c, box, false, restyle); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Shape oldclip = (Shape) c.getGraphics().getClip(); Rectangle2D box_rect = new Rectangle(box.x, box.y, box.width, box.height); //Uu.p("old clip = " + oldclip); //Uu.p("box rect = " + box_rect); //TODO: handle floated content. HACK: descend into anonymous boxes, won't work for deeper nesting //Uu.p("test box in state: " + box.stateToString(box.getState())); if(box.getState() == 2) { //Uu.p("calling paint for partial"); BoxRendering.paint(c, box, false, restyle); } else { if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) { BoxRendering.paint(c, box, false, restyle); } else { //Uu.p("no intersection. skipping"); } } return; } } BoxRendering.paint(c, box, false, restyle); } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/46b7155a60338b52e8ee4055fdcb2a3f029e90c5/BlockRendering.java/buggy/src/java/org/xhtmlrenderer/render/BlockRendering.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
1763,
12,
1042,
276,
16,
8549,
3919,
16,
1250,
3127,
1362,
13,
288,
3639,
309,
261,
2147,
18,
291,
4212,
424,
5288,
5694,
10756,
288,
5411,
368,
57,
89,
18,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
12574,
1763,
12,
1042,
276,
16,
8549,
3919,
16,
1250,
3127,
1362,
13,
288,
3639,
309,
261,
2147,
18,
291,
4212,
424,
5288,
5694,
10756,
288,
5411,
368,
57,
89,
18,
84,
... | |
return connection.getSchemaReader(); } | return connection.getSchemaReader(); } | public SchemaReader getSchemaReader() { return connection.getSchemaReader(); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapEvaluator.java/buggy/src/main/mondrian/rolap/RolapEvaluator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4611,
2514,
11088,
2514,
1435,
288,
202,
202,
2463,
1459,
18,
588,
3078,
2514,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4611,
2514,
11088,
2514,
1435,
288,
202,
202,
2463,
1459,
18,
588,
3078,
2514,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
createTable( group ); Composite container = new Composite( customPage, SWT.NONE ); data = new GridData( GridData.FILL_HORIZONTAL ); container.setLayoutData( data ); container.setLayout( new GridLayout( 2, false ) ); new Label( container, SWT.NULL ).setText( LABEL_FORMAT_CODE ); formatCode = new Text( container, SWT.SINGLE | SWT.BORDER ); formatCode.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); formatCode.addModifyListener( myModifyListener ); group = new Group( customPage, SWT.NONE ); group.setText( LABEL_CUSTOM_PREVIEW_GROUP ); data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) ); new Label( group, SWT.NONE ).setText( LABEL_PREVIEW_NUMBER ); previewTextBox = new Text( group, SWT.SINGLE | SWT.BORDER ); previewTextBox.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); previewTextBox.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { setDefaultPreviewText( previewTextBox.getText( ) ); if ( hasLoaded ) { updatePreview( ); } } } ); new Label( group, SWT.NONE ).setText( LABEL_COSTOM_PREVIEW_LABEL ); cusPreviewLabel = new Label( group, SWT.NONE ); cusPreviewLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); | createCustomPreviewPart4Page( customPage ); | private Composite getCustomPage( Composite parent ) { if ( customPage == null ) { customPage = new Composite( parent, SWT.NULL ); customPage.setLayout( new GridLayout( 1, false ) ); Group group = new Group( customPage, SWT.NONE ); group.setText( LABEL_CUSTOM_SETTINGS_GROUP ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) ); Label label = new Label( group, SWT.NONE ); label.setText( LABEL_CUSTOM_SETTINGS ); data = new GridData( ); data.horizontalSpan = 2; label.setLayoutData( data ); label = new Label( group, SWT.NONE ); label.setText( LABEL_CUSTOM_SETTINGS_LABEL ); data = new GridData( ); data.horizontalSpan = 2; label.setLayoutData( data ); createTable( group ); Composite container = new Composite( customPage, SWT.NONE ); data = new GridData( GridData.FILL_HORIZONTAL ); container.setLayoutData( data ); container.setLayout( new GridLayout( 2, false ) ); new Label( container, SWT.NULL ).setText( LABEL_FORMAT_CODE ); formatCode = new Text( container, SWT.SINGLE | SWT.BORDER ); formatCode.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); formatCode.addModifyListener( myModifyListener ); group = new Group( customPage, SWT.NONE ); group.setText( LABEL_CUSTOM_PREVIEW_GROUP ); data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) ); new Label( group, SWT.NONE ).setText( LABEL_PREVIEW_NUMBER ); previewTextBox = new Text( group, SWT.SINGLE | SWT.BORDER ); previewTextBox.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); previewTextBox.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { setDefaultPreviewText( previewTextBox.getText( ) ); if ( hasLoaded ) { updatePreview( ); } } } ); new Label( group, SWT.NONE ).setText( LABEL_COSTOM_PREVIEW_LABEL ); cusPreviewLabel = new Label( group, SWT.NONE ); cusPreviewLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); } return customPage; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/68e6e831ed1a7d01155ecde63d74c89397dae569/FormatNumberPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
12736,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
1679,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
3662,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
12736,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
1679,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
3662,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,... |
drawCentered(tree, g, ei, indentation - rightChildIndent - 3, h); | ei.paintIcon(tree, g, indentation - rightChildIndent - 3, h); | int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults() .getIcon("Tree.expandedIcon"); Icon ci = UIManager.getLookAndFeelDefaults() .getIcon("Tree.collapsedIcon"); Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; if (mod.isLeaf(node)) descent += rowHeight; else { if (depth > 0 || tree.isRootVisible()) descent += rowHeight; int max = mod.getChildCount(node); if (tree.isExpanded(new TreePath(getPathToRoot(node, 0)))) { if (!node.equals(mod.getRoot())) drawCentered(tree, g, ei, indentation - rightChildIndent - 3, h); for (int i = 0; i < max; ++i) { int indent = indentation + rightChildIndent; if (depth == 0 && !tree.isRootVisible()) indent = -1; descent = paintControlIcons(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(node, i)); } } else if (!node.equals(mod.getRoot())) drawCentered(tree, g, ei, indentation - rightChildIndent - 3, descent - getRowHeight()); } return descent; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/52405a10b088d0e5c7bfa075e36f3fd39a4f0a6a/BasicTreeUI.java/buggy/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
12574,
3367,
27510,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
13491,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
13,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
12574,
3367,
27510,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
13491,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
756,
13,
225,... |
tPos = tt[origPtr]; | tPos = tt[ origPtr ]; | private void setupBlock() { int[] cftab = new int[257]; char ch; cftab[0] = 0; for (i = 1; i <= 256; i++) { cftab[i] = unzftab[i - 1]; } for (i = 1; i <= 256; i++) { cftab[i] += cftab[i - 1]; } for (i = 0; i <= last; i++) { ch = (char) ll8[i]; tt[cftab[ch]] = i; cftab[ch]++; } cftab = null; tPos = tt[origPtr]; count = 0; i2 = 0; ch2 = 256; /* not a char and not EOF */ if (blockRandomised) { rNToGo = 0; rTPos = 0; setupRandPartA(); } else { setupNoRandPartA(); } } | 55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/CBZip2InputStream.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2InputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1768,
1435,
288,
3639,
509,
8526,
276,
1222,
378,
273,
394,
509,
63,
2947,
27,
15533,
3639,
1149,
462,
31,
3639,
276,
1222,
378,
63,
20,
65,
273,
374,
31,
3639,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
1768,
1435,
288,
3639,
509,
8526,
276,
1222,
378,
273,
394,
509,
63,
2947,
27,
15533,
3639,
1149,
462,
31,
3639,
276,
1222,
378,
63,
20,
65,
273,
374,
31,
3639,
364,
... |
l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); | public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final double dLocation = ax.getAxisCoordinate( ); final AutoScale sc = ax.getScale( ); final IntersectionValue iv = ax.getIntersectionValue( ); final int iMajorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MAJOR ); final int iMinorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MINOR ); final int iLabelLocation = ax.getLabelPosition( ); final int iOrientation = ax.getOrientation( ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); Label la = LabelImpl.copyInstance( ax.getLabel( ) ); final double[] daEndPoints = sc.getEndPoints( ); final double[] da = sc.getTickCordinates( ); final double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; final int iDimension = pwa.getDimension( ); final double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; final LineAttributes lia = ax.getLineAttributes( ); final LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); final LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ Messages.getResourceBundle( getRunTimeContext( ).getULocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Location panningOffset = getPanningOffset( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( TriggerImpl.copyInstance( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( sc.getDirection( ) == IConstants.FORWARD ) { dStart = daEndPoints[1] + insCA.getBottom( ); dEnd = daEndPoints[0] - insCA.getTop( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } // The vertical axis directon, -1 means bottom->top, 1 means // top->bottom. final int iDirection = sc.getDirection( ) != IConstants.FORWARD ? -1 : 1; if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final double dUnitSize = iDirection * sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZ - pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( y3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( ( iDirection == -1 && y - daMinor[k] <= da[i + 1] ) || ( iDirection == 1 && y + daMinor[k] >= da[i + 1] ) ) { // if current minor tick exceed the // range of current unit, skip continue; } lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } if ( i == da.length - 2 ) { // This is the last tick, use pre-computed value to // handle // non-equal scale unit case. dAxisValue = Methods.asDouble( sc.getMaximum( ) ) .doubleValue( ); } else { dAxisValue += dAxisStep; } } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } // RENDER LABELS ONLY IF REQUESTED if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !isRightToLeft( ) && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( sc.getDirection( ) == IConstants.BACKWARD ) { dStart = daEndPoints[1] - insCA.getLeft( ); dEnd = daEndPoints[0] + insCA.getRight( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } // The horizontal axis direction. -1 means right->left, 1 means // left->right. final int iDirection = sc.getDirection( ) == IConstants.BACKWARD ? -1 : 1; if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final double dUnitSize = iDirection * sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( x3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( z3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( ( iDirection == 1 && x + daMinor[k] >= da[i + 1] ) || ( iDirection == -1 && x - daMinor[k] <= da[i + 1] ) ) { // if current minor tick exceed the // range of current unit, skip continue; } lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } if ( i == da.length - 2 ) { // This is the last tick, use pre-computed value to // handle // non-equal scale unit case. dAxisValue = Methods.asDouble( sc.getMaximum( ) ) .doubleValue( ); } else { dAxisValue += dAxisStep; } } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } // RENDER THE AXIS TITLE la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE la.getCaption( ) .getFont( ) .setAlignment( switchTextAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !isRightToLeft( ) && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/088a907c90518d3b343babbab14770d00e175c7b/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202... | |
toolTip += hours + ((hours == 1) ? " hour " : " hours "); | toolTip += hours + ((hours == 1) ? " hour, " : " hours, "); | public String getToolTipText() { if(lastRefresh == null) return ""; // Get the current time. Date timeNow = new Date(); // Get the number of minutes between the current time // and the last time the bug report was downloaded long timeDifference = (timeNow.getTime() - lastRefresh.getTime())/60000; // Calculate the number of minutes and hours. // The amount left in "timeDifference" is the // days' difference. long minutes = timeDifference % 60; timeDifference /= 60; long hours = timeDifference % 24; timeDifference /= 24; // Gradually generate the tooltip string... String toolTip = getDescription(true) + "\n-------------------\n"; // if (bugReport == null) {// toolTip += "Last attempted download ";// }// else { toolTip += "Last synchronized with server: ";// } if (timeDifference > 0) { toolTip += timeDifference + ((timeDifference == 1) ? " day " : " days "); } if (hours > 0 || timeDifference > 0) { toolTip += hours + ((hours == 1) ? " hour " : " hours "); } toolTip += minutes + ((minutes == 1) ? " minute " : " minutes ") + "ago"; return toolTip; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/aa90d86d03703ae4a7bd38deeadb7b885696e3dc/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
29250,
1528,
1435,
288,
202,
202,
430,
12,
2722,
8323,
422,
446,
13,
1082,
202,
2463,
1408,
31,
202,
202,
759,
968,
326,
783,
813,
18,
202,
202,
1626,
813,
8674,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
29250,
1528,
1435,
288,
202,
202,
430,
12,
2722,
8323,
422,
446,
13,
1082,
202,
2463,
1408,
31,
202,
202,
759,
968,
326,
783,
813,
18,
202,
202,
1626,
813,
8674,
2... |
/* puis on vérifie si elle a démarré ! Si pas, * alors on retourne null (ie. aucune vente n'est en cours) */ if(encours.getDate() < Client.client.getDate()) { return new VenteClient(encours.getId(), encours.getNom(), encours.getDescription(), encours.getDate(), encours.getMode(), encours.getSuperviseur()); } else { return null; } | return null; | VenteClient getVenteEnCours() { long min = Long.MAX_VALUE; long prevmin = 0; Vente encours = null; /* d'abord, on prend la vente la plus proche dans le temps */ for(Vente v : ventes) { prevmin = min; min = Math.min(min, v.getDate()); if(min < prevmin) { encours = v; } } /* puis on vérifie si elle a démarré ! Si pas, * alors on retourne null (ie. aucune vente n'est en cours) */ if(encours.getDate() < Client.client.getDate()) { return new VenteClient(encours.getId(), encours.getNom(), encours.getDescription(), encours.getDate(), encours.getMode(), encours.getSuperviseur()); } else { return null; } } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/4b3fc4bcf898f75aff39732159f233ec6cb3509a/VenteManagerClient.java/buggy/src/client/trollhammer/VenteManagerClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
776,
319,
73,
1227,
11031,
319,
73,
664,
39,
4390,
1435,
288,
3639,
1525,
1131,
273,
3407,
18,
6694,
67,
4051,
31,
3639,
1525,
2807,
1154,
273,
374,
31,
3639,
776,
319,
73,
2446,
4390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
776,
319,
73,
1227,
11031,
319,
73,
664,
39,
4390,
1435,
288,
3639,
1525,
1131,
273,
3407,
18,
6694,
67,
4051,
31,
3639,
1525,
2807,
1154,
273,
374,
31,
3639,
776,
319,
73,
2446,
4390,
... |
&& this.names[0].length() == 0) | && this.names[0].equals("anonymous")) | public String decompile(int indent, boolean toplevel, boolean justbody) { if (source == null) return "function " + jsGet_name() + "() {\n\t[native code]\n}\n"; // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + source.length()); for (int i = 0; i < source.length(); i++) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } StringBuffer result = new StringBuffer(); int i = 0; if (source.length() > 0) { /* special-case FUNCTION as the first token; if it is, * (and it's not followed by a NAME or LP) then we're * decompiling a function (and not the toplevel script.) * FUNCTION appearing elsewhere is an escape that means we'll * need to call toString of the given function (object). * If not at the top level, don't add an initial indent; * let the caller do it, so functions as expressions look * reasonable. */ if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } if (source.charAt(0) == TokenStream.FUNCTION // make sure it's not a script that begins with a // reference to a function definition. && source.length() > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { if (!justbody) { result.append("function "); /* version < 1.2 Function constructor behavior - if * there's no function name in the source info, and * the names[0] entry is the empty string, then it must * have been created by the Function constructor; * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (nextIs(i, TokenStream.LP) && this.version != Context.VERSION_1_2 && this.names != null && this.names[0].length() == 0) result.append("anonymous"); i++; } else { /* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < source.length() && (source.charAt(i) != TokenStream.EOL // the length char of a NAME sequence // can look like an EOL. || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) { i++; } // Skip past the EOL, too. i++; } } } while (i < source.length()) { int stop; switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.OBJECT: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ i++; stop = i + (int)source.charAt(i); result.append(source.substring(i + 1, stop + 1)); i = stop; break; case TokenStream.NUMBER: i++; long lbits = 0; switch(source.charAt(i)) { case 'S': i++; result.append((int)source.charAt(i)); break; case 'J': i++; lbits |= (long)source.charAt(i++) << 48; lbits |= (long)source.charAt(i++) << 32; lbits |= (long)source.charAt(i++) << 16; lbits |= (long)source.charAt(i); result.append(lbits); break; case 'D': i++; lbits |= (long)source.charAt(i++) << 48; lbits |= (long)source.charAt(i++) << 32; lbits |= (long)source.charAt(i++) << 16; lbits |= (long)source.charAt(i); double dval = Double.longBitsToDouble(lbits); result.append(ScriptRuntime.numberToString(dval, 10)); break; } break; case TokenStream.STRING: i++; stop = i + (int)source.charAt(i); result.append('"'); result.append(ScriptRuntime.escapeString (source.substring(i + 1, stop + 1))); result.append('"'); i = stop; break; case TokenStream.PRIMARY: i++; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ i++; int functionNumber = source.charAt(i); if (nestedFunctions == null || functionNumber > nestedFunctions.length) { String message; if (names != null && names.length > 0 && names[0].length() > 0) { Object[] errArgs = { new Integer((int)source.charAt(i)), names[0] }; message = Context.getMessage ("msg.no.function.ref.found.in", errArgs); } else { Object[] errArgs = { new Integer((int)source.charAt(i)) }; message = Context.getMessage ("msg.no.function.ref.found", errArgs); } throw Context.reportRuntimeError(message); } result.append(nestedFunctions[functionNumber].decompile(indent, false, false)); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(i, TokenStream.EOL)) indent += OFFSET; result.append("{"); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == source.length()) break; if (nextIs(i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(i, TokenStream.WHILE) || nextIs(i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < source.length()) { int less = 0; if (nextIs(i, TokenStream.CASE) || nextIs(i, TokenStream.DEFAULT)) less = SETBACK; else if (nextIs(i, TokenStream.RC)) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextIs(i, TokenStream.NAME)) { int skip = source.charAt(i + 2); if (source.charAt(i + skip + 3) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(i, TokenStream.EOL)) // statement termination result.append(";"); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: i++; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(i, TokenStream.EOL)) // it's the end of a label result.append(":"); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: i++; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(this.version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(this.version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: i++; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: i++; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: i++; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException("Unknown token " + source.charAt(i)); } i++; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); return result.toString(); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/8f1b1bf3164b829aa83a27144129608c81987245/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
443,
11100,
12,
474,
3504,
16,
1250,
28999,
16,
1250,
2537,
3432,
13,
288,
540,
309,
261,
3168,
422,
446,
13,
2398,
327,
315,
915,
315,
397,
3828,
967,
67,
529,
1435,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
443,
11100,
12,
474,
3504,
16,
1250,
28999,
16,
1250,
2537,
3432,
13,
288,
540,
309,
261,
3168,
422,
446,
13,
2398,
327,
315,
915,
315,
397,
3828,
967,
67,
529,
1435,
397,
... |
if (!(activeEditor instanceof CompilationUnitEditor)) | if (!(activeEditor instanceof JavaEditor)) | public void run(IAction action) { IEditorPart activeEditor= JavaPlugin.getActivePage().getActiveEditor(); if (!(activeEditor instanceof CompilationUnitEditor)) return; final CompilationUnitEditor editor= (CompilationUnitEditor)activeEditor; (new JDTQuickMenuAction(editor, IJavaEditorActionDefinitionIds.SEARCH_OCCURRENCES_IN_FILE_QUICK_MENU) { protected void fillMenu(IMenuManager menu) { fillQuickMenu(menu); } }).run(); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/86c3351de7e76707fea3aaf9d11b0c534784c28b/OccurrencesSearchMenuAction.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OccurrencesSearchMenuAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
45,
1803,
1301,
13,
288,
202,
202,
45,
6946,
1988,
2695,
6946,
33,
5110,
3773,
18,
588,
3896,
1964,
7675,
588,
3896,
6946,
5621,
202,
202,
430,
16051,
12,
3535,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
45,
1803,
1301,
13,
288,
202,
202,
45,
6946,
1988,
2695,
6946,
33,
5110,
3773,
18,
588,
3896,
1964,
7675,
588,
3896,
6946,
5621,
202,
202,
430,
16051,
12,
3535,... |
void openFloatingWindow() { //Do we already have one? if(floatingWindow != null) return; //Don't bother if there is nothing showing yet if(!window.getShell().isVisible()) return; floatingWindow = new ProgressFloatingWindow(window, imageCanvas); WorkbenchJob floatingJob = new WorkbenchJob(ProgressMessages.getString("AnimationItem.openFloatingWindowJob")) { //$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { synchronized (windowLock) { if (floatingWindow == null) return Status.CANCEL_STATUS; else { //Do not bother if the control is disposed if(getControl().isDisposed()){ floatingWindow = null; return Status.CANCEL_STATUS; } else{ floatingWindow.open(); return Status.OK_STATUS; } } } } }; floatingJob.setSystem(true); floatingJob.schedule(500); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a23a2f7d8af51ae4aaa0ae21daaa81f092725969/AnimationItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3190,
28344,
3829,
1435,
95,
202,
202,
759,
40,
543,
73,
17583,
21516,
476,
35,
202,
202,
430,
12,
5659,
310,
3829,
5,
33,
2011,
13,
1082,
202,
2463,
31,
9506,
202,
759,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
3190,
28344,
3829,
1435,
95,
202,
202,
759,
40,
543,
73,
17583,
21516,
476,
35,
202,
202,
430,
12,
5659,
310,
3829,
5,
33,
2011,
13,
1082,
202,
2463,
31,
9506,
202,
759,
22... | ||
autoFolding = turnOnAutoFolding.getSelection(); | autoFolding = turnOnAutoFoldingButton.getSelection(); | public void createControl(Composite parent) { Composite containerComposite = new Composite(parent, SWT.NULL); containerComposite.setLayout(new GridLayout()); Composite buttonComposite = new Composite(containerComposite, SWT.NULL); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.makeColumnsEqualWidth = false; buttonComposite.setLayout(layout); setMylarEditorDefault = new Button(buttonComposite, SWT.CHECK); GridData gd = new GridData(); setMylarEditorDefault.setLayoutData(gd); setMylarEditorDefault.setSelection(true); setMylarEditorDefault.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { mylarEditorDefault = setMylarEditorDefault.getSelection(); } public void widgetDefaultSelected(SelectionEvent e) { // don't care about this event } }); Label label = new Label(buttonComposite, SWT.NONE); label.setText(DEFAULT_EDITOR); gd = new GridData(); label.setLayoutData(gd); turnOnAutoFolding = new Button(buttonComposite, SWT.CHECK); gd = new GridData(); turnOnAutoFolding.setLayoutData(gd); turnOnAutoFolding.setSelection(true); turnOnAutoFolding.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { autoFolding = turnOnAutoFolding.getSelection(); } public void widgetDefaultSelected(SelectionEvent e) { // don't care about this event } }); label = new Label(buttonComposite, SWT.NONE); label.setText(AUTO_FOLDING); gd = new GridData(); label.setLayoutData(gd); closeEditorsOnDeactivation = new Button(buttonComposite, SWT.CHECK); gd = new GridData(); closeEditorsOnDeactivation.setLayoutData(gd); closeEditorsOnDeactivation.setSelection(true); closeEditorsOnDeactivation.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { closeEditors = closeEditorsOnDeactivation.getSelection(); } public void widgetDefaultSelected(SelectionEvent e) { // don't care about this event } }); label = new Label(buttonComposite, SWT.NONE); label.setText(AUTO_CLOSE); gd = new GridData(); label.setLayoutData(gd); addMylarActiveWorkingSet = new Button(buttonComposite, SWT.CHECK); gd = new GridData(); addMylarActiveWorkingSet.setSelection(true); addMylarActiveWorkingSet.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { workingSet = addMylarActiveWorkingSet.getSelection(); } public void widgetDefaultSelected(SelectionEvent e) { // don't care about this event } }); label = new Label(buttonComposite, SWT.NONE); label.setText(WORKING_SET); gd = new GridData(); label.setLayoutData(gd); setControl(buttonComposite); openTaskListButton = new Button(buttonComposite, SWT.CHECK); gd = new GridData(); openTaskListButton.setLayoutData(gd); openTaskListButton.setSelection(true); openTaskListButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { openTaskList = openTaskListButton.getSelection(); } public void widgetDefaultSelected(SelectionEvent e) { // don't care about this event } }); label = new Label(buttonComposite, SWT.NONE); label.setText(OPEN_TASK_LIST); gd = new GridData(); label.setLayoutData(gd); Label spacer = new Label(buttonComposite, SWT.NONE); spacer.setText(" "); spacer = new Label(buttonComposite, SWT.NONE); spacer.setText(" "); Composite browserComposite = new Composite(containerComposite, SWT.NULL); browserComposite.setLayout(new GridLayout()); try { Browser browser = new Browser(browserComposite, SWT.NONE); browser.setText(htmlDocs); GridData browserLayout = new GridData(GridData.FILL_HORIZONTAL); browserLayout.heightHint = 100; browserLayout.widthHint = 600; browser.setLayoutData(browserLayout); } catch (Throwable t) { // fail silently if there is no browser } setControl(containerComposite); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/39a5c40943dc8ba27618a68b1db2d6fc97e4d29c/MylarPreferenceWizardPage.java/buggy/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/ui/wizards/MylarPreferenceWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
3782,
9400,
18,
542,
3744,
12,
2704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
3782,
9400,
18,
542,
3744,
12,
2704,
... |
throw new SQLException("pos must be < " + Integer.MAX_VALUE); | throw new SQLException(Support.getMessage("error.blobclob.postoolong"), "HY090"); | public synchronized OutputStream setBinaryStream(final long pos) throws SQLException { if (pos < 1) { throw new SQLException("pos must be >= 1."); } else if (pos > _blob.length) { throw new SQLException("pos specified is past length of value."); } else if (pos >= Integer.MAX_VALUE) { throw new SQLException("pos must be < " + Integer.MAX_VALUE); } return new ByteArrayOutputStream() { {write(_blob, 0, (int) pos - 1);} public void flush() throws IOException { synchronized (BlobImpl.this) { byte[] blob = toByteArray(); if (blob.length < _blob.length) { // Possible synchronization problem... System.arraycopy(blob, 0, _blob, 0, blob.length); } else { _blob = blob; } } } public void close() throws IOException { flush(); } }; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/662fbbf0e5f04956f22a56e58dae82d6c816a2c6/BlobImpl.java/buggy/src/main/net/sourceforge/jtds/jdbc/BlobImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
8962,
444,
5905,
1228,
12,
6385,
1525,
949,
13,
1216,
6483,
288,
3639,
309,
261,
917,
411,
404,
13,
288,
5411,
604,
394,
6483,
2932,
917,
1297,
506,
1545,
404,
1199,
1769,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
8962,
444,
5905,
1228,
12,
6385,
1525,
949,
13,
1216,
6483,
288,
3639,
309,
261,
917,
411,
404,
13,
288,
5411,
604,
394,
6483,
2932,
917,
1297,
506,
1545,
404,
1199,
1769,
3... |
throw new RuntimeException("Not yet implemented."); | int hashCode = 1; Iterator it = listIterator(); while (it.hasNext()) { Object obj = it.next(); hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode()); } return hashCode; | public int hashCode() { throw new RuntimeException("Not yet implemented."); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/eeba91846ddab52eb1590e6ea87f0c2396ca836c/CopyOnWriteArrayList.java/clean/modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13374,
1435,
288,
3639,
509,
13374,
273,
404,
31,
4498,
518,
273,
30150,
5621,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
1033,
1081,
273,
518,
18,
4285,
5621,
13374,
273,
823... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
13374,
1435,
288,
3639,
509,
13374,
273,
404,
31,
4498,
518,
273,
30150,
5621,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
1033,
1081,
273,
518,
18,
4285,
5621,
13374,
273,
823... |
layoutPosition, ratio, | relativePosition, edgeDockRatio, | public void drop() { // Drop the part on this border float ratio = (relativePosition == SWT.LEFT || relativePosition == SWT.TOP) ? edgeDockRatio : 1 - edgeDockRatio; window.getActiveWorkbenchPage().getPerspectivePresentation().derefPart(draggedPane); // Create a new folder and add both items PartTabFolder folder = new PartTabFolder(window.getActiveWorkbenchPage()); sashContainer.add( folder, layoutPosition, ratio, null); folder.add(draggedPane); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5c9ca443531ee1bb1d4f6c11b8dadb08daa3f30e/TrimDropTarget.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/TrimDropTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3640,
1435,
288,
6862,
202,
759,
10895,
326,
1087,
603,
333,
5795,
6862,
202,
5659,
7169,
273,
261,
11626,
2555,
422,
348,
8588,
18,
10066,
747,
3632,
2555,
422,
348,
8588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4697,
202,
482,
918,
3640,
1435,
288,
6862,
202,
759,
10895,
326,
1087,
603,
333,
5795,
6862,
202,
5659,
7169,
273,
261,
11626,
2555,
422,
348,
8588,
18,
10066,
747,
3632,
2555,
422,
348,
8588... |
Listener lsLastCheck = new Listener() { public void handleEvent(Event e) { showLastTransCheck(); } }; | Listener lsLastPreview = new Listener() { public void handleEvent(Event e) { spoonlog.showPreview(); } }; | Listener lsLastCheck = new Listener() { public void handleEvent(Event e) { showLastTransCheck(); } }; | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/debf6e456945767f60dfbf3992b14417daecffbe/Spoon.java/buggy/kettle/src/be/ibridge/kettle/spoon/Spoon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
10652,
7180,
3024,
1564,
1377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
2405,
3024,
1429,
1564,
5621,
1377,
289,
289,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
10652,
7180,
3024,
1564,
1377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
2405,
3024,
1429,
1564,
5621,
1377,
289,
289,
31,
2,
-100,
-100,
-100,
-100,
-100... |
} | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e3f7218be7244f0de74b2230a33469c2bf32546b/Signature.java/buggy/core/src/classpath/java/java/security/Signature.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
3929,
12,
7229,
8526,
8195,
13,
1216,
9249,
503,
225,
288,
565,
309,
261,
2019,
422,
6422,
12096,
13,
1377,
288,
202,
2019,
273,
5019,
12919,
25991,
31,
202,
2463,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
3929,
12,
7229,
8526,
8195,
13,
1216,
9249,
503,
225,
288,
565,
309,
261,
2019,
422,
6422,
12096,
13,
1377,
288,
202,
2019,
273,
5019,
12919,
25991,
31,
202,
2463,
4073,
... | |
workerThread.run(); | workerThread.start(); | private void ensureWorkerThreadIsRunning() { if (workerThread == null) { workerThread = new Thread() { public void run() { try { while (true) { Runnable work = null; synchronized (workQueue) { while (workQueue.isEmpty()) { workQueue.wait(); } work = (Runnable) workQueue.removeFirst(); } syncExec(work); } } catch (InterruptedException e) { // exit } } }; workerThread.run(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/990ee54e4713cd20aaf8238333c19adab566ec4c/Realm.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/Realm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3387,
6671,
3830,
2520,
7051,
1435,
288,
202,
202,
430,
261,
10124,
3830,
422,
446,
13,
288,
1082,
202,
10124,
3830,
273,
394,
4884,
1435,
288,
9506,
202,
482,
918,
1086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3387,
6671,
3830,
2520,
7051,
1435,
288,
202,
202,
430,
261,
10124,
3830,
422,
446,
13,
288,
1082,
202,
10124,
3830,
273,
394,
4884,
1435,
288,
9506,
202,
482,
918,
1086,
... |
public boolean allowPageBreak( ) | protected boolean allowPageBreak( ) | public boolean allowPageBreak( ) { return true; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5a3c2340cfba72c331479478edc894dea80a48a3/HTMLAbstractLM.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/HTMLAbstractLM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1699,
1964,
7634,
12,
262,
202,
95,
202,
202,
2463,
638,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1699,
1964,
7634,
12,
262,
202,
95,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
NLSInputDialog dialog= new NLSInputDialog(getShell(), NLSUIMessages.getString("ExternalizeWizardPage.NLSInputDialog.Title"), NLSUIMessages.getString("ExternalizeWizardPage.NLSInputDialog.Label"), substitution); | NLSInputDialog dialog= new NLSInputDialog(getShell(), substitution); | private void openEditButton(ISelection selection) { try { IStructuredSelection sel= (IStructuredSelection) fTableViewer.getSelection(); NLSSubstitution substitution= (NLSSubstitution) sel.getFirstElement(); if (substitution == null) { return; } NLSInputDialog dialog= new NLSInputDialog(getShell(), NLSUIMessages.getString("ExternalizeWizardPage.NLSInputDialog.Title"), //$NON-NLS-1$ NLSUIMessages.getString("ExternalizeWizardPage.NLSInputDialog.Label"), //$NON-NLS-1$ substitution); if (dialog.open() == Window.CANCEL) return; KeyValuePair kvPair= dialog.getResult(); if (substitution.getState() == NLSSubstitution.EXTERNALIZED) { substitution.setKey(kvPair.getKey()); } substitution.setValue(kvPair.getValue()); fTableViewer.update(substitution, new String[]{PROPERTIES[KEY_PROP], PROPERTIES[VAL_PROP]}); validateKeys(); } finally { fTableViewer.refresh(); fTableViewer.getControl().setFocus(); fTableViewer.setSelection(selection); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3d5dca381a17fb38394fe3b63ffe6d1829643d79/ExternalizeWizardPage.java/buggy/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/ExternalizeWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1696,
4666,
3616,
12,
45,
6233,
4421,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
30733,
6233,
357,
33,
261,
45,
30733,
6233,
13,
284,
1388,
18415,
18,
588,
6233,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
4666,
3616,
12,
45,
6233,
4421,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
30733,
6233,
357,
33,
261,
45,
30733,
6233,
13,
284,
1388,
18415,
18,
588,
6233,
5621,
... |
} else if (methodId == Id_toSource) { | case Id_toSource: | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { if (methodId == Id_constructor) { return make(cx, scope, f, args); } else if (methodId == Id_toString) { return js_toString(thisObj); } else if (methodId == Id_toSource) { return js_toSource(cx, scope, thisObj); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeError.java/clean/js/rhino/src/org/mozilla/javascript/NativeError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
sourceViewer.getTextWidget( ) .insert( (String) button.getData( ) ); | insertText( (String) button.getData( ) ); | private void createOperatorsBar( Composite parent ) { String[] operators = provider.getOperators( ); if ( operators == null || operators.length == 0 ) { return; } Composite operatorsBar = new Composite( parent, SWT.NONE ); operatorsBar.setLayout( new GridLayout( 2, false ) ); operatorsBar.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Label lable = new Label( operatorsBar, SWT.NONE ); lable.setText( LABEL_OPERATORS ); lable.setLayoutData( new GridData( 70, SWT.DEFAULT ) ); Composite operatorsArea = new Composite( operatorsBar, SWT.NONE ); operatorsArea.setLayout( UIUtil.createGridLayoutWithoutMargin( operators.length, true ) ); SelectionAdapter selectionAdapter = new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { Button button = (Button) e.getSource( ); sourceViewer.getTextWidget( ) .insert( (String) button.getData( ) ); } }; for ( int i = 0; i < operators.length; i++ ) { Button button = new Button( operatorsArea, SWT.PUSH ); button.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); if ( operators[i] != IExpressionProvider.OPERATOR_SEPARATOR ) { button.setData( operators[i] ); String text = operators[i]; if ( text.indexOf( "&" ) != -1 ) //$NON-NLS-1$ { text = text.replaceAll( "&", "&&" ); //$NON-NLS-1$ //$NON-NLS-2$ } button.setText( text ); button.addSelectionListener( selectionAdapter ); } else { button.setVisible( false ); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5b3648d37328599aaedd8a0acf8f3667ae1688ea/ExpressionBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
24473,
5190,
12,
14728,
982,
262,
202,
95,
202,
202,
780,
8526,
12213,
273,
2893,
18,
588,
24473,
12,
11272,
202,
202,
430,
261,
12213,
422,
446,
747,
12213,
18,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
24473,
5190,
12,
14728,
982,
262,
202,
95,
202,
202,
780,
8526,
12213,
273,
2893,
18,
588,
24473,
12,
11272,
202,
202,
430,
261,
12213,
422,
446,
747,
12213,
18,
24... |
MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P4, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[3]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[3]); } | MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.PriorityLevel.P4); priorityFilter.displayPrioritiesAbove(PRIORITY_LEVELS[3]); | public void run() { MylarTasksPlugin.setPriorityLevel(MylarTasksPlugin.Priority_Level.P4, isChecked()); if (isChecked()) { priorityFilter.displayPriority(PRIORITY_LEVELS[3]); } else { priorityFilter.hidePriority(PRIORITY_LEVELS[3]); } viewer.refresh(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/6921bdf15e62a958d9329822b24b6d52ce5b6c71/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
202,
377,
1082,
202,
12062,
7901,
6685,
3773,
18,
542,
8183,
2355,
12,
12062,
7901,
6685,
3773,
18,
8183,
67,
2355,
18,
52,
24,
16,
31041,
10663,
202,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
202,
377,
1082,
202,
12062,
7901,
6685,
3773,
18,
542,
8183,
2355,
12,
12062,
7901,
6685,
3773,
18,
8183,
67,
2355,
18,
52,
24,
16,
31041,
10663,
202,
3... |
for (int i = 0; i < methods.length; i++) { if (isNonVariantCompareTo(methods[i])) { | for(PsiMethod method1 : methods){ if(isNonVariantCompareTo(method1)){ | public void visitMethod(PsiMethod method) { // note: no call to super final String name = method.getName(); if (!COMPARE_TO_METHOD_NAME.equals(name)) { return; } if (!method.hasModifierProperty(PsiModifier.PUBLIC)) { return; } final PsiParameterList paramList = method.getParameterList(); if (paramList == null) { return; } final PsiParameter[] parameters = paramList.getParameters(); if (parameters.length != 1) { return; } final PsiType argType = parameters[0].getType(); if (TypeUtils.isJavaLangObject(argType)) { return; } final PsiClass aClass = method.getContainingClass(); if (aClass == null) { return; } final PsiMethod[] methods = aClass.getMethods(); for (int i = 0; i < methods.length; i++) { if (isNonVariantCompareTo(methods[i])) { return; } } final PsiClassType[] implementsListTypes = aClass.getImplementsListTypes(); for (int i = 0; i < implementsListTypes.length; i++) { final PsiClassType implementedType = implementsListTypes[i]; final String implementedClassName = implementedType.getClassName(); if (("java.lang.Comparable".equals(implementedClassName) || "Comparable".equals(implementedClassName) ) && implementedType.hasParameters()) { return; } } registerMethodError(method); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/CovariantCompareToInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/CovariantCompareToInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
25138,
12,
52,
7722,
1305,
707,
13,
288,
5411,
368,
4721,
30,
1158,
745,
358,
2240,
5411,
727,
514,
508,
273,
707,
18,
17994,
5621,
5411,
309,
16051,
4208,
11713,
67,
4296,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
918,
25138,
12,
52,
7722,
1305,
707,
13,
288,
5411,
368,
4721,
30,
1158,
745,
358,
2240,
5411,
727,
514,
508,
273,
707,
18,
17994,
5621,
5411,
309,
16051,
4208,
11713,
67,
4296,
6... |
return id; | return null; | public Long ejbCreate(String entityName, long entityId, int type, String key) throws CreateException { Long id = null; try { InitialContext ctx = new InitialContext(); SequenceGeneratorHome genHome = (SequenceGeneratorHome) PortableRemoteObject.narrow(ctx.lookup("java:comp/env/ejb/SequenceGenerator"), SequenceGeneratorHome.class); SequenceGenerator gen = genHome.create(); id = new Long(gen.getCount("os.PropertyEntry")); setId(id); setEntityName(entityName); setEntityId(entityId); setType(type); setKey(key); if ((type == PropertySet.BOOLEAN) || (type == PropertySet.INT) || (type == PropertySet.LONG)) { PropertyNumberLocalHome home = PropertyNumberHomeFactory.getLocalHome(); home.create(type, id.longValue()); } else if (type == PropertySet.DATE) { PropertyDateLocalHome home = PropertyDateHomeFactory.getLocalHome(); home.create(type, id.longValue()); } else if (type == PropertySet.DOUBLE) { PropertyDecimalLocalHome home = PropertyDecimalHomeFactory.getLocalHome(); home.create(type, id.longValue()); } else if (type == PropertySet.STRING) { PropertyStringLocalHome home = PropertyStringHomeFactory.getLocalHome(); home.create(type, id.longValue()); } else { PropertyDataLocalHome home = PropertyDataHomeFactory.getLocalHome(); home.create(type, id.longValue()); } } catch (Exception e) { logger.error("Error creating new PropertyEntry", e); throw new CreateException(e.toString()); } return id; } | 15561 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15561/2a0e7ad84b0f08de7d3623317de29f0f342ef755/PropertyEntryEJB.java/buggy/src/java/com/opensymphony/module/propertyset/ejb/types/PropertyEntryEJB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3407,
18024,
1684,
12,
780,
14868,
16,
1525,
15052,
16,
509,
618,
16,
514,
498,
13,
1216,
1788,
503,
288,
3639,
3407,
612,
273,
446,
31,
3639,
775,
288,
5411,
10188,
1042,
1103,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3407,
18024,
1684,
12,
780,
14868,
16,
1525,
15052,
16,
509,
618,
16,
514,
498,
13,
1216,
1788,
503,
288,
3639,
3407,
612,
273,
446,
31,
3639,
775,
288,
5411,
10188,
1042,
1103,
2... |
void registerSynchronization(Synchronization synchronization) throws IllegalStateException, RollbackException, SystemException; | void registerSynchronization(Synchronization synch) throws IllegalStateException, RollbackException, SystemException; | void registerSynchronization(Synchronization synchronization) throws IllegalStateException, RollbackException, SystemException; | 6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/5853b56d0f8ffd8709172ca7c9c31357766144d6/Transaction.java/clean/j2ee/src/java/javax/transaction/Transaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1744,
30196,
12,
30196,
24488,
13,
1216,
5477,
16,
17724,
503,
16,
26731,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1744,
30196,
12,
30196,
24488,
13,
1216,
5477,
16,
17724,
503,
16,
26731,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
case 292 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } | case 293 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } | protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= PackageComment package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 94 : if (DEBUG) { System.out.println("PackageComment ::="); } //$NON-NLS-1$ consumePackageComment(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 100 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 102 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 105 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 109 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 121 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 122 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 123 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 128 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 130 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 131 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 138 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 139 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 140 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 147 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 150 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 152 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 155 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 157 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 158 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 159 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 164 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 165 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 166 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 171 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 174 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 176 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 178 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 180 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 181 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 182 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 183 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 184 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 185 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 200 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 204 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 211 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ consumeInvalidMethodDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(true); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(false); break; case 221 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 222 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 226 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 227 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 228 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 230 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 234 : if (DEBUG) { System.out.println("BlockStatement ::= InterfaceDeclaration"); } //$NON-NLS-1$ consumeInvalidInterfaceDeclaration(); break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= AnnotationTypeDeclaration"); } //$NON-NLS-1$ consumeInvalidAnnotationTypeDeclaration(); break; case 236 : if (DEBUG) { System.out.println("BlockStatement ::= EnumDeclaration"); } //$NON-NLS-1$ consumeInvalidEnumDeclaration(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 240 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 241 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 242 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 268 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 269 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 271 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 280 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 281 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 282 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 283 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 284 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 287 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 289 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 290 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 292 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 293 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 294 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 295 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 296 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 297 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 298 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 299 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 300 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 304 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 305 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 306 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 307 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 308 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 309 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 310 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 311 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 312 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 313 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 314 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 315 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 316 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 318 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 320 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 321 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 323 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 324 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 339 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 342 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 349 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 350 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 352 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 354 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 355 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 362 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 364 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 365 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 368 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 369 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 370 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 371 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 377 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 378 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 381 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 384 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 385 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 386 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 389 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 390 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 392 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 393 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 395 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 396 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 398 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 403 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 404 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 405 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 408 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 409 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 412 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 413 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 415 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 416 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 419 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 424 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 426 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 427 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 429 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 431 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 433 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 435 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 437 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 439 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 442 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 444 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 460 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 465 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 466 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 467 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 468 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 469 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 471 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 473 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 477 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 481 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 482 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 483 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 484 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 486 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 490 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 492 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 493 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 494 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 495 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 500 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 501 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 502 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 503 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 504 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 505 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 506 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 508 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 509 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 511 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(false); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Modifiers"); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(true); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(); break; case 516 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 518 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 520 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 521 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 523 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 525 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 526 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 530 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 533 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 536 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 539 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 542 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 543 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 545 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 547 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 549 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 551 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 553 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 555 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 557 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 560 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 562 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 564 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 567 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 570 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 571 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 575 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 582 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 586 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 590 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 597 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 602 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 609 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 618 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 621 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 626 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 629 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 632 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 635 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 638 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 641 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 646 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 651 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationsopt() ; break; case 654 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 660 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 668 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 669 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 670 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 673 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL EnterMemberValue..."); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 675 : if (DEBUG) { System.out.println("EnterMemberValue ::="); } //$NON-NLS-1$ consumeEnterMemberValue() ; break; case 676 : if (DEBUG) { System.out.println("ExitMemberValue ::="); } //$NON-NLS-1$ consumeExitMemberValue() ; break; case 678 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 681 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 684 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 686 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 687 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 688 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 689 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 692 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/189d8495dd269a3e1a6eabd4118e6586a867755d/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... |
if (messages == null) return; | if (messages == null) { return; } | public void addMessages(ActionMessages messages) { if (messages == null) return; ActionMessages requestMessages = getMessages(); if (requestMessages == null) { requestMessages = new ActionMessages(); } requestMessages.add(messages); saveMessages(requestMessages); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/ef68ef66f0feb3bc08bb217fe9abcd99045ef301/ServletActionContext.java/clean/src/share/org/apache/struts/chain/contexts/ServletActionContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5058,
12,
1803,
5058,
2743,
13,
288,
5411,
309,
261,
6833,
422,
446,
13,
288,
327,
31,
289,
5411,
4382,
5058,
590,
5058,
273,
20202,
5621,
5411,
309,
261,
2293,
5058,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5058,
12,
1803,
5058,
2743,
13,
288,
5411,
309,
261,
6833,
422,
446,
13,
288,
327,
31,
289,
5411,
4382,
5058,
590,
5058,
273,
20202,
5621,
5411,
309,
261,
2293,
5058,
42... |
String fileName; | String fileName; | protected String handleImage(IImage image, Object context, String prefix, boolean needMap) { String mapID = null; if(needMap) { mapID = getImageMapID(image); if(map.containsKey(mapID)) { return (String)map.get(mapID); } } String ret = null; if (context != null && (context instanceof HTMLRenderContext)) { HTMLRenderContext myContext = (HTMLRenderContext) context; String imageURL = myContext.getBaseImageURL(); String imageDir = myContext.getImageDirectory(); if(imageURL==null || imageURL.length()==0 || imageDir==null || imageDir.length()==0) { log.log(Level.SEVERE, "imageURL or ImageDIR is not set!"); //$NON-NLS-1$ return null; } String fileName; File file; synchronized (HTMLCompleteImageHandler.class) { String extension = image.getExtension(); if(extension!=null && extension.length()>0) { fileName = createUniqueFileName(imageDir, prefix, extension); //$NON-NLS-1$ } else { fileName = createUniqueFileName(imageDir, prefix); } file = new File(imageDir, fileName); //$NON-NLS-1$ try { image.writeImage(file); } catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); } } //servlet mode if(imageURL.indexOf("?")>0) //$NON-NLS-1$ { ret = imageURL + fileName; } else if(imageURL.endsWith("/")) //$NON-NLS-1$ { ret = imageURL + fileName; } else { ret = imageURL + "/" + fileName; //$NON-NLS-1$ } if(needMap) { map.put(mapID, ret); } } return ret; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1d8d582eae226915b0af0dada3168441cc0fb0a2/HTMLServerImageHandler.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLServerImageHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1640,
2040,
12,
45,
2040,
1316,
16,
1033,
819,
16,
514,
1633,
16,
1250,
1608,
863,
13,
202,
95,
202,
202,
780,
852,
734,
273,
446,
31,
202,
202,
430,
12,
14891,
863,
... |
if(ctr != null && ret != null) | if((ctr != null) && (ret != null)) | public Message waitFor(MessageFilter filter, ByteCounter ctr) throws DisconnectedException { Logger.debug(this, "Waiting for "+filter); long startTime = System.currentTimeMillis(); Message ret = null; if(lowLevelFilter != null && filter._source != null && filter.matchesDroppedConnection() && lowLevelFilter.isDisconnected(filter._source)) throw new DisconnectedException(); // Check to see whether the filter matches any of the recently _unclaimed messages synchronized (_filters) { Logger.minor(this, "Checking _unclaimed"); for (ListIterator i = _unclaimed.listIterator(); i.hasNext();) { Message m = (Message) i.next(); if (filter.match(m)) { i.remove(); ret = m; Logger.debug(this, "Matching from _unclaimed"); break; } } if (ret == null) { Logger.minor(this, "Not in _unclaimed"); // Insert filter into filter list in order of timeout ListIterator i = _filters.listIterator(); while (true) { if (!i.hasNext()) { i.add(filter); Logger.minor(this, "Added at end"); break; } MessageFilter mf = (MessageFilter) i.next(); if (mf.getTimeout() > filter.getTimeout()) { i.previous(); i.add(filter); Logger.minor(this, "Added in middle - mf timeout="+mf.getTimeout()+" - my timeout="+filter.getTimeout()); break; } } } } // Unlock to wait on filter // Waiting on the filter won't release the outer lock // So we have to release it here if(ret == null) { Logger.minor(this, "Waiting..."); synchronized (filter) { try { // Precaution against filter getting matched between being added to _filters and // here - bug discovered by Mason boolean fmatched = false; while(!(fmatched = (filter.matched() || filter.droppedConnection() != null))) { long wait = filter.getTimeout()-System.currentTimeMillis(); if(wait > 0) filter.wait(wait); else break; } if(filter.droppedConnection() != null) throw new DisconnectedException(); Logger.minor(this, "Matched: "+fmatched); } catch (InterruptedException e) { } ret = filter.getMessage(); filter.clearMatched(); } Logger.debug(this, "Returning "+ret+" from "+filter); } // Probably get rid...// if (Dijjer.getDijjer().getDumpMessageWaitTimes() != null) {// Dijjer.getDijjer().getDumpMessageWaitTimes().println(filter.toString() + "\t" + filter.getInitialTimeout() + "\t"// + (System.currentTimeMillis() - startTime));// Dijjer.getDijjer().getDumpMessageWaitTimes().flush();// } long endTime = System.currentTimeMillis(); Logger.debug(this, "Returning in "+(endTime-startTime)+"ms"); if(ctr != null && ret != null) ctr.receivedBytes(ret._receivedByteCount); return ret; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/UdpSocketManager.java/clean/src/freenet/io/comm/UdpSocketManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2350,
10712,
12,
1079,
1586,
1034,
16,
3506,
4789,
14629,
13,
1216,
3035,
8537,
503,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
15946,
364,
13773,
2188,
1769,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2350,
10712,
12,
1079,
1586,
1034,
16,
3506,
4789,
14629,
13,
1216,
3035,
8537,
503,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
15946,
364,
13773,
2188,
1769,
202,
202,
... |
userField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); | userField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); | private void addInformationPanel() { // Create UI elements for connection information. JPanel informationPanel = new JPanel(); informationPanel.setLayout(new BorderLayout()); // Add the Host information JPanel connPanel = new JPanel(); connPanel.setLayout(new GridBagLayout()); connPanel.setBorder(BorderFactory.createTitledBorder("Connection information")); JLabel label = new JLabel("Host: "); label.setMinimumSize(new java.awt.Dimension(150, 14)); label.setMaximumSize(new java.awt.Dimension(150, 14)); connPanel.add( label, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 21, 0, new Insets(0, 0, 0, 0), 0, 0)); JFormattedTextField field = new JFormattedTextField(connection.getServiceName()); field.setMinimumSize(new java.awt.Dimension(150, 20)); field.setMaximumSize(new java.awt.Dimension(150, 20)); field.setEditable(false); field.setBorder(null); connPanel.add( field, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); // Add the Port information label = new JLabel("Port: "); label.setMinimumSize(new java.awt.Dimension(150, 14)); label.setMaximumSize(new java.awt.Dimension(150, 14)); connPanel.add( label, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 21, 0, new Insets(0, 0, 0, 0), 0, 0)); field = new JFormattedTextField(new Integer(connection.getPort())); field.setMinimumSize(new java.awt.Dimension(150, 20)); field.setMaximumSize(new java.awt.Dimension(150, 20)); field.setEditable(false); field.setBorder(null); connPanel.add( field, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); // Add the connection's User information label = new JLabel("User: "); label.setMinimumSize(new java.awt.Dimension(150, 14)); label.setMaximumSize(new java.awt.Dimension(150, 14)); connPanel.add( label, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, 21, 0, new Insets(0, 0, 0, 0), 0, 0)); userField = new JFormattedTextField(); userField.setMinimumSize(new java.awt.Dimension(150, 20)); userField.setMaximumSize(new java.awt.Dimension(150, 20)); userField.setEditable(false); userField.setBorder(null); connPanel.add( userField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); // Add the connection's creationTime information label = new JLabel("Creation time: "); label.setMinimumSize(new java.awt.Dimension(150, 14)); label.setMaximumSize(new java.awt.Dimension(150, 14)); connPanel.add( label, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, 21, 0, new Insets(0, 0, 0, 0), 0, 0)); field = new JFormattedTextField(new SimpleDateFormat("yyyy.MM.dd hh:mm:ss aaa")); field.setMinimumSize(new java.awt.Dimension(150, 20)); field.setMaximumSize(new java.awt.Dimension(150, 20)); field.setValue(creationTime); field.setEditable(false); field.setBorder(null); connPanel.add( field, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); // Add the connection's creationTime information label = new JLabel("Status: "); label.setMinimumSize(new java.awt.Dimension(150, 14)); label.setMaximumSize(new java.awt.Dimension(150, 14)); connPanel.add( label, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, 21, 0, new Insets(0, 0, 0, 0), 0, 0)); statusField = new JFormattedTextField(); statusField.setMinimumSize(new java.awt.Dimension(150, 20)); statusField.setMaximumSize(new java.awt.Dimension(150, 20)); statusField.setValue("Active"); statusField.setEditable(false); statusField.setBorder(null); connPanel.add( statusField, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0)); // Add the connection panel to the information panel informationPanel.add(connPanel, BorderLayout.NORTH); // Add the Number of sent packets information JPanel packetsPanel = new JPanel(); packetsPanel.setLayout(new GridLayout(1, 1)); packetsPanel.setBorder(BorderFactory.createTitledBorder("Transmitted Packets")); statisticsTable = new DefaultTableModel(new Object[][] { { "IQ", new Integer(0), new Integer(0)}, { "Message", new Integer(0), new Integer(0) }, { "Presence", new Integer(0), new Integer(0) }, { "Other", new Integer(0), new Integer(0) }, { "Total", new Integer(0), new Integer(0) } }, new Object[] { "Type", "Received", "Sent" }) { public boolean isCellEditable(int rowIndex, int mColIndex) { return false; } }; JTable table = new JTable(statisticsTable); // Allow only single a selection table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); packetsPanel.add(new JScrollPane(table)); // Add the packets panel to the information panel informationPanel.add(packetsPanel, BorderLayout.CENTER); tabbedPane.add("Information", new JScrollPane(informationPanel)); tabbedPane.setToolTipTextAt(4, "Information and statistics about the debugged connection"); } | 47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/a43b8a1cdb5f3b07a0a1df0570681125d1cc1725/EnhancedDebugger.java/buggy/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
5369,
5537,
1435,
288,
3639,
368,
1788,
6484,
2186,
364,
1459,
1779,
18,
3639,
24048,
1779,
5537,
273,
394,
24048,
5621,
3639,
1779,
5537,
18,
542,
3744,
12,
2704,
30814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
5369,
5537,
1435,
288,
3639,
368,
1788,
6484,
2186,
364,
1459,
1779,
18,
3639,
24048,
1779,
5537,
273,
394,
24048,
5621,
3639,
1779,
5537,
18,
542,
3744,
12,
2704,
30814,
... |
Asserts.isTrue(!member.isNil(), "uninitialized struct"); | assert !member.isNil() : "uninitialized struct"; | public RubyString inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0; i < member.getLength(); i++) { if (i > 0) { sb.append(", "); } sb.append(member.entry(i).asSymbol()).append("="); sb.append(values[i].callMethod("inspect")); } sb.append('>'); return getRuntime().newString(sb.toString()); // OBJ_INFECT } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyStruct.java/clean/src/org/jruby/RubyStruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
5334,
1435,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
780,
5334,
1435,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
1815,
401,
5990,
18,
291,
12616,
... |
return ((RubyString) callMethod("to_s")).getValue(); | return ((RubyString) callMethod("to_s")).toString(); | public String toString() { return ((RubyString) callMethod("to_s")).getValue(); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/9f2efc63a858fa0507245b207025eab027840a04/RubyObject.java/buggy/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
14015,
54,
10340,
780,
13,
745,
1305,
2932,
869,
67,
87,
7923,
2934,
10492,
5621,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
327,
14015,
54,
10340,
780,
13,
745,
1305,
2932,
869,
67,
87,
7923,
2934,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public static Object call0(Function fun, Scriptable thisObj, | public static Object call0(Callable fun, Scriptable thisObj, | public static Object call0(Function fun, Scriptable thisObj, Context cx, Scriptable scope) { return fun.call(cx, scope, thisObj, ScriptRuntime.emptyArgs); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/90ebe1bf30876ca8ca8a098496166e8475268746/OptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/OptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
20,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
71,
92,
16,
2146,
16,
15261,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
20,
12,
11452,
9831,
16,
22780,
15261,
16,
1171,
9079,
1772,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
327,
9831,
18,
1991,
12,
71,
92,
16,
2146,
16,
15261,
16,
... |
if (e.getClickCount() == 2) { onDoubleClick(); } } | if (e.getClickCount() == 2) { onDoubleClick(); } } | public void mouseClicked(MouseEvent e) { // If the user double clicked on a row, then call onDoubleClick if (e.getClickCount() == 2) { onDoubleClick(); } } | 55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/2224b49c445911182579708c97cbe27050123ac6/AbstractObjectTable.java/buggy/sandbox/src/main/java/org/springframework/richclient/table/support/AbstractObjectTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
5411,
368,
971,
326,
729,
1645,
17688,
603,
279,
1027,
16,
1508,
745,
603,
5265,
6563,
5411,
309,
261,
73,
18,
588,
6563,
1380,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
5411,
368,
971,
326,
729,
1645,
17688,
603,
279,
1027,
16,
1508,
745,
603,
5265,
6563,
5411,
309,
261,
73,
18,
588,
6563,
1380,
143... |
super(position); | super(position, NodeTypes.DSYMBOLNODE); | public DSymbolNode(ISourcePosition position, DStrNode node) { super(position); this.node = node; } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/6e15491217631472c05c6928672f9c7064a978b3/DSymbolNode.java/buggy/src/org/jruby/ast/DSymbolNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
463,
5335,
907,
12,
45,
1830,
2555,
1754,
16,
463,
1585,
907,
756,
13,
288,
202,
202,
9565,
12,
3276,
1769,
202,
202,
2211,
18,
2159,
273,
756,
31,
202,
97,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
463,
5335,
907,
12,
45,
1830,
2555,
1754,
16,
463,
1585,
907,
756,
13,
288,
202,
202,
9565,
12,
3276,
1769,
202,
202,
2211,
18,
2159,
273,
756,
31,
202,
97,
2,
-100,
-100,
... |
ConfigurationContextFactory factory = new ConfigurationContextFactory(); | public void testechoBean2() throws AxisFault { configureSystem("echoBean"); Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); ConfigurationContextFactory factory = new ConfigurationContextFactory(); ConfigurationContext configContext = factory.createConfigurationContextFromFileSystem("target/test-resources/integrationRepo",null); RPCServiceClient sender = new RPCServiceClient(configContext, null); sender.setOptions(options); MyBean bean = new MyBean(); bean.setAge(100); bean.setName("Deepal"); bean.setValue(false); AddressBean ab = new AddressBean(); ab.setNumber(1010); ab.setTown("Colombo3"); bean.setAddress(ab); ArrayList args = new ArrayList(); args.add(bean); ArrayList ret = new ArrayList(); ret.add(MyBean.class); Object [] response = sender.invokeBlocking(operationName, args.toArray(), ret.toArray()); MyBean resBean = (MyBean) response[0]; assertNotNull(resBean); assertEquals(resBean.getAge(), 100); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/f2eb318fb061f6d3380b2da72c4a8f478a46b68a/RPCCallTest.java/clean/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12946,
3381,
22,
1435,
1216,
15509,
7083,
288,
3639,
5068,
3163,
2932,
12946,
3381,
8863,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
542,
774,
12,
3299,
41,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12946,
3381,
22,
1435,
1216,
15509,
7083,
288,
3639,
5068,
3163,
2932,
12946,
3381,
8863,
3639,
5087,
702,
273,
394,
5087,
5621,
3639,
702,
18,
542,
774,
12,
3299,
41,
80... | |
Logger.error(this, "Caught "+e+" while sending messages, requeueing"); | Logger.error(this, "Caught "+e+" while sending messages, requeueing", e); | public void processOutgoingOrRequeue(MessageItem[] messages, PeerNode pn, boolean neverWaitForPacketNumber) { Logger.minor(this, "processOutgoingOrRequeue "+messages.length+" messages for "+pn+" ("+neverWaitForPacketNumber+")"); byte[][] messageData = new byte[messages.length][]; int length = 1; int callbacksCount = 0; int x = 0; for(int i=0;i<messageData.length;i++) { MessageItem mi = messages[i]; if(mi.formatted) { try { byte[] buf = mi.getData(this, pn); KeyTracker kt = pn.getCurrentKeyTracker(); if(kt == null) { Logger.minor(this, "kt = null"); pn.requeueMessageItems(messages, i, messages.length-i, false); return; } int packetNumber = kt.allocateOutgoingPacketNumberNeverBlock(); this.processOutgoingPreformatted(buf, 0, buf.length, pn.getCurrentKeyTracker(), packetNumber, mi.cb); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (KeyChangedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing", e); // Requeue pn.requeueMessageItems(messages, i, messages.length-i, false); return; } } else { byte[] data = mi.getData(this, pn); messageData[x++] = data; if(mi.cb != null) callbacksCount += mi.cb.length; Logger.minor(this, "Sending: "+mi+" length "+data.length+" cb "+mi.cb); length += (data.length + 2); } } if(x != messageData.length) { byte[][] newMessageData = new byte[x][]; System.arraycopy(messageData, 0, newMessageData, 0, x); messageData = newMessageData; } AsyncMessageCallback callbacks[] = new AsyncMessageCallback[callbacksCount]; x=0; for(int i=0;i<messages.length;i++) { if(messages[i].formatted) continue; if(messages[i].cb != null) { System.arraycopy(messages[i].cb, 0, callbacks, x, messages[i].cb.length); x += messages[i].cb.length; } } if(x != callbacksCount) throw new IllegalStateException(); if(length < node.usm.getMaxPacketSize() && messages.length < 256) { try { innerProcessOutgoing(messageData, 0, messageData.length, length, pn, neverWaitForPacketNumber, callbacks); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing"); // Requeue pn.requeueMessageItems(messages, 0, messages.length, false); return; } } else { length = 1; int count = 0; int lastIndex = 0; for(int i=0;i<=messages.length;i++) { int thisLength; if(i == messages.length) thisLength = 0; else thisLength = (messageData[i].length + 2); int newLength = length + thisLength; if(thisLength > node.usm.getMaxPacketSize()) { Logger.error(this, "Message exceeds packet size: "+messages[i]); // Send the last lot, then send this } count++; if(newLength > node.usm.getMaxPacketSize() || count > 255 || i == messages.length) { // lastIndex up to the message right before this one // e.g. lastIndex = 0, i = 1, we just send message 0 if(lastIndex != i) { try { innerProcessOutgoing(messageData, lastIndex, i-lastIndex, length, pn, neverWaitForPacketNumber, callbacks); } catch (NotConnectedException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } catch (WouldBlockException e) { Logger.normal(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } catch (Throwable e) { Logger.error(this, "Caught "+e+" while sending messages, requeueing remaining messages"); // Requeue pn.requeueMessageItems(messages, lastIndex, messages.length - lastIndex, false); return; } } lastIndex = i; if(i != messages.length) length = 1 + (messageData[i].length + 2); count = 0; } else length = newLength; } } } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/d10b21446936a981fde954dd017325c3933d41c6/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
2567,
248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
24866,
1162,
426,
4000,
12,
1079,
1180,
8526,
2743,
16,
10669,
907,
11059,
16,
1250,
5903,
29321,
6667,
1854,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
2567,
248... |
buildResourceCollection(classContext, method, resourceTracker); | buildResourceCollection(classContext, method, resourceTracker); | public void visitClassContext(ClassContext classContext) { final JavaClass jclass = classContext.getJavaClass(); Method[] methodList = jclass.getMethods(); for (int i = 0; i < methodList.length; ++i) { Method method = methodList[i]; if (method.isAbstract() || method.isNative()) continue; MethodGen methodGen = classContext.getMethodGen(method); if (methodGen == null) continue; if (DEBUG_METHOD_NAME != null && !DEBUG_METHOD_NAME.equals(method.getName())) continue; if (!prescreen(classContext, method)) continue; if (DEBUG) { System.out.println("----------------------------------------------------------------------"); System.out.println("Analyzing " + SignatureConverter.convertMethodSignature(methodGen)); System.out.println("----------------------------------------------------------------------"); } try { ResourceTrackerType resourceTracker = getResourceTracker(classContext, method); ResourceCollection<Resource> resourceCollection = buildResourceCollection(classContext, method, resourceTracker); if (resourceCollection.isEmpty()) continue; analyzeMethod(classContext, method, resourceTracker, resourceCollection); } catch (CFGBuilderException e) { bugReporter.logError(e.toString()); } catch (DataflowAnalysisException e) { bugReporter.logError(e.toString()); } } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/ResourceTrackingDetector.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ResourceTrackingDetector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
797,
1042,
12,
797,
1042,
667,
1042,
13,
288,
202,
202,
6385,
29491,
525,
1106,
273,
667,
1042,
18,
588,
5852,
797,
5621,
202,
202,
1305,
8526,
707,
682,
273,
525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
797,
1042,
12,
797,
1042,
667,
1042,
13,
288,
202,
202,
6385,
29491,
525,
1106,
273,
667,
1042,
18,
588,
5852,
797,
5621,
202,
202,
1305,
8526,
707,
682,
273,
525,
... |
case ( LineStyle.DASHED ) : | case ( LineStyle.DASHED ) : | public void drawLine( LineRenderEvent lre ) throws ChartException { // CHECK IF THE LINE ATTRIBUTES ARE CORRECTLY DEFINED final LineAttributes lia = lre.getLineAttributes( ); if ( !validateLineAttributes( lre.getSource( ), lia ) || lia.getColor( ) == null ) { return; } // DRAW THE LINE final int iOldLineStyle = _gc.getLineStyle( ); final int iOldLineWidth = _gc.getLineWidth( ); final Color cFG = (Color) _ids.getColor( lia.getColor( ) ); int iLineStyle = SWT.LINE_SOLID; switch ( lia.getStyle( ).getValue( ) ) { case ( LineStyle.DOTTED ) : iLineStyle = SWT.LINE_DOT; break; case ( LineStyle.DASH_DOTTED ) : iLineStyle = SWT.LINE_DASHDOT; break; case ( LineStyle.DASHED ) : iLineStyle = SWT.LINE_DASH; break; } _gc.setLineStyle( iLineStyle ); _gc.setLineWidth( lia.getThickness( ) ); final Location lo1 = lre.getStart( ); final Location lo2 = lre.getEnd( ); _gc.setForeground( cFG ); R31Enhance.setAlpha( _gc, lia.getColor( ) ); _gc.drawLine( (int) ( ( lo1.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo1.getY( ) + dTranslateY ) * dScale ), (int) ( ( lo2.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo2.getY( ) + dTranslateY ) * dScale ) ); _gc.setLineStyle( iOldLineStyle ); _gc.setLineWidth( iOldLineWidth ); cFG.dispose( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/20bb7679d106e8105100c095c900612d5a37a46d/SwtRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
30732,
12,
5377,
3420,
1133,
328,
266,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
14565,
11083,
12786,
14340,
14043,
18744,
432,
862,
28359,
4512,
7076,
2030,
7263,
2056,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30732,
12,
5377,
3420,
1133,
328,
266,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
14565,
11083,
12786,
14340,
14043,
18744,
432,
862,
28359,
4512,
7076,
2030,
7263,
2056,... |
if (methodId == Id_JavaAdapter) { return 1; } throw IdFunction.onBadMethodId(this, methodId); | if (f.hasTag(FTAG)) { if (f.methodId == Id_JavaAdapter) { return 1; } } throw f.unknown(); | public int methodArity(int methodId) { if (methodId == Id_JavaAdapter) { return 1; } throw IdFunction.onBadMethodId(this, methodId); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/4ab02a82029cd37abeb37ef8a90e5c06586ae4f3/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
2039,
548,
422,
3124,
67,
5852,
4216,
13,
288,
327,
404,
31,
289,
3639,
604,
3124,
2083,
18,
265,
6434,
3079... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
2039,
548,
422,
3124,
67,
5852,
4216,
13,
288,
327,
404,
31,
289,
3639,
604,
3124,
2083,
18,
265,
6434,
3079... |
HashTable ht = (HashTable)customFactories.get(namespaceURI); if (ht == null) { customFactories.put(namespaceURI, ht = new HashTable()); } ht.put(localName, factory); | customFactories.put(namespaceURI, localName, factory); | public void registerCustomElementFactory(String namespaceURI, String localName, ElementFactory factory) { if (customFactories == null) { customFactories = new HashTable(); } HashTable ht = (HashTable)customFactories.get(namespaceURI); if (ht == null) { customFactories.put(namespaceURI, ht = new HashTable()); } ht.put(localName, factory); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/c894adcdabbe67baf55a0333571ad839739df615/ExtensibleSVGDOMImplementation.java/clean/sources/org/apache/batik/dom/svg/ExtensibleSVGDOMImplementation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
3802,
1046,
1733,
12,
780,
19421,
16,
4766,
2398,
514,
11927,
16,
4766,
2398,
3010,
1733,
3272,
13,
288,
3639,
309,
261,
3662,
19271,
422,
446,
13,
288,
5411,
1679,
19271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
3802,
1046,
1733,
12,
780,
19421,
16,
4766,
2398,
514,
11927,
16,
4766,
2398,
3010,
1733,
3272,
13,
288,
3639,
309,
261,
3662,
19271,
422,
446,
13,
288,
5411,
1679,
19271... |
NotEqualConstraint c = (NotEqualConstraint)this.appliedConstraints.get( NOT_EQUAL_CONSTRAINT ); if(c == null) return null; return c.getNotEqualTo(); } | NotEqualConstraint c = (NotEqualConstraint)this.appliedConstraints.get( NOT_EQUAL_CONSTRAINT ); if(c == null) return null; return c.getNotEqualTo(); } | public Object getNotEqual() { NotEqualConstraint c = (NotEqualConstraint)this.appliedConstraints.get( NOT_EQUAL_CONSTRAINT ); if(c == null) return null; return c.getNotEqualTo(); } | 50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
336,
1248,
5812,
1435,
288,
202,
202,
1248,
5812,
5806,
276,
273,
261,
1248,
5812,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
4269,
67,
12853,
67,
15199,
11272,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
336,
1248,
5812,
1435,
288,
202,
202,
1248,
5812,
5806,
276,
273,
261,
1248,
5812,
5806,
13,
2211,
18,
438,
3110,
4878,
18,
588,
12,
4269,
67,
12853,
67,
15199,
11272,
2... |
} try { if( appletClass != null ) { active = true; Main.debug( "Applet #" + appletID + ": class is loaded" ); app = (Applet) appletClass.newInstance(); app.setStub( this ); app.resize( appletSize ); app.setVisible( false ); panel.add( "Center", app ); panel.validate(); app.init(); panel.validate(); app.resize( appletSize ); app.start(); panel.validate(); app.setVisible( true ); } else { panel.add( "Center", new Label( "Applet Failed" ) ); } } catch( InstantiationException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.add( "Center", new Label( "Applet Failed" ) ); } catch( IllegalAccessException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.add( "Center", new Label( "Applet Failed" ) ); } | ); runThread.start(); | private void createApplet() { while( setupWindowThread.isAlive() || classLoadingThread.isAlive() ) { Main.debug( "Applet #" + appletID + ": waiting for setup threads to finish, going to sleep" ); try { Thread.sleep( 500 ); } catch( InterruptedException e ) { Main.debug( "thread could not sleep" ); } } try { if( appletClass != null ) { active = true; //this order is very important and touchy- be careful when //playing around with it... Main.debug( "Applet #" + appletID + ": class is loaded" ); app = (Applet) appletClass.newInstance(); app.setStub( this ); app.resize( appletSize ); app.setVisible( false ); panel.add( "Center", app ); panel.validate(); app.init(); panel.validate(); app.resize( appletSize ); app.start(); //We're already in a thread, so don't create a new one panel.validate(); app.setVisible( true ); } else { panel.add( "Center", new Label( "Applet Failed" ) ); } } catch( InstantiationException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.add( "Center", new Label( "Applet Failed" ) ); } catch( IllegalAccessException e ) { Main.kjas_err( "Could not instantiate applet", e ); panel.add( "Center", new Label( "Applet Failed" ) ); } } | 45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/efd3019737d4b93aace14ce1beaee9864e85ba05/KJASAppletStub.java/clean/khtml/java/org/kde/kjas/server/KJASAppletStub.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
23696,
1435,
565,
288,
3639,
1323,
12,
3875,
3829,
3830,
18,
291,
10608,
1435,
747,
667,
10515,
3830,
18,
291,
10608,
1435,
262,
3639,
288,
5411,
12740,
18,
4148,
12,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
23696,
1435,
565,
288,
3639,
1323,
12,
3875,
3829,
3830,
18,
291,
10608,
1435,
747,
667,
10515,
3830,
18,
291,
10608,
1435,
262,
3639,
288,
5411,
12740,
18,
4148,
12,
315,... |
OPT_LiveAnalysis.BBLiveElement le = live.getLiveInfo(bb); | private java.util.Set scheduleCopies (OPT_BasicBlock bb, OPT_LiveAnalysis live, VariableStacks s) { // pushed records variables renamed in this block java.util.Set pushed = new java.util.HashSet(4); // compute out liveness from information in LiveAnalysis OPT_LiveAnalysis.BBLiveElement le = live.getLiveInfo(bb); OPT_LiveSet out = new OPT_LiveSet(); out.add(le.in()); out.remove(le.BBKillSet()); out.add(le.gen()); // initialization java.util.HashMap map = new java.util.HashMap(4); java.util.HashSet usedByAnother = new java.util.HashSet(4); OPT_LinkedListObjectElement copySet = null; OPT_LinkedListObjectElement workList = null; // collect copies required in this block. These copies move // the appropriate rval into the lval of each phi node in // control children of the current block. Enumeration e = bb.getOut(); while (e.hasMoreElements()) { OPT_BasicBlock bbs = (OPT_BasicBlock)e.nextElement(); if (bbs.isExit()) continue; for (OPT_Instruction phi = bbs.firstInstruction(); phi != bbs.lastInstruction(); phi = phi.nextInstructionInCodeOrder()) { if (phi.operator() != PHI) continue; for (int index=0; index<bbs.getNumberOfIn(); index++) { if (Phi.getPred(phi,index).block != bb) continue; OPT_Operand rval = Phi.getValue(phi, index); if (rval.isRegister() && Phi.getResult(phi).asRegister().register == rval.asRegister().register) continue; Copy c = new Copy(phi, index); copySet = OPT_LinkedListObjectElement.cons(c, copySet); if (c.source instanceof OPT_RegisterOperand) { OPT_Register r = c.source.asRegister().register; map.put(r, r); usedByAnother.add(r); } if (c.destination instanceof OPT_RegisterOperand) { OPT_Register r = c.destination.asRegister().register; map.put(r, r); } } } } // the copies that need to be added to this block are processed // in a worklist that ensures that copies are inserted only // after the destination register has been read by any other copy // that needs it. // // initialize work list with all copies whose destination is not // the source for any other copy, and delete such copies from // the set of needed copies. OPT_LinkedListObjectElement ptr = OPT_LinkedListObjectElement.cons(null, copySet); OPT_LinkedListObjectElement head = ptr; while (ptr.getNext() != null) { Copy c = (Copy)((OPT_LinkedListObjectElement)ptr.getNext()).getValue(); if (!usedByAnother.contains(c.destination.register)) { workList = OPT_LinkedListObjectElement.cons(c, workList); ptr.setNext(ptr.getNext().getNext()); } else ptr = (OPT_LinkedListObjectElement)ptr.getNext(); } copySet = (OPT_LinkedListObjectElement)head.getNext(); // while there is any more work to do. while (workList != null || copySet != null) { // while there are copies that can be correctly inserted. while (workList != null) { Copy c = (Copy)workList.getValue(); workList = (OPT_LinkedListObjectElement)workList.getNext(); OPT_Register r = c.destination.register; VM_Type tt = c.destination.type; if (tt == null) { tt = VM_Type.IntType; VM.sysWrite("OPT_SSA, warning: null type in " + c.destination + "\n"); } // this check captures cases when the result of a phi // in a control successor is live on exit of the current // block. this means it is incorrect to simply insert // a copy of the destination in the current block. so // we rename the destination to a new temporary, and // record the renaming so that dominator blocks get the // new name. if (out.contains(r)) { OPT_Register t = ir.regpool.getReg(r); OPT_Instruction save = OPT_SSA.makeMoveInstruction(ir, t, r, tt); c.phi.insertFront(save); s.push(r, new OPT_RegisterOperand(t, tt)); pushed.add(r); } OPT_Instruction ci = null; // insert copy operation required to remove phi if (c.source instanceof OPT_NullConstantOperand) { if (tt.isReferenceType()) ci = OPT_SSA.makeMoveInstruction(ir, r, (OPT_ConstantOperand)c.source); } else if (c.source instanceof OPT_ConstantOperand) { ci = OPT_SSA.makeMoveInstruction(ir, r, (OPT_ConstantOperand)c.source); } else if (c.source instanceof OPT_RegisterOperand) { OPT_Register sr = c.source.asRegister().register; ci = OPT_SSA.makeMoveInstruction(ir, r, (OPT_Register)map.get(sr), tt); map.put(sr, r); } else { throw new OPT_OptimizingCompilerException("Unexpected phi operand " + c.source + " encountered during SSA teardown", true); } if (ci != null) OPT_SSA.addAtEnd(ir, bb, ci, c.phi.getBasicBlock().isExceptionHandlerBasicBlock()); // source has been copied and so can now be overwritten // safely. so now add any copies _to_ the source of the // current copy to the work list. if (c.source instanceof OPT_RegisterOperand) { OPT_Register saved = c.source.asRegister().register; OPT_LinkedListObjectElement ptr1 = OPT_LinkedListObjectElement.cons( null, copySet); OPT_LinkedListObjectElement head1 = ptr1; while (ptr1.getNext() != null) { Copy cc = (Copy)((OPT_LinkedListObjectElement)ptr1.getNext()). getValue(); if (cc.destination.asRegister().register == saved) { workList = OPT_LinkedListObjectElement.cons(cc, workList); ptr1.setNext(ptr1.getNext().getNext()); } else ptr1 = (OPT_LinkedListObjectElement)ptr1.getNext(); } copySet = (OPT_LinkedListObjectElement)head1.getNext(); } } // and empty work list with work remaining in the copy set // implies a cycle in the dependencies amongst copies. deal // with this: break the cycle by copying the destination // of an arbitrary member of the copy set into a temporary. // this destination has thus been saved, and can now be // safely overwritten. so, add that copy to the work list. if (copySet != null) { Copy c = (Copy)copySet.getValue(); copySet = (OPT_LinkedListObjectElement)copySet.getNext(); OPT_Register tt = ir.regpool.getReg(c.destination.register); OPT_SSA.addAtEnd(ir, bb, OPT_SSA.makeMoveInstruction( ir, tt, c.destination.register, c.destination.type), c.phi.getBasicBlock().isExceptionHandlerBasicBlock()); map.put(c.destination.register, tt); workList = OPT_LinkedListObjectElement.cons(c, workList); } } return pushed; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d097d2f7e455c77ef9b06a584b230d96284784fb/OPT_LeaveSSA.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/builder/OPT_LeaveSSA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2252,
18,
1367,
18,
694,
4788,
15670,
261,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
12328,
9418,
8429,
16,
4766,
565,
7110,
28090,
272,
13,
288,
565,
368,
18543,
3853,
3152,
1765... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
1367,
18,
694,
4788,
15670,
261,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
12328,
9418,
8429,
16,
4766,
565,
7110,
28090,
272,
13,
288,
565,
368,
18543,
3853,
3152,
1765... | |
String columnName = (String) columnOrder.get(colNumber); | String columnName = columnOrder.get(colNumber); | public void editRow(List columnOrder, int colNumber, Object data) { String columnName = (String) columnOrder.get(colNumber); String strData = String.valueOf(data); if (columnName.equals("Name")) { // Spell's Name setName(strData); } else if (columnName.equals("Player")) { // Name of the player who cast the spell setPlayer(strData); } else if (columnName.equals("Status")) { // SPell's status setStatus(strData); } else if (columnName.equals("Dur")) { // Spell's duration Integer intData = new Integer(strData); setDuration(intData.intValue()); } } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/Effect.java/buggy/code/src/java/gmgen/plugin/Effect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3874,
1999,
12,
682,
1057,
2448,
16,
509,
645,
1854,
16,
1033,
501,
13,
202,
95,
202,
202,
780,
7578,
273,
261,
780,
13,
1057,
2448,
18,
588,
12,
1293,
1854,
1769,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3874,
1999,
12,
682,
1057,
2448,
16,
509,
645,
1854,
16,
1033,
501,
13,
202,
95,
202,
202,
780,
7578,
273,
261,
780,
13,
1057,
2448,
18,
588,
12,
1293,
1854,
1769,
202,... |
public void setPortletDefinitionList(PortletDefinitionList list) { this.portletDefinitionList = list; | public void setPortletDefinitionList(PortletDefinitionList portletDefinitions) { this.portletDefinitionList = portletDefinitions; | public void setPortletDefinitionList(PortletDefinitionList list) { this.portletDefinitionList = list; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/5d00609e6e62a431aff83e3d49928c6e13370afd/PortletApplicationDefinitionImpl.java/buggy/source/org/jasig/portal/container/om/portlet/PortletApplicationDefinitionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
18566,
1852,
682,
12,
18566,
1852,
682,
666,
13,
288,
3639,
333,
18,
655,
1810,
1852,
682,
273,
666,
31,
565,
289,
2,
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,
0,
0,
0,
0,
0,
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,
444,
18566,
1852,
682,
12,
18566,
1852,
682,
666,
13,
288,
3639,
333,
18,
655,
1810,
1852,
682,
273,
666,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
" 9 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + | " 9 getstatic java.lang.System.out : java.io.PrintStream [16]\n" + | public void test040() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " int i = 6;\n" + " if ((i == 6) \n" + " | false) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; String expectedOutput = " // Method descriptor #15 ([Ljava/lang/String;)V\n" + " // Stack: 2, Locals: 2\n" + " public static void main(String[] args);\n" + " 0 bipush 6\n" + " 2 istore_1 [i]\n" + " 3 iload_1 [i]\n" + " 4 bipush 6\n" + " 6 if_icmpne 16\n" + " 9 getstatic java.lang.System.out : java.io.PrintStream [21]\n" + " 12 iload_1 [i]\n" + " 13 invokevirtual java.io.PrintStream.println(int) : void [27]\n" + " 16 return\n" + " Line numbers:\n" + " [pc: 0, line: 3]\n" + " [pc: 3, line: 4]\n" + " [pc: 9, line: 6]\n" + " [pc: 16, line: 8]\n" + " Local variable table:\n" + " [pc: 0, pc: 17] local: args index: 0 type: java.lang.String[]\n" + " [pc: 3, pc: 17] local: i index: 1 type: int\n"; checkClassFile("A", source, expectedOutput); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c17970bb54810597f5d28802d36bfac65d844634/ClassFileReaderTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3028,
20,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3028,
20,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1... |
selectionDisplay.removeAll(); | removeSelectionDisplay(); | public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionDisplay = new MultiSeismogramWindowDisplay(mouseForwarder, motionForwarder, this); addSelection(creator, selectionDisplay); selectionWindow = new JFrame(tagWindowName); selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } }); selectionWindow.setSize(400, 200); selectionWindow.getContentPane().add(new JScrollPane(selectionDisplay)); Toolkit tk = Toolkit.getDefaultToolkit(); selectionWindow.setLocation((tk.getScreenSize().width - selectionWindow.getSize().width)/2, (tk.getScreenSize().height - selectionWindow.getSize().height)/2); selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); addSelection(creator,selectionDisplay); selectionWindow.toFront(); } } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/c071d3a61ff49f2a30e53815402841d4f39a7c3b/VerticalSeismogramDisplay.java/clean/src/edu/sc/seis/fissuresUtil/display/VerticalSeismogramDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
6233,
4236,
12,
6233,
11784,
15329,
202,
430,
12,
10705,
4236,
422,
446,
15329,
202,
565,
1194,
18,
4148,
2932,
23799,
4421,
2562,
8863,
202,
565,
4421,
4236,
273,
394,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
6233,
4236,
12,
6233,
11784,
15329,
202,
430,
12,
10705,
4236,
422,
446,
15329,
202,
565,
1194,
18,
4148,
2932,
23799,
4421,
2562,
8863,
202,
565,
4421,
4236,
273,
394,
59... |
protected void handleCodeSAC(long expressionCounter, String hashCode, Highlight h) { | protected void handleCodeSAC(long expressionCounter, String hashCode, Highlight h) { | protected void handleCodeSAC(long expressionCounter, String hashCode, Highlight h) { //This should handle the possible object //assignment etc. if (!objectCreation.empty()) { //First reference to the created object is taken Reference ref = (Reference) objectCreation.pop(); Instance inst = ref.getInstance(); inst.setHashCode(hashCode); //The instance is putted in the hashtable that //keeps the instances instances.put(hashCode, inst); //Then we handle the possible expressions //concerning this reference. } Value ret = director.getCurrentMethodFrame().getVariable("this").getValue(); Value casted = null; Instance inst = (Instance) instances.get(hashCode); if (inst != null) { casted = new Reference(inst); } else { casted = new Reference(); } Actor returnActor = director.animateReturn(ret, casted, h); Value returnValue = (Value) casted.clone(); Value rv; if (returnValue instanceof Reference) { rv = (Value) ((Reference) returnValue).clone(); } else { rv = (Value) returnValue.clone(); } ValueActor va = director.finishMethod(returnActor, expressionCounter); closeExpressionStack(); rv.setActor(va); handleExpression(rv, expressionCounter); if (currentMethodInvocation != null) { invokingMethod = true; } } | 49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/4f8e3bd480c250109c4e88a15fb468e8d6463729/TheaterMCodeInterpreter.java/buggy/src/jeliot/mcode/TheaterMCodeInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1085,
55,
2226,
12,
5748,
2652,
4789,
16,
514,
13374,
16,
31386,
366,
13,
288,
3639,
368,
2503,
1410,
1640,
326,
3323,
733,
3639,
368,
12960,
5527,
18,
3639,
309,
16051,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1085,
55,
2226,
12,
5748,
2652,
4789,
16,
514,
13374,
16,
31386,
366,
13,
288,
3639,
368,
2503,
1410,
1640,
326,
3323,
733,
3639,
368,
12960,
5527,
18,
3639,
309,
16051,
... |
button = createButton(im.getIcon(IconManager.SAVE), controller.getAction(ImViewerControl.SAVE)); | button = new JButton(controller.getAction(ImViewerControl.SAVE)); | private void createControlsBar() { bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); IconManager im = IconManager.getInstance(); JButton button = createButton(im.getIcon(IconManager.RENDERER), controller.getAction(ImViewerControl.RENDERER)); UIUtilities.unifiedButtonLookAndFeel(button); bar.add(button); button = createButton(im.getIcon(IconManager.MOVIE), controller.getAction(ImViewerControl.MOVIE)); UIUtilities.unifiedButtonLookAndFeel(button); bar.add(button); button = createButton(im.getIcon(IconManager.LENS), controller.getAction(ImViewerControl.LENS)); UIUtilities.unifiedButtonLookAndFeel(button); bar.add(button); bar.add(new JSeparator(SwingConstants.VERTICAL)); button = createButton(im.getIcon(IconManager.SAVE), controller.getAction(ImViewerControl.SAVE)); UIUtilities.unifiedButtonLookAndFeel(button); bar.add(button); } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/3b273af3a5320ab0a054540f14a3c299ff01de69/ToolBar.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ToolBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
16795,
5190,
1435,
565,
288,
3639,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
4723,
429,
12,
5743,
1769,
3639,
4653,
18,
542,
4984,
21896,
12,
3767,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
16795,
5190,
1435,
565,
288,
3639,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
4723,
429,
12,
5743,
1769,
3639,
4653,
18,
542,
4984,
21896,
12,
3767,
1769,... |
ii = new ImageInfo(); ii.setInput(thumbInputStream); if (!ii.check()) { throw new GalleryException( "Not a supported image file format."); } | ii = new ImageInfo(); ii.setInput(thumbInputStream); if (!ii.check()) { throw new GalleryException( "Not a supported image file format."); } | Image(String name, boolean isRepresentsSubdirectory, Folder folder, IImageAccessor imageAccessor,ThumbNailInfo thumbNailInfo) throws GalleryException { this.name = name; this.folder = folder; this.isRepresentsSubdirectory = isRepresentsSubdirectory; this.thumbNailInfo = thumbNailInfo; lastModified = imageAccessor.getLastModified(); fileDate = DateFormat.getDateInstance().format(new Date(lastModified)); InputStream imageInputStream; if (!isRepresentsSubdirectory) { try { // get image size using ImageInfo class imageInputStream = imageAccessor.getImageInputStream(); ImageInfo ii = new ImageInfo(); ii.setInput(imageInputStream); if (!ii.check()) { throw new GalleryException( "Not a supported image file format."); } imageWidth = Integer.toString(ii.getWidth()); imageHeight = Integer.toString(ii.getHeight()); fileSize = Long.toString(imageAccessor.getLength()); // get thumbnail image size using ImageInfo class InputStream thumbInputStream = imageAccessor .getThumbInputStream(); ii = new ImageInfo(); ii.setInput(thumbInputStream); if (!ii.check()) { throw new GalleryException( "Not a supported image file format."); } thumbWidth = Integer.toString(ii.getWidth()); thumbHeight = Integer.toString(ii.getHeight()); } catch (FileNotFoundException e) { throw new GalleryException(e.getMessage()); } try { imageInputStream = imageAccessor.getImageInputStream(); } catch (FileNotFoundException e) { throw new GalleryException(e.getMessage()); } try { exif = new EXIFInfo(imageInputStream); } catch (GalleryException e1) { exif = null; } } } | 5127 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5127/5d0a37785aec87eac25834d2b4fa8f96a55d4e47/Image.java/buggy/WEB-INF/src/de/jwi/jgallery/Image.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3421,
12,
780,
508,
16,
1250,
353,
23869,
87,
1676,
5149,
16,
12623,
3009,
16,
5411,
467,
2040,
8235,
1316,
8235,
16,
18922,
50,
671,
966,
11156,
50,
671,
966,
13,
1216,
31398,
503,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3421,
12,
780,
508,
16,
1250,
353,
23869,
87,
1676,
5149,
16,
12623,
3009,
16,
5411,
467,
2040,
8235,
1316,
8235,
16,
18922,
50,
671,
966,
11156,
50,
671,
966,
13,
1216,
31398,
503,
565... |
if (instance == null) instance = new MetalRadioButtonUI(); return instance; | return new MetalRadioButtonUI(); | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalRadioButtonUI(); return instance; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/52728387fbbd89f047ceda6adf8c1b525e24e3d1/MetalRadioButtonUI.java/clean/javax/swing/plaf/metal/MetalRadioButtonUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
1794,
13,
225,
288,
565,
309,
261,
1336,
422,
446,
13,
1377,
791,
273,
394,
21604,
287,
19984,
3616,
5370,
5621,
565,
327,
791,
31,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
5435,
5370,
752,
5370,
12,
46,
1841,
1794,
13,
225,
288,
565,
309,
261,
1336,
422,
446,
13,
1377,
791,
273,
394,
21604,
287,
19984,
3616,
5370,
5621,
565,
327,
791,
31,
225,
... |
public void lookupFailed( String a_oid, NamingException a_fault ) | public void lookupFailed( String oid, NamingException fault ) | public void lookupFailed( String a_oid, NamingException a_fault ) { } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/385a49334a1b7600eef5534ffcf74cdf77039bf0/ComparatorRegistryMonitorAdapter.java/buggy/backend/api/src/java/org/apache/eve/schema/ComparatorRegistryMonitorAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3689,
2925,
12,
514,
7764,
16,
26890,
12530,
262,
565,
288,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3689,
2925,
12,
514,
7764,
16,
26890,
12530,
262,
565,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Point cp = SwingUtilities.convertPoint(nativeContainer, | Point cp = AWTUtilities.convertPoint(nativeContainer, | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { candidate = SwingUtilities.getDeepestComponentAt(parent, p.x, p.y); if (candidate == null || (candidate.eventMask & me.getID()) == 0) { candidate = null; p = SwingUtilities.convertPoint(parent, p.x, p.y, parent.parent); parent = parent.parent; } } // If the only candidate we found was the native container itself, // don't dispatch any event at all. We only care about the lightweight // children here. if (candidate == nativeContainer) candidate = null; // If our candidate is new, inform the old target we're leaving. if (lastComponentEntered != null && lastComponentEntered.isShowing() && lastComponentEntered != candidate) { // Old candidate could have been removed from // the nativeContainer so we check first. if (SwingUtilities.isDescendingFrom(lastComponentEntered, nativeContainer)) { Point tp = SwingUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent exited = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_EXITED, me.getWhen (), me.getModifiersEx (), tp.x, tp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); tempComponent = lastComponentEntered; lastComponentEntered = null; tempComponent.dispatchEvent(exited); } lastComponentEntered = null; } // If we have a candidate, maybe enter it. if (candidate != null) { mouseEventTarget = candidate; if (candidate.isLightweight() && candidate.isShowing() && candidate != nativeContainer && candidate != lastComponentEntered) { lastComponentEntered = mouseEventTarget; Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent entered = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_ENTERED, me.getWhen (), me.getModifiersEx (), cp.x, cp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); lastComponentEntered.dispatchEvent (entered); } } if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && pressCount > 0 || me.getID() == MouseEvent.MOUSE_DRAGGED) // If any of the following events occur while a button is held down, // they should be dispatched to the same component to which the // original MOUSE_PRESSED event was dispatched: // - MOUSE_RELEASED // - MOUSE_PRESSED: another button pressed while the first is held down // - MOUSE_DRAGGED if (SwingUtilities.isDescendingFrom(pressedComponent, nativeContainer)) mouseEventTarget = pressedComponent; else if (me.getID() == MouseEvent.MOUSE_CLICKED) { // Don't dispatch CLICKED events whose target is not the same as the // target for the original PRESSED event. if (candidate != pressedComponent) mouseEventTarget = null; else if (pressCount == 0) pressedComponent = null; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Container.java/clean/core/src/classpath/java/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
368,
... |
if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_INFO)) A_OpenCms.log(C_OPENCMS_INFO, "[OpenCmsServlet] ... shutdown completed."); | if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_INIT)) { A_OpenCms.log(C_OPENCMS_INIT, "[OpenCmsServlet] ... shutdown completed."); } | public void destroy() { if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_INFO)) A_OpenCms.log(C_OPENCMS_INFO, "[OpenCmsServlet] Performing shutdown ..."); try { m_opencms.destroy(); }catch(CmsException e) { if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_CRITICAL)) A_OpenCms.log(C_OPENCMS_CRITICAL, "[OpenCmsServlet]" + e.toString()); } try{ Utils.getModulShutdownMethods(OpenCms.getRegistry()); }catch (CmsException e){ // log exception since we are about to shutdown anyway if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_CRITICAL)) A_OpenCms.log(C_OPENCMS_CRITICAL, "[OpenCmsServlet] Module shutdown exception: " + e); } if(C_LOGGING && A_OpenCms.isLogging(C_OPENCMS_INFO)) A_OpenCms.log(C_OPENCMS_INFO, "[OpenCmsServlet] ... shutdown completed."); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/b69bc3e4de23f7cf30916ed534121f42628a63ee/OpenCmsHttpServlet.java/buggy/src/com/opencms/core/OpenCmsHttpServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5546,
1435,
288,
3639,
309,
12,
39,
67,
28162,
597,
432,
67,
3678,
4747,
18,
291,
7735,
12,
39,
67,
11437,
13802,
67,
5923,
3719,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5546,
1435,
288,
3639,
309,
12,
39,
67,
28162,
597,
432,
67,
3678,
4747,
18,
291,
7735,
12,
39,
67,
11437,
13802,
67,
5923,
3719,
432,
67,
3678,
4747,
18,
1330,
12,
39,
67,... |
if (yy > nHeap) { | if ( yy > nHeap ) { | protected static void hbMakeCodeLengths(char[] len, int[] freq, int alphaSize, int maxLen) { /* Nodes and heap entries run from 1. Entry 0 for both the heap and nodes is a sentinel. */ int nNodes, nHeap, n1, n2, i, j, k; boolean tooLong; int[] heap = new int[MAX_ALPHA_SIZE + 2]; int[] weight = new int[MAX_ALPHA_SIZE * 2]; int[] parent = new int[MAX_ALPHA_SIZE * 2]; for (i = 0; i < alphaSize; i++) { weight[i + 1] = (freq[i] == 0 ? 1 : freq[i]) << 8; } while (true) { nNodes = alphaSize; nHeap = 0; heap[0] = 0; weight[0] = 0; parent[0] = -2; for (i = 1; i <= alphaSize; i++) { parent[i] = -1; nHeap++; heap[nHeap] = i; { int zz, tmp; zz = nHeap; tmp = heap[zz]; while (weight[tmp] < weight[heap[zz >> 1]]) { heap[zz] = heap[zz >> 1]; zz >>= 1; } heap[zz] = tmp; } } if (!(nHeap < (MAX_ALPHA_SIZE + 2))) { panic(); } while (nHeap > 1) { n1 = heap[1]; heap[1] = heap[nHeap]; nHeap--; { int zz = 0, yy = 0, tmp = 0; zz = 1; tmp = heap[zz]; while (true) { yy = zz << 1; if (yy > nHeap) { break; } if (yy < nHeap && weight[heap[yy + 1]] < weight[heap[yy]]) { yy++; } if (weight[tmp] < weight[heap[yy]]) { break; } heap[zz] = heap[yy]; zz = yy; } heap[zz] = tmp; } n2 = heap[1]; heap[1] = heap[nHeap]; nHeap--; { int zz = 0, yy = 0, tmp = 0; zz = 1; tmp = heap[zz]; while (true) { yy = zz << 1; if (yy > nHeap) { break; } if (yy < nHeap && weight[heap[yy + 1]] < weight[heap[yy]]) { yy++; } if (weight[tmp] < weight[heap[yy]]) { break; } heap[zz] = heap[yy]; zz = yy; } heap[zz] = tmp; } nNodes++; parent[n1] = parent[n2] = nNodes; weight[nNodes] = ((weight[n1] & 0xffffff00) + (weight[n2] & 0xffffff00)) | (1 + (((weight[n1] & 0x000000ff) > (weight[n2] & 0x000000ff)) ? (weight[n1] & 0x000000ff) : (weight[n2] & 0x000000ff))); parent[nNodes] = -1; nHeap++; heap[nHeap] = nNodes; { int zz = 0, tmp = 0; zz = nHeap; tmp = heap[zz]; while (weight[tmp] < weight[heap[zz >> 1]]) { heap[zz] = heap[zz >> 1]; zz >>= 1; } heap[zz] = tmp; } } if (!(nNodes < (MAX_ALPHA_SIZE * 2))) { panic(); } tooLong = false; for (i = 1; i <= alphaSize; i++) { j = 0; k = i; while (parent[k] >= 0) { k = parent[k]; j++; } len[i - 1] = (char) j; if (j > maxLen) { tooLong = true; } } if (!tooLong) { break; } for (i = 1; i < alphaSize; i++) { j = weight[i] >> 8; j = 1 + (j / 2); weight[i] = j << 8; } } } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2OutputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2OutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
21749,
6464,
1085,
22406,
12,
3001,
8526,
562,
16,
509,
8526,
7684,
16,
4766,
5411,
509,
4190,
1225,
16,
509,
29618,
13,
288,
3639,
1748,
1850,
14037,
471,
10500,
3222,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
21749,
6464,
1085,
22406,
12,
3001,
8526,
562,
16,
509,
8526,
7684,
16,
4766,
5411,
509,
4190,
1225,
16,
509,
29618,
13,
288,
3639,
1748,
1850,
14037,
471,
10500,
3222,
10... |
queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); | queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); | public void setUp() throws Exception { super.setUp(); queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/0a87b6fa611eb79aca9f82a8a7d739b9af40e965/RecoverableQueueTest.java/clean/tests/src/org/jboss/test/messaging/core/local/RecoverableQueueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
24292,
1435,
1216,
1185,
282,
288,
1377,
2240,
18,
542,
1211,
5621,
5411,
2389,
273,
394,
7530,
12,
21,
16,
4086,
16,
7430,
16,
638,
16,
638,
16,
2130,
16,
4200,
16,
1728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
24292,
1435,
1216,
1185,
282,
288,
1377,
2240,
18,
542,
1211,
5621,
5411,
2389,
273,
394,
7530,
12,
21,
16,
4086,
16,
7430,
16,
638,
16,
638,
16,
2130,
16,
4200,
16,
1728,
... |
targetAst.newExpressionStatement(result); | localAst.newExpressionStatement(result); | public ASTNode sample(AST targetAst, boolean parented) { SimpleName result = targetAst.newSimpleName("foo"); //$NON-NLS-1$ if (parented) { targetAst.newExpressionStatement(result); } return result; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0e6d4fe5469565f21baa2fd0ec88d178818c619b/ASTTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
9506,
202,
5784,
461,
563,
273,
1018,
21385,
18,
2704,
5784,
461,
2932,
11351,
8863,
4329,
3993,
17,
5106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
9506,
202,
5784,
461,
563,
273,
1018,
21385,
18,
2704,
5784,
461,
2932,
11351,
8863,
4329,
3993,
17,
5106,
... |
getTypeDataflow(method)); | getTypeDataflow(method), getDepthFirstSearch(method)); | protected UnconditionalDerefDataflow analyze(Method method) throws CFGBuilderException, DataflowAnalysisException { MethodGen methodGen = getMethodGen(method); if (methodGen == null) return null; CFG cfg = getCFG(method); UnconditionalDerefAnalysis analysis = new UnconditionalDerefAnalysis( getReverseDepthFirstSearch(method), cfg, methodGen, getValueNumberDataflow(method), getTypeDataflow(method)); UnconditionalDerefDataflow dataflow = new UnconditionalDerefDataflow(cfg, analysis); dataflow.execute(); return dataflow; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4513e15ad61d9f168396967236788f97f5def3e5/ClassContext.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/ClassContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
1351,
22019,
40,
822,
74,
751,
2426,
12375,
12,
1305,
707,
13,
1216,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
9506,
202,
1305,
7642,
707,
7642,
273,
6272,
7642,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
1117,
1351,
22019,
40,
822,
74,
751,
2426,
12375,
12,
1305,
707,
13,
1216,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
9506,
202,
1305,
7642,
707,
7642,
273,
6272,
7642,
12,
... |
return new CPPASTInitializerList(); } | return new CPPASTInitializerList(); } | protected IASTInitializerList createInitializerList() { return new CPPASTInitializerList(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
14729,
682,
752,
14729,
682,
1435,
288,
202,
202,
2463,
394,
5181,
4066,
882,
14729,
682,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
14729,
682,
752,
14729,
682,
1435,
288,
202,
202,
2463,
394,
5181,
4066,
882,
14729,
682,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if(cnn instanceof AbstractServiceEnabledConnector) { Map so = ((AbstractServiceEnabledConnector)cnn).getServiceOverrides(); if(so!=null) overrides.putAll(so); | if (cnn instanceof AbstractServiceEnabledConnector) { Map so = ((AbstractServiceEnabledConnector) cnn).getServiceOverrides(); if (so != null) overrides.putAll(so); | private static UMOTransformer getTransformer(UMOEndpointURI url, UMOConnector cnn, boolean inbound) throws ConnectorFactoryException { UMOTransformer trans = null; if (url.getTransformers() != null) { try { trans = MuleObjectHelper.getTransformer(url.getTransformers(), ","); } catch (MuleException e) { throw new ConnectorFactoryException(e); } } else { //Get connector specific overrides to set on the descriptor Properties overrides = new Properties(); if(cnn instanceof AbstractServiceEnabledConnector) { Map so = ((AbstractServiceEnabledConnector)cnn).getServiceOverrides(); if(so!=null) overrides.putAll(so); } String scheme = url.getSchemeMetaInfo(); ConnectorServiceDescriptor csd = getServiceDescriptor(scheme, overrides); if (inbound) { trans = csd.createInboundTransformer(); } else { trans = csd.createOutboundTransformer(); } } return trans; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/614dbecb584c6787ee5db31fcf7a145f1fd41607/ConnectorFactory.java/buggy/src/java/org/mule/providers/service/ConnectorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
587,
5980,
8319,
336,
8319,
12,
2799,
51,
3293,
3098,
880,
16,
587,
5980,
7487,
6227,
82,
16,
1250,
13357,
13,
1216,
15779,
1733,
503,
565,
288,
3639,
587,
5980,
8319,
906,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
587,
5980,
8319,
336,
8319,
12,
2799,
51,
3293,
3098,
880,
16,
587,
5980,
7487,
6227,
82,
16,
1250,
13357,
13,
1216,
15779,
1733,
503,
565,
288,
3639,
587,
5980,
8319,
906,
2... |
setAttribute("tabindex", newValue); | setAttribute("tabindex", newValue); | public void setTabIndex(int newValue) { setAttribute("tabindex", newValue); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/bf94d6634ab3635fdb8210105d9c1c839d13e555/WMLSelectElementImpl.java/clean/src/org/apache/wml/dom/WMLSelectElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5661,
1016,
12,
474,
6129,
13,
288,
202,
542,
1499,
2932,
7032,
1615,
3113,
6129,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5661,
1016,
12,
474,
6129,
13,
288,
202,
542,
1499,
2932,
7032,
1615,
3113,
6129,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
setOutline((LineAttributes)null); | setOutline((LineAttributes) null); | public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case LayoutPackage.LABEL_BLOCK__CHILDREN: getChildren().clear(); return; case LayoutPackage.LABEL_BLOCK__BOUNDS: setBounds((Bounds)null); return; case LayoutPackage.LABEL_BLOCK__ANCHOR: unsetAnchor(); return; case LayoutPackage.LABEL_BLOCK__STRETCH: unsetStretch(); return; case LayoutPackage.LABEL_BLOCK__INSETS: setInsets((Insets)null); return; case LayoutPackage.LABEL_BLOCK__ROW: unsetRow(); return; case LayoutPackage.LABEL_BLOCK__COLUMN: unsetColumn(); return; case LayoutPackage.LABEL_BLOCK__ROWSPAN: unsetRowspan(); return; case LayoutPackage.LABEL_BLOCK__COLUMNSPAN: unsetColumnspan(); return; case LayoutPackage.LABEL_BLOCK__MIN_SIZE: setMinSize((Size)null); return; case LayoutPackage.LABEL_BLOCK__OUTLINE: setOutline((LineAttributes)null); return; case LayoutPackage.LABEL_BLOCK__BACKGROUND: setBackground((Fill)null); return; case LayoutPackage.LABEL_BLOCK__VISIBLE: unsetVisible(); return; case LayoutPackage.LABEL_BLOCK__TRIGGERS: getTriggers().clear(); return; case LayoutPackage.LABEL_BLOCK__LABEL: setLabel((Label)null); return; } eDynamicUnset(eFeature); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LabelBlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19698,
12,
41,
14372,
4595,
425,
4595,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
9995,
2261,
18,
13545,
67,
11403,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
41,
14372,
4595,
425,
4595,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
9995,
2261,
18,
13545,
67,
11403,
... |
System.setOut(logstr); System.setErr(logstr); | public boolean execute() throws BuildException { getRmic().log("Using Kaffe rmic", Project.MSG_VERBOSE); Commandline cmd = setupRmicCommand(); PrintStream err = System.err; PrintStream out = System.out; // the project log PrintStream logstr = new PrintStream(new LogOutputStream(getRmic(), Project.MSG_WARN)); try { System.setOut(logstr); System.setErr(logstr); Class c = Class.forName("kaffe.rmi.rmic.RMIC"); Constructor cons = c.getConstructor(new Class[] { String[].class }); Object rmic = cons.newInstance(new Object[] { cmd.getArguments() }); Method doRmic = c.getMethod("run", null); String str[] = cmd.getArguments(); Boolean ok = (Boolean)doRmic.invoke(rmic, null); return ok.booleanValue(); } catch (ClassNotFoundException ex) { throw new BuildException("Cannot use Kaffe rmic, as it is not available"+ " A common solution is to set the environment variable"+ " JAVA_HOME or CLASSPATH.", getRmic().getLocation() ); } catch (Exception ex) { if (ex instanceof BuildException) { throw (BuildException) ex; } else { throw new BuildException("Error starting Kaffe rmic: ", ex, getRmic().getLocation()); } } finally { System.setErr(err); System.setOut(out); logstr.close(); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/cb6df3b29f3afe2ca591237d1bb5ed31becd337b/KaffeRmic.java/buggy/src/main/org/apache/tools/ant/taskdefs/rmic/KaffeRmic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
1435,
1216,
18463,
288,
3639,
4170,
27593,
7675,
1330,
2932,
7736,
1475,
7329,
73,
6692,
335,
3113,
5420,
18,
11210,
67,
21900,
1769,
3639,
3498,
1369,
1797,
273,
3875,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1836,
1435,
1216,
18463,
288,
3639,
4170,
27593,
7675,
1330,
2932,
7736,
1475,
7329,
73,
6692,
335,
3113,
5420,
18,
11210,
67,
21900,
1769,
3639,
3498,
1369,
1797,
273,
3875,
54... | |
database.insert(objects, labels); | database.insert(objects, labels); | public Database<O> getDatabase(Normalization<O> normalization) { try { // parse ParsingResult<O> parsingResult = parser.parse(in); // normalize objects List<O> objects = normalization != null ? normalization.normalize(parsingResult.getObjects()) : parsingResult.getObjects(); // transform labels List<Map<AssociationID, Object>> labels = transform(parsingResult.getLabels()); // insert into database database.insert(objects, labels); // precomputed distances if (parser instanceof DistanceParser) { Map<IDPair, Distance> distanceMap = ((DistanceParsingResult<O, Distance>) parsingResult).getDistanceMap(); DistanceFunction<O, Distance> distanceFunction = ((DistanceParser<O, Distance>) parser).getDistanceFunction(); database.addDistancesToCache(distanceMap, (Class<DistanceFunction<O, Distance>>) distanceFunction.getClass()); } return database; } catch (UnableToComplyException e) { throw new IllegalStateException(e); } catch (NonNumericFeaturesException e) { throw new IllegalStateException(e); } } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/5f9b016353cad3c9c436695c4e2a3c60b556f463/InputStreamDatabaseConnection.java/buggy/src/de/lmu/ifi/dbs/database/connection/InputStreamDatabaseConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5130,
32,
51,
34,
11263,
12,
23651,
32,
51,
34,
13728,
13,
288,
565,
775,
288,
1377,
368,
1109,
1377,
19761,
1253,
32,
51,
34,
5811,
1253,
273,
2082,
18,
2670,
12,
267,
1769,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5130,
32,
51,
34,
11263,
12,
23651,
32,
51,
34,
13728,
13,
288,
565,
775,
288,
1377,
368,
1109,
1377,
19761,
1253,
32,
51,
34,
5811,
1253,
273,
2082,
18,
2670,
12,
267,
1769,
13... |
Thread.currentThread().sleep(1000); | Thread.sleep(1000); | public void run() { try { // Go to sleep so the server can setup and wait for connection Thread.currentThread().sleep(1000); cs = new Socket(InetAddress.getLocalHost().getHostName(), port); // Sleep again to allow server side processing. Thread is // stopped by server. Thread.currentThread().sleep(10000); } catch (InterruptedException e) { return; } catch (Throwable e) { System.out .println("Error establishing client: " + e.toString()); } finally { try { if (cs != null) cs.close(); } catch (Exception e) { } } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ae983fb9daa4a4217b0d13c01f021559d6b896f9/ServerSocketTest.java/clean/modules/luni/src/test/java/tests/api/java/net/ServerSocketTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
698,
288,
6862,
368,
4220,
358,
5329,
1427,
326,
1438,
848,
3875,
471,
2529,
364,
1459,
9506,
202,
3830,
18,
2972,
3830,
7675,
19607,
12,
18088... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
1082,
202,
698,
288,
6862,
368,
4220,
358,
5329,
1427,
326,
1438,
848,
3875,
471,
2529,
364,
1459,
9506,
202,
3830,
18,
2972,
3830,
7675,
19607,
12,
18088... |
public Object get(Object key) { myKeys.addActual(key); return myEntries.get(key); } | public Object get( Object key ) { myKeys.addActual(key); return myEntries.get(key); } | public Object get(Object key) { myKeys.addActual(key); return myEntries.get(key); } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/ExpectationMap.java/buggy/jmock/core/src/org/jmock/expectation/ExpectationMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
921,
498,
13,
288,
3639,
3399,
2396,
18,
1289,
11266,
12,
856,
1769,
3639,
327,
3399,
5400,
18,
588,
12,
856,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1033,
336,
12,
921,
498,
13,
288,
3639,
3399,
2396,
18,
1289,
11266,
12,
856,
1769,
3639,
327,
3399,
5400,
18,
588,
12,
856,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
description.setBackground(new java.awt.Color(238, 238, 238)); description.setColumns(20); description.setEditable(false); description.setLineWrap(true); description.setRows(2); description.setToolTipText("Description of the currently selected device"); description.setWrapStyleWord(true); jScrollPane4.setViewportView(description); | this.description.setBackground(new java.awt.Color(238, 238, 238)); this.description.setColumns(20); this.description.setEditable(false); this.description.setLineWrap(true); this.description.setRows(2); this.description.setToolTipText("Description of the currently selected device"); this.description.setWrapStyleWord(true); this.jScrollPane4.setViewportView(this.description); | private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); this.configurationsCheckBoxList = getConfigurationsCheckBoxList(); configurationsLabel = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); this.platformsList = getPlatformsCheckBoxList(); platformsLabel = new javax.swing.JLabel(); this.devicesListScrollPane = new javax.swing.JScrollPane(); this.deviceTreeView = getDeviceTreeView(); devicesLabel = new javax.swing.JLabel(); this.descriptionLabel = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane(); this.description = new javax.swing.JTextArea();// configurationsList.setModel( getConfigurationsModel() );// configurationsList.addListSelectionListener( getConfigurationsModel() );// CheckBoxCellRenderer checkBoxCellRenderer = new CheckBoxCellRenderer();// configurationsList.setCellRenderer( checkBoxCellRenderer ); jScrollPane1.setViewportView( getConfigurationsCheckBoxList() ); configurationsLabel.setText( "Configuration:" ); //org.openide.awt.Mnemonics.setLocalizedText(configurationsLabel, "Configuration:"); jScrollPane2.setViewportView(platformsList); platformsLabel.setText( "Profiles/Platforms:" ); //org.openide.awt.Mnemonics.setLocalizedText(platformsLabel, "Profiles/Platforms:"); devicesListScrollPane.setViewportView(deviceTreeView); devicesLabel.setText( "Devices:" ); //org.openide.awt.Mnemonics.setLocalizedText(devicesLabel, "Devices:"); descriptionLabel.setText( "Description:" ); //org.openide.awt.Mnemonics.setLocalizedText(descriptionLabel, "Description:"); description.setBackground(new java.awt.Color(238, 238, 238)); description.setColumns(20); description.setEditable(false); description.setLineWrap(true); description.setRows(2); description.setToolTipText("Description of the currently selected device"); description.setWrapStyleWord(true); jScrollPane4.setViewportView(description); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(devicesListScrollPane) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 219, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(configurationsLabel)) .add(25, 25, 25) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(platformsLabel) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 219, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(devicesLabel) .add(descriptionLabel))) .addContainerGap(23, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(configurationsLabel) .add(platformsLabel)) .add(4, 4, 4) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(devicesLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(devicesListScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(descriptionLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); }// </editor-fold> | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/42db307c8f715fe488abeb968315fbe4410071af/DeviceSelectionComponent.java/buggy/build/source/src/de/enough/polish/ide/swing/DeviceSelectionComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
333,
18,
25856,
19174,
682,
273,
336,
9698,
19174,
682,
5621,
3639,
10459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
333,
18,
25856,
19174,
682,
273,
336,
9698,
19174,
682,
5621,
3639,
10459... |
public InnerClassAccessMap instance() { return instance; } | public static InnerClassAccessMap instance() { return instance; } | public InnerClassAccessMap instance() { return instance; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/337da1adc3e87caf4de658d2caa32d783cfdcade/InnerClassAccessMap.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/InnerClassAccessMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19494,
797,
1862,
863,
791,
1435,
288,
327,
791,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19494,
797,
1862,
863,
791,
1435,
288,
327,
791,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot(); | /********* | public EMWindow (String title, String binDir, String url, int winnum, EmbeddedMozilla Creator) { super(title); popup = new PopupMenu(); creator = Creator; currentURL = url; winNum = winnum; myBinDir = binDir; mInPrintPreview = false; System.out.println("constructed with binDir: " + binDir + " url: " + url); setSize(defaultWidth, defaultHeight); createMenubar(); createToolbar(url); // Create the browser try { BrowserControlFactory.setAppData(binDir); browserControl = BrowserControlFactory.newBrowserControl(); browserCanvas = (BrowserControlCanvas) browserControl.queryInterface(BrowserControl.BROWSER_CONTROL_CANVAS_NAME); } catch(Exception e) { System.out.println("Can't create BrowserControl: " + e.getMessage()); } Assert.assert_it(null != browserCanvas); browserCanvas.setSize(defaultWidth, defaultHeight); // Add the control panel and the browserCanvas add(browserCanvas, BorderLayout.CENTER); // Create the status panel createStatusbar(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.out.println("Got windowClosing"); System.out.println("destroying the BrowserControl"); EMWindow.this.delete(); // should close the BrowserControlCanvas creator.DestroyEMWindow(winNum); } public void windowClosed(WindowEvent e) { System.out.println("Got windowClosed"); } }); // Create the Context Menus add(popup); popup.add(popup_ViewSource = new MenuItem("View Source as ByteArray")); popup.add(popup_SelectAll = new MenuItem("Select All")); popup.add(popup_ViewSelection = new MenuItem("View Selection")); contextListener = new PopupActionListener(); popup_ViewSource.addActionListener (contextListener); popup_SelectAll.addActionListener (contextListener); popup_ViewSelection.addActionListener (contextListener); show(); toFront(); try { navigation = (Navigation2) browserControl.queryInterface(BrowserControl.NAVIGATION_NAME); navigation.setPrompt(this); currentPage = (CurrentPage2) browserControl.queryInterface(BrowserControl.CURRENT_PAGE_NAME); history = (History) browserControl.queryInterface(BrowserControl.HISTORY_NAME); prefs = (Preferences) browserControl.queryInterface(BrowserControl.PREFERENCES_NAME); prefs.registerPrefChangedCallback(this, "network.cookie.warnAboutCookies", "This IS the Closure!"); prefs.setPref("network.cookie.warnAboutCookies", "true"); prefs.setPref("browser.cache.disk_cache_size", "0"); // pull out the proxies, and make java aware of them Properties prefsProps = prefs.getPrefs(); String proxyHost = (String) prefsProps.get("network.proxy.http"); String proxyPort = (String) prefsProps.get("network.proxy.http_port"); if (null != proxyHost && null != proxyPort) { System.setProperty("http.proxyHost", proxyHost); System.setProperty("http.proxyPort", proxyPort); } //prefsProps = prefs.getPrefs(); //prefsProps.list(System.out); // This works, try it! } catch (Exception e) { System.out.println(e.toString()); } try { EventRegistration eventRegistration = (EventRegistration) browserControl.queryInterface(BrowserControl.EVENT_REGISTRATION_NAME); eventRegistration.addDocumentLoadListener(this); eventRegistration.addMouseListener(this); // PENDING(edburns): test code, replace with production code bookmarks = (Bookmarks) browserControl.queryInterface(BrowserControl.BOOKMARKS_NAME); System.out.println("debug: edburns: got Bookmarks instance"); bookmarksTree = bookmarks.getBookmarks(); /********* TreeNode bookmarksRoot = (TreeNode) bookmarksTree.getRoot(); System.out.println("debug: edburns: testing the Enumeration"); int childCount = bookmarksRoot.getChildCount(); System.out.println("debug: edburns: root has " + childCount + " children."); Enumeration rootChildren = bookmarksRoot.children(); TreeNode currentChild; int i = 0, childIndex; while (rootChildren.hasMoreElements()) { currentChild = (TreeNode) rootChildren.nextElement(); System.out.println("debug: edburns: bookmarks root has children! child: " + i + " name: " + currentChild.toString()); i++; } System.out.println("debug: edburns: testing getChildAt(" + --i + "): "); currentChild = bookmarksRoot.getChildAt(i); System.out.println("debug: edburns: testing getIndex(Child " + i + "): index should be " + i + "."); childIndex = bookmarksRoot.getIndex(currentChild); System.out.println("debug: edburns: index is: " + childIndex); *****/ /********** System.out.println("debug: edburns: got new entry"); Properties entryProps = entry.getProperties(); System.out.println("debug: edburns: entry url: " + entryProps.getProperty(BookmarkEntry.URL)); bookmarks.addBookmark(folder, entry); **********/ } catch (Exception e) { System.out.println(e.toString()); } if (null != navigation) { navigation.loadURL(url); } } // EMWindow() ctor | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/c51f266635955ea9a40fa057209a78cf7b0fb900/EMWindow.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7141,
3829,
261,
780,
2077,
16,
514,
4158,
1621,
16,
514,
880,
16,
509,
5657,
2107,
16,
21829,
49,
11142,
10745,
29525,
13,
565,
288,
3639,
2240,
12,
2649,
1769,
3639,
10431,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7141,
3829,
261,
780,
2077,
16,
514,
4158,
1621,
16,
514,
880,
16,
509,
5657,
2107,
16,
21829,
49,
11142,
10745,
29525,
13,
565,
288,
3639,
2240,
12,
2649,
1769,
3639,
10431,
273,
... |
throw NativeGlobal.typeError0("msg.arg.isnt.array", scope); | throw ScriptRuntime.typeError0("msg.arg.isnt.array"); | private static Object applyOrCall(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { int L = args.length; Object function = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); Object callThis; if (L == 0 || args[0] == null || args[0] == Undefined.instance) { callThis = ScriptableObject.getTopLevelScope(scope); } else { callThis = ScriptRuntime.toObject(cx, scope, args[0]); } Object[] callArgs; if (isApply) { // Follow Ecma 15.3.4.3 if (L <= 1) { callArgs = ScriptRuntime.emptyArgs; } else { Object arg1 = args[1]; if (arg1 == null || arg1 == Undefined.instance) { callArgs = ScriptRuntime.emptyArgs; } else if (arg1 instanceof NativeArray || arg1 instanceof Arguments) { callArgs = cx.getElements((Scriptable) arg1); } else { throw NativeGlobal.typeError0("msg.arg.isnt.array", scope); } } } else { // Follow Ecma 15.3.4.4 if (L <= 1) { callArgs = ScriptRuntime.emptyArgs; } else { callArgs = new Object[L - 1]; System.arraycopy(args, 1, callArgs, 0, L - 1); } } return ScriptRuntime.call(cx, function, callThis, callArgs, scope); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8df24a01d813540ecdfcd8a3a380c84cc9993734/BaseFunction.java/buggy/js/rhino/src/org/mozilla/javascript/BaseFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
2230,
1162,
1477,
12,
6494,
353,
7001,
16,
4766,
1377,
1772,
9494,
16,
22780,
2146,
16,
4766,
1377,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1033,
2230,
1162,
1477,
12,
6494,
353,
7001,
16,
4766,
1377,
1772,
9494,
16,
22780,
2146,
16,
4766,
1377,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
28... |
} catch (RuntimeException re) { throw re; } catch (SAXException se) { throw this.exception = se; | } catch (RuntimeException e) { throw e; } catch (SAXException e) { throw this.exception = e; | protected void addEntry(Attributes atts) throws SAXException { String name = atts.getValue("name"); if (name == null) { throw this.exception = new SAXException("No name given to the Zip entry"); } String src = atts.getValue("src"); String serializerType = atts.getValue("serializer"); if (src == null && serializerType == null) { throw this.exception = new SAXException("No source nor serializer given for the Zip entry '" + name + "'"); } if (src != null && serializerType != null) { throw this.exception = new SAXException("Cannot specify both 'src' and 'serializer' on a Zip entry '" + name + "'"); } Source source = null; try { // Create a new Zip entry ZipEntry entry = new ZipEntry(name); this.zipOutput.putNextEntry(entry); if (src != null) { // Get the source and its data source = resolver.resolveURI(src); InputStream sourceInput = source.getInputStream(); // Copy the source to the zip int len; while ((len = sourceInput.read(this.buffer)) > 0) { this.zipOutput.write(this.buffer, 0, len); } // and close the entry this.zipOutput.closeEntry(); } else { // Serialize content if (this.selector == null) { this.selector = (ServiceSelector) this.manager.lookup(Serializer.ROLE + "Selector"); } // Get the serializer this.serializer = (Serializer) this.selector.select(serializerType); // Direct its output to the zip file, filtering calls to close() // (we don't want the archive to be closed by the serializer) this.serializer.setOutputStream(new FilterOutputStream(this.zipOutput) { public void close() { /*nothing*/ } }); // Set it as the current XMLConsumer setConsumer(serializer); // start its document this.serializer.startDocument(); // and give it any namespaces already declared Enumeration prefixes = this.nsSupport.getPrefixes(); while (prefixes.hasMoreElements()) { String prefix = (String) prefixes.nextElement(); super.startPrefixMapping(prefix, this.nsSupport.getURI(prefix)); } this.state = IN_CONTENT_STATE; this.contentDepth = 0; } } catch (RuntimeException re) { throw re; } catch (SAXException se) { throw this.exception = se; } catch (Exception e) { throw this.exception = new SAXException(e); } finally { this.resolver.release( source ); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/400099146ffb4ae647f65a01b99953a7cbe02371/ZipArchiveSerializer.java/clean/src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
1622,
12,
2498,
15687,
13,
1216,
14366,
288,
3639,
514,
508,
273,
15687,
18,
24805,
2932,
529,
8863,
3639,
309,
261,
529,
422,
446,
13,
288,
5411,
604,
333,
18,
4064,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1622,
12,
2498,
15687,
13,
1216,
14366,
288,
3639,
514,
508,
273,
15687,
18,
24805,
2932,
529,
8863,
3639,
309,
261,
529,
422,
446,
13,
288,
5411,
604,
333,
18,
4064,
27... |
currentFile = new RubyFile(runtime, filename); | currentFile = new RubyFile(getRuntime(), filename); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue("-"); currentLineNumber = 0; return true; } return false; } String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); } else { currentFile = new RubyFile(runtime, filename); } return true; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
7388,
1769,
3639,
309,
261,
1968,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
6158,
7675,
588,
2932,
8,
7388,
1769,
3639,
309,
261,
1968,
18,
588,
... |
String logFailure(Exception e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String msg = "log:" + jobLog_ + "\n" + getContext() + sw + "\n"; logprintln(msg); return msg; | String logFailure(Exception e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String msg = "log:" + jobLog_ + "\n" + getContext() + sw + "\n"; logprintln(msg); return msg; | String logFailure(Exception e) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); String msg = "log:" + jobLog_ + "\n" + getContext() + sw + "\n"; logprintln(msg); return msg; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/e10b40e8014547113799b2653164e8c990d41209/PipeMapRed.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
613,
5247,
12,
503,
425,
13,
225,
288,
1377,
17436,
1352,
273,
394,
17436,
5621,
1377,
14071,
8772,
273,
394,
14071,
12,
5328,
1769,
1377,
425,
18,
1188,
6332,
12,
14921,
1769,
1377,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
613,
5247,
12,
503,
425,
13,
225,
288,
1377,
17436,
1352,
273,
394,
17436,
5621,
1377,
14071,
8772,
273,
394,
14071,
12,
5328,
1769,
1377,
425,
18,
1188,
6332,
12,
14921,
1769,
1377,... |
public RubyInteger op_lshift(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyInteger op_lshift(RubyNumeric other) { | public RubyInteger op_lshift(IRubyObject num) { RubyNumeric other = numericValue(num); long width = other.getLongValue(); if (width < 0) return op_rshift(other.op_uminus()); if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } } else { if (width >= BIT_SIZE - 1 || value >> (BIT_SIZE - width) < -1) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, RubyBignum.bigIntValue(this)); return lBigValue.op_lshift(other); } } return newFixnum(value << width); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
80,
4012,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
1525,
1835,
273,
1308,
18,
588,
3708,
620,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
4522,
1061,
67,
80,
4012,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
1525,
1835,
273,
1308,
18,
588,
3708,
620,
5621,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.