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.
[ BUILD # : 201301102100 ] [ JDK VERSION : 1.7.0_09 ] Reproduction * start NetBeans on a non-english system (f.e. with german locale) * create "new java web app" using "new project..." wizard * create "restful java client" using "new file..." wizard * choose IDE registered webservice "Amazon/EC2 Service" and let the client be generated ACTUAL: the generated client code is not compilable, because it contains non-UTF8-chars. Opening a generated file warns about non-UTF8- encoding - see screenshot EXPECTED: the generated client is compilable IMHO this is a major showblocker. Any user without english locale (f.e. german with umlauts) will run into this issue. It is reproducible every time. That is why i set it to P2 FYI 1: I tried to reproduce it also with JAX-WS. There are no encoding errors when generating a JAX-WS-client. You generate them via " wsimport - d ... -encoding UTF-8 ..." FYI 2: You already fixed a similar JAXWS-encoding bug at * http://netbeans.org/bugzilla/show_bug.cgi?id=182984 * http://netbeans.org/bugzilla/show_bug.cgi?id=216899 by explicit definition of the encoding in the build files ---- Product Version: NetBeans IDE 7.3 RC1 (Build 201301102100) Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Created attachment 130213 [details] Shows the errors in output window and non-compilable code
web-main#fd2ffc6c93fd
Integrated into 'main-golden', will be available in build *201301160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fd2ffc6c93fd User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#224876 - Generating a JAX-RS client on a non-english system generates uncompilable code
I tried dev build 201301160001 and the fix seems to be OK. I agree to transplant it to release73 branch.
releases#8a2517cfd191 ( release73 )
Integrated into 'releases', will be available in build *201301212100* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/8a2517cfd191 User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#224876 - Generating a JAX-RS client on a non-english system generates uncompilable code in release73 branch.