The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » ME Interest

Thread: Nokia S60 3rd edition - hidden method badness

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Dec 8, 2006 2:45 AM by: terrencebarr
Dan Ackroyd
Nokia S60 3rd edition - hidden method badness
Posted: Dec 6, 2006 8:46 AM
  Click to reply to this thread Reply

Hi y'all,

It appears that there are some (at least one) undocumented methods in the
midp implementation on Nokia series 60 3rd edition devices for certain
classes.

If you accidentally override this method in a derived class, your app will
fail to run, as the derived class will through an exception when the class
loaded tries to load it.

e.g.

class AppCanvas extends Canvas{

protected void paint(Graphics g){
//...do some painting
}

public synchronized void update(){
//do nothing
}

}

Trying to instantiate this class will fail on 3rd edition devices (at least
on my N91 and N70) - but works on the emulator just fine.


cheers
Dan
Ack

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".


terrencebarr

Posts: 544
Re: Nokia S60 3rd edition - hidden method badness
Posted: Dec 8, 2006 2:45 AM   in response to: Dan Ackroyd
  Click to reply to this thread Reply

Dan,

Thanks for posting this. Would you mind re-posting on the phoneME feature forum as because that is where the MIDP experts will be.

Cheers,

-- Terrence

Terrence Barr
Evangelist, Java Mobile & Embedded Community
Sun Microsystems, Germany
www.mobileandembedded.org




 XML java.net RSS