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 - i18n - error tooltips can not display correctly when it consists of 2-byte chars.
Summary: i18n - error tooltips can not display correctly when it consists of 2-byte ch...
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N, JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2005-05-14 07:48 UTC by benbrand
Modified: 2011-06-09 09:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample picture of incorrect displaying of tooltip (NB4.1) (171.26 KB, image/png)
2005-05-14 07:51 UTC, benbrand
Details
sample picture of correct displaying of tooltip (NB4.1beta) (167.26 KB, image/png)
2005-05-14 07:52 UTC, benbrand
Details
screenshot of 4.1 RC2 (127.10 KB, image/png)
2005-06-06 10:54 UTC, hatakyon
Details
screenshot on 4.0, previous release (118.09 KB, image/png)
2005-06-06 10:55 UTC, hatakyon
Details
tooltip test (248.65 KB, image/png)
2005-07-04 18:55 UTC, benbrand
Details

Note You need to log in before you can comment on or make changes to this bug.
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