Bug 64724 - DBCS: Run > Java application menu not shown for UTF-8 encoded Swing
Summary: DBCS: Run > Java application menu not shown for UTF-8 encoded Swing
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 minor (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-31 06:46 EDT by Masayuki Fuse CLA
Modified: 2004-06-02 10:51 EDT (History)
0 users

See Also:


Attachments
swing appl. test case in zip (1.67 KB, application/octet-stream)
2004-05-31 06:50 EDT, Masayuki Fuse CLA
no flags Details
screen shot (127.54 KB, image/jpeg)
2004-06-01 00:21 EDT, Masayuki Fuse CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masayuki Fuse CLA 2004-05-31 06:46:46 EDT
OS:		SLES 9 Beta 5 
Language:	Japanese (ja_JP.UTF-8 locale)
Build level: 	M9
JDK version:  IBM JDK 1.4.2 Beta cxia32dev-20040524

Steps to recreate problem:
1-ceate a Swing appl and save it 
2-select it and Run from the context menu. 

Error:  1 Java Application menu isn't shown. Only Run... is shown. 

Expected Result: 
Menu 1 Java Application should be shown at the Run menu.
Comment 1 Masayuki Fuse CLA 2004-05-31 06:50:24 EDT
Created attachment 11317 [details]
swing appl. test case in zip
Comment 2 Darin Wright CLA 2004-05-31 09:51:15 EDT
The Java model is throwing an JavaModelException with an error code 
of "ELEMENT_DOES_NOT_EXIST" for the compilation unit. Moving to JCORE for 
comment.
Comment 3 Darin Wright CLA 2004-05-31 09:52:05 EDT
*** Bug 64716 has been marked as a duplicate of this bug. ***
Comment 4 Olivier Thomann CLA 2004-05-31 14:31:32 EDT
It worked for me and I could run the swing app attached.
Here are my steps:
1) Create a Java project
2) Change its encoding to UTF-8.
3) Import the attached swing app
4) Run it.

It works!
Comment 5 Olivier Thomann CLA 2004-05-31 16:57:38 EDT
Did you get your file from CVS?

If yes, then did you set your file as binary on CVS or as ASCII file? If you
encoding is not ASCII, then you should set all new files as binary from a CVS
stand point. Otherwise you might have some wrong conversion made by CVS when you
check out your project.
Comment 6 Masayuki Fuse CLA 2004-06-01 00:21:07 EDT
Created attachment 11343 [details]
screen shot

Here is the screen shot encoded by UTF-8 and MS932. Java application menu is
missing on UTF-8 encoded file.

Yes, the appl run successfully on both encodings.
I got the file from cvs ascii mode.
Comment 7 Olivier Thomann CLA 2004-06-01 09:03:39 EDT
Try to get the file from CVS as a binary file. You should not retrieve your file
from CVS as ASCII file if the encoding is not ASCII.
Could you please try to get it as binary and confirm it is working fine?

Thanks.
Comment 8 Masayuki Fuse CLA 2004-06-02 00:15:14 EDT
I got the same result with binary.
Comment 9 Olivier Thomann CLA 2004-06-02 09:13:17 EDT
I could not reproduce. I tried your attached test case and it works fine.
Could you please:
- clarify your steps to reproduce
- set up a CVS server we can access to reproduce this issue?

Thanks.
Comment 10 Masayuki Fuse CLA 2004-06-02 10:50:37 EDT
I found the problem that UTF-8 file name and its class name were not same 
while these names in MS932 test case were same. I'm sorry about that, please 
close. 
Comment 11 Masayuki Fuse CLA 2004-06-02 10:51:21 EDT
closing