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 16098 - I18N - debugger can not stop at breakpoint when classname is japanese
Summary: I18N - debugger can not stop at breakpoint when classname is japanese
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: -FFJ-
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2001-10-02 06:52 UTC by katakai
Modified: 2001-12-18 10:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test.zip file contains the examples of Windows platform (2.49 KB, application/octet-stream)
2001-10-09 09:11 UTC, katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description katakai 2001-10-02 06:52:21 UTC
When I set to JPDA fo Default Debugging and set a breakpoint in
class file of japanese, debugging can not stop at the breakpoint
and just exits. I've verified this problem happens on NT and Win2K.

When I switch to JDK 1.1 debugger implement, this problem
does not happen. Also if class name is ascii, there is
no problem.

The example is very simple, which has only main() method,

public class <japanese> {
 public <japanese> {
 }
 public static main (String args[]) {
  String var="test";
  System.out.println(var); // set breakpoint here
 }
}
Comment 1 Daniel Prusa 2001-10-08 15:03:48 UTC
Can you attach a class file created by compiling a source containing 
a class named in Japanese to reproduce the problem, please ?
Comment 2 katakai 2001-10-09 09:11:27 UTC
Created attachment 2912 [details]
test.zip file contains the examples of Windows platform
Comment 4 Marian Petras 2001-11-19 11:10:14 UTC
This bug is causes by JDK bug.

Not only you cannot debug class with Japanese classname but you cannot
even start such a class from command-line.

   java <japanese-name>   ...   fails (Class not found.)

But you _can_ debug classes with Japanese name if the application's
main class contains only english characters. So there is a simple
workaround: Create an english-named class that just calls the Japanese
class's method 'main(...)':

file EnglishClass.java:

    public class EnglishClass {
        public static void main(String args[]) {
            <JapaneseClass>.main(args);
        }
    }
file <JapaneseClass>.java:

    public class <JapaneseClass> {
        public static void main(String args[]) {
            ...
        }
    }

To run (or debug) <JapaneseClass>, type:

    java EnglishClass
Comment 5 Marian Petras 2001-11-19 11:32:59 UTC
This FFJ bug is most probably caused by JDK bug #4498715 ("filename
with japanese characters").

It does not manifest if you use Japanese Solaris 8 with Unicode
encoding (select language "ja_JP.UTF-8" in the login dialog).

Maybe some workaround for the JDK bug could be added into Forte but
because a simple workaround exists we will not do it.
Comment 6 Jan Stola 2001-12-18 10:34:15 UTC
Wontfix -> Closed.