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 82273 - wizards and auto-correction not (always) adding return statements
Summary: wizards and auto-correction not (always) adding return statements
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-09 13:56 UTC by matthieu
Modified: 2008-11-04 10:53 UTC (History)
1 user (show)

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 matthieu 2006-08-09 13:56:53 UTC
Not all add method wizards add return statements to methods. The Add Method
wizard for plain Java classes doesn't not add return statements which produces
code that does not compile. "return null" or "return 0" type statements should
be added. This is the behavior in the Add EJB Method wizard.

Additionally there should be a "Fix/Add return statements" operation that could
be performed in any classes.
Comment 1 Jan Becicka 2007-09-19 13:03:54 UTC
"Add method wizard" removed from java. What about "Add EJB Method wizard"?
Comment 2 pslechta 2008-11-04 10:53:03 UTC
Add businessMethod wizard works fine (return statement inserted).

Closing as WORKSFORME. Reporter, please reopen if you don't agree.