Bug 32215 - [README] GB18030: Cannot export package with GB18030 chars as package name to a Javadoc tolerateable [export import]
Summary: [README] GB18030: Cannot export package with GB18030 chars as package name to...
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2003-02-19 05:19 EST by Yu Zhen Fan CLA
Modified: 2006-05-12 05:58 EDT (History)
5 users (show)

See Also:


Attachments
Screen shot of javadoc1.jpg (77.63 KB, image/jpeg)
2003-02-19 05:29 EST, Yu Zhen Fan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Zhen Fan CLA 2003-02-19 05:19:49 EST
Language: Simplified Chinese
OS: Windows 2000	
Eclipse Build: 200302061700 Stable Build (M5)
JRE version: JRE 1.4.0 IBM build cxia32140-20020917a (JIT enabled:jitc)

<<Summary>>
    Cannot export package with GB18030 chars as package name to a Javadoc

<<Re-produce steps>>
    1. Launch Eclipse.
    2. Create a Java project with GB2312 chars as project name.
    3. Create a Java package with GB18030 chars as package name.
    4. Create two Java classes, put one in the new package and the other in 
the default package.
    5. Right click the project and click Export.
    6. Select Javadoc and click Next button.
    7. Click Finish button.

<<Expected Result>>
    It works correctly

<<Execution Result>>
    Error message displays in the console, please refer to screen shot 
=>javadoc1.jpg 

<<Comments>>  
    1. I can run it with GB2312 character.
    2. I have change the Fonts for workbench and system to GB18030 character.
    3. It seems that source files cannot be found in the package with GB18030 
chars as package name.
Comment 1 Yu Zhen Fan CLA 2003-02-19 05:29:55 EST
Created attachment 3565 [details]
Screen shot of javadoc1.jpg
Comment 2 Dirk Baeumer CLA 2003-02-19 10:25:47 EST
The actual Javadoc generation is done by calling the javadoc executable from a 
JDK installation. Which version of javadoc are you using (Preferences->Java-
>Javadoc).

The error messages you are seeing in the output window are generated by the 
javadoc executable not by Eclipse itself.

Would it be possible that you translate the error message ;-)).

Comment 3 Dirk Baeumer CLA 2003-02-20 15:41:52 EST
I tested it under Windows 2000 with Simpified Chinese and the Javadoc wizard 
passes the following arguments to the javadoc exe

D:\apps\jdk\jdk1.4.1\bin\javadoc.exe -d C:\tmp\JUnit\成\doc -sourcepath 
C:\tmp\JUnit\成 -classpath C:\tmp\JUnit\成 -public -use -version -author -
splitindex C:\tmp\JUnit\成\成.java 在 

IMO the -locale and -encoding arguments are missing.

Martin, any comments
Comment 4 Yu Zhen Fan CLA 2003-02-20 22:38:17 EST
Dirk, answer your questions:
1. JDK version we are using: build 1.4.0, J2RE 1.4.0 IBM Windows 32 build 
cn140-20020902 (JIT enabled: jitc)
2. Translate the error message: "javadoc: no found source file in the 
package ??"
Comment 5 Dirk Baeumer CLA 2003-02-26 08:49:03 EST
There is an old PR saying that there are problems to pass chinese charaters to a 
second process. Have to find PR. 
Comment 6 Dirk Baeumer CLA 2003-03-04 04:37:19 EST
This seems to be a more fundamental problem of the VM. Trying to start a VM 
where the main class name uses GB1830 characters results in the following error 
message:

The java class is not found:  ?

The command used to start the VM is 

D:\apps\jdk\1.4.0_IBM\jre\bin\javaw.exe -classpath 
C:\tmp\workspaces\Chinese\Test 成

The VM used is 

java.fullversion=J2RE 1.4.0 IBM Windows 32 build cn140-20020902 (JIT disabled)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

According to bug 9330 this seems to be a VM bug. Since the Javadoc exec is a 
Java VM too it will surface the same behavior.

Creating Javadoc for files which use DBCS for the content works as long as the 
right encoding is specified using the additional field "Extra Javadoc options" 
on the wizard's third page (e.g entering -encoding UTF-16).

As long as the VM problem exists there is nothing we can do. Removing milestone 
tag. 

Asking JDT/Debug if they have more insights about this ?
Comment 7 Darin Wright CLA 2003-03-04 09:13:13 EST
We have a similar bug filed against us, which is still under investigation - 
bug 32206.
Comment 8 Tod Creasey CLA 2003-03-05 10:32:18 EST
With RC1 I just restested this using the following parameters

VM: IBM 1.4.0 Sept 17 build.
Input mode:Nei Ma Unicode
Locale: zh_CW
Encoding: GB18030

I created a project, class and package using the Unicode input and then 
generated javadoc and did not guess this problem.

I am not sure if this indicates that the problem is fixed - could Yu Zhen Fan 
please verify my test methods. If they are invalid please let me know how you 
inputted the proglem characters.
Comment 9 Yu Zhen Fan CLA 2003-03-07 05:51:02 EST
With RC1 I just restested this using the following parameters:

VM: IBM 1.4.0 Sept 17 build.
Input mode: Nei Ma Unicode
Locale: zh_CN
Encoding: GB18030
Characters: 3400 - 3700 range (difference between reporter and Tod Creasey)

We can still make this problem happen. Please input Unicode like "3400" for 
retesting. For more comments, refer to bug 32206.
Comment 10 Tod Creasey CLA 2003-03-10 16:35:08 EST
I have done the same test abd also got an error but this time I got an 
internal error

!ENTRY org.eclipse.jdt.ui 4 10001 ÈýÔÂ 11, 2003 02:29:58.80
!MESSAGE Internal ErrorÎÄ*
!STACK 0
java.io.IOException: CreateProcess: D:\½¢&#43312;½¢\ibmjre\bin\javadoc.exe -d 
D:\tod\RC2\eclipse\workspace\&#13398;´K\doc -sourcepath D:\tod\RC2
\eclipse\workspace\&#13398;´K -classpath D:\tod\RC2\eclipse\workspace\&#13398;´K -public -
use -version -author -splitindex &#13398;&#13944; error=123
	at java.lang.Win32Process.create(Native Method)
	at java.lang.Win32Process.<init>(Win32Process.java:91)
	at java.lang.Runtime.execInternal(Native Method)
	at java.lang.Runtime.exec(Runtime.java:583)
	at java.lang.Runtime.exec(Runtime.java:505)
	at java.lang.Runtime.exec(Runtime.java:471)
	at 
org.eclipse.jdt.internal.ui.javadocexport.JavadocWizard.executeJavadocGeneratio
n(JavadocWizard.java:221)
	at 
org.eclipse.jdt.internal.ui.javadocexport.JavadocWizard.performFinish
(JavadocWizard.java:179)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:602)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:315)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:417)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled 
Code))
	at org.eclipse.jface.window.Window.open(Window.java:557)
	at org.eclipse.ui.actions.ExportResourcesAction.run
(ExportResourcesAction.java:112)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:456)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:403)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:397)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:72)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1383)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:845)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:61)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:40)
	at java.lang.reflect.Method.invoke(Method.java:335)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
	at org.eclipse.core.launcher.Main.run(Main.java:703)
	at org.eclipse.core.launcher.Main.main(Main.java:539)
Comment 11 Dirk Baeumer CLA 2003-03-21 10:27:07 EST
The analysis we have done indicates that the class libraries do not support 
the creation of a process via Runtime.exec(...). See bug 32206 for more 
details.