FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 551 : synchronised as a method gets obliterated.
Last modified: 2007-05-06 15:43
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
136
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
JohnG
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-05-01 12:27
Trying to do some threaded programming, and according to
http://java.sun.com/j2se/1.4.2/docs/guide/misc/threadPrimitiveDeprecation.html
try{
synchronized(this)
{
//stuff
}
}catch(InterruptedException e)
{}
is the "nice" way to do thread pausing/resuming.
However when the .pde files get joined together into a single .java file
for compiling, the above code gets mangled into:
try
{
synchronized(catch(InterruptedException e)
{}
Which obviously throws many errors.
Additional Comment
#1 From fry 2007-05-06 15:43
*** This bug has been marked as a duplicate of
136
***