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.

Bug 88541 - Extra brace "{" inserted in Java Mobile application when "Add New Line Before Brace" is selected
Summary: Extra brace "{" inserted in Java Mobile application when "Add New Line Before...
Status: RESOLVED DUPLICATE of bug 72182
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@mobility
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 20:49 UTC by noutram
Modified: 2006-11-03 10:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description noutram 2006-11-02 20:49:55 UTC
If you select, Tools->Options.
Select Editor on the left hand side
Select the Indentation tab
Select "Add New Line Before Brace"


Now, create a new Java Mobile application File->New Project->Mobile->Mobile 
Application

Select all the defaults (I use J2ME Wireless Toolkit 2.2) and keep 
clicking "Next" and finally click "Finish"

When the mobile application is created, inspect the source and find the method
that reads as follows:

public void commandAction(Command command, Displayable displayable)



You will see there are an extra open braces '{' inserted throughout this 
method causing it to fail to compile.
Comment 1 Lukas Hasik 2006-11-03 10:32:57 UTC
This issue is fixed in 6.0 daily builds.

thank you for report.

*** This issue has been marked as a duplicate of 72182 ***