This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When the indention options of the java editor has 'Add New Line Before Brace' enabled, the code generated by the 'new midlet' wizard is damaged. It contains too many opening braces: /** * This method should return an instance of the display. */ public javax.microedition.lcdui.Display getDisplay () { { return javax.microedition.lcdui.Display.getDisplay(this); } /** * This method should exit the midlet. */ public void exitMIDlet () { { getDisplay().setCurrent(null); destroyApp(true); notifyDestroyed(); }
Created attachment 25685 [details] damaged code + settings dialog
it seems like serious problem -> uncompilable code -> P2 reassigning to David. David - this problem happens only for exitMidlet and getDisplay methods of newly created midlet.
This issue is caused by issue #66453. This issue (#66263) has been fixed using a workaround for #66453: Designer does not regenerate headers and bottoms of getDisplay and exitMIDlet methods. This affects compatibility with first few q-builds of the NetBeans Mobility Pack 5.0. When the root issue (#66453) will be fixed, the workaround could be removed.
it seems to be fixed in latest mobility build - getDisplay, exitMidlet ignores I'll let the reporter to check and verify by himself (thank you, herkules).
You are welcome :) Where can I get hold of the latest build?
the daily builds for mobility are available for download http://www.netbeans.info/downloads/download.php?a=n&p=1 The build 20051012 of MP includes this fix. You'll probably have to reinstall NetBeans too. If you think it's too risky for you to switch to development build you can wait till next q-build will be promoted (it will be tested today but I don't know when it'll be published). There is no hurry to verify it ;) thank you
ok, I confirm it is fixed.
wow, quick verification, one more thanks I'm marking as verified - (you can do it by yourself next time)
close old issues