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 124609

Summary: FAST: The WebService-add operation wizard creates unformatted code
Product: webservices Reporter: lpolycarpou <lpolycarpou>
Component: CodeAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: possible fix/workaround

Description lpolycarpou 2008-01-02 20:19:10 UTC
When using the WS add operation wizard to create a new WS operation, the code that is automatically created is not
properly formatted (it is somewhat unclear) and does not comply with the default formatting settings in NetBeans i.e. it
is always reformatted if you run the code formatter on it
Comment 1 Lukas Jungmann 2008-01-02 21:09:41 UTC
Created attachment 54619 [details]
possible fix/workaround
Comment 2 Lukas Jungmann 2008-01-02 21:29:07 UTC
I attached possible patch for this issue. In JUnit plugin there are javadoc comments being generated using:

Comment.create(Comment.Style.JAVADOC, -2, -2, -2, commentText) which works well too - javadoc is formatted correctly.

See also filed issue 88159.
Comment 3 Milan Kuchtiak 2008-01-21 09:12:16 UTC
Fixed.

Diff:
http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/AddWsOperationHelper.java?r1=1.25&r2=1.26

I applied the solution described above.

Thank You.