FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 281 : Parsing error when using char literals
Last modified: 2010-03-15 14:46
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Sam
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2006-01-31 19:08
The following lines of code creates an error in the Processing parser, but
shouldn't
if ( someString.charAt( n ) == '(' )
{
some code
}
The parser sees this as:
if ( someString.charAt( n ) == ( )
{
some code
}
And therefore throws an error on the first curly bracket.
It can be worked around by using the numeric values 0x28 for ( and 0x29 for )
eg: if ( someString.charAt( n ) == 0x28 )
Additional Comment
#1 From fry 2006-02-01 13:25
k, changing the spacing on the parens around it may avoid the issue until it gets fixed.
Additional Comment
#2 From MrFeinberg 2010-03-15 14:12
cannot reproduce; please close
Additional Comment
#3 From fry 2010-03-15 14:46
can't reproduce either, may have been fixed in an earlier release. closing.