Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 178648 Details for
Bug 324840
[compiler] Improving debug strings for Break statement, IntLiteral and CaseStatement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_324840.txt (text/plain), 2.80 KB, created by
Olivier Thomann
on 2010-09-10 15:20:58 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-09-10 15:20:58 EDT
Size:
2.80 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java,v >retrieving revision 1.13 >diff -u -r1.13 BreakStatement.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java 7 Mar 2009 01:08:07 -0000 1.13 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/BreakStatement.java 10 Sep 2010 19:20:14 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -82,8 +82,8 @@ > } > > public StringBuffer printStatement(int tab, StringBuffer output) { >- printIndent(tab, output).append("break "); //$NON-NLS-1$ >- if (this.label != null) output.append(this.label); >+ printIndent(tab, output).append("break"); //$NON-NLS-1$ >+ if (this.label != null) output.append(' ').append(this.label); > return output.append(';'); > } > >Index: compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java,v >retrieving revision 1.34 >diff -u -r1.34 CaseStatement.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java 14 Oct 2009 18:13:28 -0000 1.34 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java 10 Sep 2010 19:20:14 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -53,12 +53,12 @@ > public StringBuffer printStatement(int tab, StringBuffer output) { > printIndent(tab, output); > if (this.constantExpression == null) { >- output.append("default : "); //$NON-NLS-1$ >+ output.append("default :"); //$NON-NLS-1$ > } else { > output.append("case "); //$NON-NLS-1$ >- this.constantExpression.printExpression(0, output).append(" : "); //$NON-NLS-1$ >+ this.constantExpression.printExpression(0, output).append(" :"); //$NON-NLS-1$ > } >- return output.append(';'); >+ return output; > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 324840
:
178648
|
178670