JDK-4642284 : Cannot load classes which have Japanese (SJIS) encoded class names
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: generic
  • Submitted: 2002-02-23
  • Updated: 2002-09-30
  • Resolved: 2002-09-30
Related Reports
Duplicate :  
Relates :  
Description
If a class has a Japanese (SJIS encoding) class name, it cannot be loaded by the loader.  Here is how to reproduce:

1. On Windows 2000, open "Regional Option" in the Control Panel
2. Select "Japanese" in "Your locale(location)" pull down.
3. Unzip the attached archive into some directory.
4. Run the batch file, with a path to the JDK directory, e.g.,
    "nihongo x:\jdk1.4\win"
5. It fails to load the Japanese class with the following error message:

Exception in thread "main" java.lang.NoClassDefFoundError: ??????

I attached a screen shot (nihongo.jpg) for your convenience.

###@###.### 2002-02-22

Comments
EVALUATION As far as I can tell this is the same problem as 4653176. We represent all constant pool symbols as UTF-8 strings internally in the VM, so unless the launcher is causing the incoming characters to be truncated we should be passing through the data properly up to the application class loader for the purposes of finding the class. ###@###.### 2002-07-18 Attached the missing test case. ###@###.### 2002-07-18 After discussion with ###@###.### I am closing this bug as a duplicate of 4642283, the library side of the bug, since it is clear the bug is not in the VM. ###@###.### 2002-09-30
11-06-2004