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 197856 - RESTful Java client : Incorrect code generation for methods with regex specification in @Path
Summary: RESTful Java client : Incorrect code generation for methods with regex specif...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 06:33 UTC by Denis Anisimov
Modified: 2011-04-28 05:06 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 Denis Anisimov 2011-04-19 06:33:51 UTC
To reproduce:
- Create Web project
- Create RESTful ws from pattern ( f.e. simple root resource )
- Add into the generated WS class the follwoing method :
    
    @GET
    @Path("{id : \\d+}")
    @Produces("text/plain")
    public String getText(){
        return "";
    }
- Generate RESTful Java client for this WS.
Generated Java client will contain incorrect method :
public String getText(String id : \\d+) 
with bad body implementation.
Comment 1 Denis Anisimov 2011-04-26 09:46:07 UTC
changeset:   192911:2a6c861af113
Comment 2 Quality Engineering 2011-04-27 04:49:14 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/2a6c861af113
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#197856 - RESTful Java client : Incorrect code generation for methods with regex specification in @Path.
Comment 3 Quality Engineering 2011-04-28 05:06:27 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/2a6c861af113
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#197856 - RESTful Java client : Incorrect code generation for methods with regex specification in @Path.