BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-27-2008, 11:02 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 7100T
PIN: N/A
Carrier: tmobile
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with final method Thread.stop() in Eclipse OR Blackberry JDE

Please Login to Remove!

Hi, I am new to developing for Blackberry. I managed to set up Eclipse as my IDE, using bb-ant-tools to build my applications.

When building the sample program HTTPDemo in Eclipse, I run into a problem. HTTPDemo uses:

//shutdown the thread
public void stop() {
_stop = true;
}


in the private class 'ConnectionThread' which extends 'java.lang.Thread'. Since 'stop()' is a final method of 'Thread', Eclipse complains that the method may not be overriden. I perfectly agree, so I remove it.

However, the RapC compiler of Blackberry then complains that it can not find symbol: 'method stop()'.

Is there really this big a difference among RapC and javac? How can RapC require a final method to be overriden?! Does anybody have an idea what is happening here?

Thanks.
Offline  
Old 10-28-2008, 04:42 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you are using the wrong java subset. RIM's Thread implementation does not contain stop() - see API javadoc.
set the java compiliance level to 1.3 in eclipse
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 10-28-2008, 05:36 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 7100T
PIN: N/A
Carrier: tmobile
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Ivanov, I see what you mean in the javadocs indeed...
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.