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 189707 - Web Service code is not formatted
Summary: Web Service code is not formatted
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-20 08:10 UTC by Alexandr Scherbatiy
Modified: 2011-04-28 05:05 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 Alexandr Scherbatiy 2010-08-20 08:10:47 UTC
Product Version         = NetBeans IDE Dev (Build 201008200001) (#0559343619de)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01; Sun Microsystems Inc.


Steps to reproduce:

- Create Web Application
- Create Web Service
- Go to Design view
- Add operation
  Name: operation
  Return type: int
  Parameter Name: i Type int
  Parameter Name: j Type int

Go to Source
---------------------------------------
    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "i")
    int i, @WebParam(name = "j")
    int j) {
        //TODO write your implementation code here:
        return 0;
    }
---------------------------------------

The method code is not formatted
Comment 1 Alexandr Scherbatiy 2010-08-20 08:13:57 UTC
After invoking the code formatting the result is:
---------------------------------------------------
    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
        //TODO write your implementation code here:
        return 0;
    }
---------------------------------------------------
Comment 2 Denis Anisimov 2011-04-26 09:53:51 UTC
Operation is added via org.netbeans.modules.websvc.core.AddWsOperationHelper.addOperation() method which uses Java infrastructure modification task.
Comment 3 Jan Lahoda 2011-04-26 12:54:49 UTC
http://hg.netbeans.org/jet-main/rev/f3df25b48fa5
Comment 4 Quality Engineering 2011-04-27 04:48:08 UTC
Integrated into 'main-golden', will be available in build *201104270000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f3df25b48fa5
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #189707: improving handling of parameter annotations in code generator.
Comment 5 Quality Engineering 2011-04-28 05:05:42 UTC
Integrated into 'main-golden', will be available in build *201104280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f3df25b48fa5
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #189707: improving handling of parameter annotations in code generator.