Skip to main content

Nokia S60 3rd edition - hidden method badness

1 reply [Last post]
Anonymous

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".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

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