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

Summary: RESTful Java client : Incorrect code generation for methods with regex specification in @Path
Product: webservices Reporter: Denis Anisimov <ads>
Component: RESTAssignee: Denis Anisimov <ads>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

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.