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.
Summary: | 'REST Client from Java' wizard generated uncompile-able code | ||
---|---|---|---|
Product: | webservices | Reporter: | David Konecny <dkonecny> |
Component: | Client | Assignee: | David Konecny <dkonecny> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jskrivanek, phejl, pjiricka |
Priority: | P1 | ||
Version: | 7.3.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
David Konecny
2013-05-15 20:52:53 UTC
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 |