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 242144

Summary: Javadoc crashes when NB file.encoding != OS encoding
Product: java Reporter: Tomas Zezula <tzezula>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: VERIFIED FIXED    
Severity: normal Keywords: 8.0_HR_FIX
Priority: P2    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Zezula 2014-02-20 12:57:57 UTC
Javadoc crashes when NB file.encoding != OS encoding as the Ant runs Javadoc as a separate process and uses argFile to pass options.
Both ant and javadoc are using default Charset to encode (decode) argFile.
The ant encodes the file with NB file.encoding, new JVM is spawn (with default OS encoding) and Javadoc (com.sun.tools.javac.main.CommandLine) reads the file with default OS encoding. When OS encoding != NB file.encoding javadoc is not able correctly encode characters in argFile.
Comment 1 Tomas Zezula 2014-02-20 13:01:39 UTC
Fixed jet-main e88d1e5de5a8
Comment 2 Dusan Balek 2014-02-20 13:48:45 UTC
Seems good to me.
Comment 3 Tomas Zezula 2014-02-20 14:17:07 UTC
Transplanted 78cfe151b13e
Comment 4 Jiri Prox 2014-02-20 15:31:58 UTC
verified in trunk
Comment 5 Quality Engineering 2014-02-21 01:29:25 UTC
Integrated into 'releases/release80', will be available in build *201402202300* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/78cfe151b13e
User: Tomas Zezula <tzezula@netbeans.org>
Log: #242144:Javadoc crashes when NB file.encoding != OS encoding
Comment 6 Quality Engineering 2014-02-21 03:08:54 UTC
Integrated into 'main-silver', will be available in build *201402210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e88d1e5de5a8
User: Tomas Zezula <tzezula@netbeans.org>
Log: #242144:Javadoc crashes when NB file.encoding != OS encoding
Comment 7 Jiri Prox 2014-02-21 22:41:13 UTC
Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.0rc1
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.0rc1