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 58920

Summary: i18n - error tooltips can not display correctly when it consists of 2-byte chars.
Product: editor Reporter: benbrand <benbrand>
Component: Hints & AnnotationsAssignee: issues@editor <issues>
Status: CLOSED FIXED    
Severity: blocker CC: kfrank
Priority: P3 Keywords: I18N, JDK_SPECIFIC
Version: 4.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: sample picture of incorrect displaying of tooltip (NB4.1)
sample picture of correct displaying of tooltip (NB4.1beta)
screenshot of 4.1 RC2
screenshot on 4.0, previous release
tooltip test

Description benbrand 2005-05-14 07:48:52 UTC
On Mac OS X(10.4) running in japanese language, Netbeans' java editor can not display error-tooltips , 
correctly, when the tooltip consists of 2-byte charactors(Japanese). 

On Japanese Mac OS X, all of java error messages (including tool tip) are displayed with japanese 2-byte 
chars. so I can not read all error tooltip.
Comment 1 benbrand 2005-05-14 07:51:20 UTC
Created attachment 22130 [details]
sample picture of incorrect displaying of tooltip (NB4.1)
Comment 2 benbrand 2005-05-14 07:52:45 UTC
Created attachment 22131 [details]
sample picture of correct displaying of tooltip (NB4.1beta)
Comment 3 Ken Frank 2005-06-03 21:14:33 UTC
This seems serious enough to make p2 - tooltip is important kind of message
and this would impact  users of localized nb.

ken.frank@sun.com
06/03/2005
Comment 4 hatakyon 2005-06-06 10:16:18 UTC
it seems regression of 4.1 release,
because 4.0 can display Japanese error correctly.
Comment 5 hatakyon 2005-06-06 10:54:27 UTC
Created attachment 22504 [details]
screenshot of 4.1 RC2
Comment 6 hatakyon 2005-06-06 10:55:42 UTC
Created attachment 22505 [details]
screenshot on 4.0, previous release
Comment 7 Martin Roskanin 2005-06-08 13:33:55 UTC
The regression was caused by the fix of the issue #57420
Comment 8 Martin Roskanin 2005-06-08 15:51:28 UTC
Could you please test it also in debugger tooltip, please?

Use the same test case as mentioned in issue #57420

public class StringDebug {
    public static void main(String[] args) {
        char c1 = '\33';    // BUG: sqare in tooltip
        char c2 = '\n';     // OK
        char c3 = '"';      // BUG: display '\"' (backslash unneeded)
        char c4 = '\'';     // BUG: display '''  (backslash missing)
        char c5 = '\\';     // OK
        char c6 = '\ue161'; // BUG: sqare in tooltip
        String s = "\33\n\"'\\\ue161";      // FULL OF BUGS IN TOOLTIP
    }   // <--- PUT BREAKPOINT HERE
}

1. Put the breakpoint, add a new watch of String s. 
2. F5
3. Look at watches List and place the cursor over [...] right to value of
variable "s" for tooltip displaying.

Do you see Japanese characters or escaped unicode characters in the tooltip?

Comment 9 benbrand 2005-07-04 18:54:01 UTC
I see escaped unicode characters.
See an attached picture.
Comment 10 benbrand 2005-07-04 18:55:42 UTC
Created attachment 23005 [details]
tooltip test
Comment 11 Ken Frank 2005-07-04 20:05:02 UTC
is this shown just on mac or on windows and/or unix ?

ken.frank@sun.com
Comment 12 benbrand 2005-07-05 16:22:10 UTC
I see it on Mac OS X 1.4.1/Java 1.4.2_07 using Netbeans 4.1 release build.
Comment 13 Tomas Hurka 2005-11-15 14:52:16 UTC
This Mac OX only issue -> lowering priority to P3. In fact it works fine on Mac OS X 10.4.3 with latest J2SE 
5.0. So it seems to be JDK bug. Closing as fixed. 
Comment 14 Marian Mirilovic 2011-06-09 09:51:28 UTC
v/c