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.
Summary: | i18n - error tooltips can not display correctly when it consists of 2-byte chars. | ||
---|---|---|---|
Product: | editor | Reporter: | benbrand <benbrand> |
Component: | Hints & Annotations | Assignee: | 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
Created attachment 22130 [details]
sample picture of incorrect displaying of tooltip (NB4.1)
Created attachment 22131 [details]
sample picture of correct displaying of tooltip (NB4.1beta)
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 it seems regression of 4.1 release, because 4.0 can display Japanese error correctly. Created attachment 22504 [details]
screenshot of 4.1 RC2
Created attachment 22505 [details]
screenshot on 4.0, previous release
The regression was caused by the fix of the issue #57420 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? I see escaped unicode characters. See an attached picture. Created attachment 23005 [details]
tooltip test
is this shown just on mac or on windows and/or unix ? ken.frank@sun.com I see it on Mac OS X 1.4.1/Java 1.4.2_07 using Netbeans 4.1 release build. 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. v/c |