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.
Generated code should: * use javax.ws.rs.client.ClientBuilder instead of javax.ws.rs.client.ClientFactory * remove "throws javax.ws.rs.client.ClientException" * replace java.util.Entry with java.util.Map.Entry These are few problems I notice so far.
Fixed in: c105c7678174 Apart from the problems mentioned previously the fix does following: * instead of removing "throws javax.ws.rs.client.ClientException" I replaced it with "throws javax.ws.rs.ClientErrorException" * eliminates warning "non-varargs call of varargs method with inexact argument type", that is values usage is now casted to (Object[]) * client for CRUD REST was incorrectly calling delete method with null, for example webTarget.path(smth).request().delete(null); * empty statement was removed from generated code There are few other bugs which I'm going to file separately.
I filled few more issues: * issue 229814 - REST Java Client wizard generates uncompilable code - SSL and BASIC authentication * issue 229815 - REST Java Client wizard generates uncompilable code for Flick rest service * issue 229816 - REST Java Client wizard throws exception for Delicious service I have not tested everything but these were problems I bumped into fairly quickly.
Verified in NetBeans IDE Dev (Build web-main-10532-on-20130516) but filed Bug 229827 - REST Java Client in web project cannot be deployed.
The patch seems to be ok.
Transplanted to 7.3.1: http://hg.netbeans.org/releases/rev/5f2f1e41b9e3
Integrated into 'releases', will be available in build *201305162200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/5f2f1e41b9e3 User: David Konecny <dkonecny@netbeans.org> Log: #229805 - 'REST Client from Java' wizard generated uncompile-able code
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c105c7678174 User: David Konecny <dkonecny@netbeans.org> Log: #229805 - 'REST Client from Java' wizard generated uncompile-able code