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 101732 - Newly implemented escape sequence causes problems in resource bundle
Summary: Newly implemented escape sequence causes problems in resource bundle
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-19 11:06 UTC by Jana Maleckova
Modified: 2007-10-12 14:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-04-19 11:06:36 UTC
NetBeans IDE Dev (Build 20070419-0559)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
\uuxxxx in bundle causes MissingResourceException, should be \uxxxx
Comment 1 Jana Maleckova 2007-04-19 11:11:05 UTC
usecase ... have internationalized form with label.text: "Degrees [°]" => in
Resource bundle there is generated "jLabel1.text=Direction [\uu00B0]\:" 
and this causes exception in runtime
Comment 2 Marian Petras 2007-04-23 14:16:23 UTC
Confirmed.
Comment 3 Marian Petras 2007-04-23 15:37:44 UTC
Fixed in the trunk.

The problem was that sequences typed by the user in the form of \uxxxx sequences
 were transformed to form \uuxxxx (one 'u' added) which is valid in Java source
files but not in .properties files.

Modified files:
properties/src/org/netbeans/modules/properties/PropertiesEncoding.java   (1.3)
properties/test/unit/src/org/netbeans/modules/properties/PropertiesEncodingTest.java
                                                                         (1.3)

Diffs:
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/PropertiesEncoding.java?r1=1.2&r2=1.3&diff_format=u
http://properties.netbeans.org/source/browse/properties/test/unit/src/org/netbeans/modules/properties/PropertiesEncodingTest.java?r1=1.2&r2=1.3&diff_format=u
Comment 4 Jana Maleckova 2007-05-18 09:41:01 UTC
this issue is IMHO very close connected with bug 98512 so I will verify it
together with it.

nowadays: It's possible to use automatic i18n in form for special characters. It
doesn't cause such runtime fails which Internationalize wizard does.
Comment 5 Jana Maleckova 2007-10-12 14:18:32 UTC
verified on

Product Version: NetBeans IDE Dev (Build 20071012030351)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)