Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
JBuilder
Editor
CUA
EMACS
Javadoc Support
Options
Preferences
Printing
Searching
UI
You are not logged in.
Help
Print
Public Report
Report From:
JBuilder/Editor/Options
[ Add a report in this area ]
Report #:
7425
Status:
Reported
Format ALL failure - Spaces Around Binary Operator
Project:
JBuilder
Build #:
10.0.176.0
Version:
10.0
Submitted By:
Petar Banicevic
Report Type:
Basic functionality failure
Date Reported:
2/25/2004 3:37:30 PM
Severity:
Commonly encountered problem
Last Updated:
2/25/2004 3:43:12 PM
Platform:
All platforms
Internal Tracking #:
Resolution:
None
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
Format all fails if "Spaces Around Binary Operator" option is off !
instanceof operator must not be threated same as other operators. It is possible to remove spaces here:
int a=1;
but not in this case
if (x instance of Object)
Steps to Reproduce:
Goto to (Default) Project Properties. Goto Formatting. Goto tab Spaces.
Uncheck option "Around Binary Operator".
Open any project, open any class and insert following code:
public void test() {
Object x=new Object();
if (x instanceof Object) {
System.out.println("hello");
}
}
Now do right mouse click and select format all. DO you see what happened ?
Did you get syntax error ? Now your code looks like:
public void test() {
Object x=new Object();
if (xinstanceof Object) {
System.out.println("hello");
}
}
Well keyword xinstanceof does not exist. This space should not be removed !
Workarounds
Never use Unchecked option "Around Binary Operator".
Attachment
None
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us