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: | Assigning strings to a component from a resource bundle corrupts resource bundle! | ||
---|---|---|---|
Product: | java | Reporter: | rost <rost> |
Component: | I18N | Assignee: | issues@java <issues> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | pzavadsky, tpavek |
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Proposed patch |
Description
rost
2002-01-08 13:58:23 UTC
The "Resource Bundle" property editor is from i18n module, reassigning. The issue is simply reproducible... I guess (but am not sure) the problem lies in org.netbeans.modules.i18n.form.FormI18nStringEditor.CustomEditor.getPr opertyValue() method... Created attachment 4010 [details]
Proposed patch
Thanks Tomas it looks like you find the problem origin. Peter could you comment on proposed patch (it seems to work)? I think the patch should be the solution. The true flag means to replace/add the value for the key in all locales. If is false, the key-value pair is just added to locales where the key was missing, thus not replacing in those ones it exist already. FormI18nStringEditor.java new revision: 1.12.14.1; previous revision: 1.12 Verified in dev build 200301200100. The patch causes issue #29019. Going to rollback it. This issue is fixed as side effect of fixing issue #27601. Verified in dev build 200303030100. Resolved for 3.4 or earlier, no new info since then -> closing. |