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 68043 - Generated code is not I18N aware
Summary: Generated code is not I18N aware
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 16:08 UTC by _ pkuzel
Modified: 2007-05-26 19:12 UTC (History)
1 user (show)

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 _ pkuzel 2005-11-03 16:08:31 UTC
Generated code for PropertyDescriptor looks like:

properties[PROPERTY_commitExclusions] = new PropertyDescriptor (
"commitExclusions",
org.netbeans.modules.versioning.system.cvss.settings.CvsModuleConfig.class,
"getCommitExclusions", "setCommitExclusions" );

All strings are for sure not I18Nable. But i18n module reports these as bogus
uninternationalized strings.

Expected behaviour: hint i18n module by generating code with "// NOI18N" at line
ending.
Comment 1 _ pkuzel 2005-11-03 16:09:39 UTC
The same applies to:
            eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor (
org.netbeans.modules.versioning.system.cvss.settings.CvsRootSettings.class,
"propertyChangeListener", java.beans.PropertyChangeListener.class, new String[]
{"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" );
Comment 2 Daniel Prusa 2005-11-07 14:57:48 UTC
Fixed in trunk.

/cvs/beans/src/org/netbeans/modules/beans/beaninfo/BiAnalyser.java
new revision: 1.47; previous revision: 1.46
Comment 3 Ken Frank 2007-05-26 19:12:32 UTC
v